cortex-react-components 1.53.8 → 1.53.9
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-CZHOJQXZ.mjs → chunk-3XS76N3K.mjs} +1 -1
- package/dist/{chunk-V56EA7R6.mjs → chunk-4ITIJK55.mjs} +1 -1
- package/dist/{chunk-2IKC7MAP.mjs → chunk-5YTDIEDJ.mjs} +1 -1
- package/dist/{chunk-EE3OE4KE.mjs → chunk-73ZWEV2X.mjs} +1 -1
- package/dist/{chunk-6BMA4EN7.mjs → chunk-7BUKEFXF.mjs} +1 -1
- package/dist/{chunk-NVRKB4LW.mjs → chunk-7MKXHL57.mjs} +1 -1
- package/dist/{chunk-IO222G5L.mjs → chunk-AAI2VZST.mjs} +1 -1
- package/dist/{chunk-4MQV5KBS.mjs → chunk-EOJQ2KKP.mjs} +1 -1
- package/dist/{chunk-QHKI3GAG.mjs → chunk-ESWNUYYT.mjs} +1 -1
- package/dist/chunk-FCCLGLML.mjs +1 -0
- package/dist/{chunk-IBKC2QY6.mjs → chunk-GK6Z3E4K.mjs} +1 -1
- package/dist/{chunk-M2DQADOK.mjs → chunk-HBWMSYBN.mjs} +1 -1
- package/dist/{chunk-ZJRG7RA3.mjs → chunk-HGUSGNFK.mjs} +1 -1
- package/dist/{chunk-UNB5JW5S.mjs → chunk-HGUTZ3XW.mjs} +1 -1
- package/dist/{chunk-RE4QWZ2N.mjs → chunk-HU7W3CXR.mjs} +1 -1
- package/dist/{chunk-ORUW7NID.mjs → chunk-IEMFKH5A.mjs} +1 -1
- package/dist/{chunk-BK3D55T5.mjs → chunk-IW7YN6UJ.mjs} +1 -1
- package/dist/{chunk-U7FOLOH2.mjs → chunk-JPUN2TYN.mjs} +1 -1
- package/dist/{chunk-QMFZRG7O.mjs → chunk-KEUZSK3N.mjs} +1 -1
- package/dist/{chunk-YQFOV2N3.mjs → chunk-KGOIKNFN.mjs} +1 -1
- package/dist/{chunk-LWVLORSN.mjs → chunk-KYN3R74E.mjs} +1 -1
- package/dist/{chunk-FBX62APP.mjs → chunk-LGTE6VHF.mjs} +1 -1
- package/dist/{chunk-M4IBPAQ4.mjs → chunk-LMNWDTST.mjs} +1 -1
- package/dist/{chunk-GOQI5TPU.mjs → chunk-MYODH36B.mjs} +1 -1
- package/dist/{chunk-3H4I4BWV.mjs → chunk-NDVGJGTE.mjs} +1 -1
- package/dist/{chunk-D44ZXHH4.mjs → chunk-NOLDWELD.mjs} +1 -1
- package/dist/{chunk-Q2H33MTB.mjs → chunk-OKGBIF2I.mjs} +1 -1
- package/dist/{chunk-REIGTQCW.mjs → chunk-P7RZLKAN.mjs} +1 -1
- package/dist/{chunk-EDNVTO7V.mjs → chunk-RDWF5HZG.mjs} +1 -1
- package/dist/{chunk-ZZLWY7HX.mjs → chunk-RTWZTSSI.mjs} +1 -1
- package/dist/{chunk-23BDC5JG.mjs → chunk-UBA3ZRKC.mjs} +1 -1
- package/dist/{chunk-PLR4ZK4A.mjs → chunk-UYCRIFAD.mjs} +1 -1
- package/dist/{chunk-XAN2JADY.mjs → chunk-VYQYFS6R.mjs} +1 -1
- package/dist/{chunk-OAO4Z5WE.mjs → chunk-XYLYPBZO.mjs} +1 -1
- package/dist/{chunk-KBVA4E4V.mjs → chunk-ZRBQIXJM.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.js +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.d.ts +2 -1
- package/dist/components/HeaderFooter/Header.js +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.js +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +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/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.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/Other/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 +1 -1
- 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/hooks/index.mjs +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.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.js +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.js +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.js +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.js +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +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/BlogList.mjs +1 -1
- package/dist/sections/BlogList.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/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.js +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.js +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-Y57CQYEG.mjs +0 -1
package/dist/components/index.js
CHANGED
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[e&&(0,Ke.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"Ke-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Io=({title:e})=>(0,Ke.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Ao=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return console.log("TitleSlide",a),(0,Ke.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Ke.jsx)("div",{className:"absolute inset-0",children:(0,Ke.jsx)(ui.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Ke.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Ke.jsx)("div",{className:"h-24",children:(0,Ke.jsx)(ui.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Ke.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Ke.jsxs)("div",{className:"relative Ke-24 z-10 max-w-3xl",children:[(0,Ke.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Ke.jsx)(ae,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Xl=e=>{let[t,a]=(0,jo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,i=o&&Array.isArray(o)&&o.length>0,c=[{jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],p=u=>{a(u)},d=()=>{a(u=>(u+1)%c.length)},m=()=>{a(u=>(u-1+c.length)%c.length)},g=(0,jo.useCallback)(((u,v)=>{let P;return(...G)=>{clearTimeout(P),P=setTimeout(()=>u(...G),v)}})(u=>{u.deltaY>0?d():m()},300),[]),b=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&m()};return(0,jo.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,Ke.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Ke.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:i&&c.map((u,v)=>(0,Ke.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>p(v),children:(0,Ke.jsx)("span",{className:"absolute jo-7 left-full text-left transform -translate-Ke-1/2 translate-Ke-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Ke-2 transition-all duration-300",children:u.blockName})},u.jo))}),(0,Ke.jsx)(Ka.AnimatePresence,{children:c.map((u,v)=>(0,Ke.jsx)("div",{jo:`slide-${v}`,className:"print-section",children:(0,Ke.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
11
11
|
${v===t?"opacity-100":"opacity-0"}
|
|
12
12
|
w-full h-full bg-cover bg-center`,children:v===0?(0,Ke.jsx)(Ao,{hero:r,title:e.title,logoImage:s}):(0,Ke.jsxs)(Ke.Fragment,{children:[u.blockName&&(0,Ke.jsx)(Io,{title:u.blockName}),(0,Ke.jsx)(Ma,{blocks:[u],fill:!0}),(0,Ke.jsx)(jl,{logoImage:s})]})})},v))}),(0,Ke.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Ke.jsx)(Nm,{})})]})},Nm=()=>(0,Ke.jsx)(Ka.AnimatePresence,{children:(0,Ke.jsx)(Ka.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Ke.jsx)(Ka.motion.div,{initial:{Ke:0},animate:{Ke:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Yl=h(require("next/link")),ql=h(require("next/image"));function Kl({blogs:e,width:t=3}){return(0,Ke.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Ke.jsx)("div",{className:`grid Ke:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Ke.jsx)(Yl.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,Ke.jsxs)("div",{className:"relative size-full",children:[(0,Ke.jsx)(ql.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Ke.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Ye-t from-card Ye-transparrent flex flex-col justify-end",children:[(0,Ke.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function Jl({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:i,companiesCount:n,dealsClosed:c,leadsGenerated:p}){return(0,Ke.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Ke.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Ke.jsxs)("div",{className:"max-w-4xl",children:[(0,Ke.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Ke.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Ke.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Ke.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Ke-8 lg:gap-Ke-16",children:[(0,Ke.jsxs)("div",{className:"lg:Ke-8",children:[(0,Ke.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Ke.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Ke.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-Ke-16 xl:Ke-auto",children:(0,Ke.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,m)=>(0,Ke.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Ke.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},m))})}),(0,Ke.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Ke.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Ke.jsx)("jo",{className:"mt-6 border-t border-gray-200"}),(0,Ke.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Ke-8 gap-Ke-4 sm:grid-cols-2",children:[(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Ke.jsxs)("Ke",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",i]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Ke.jsxs)("Ke",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"Ke"]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Ke.jsxs)("Ke",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Ke.jsxs)("Ke",{className:"order-first text-6xl font-semibold tracking-tight",children:[p,"M"]})]})]})]})]})]})})}function Cm(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var pa=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Pm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Ke.jsx)(Ql,{page:e,layout:t,logoImage:a}):(0,Ke.jsx)(Zl,{page:e,layout:t,logoImage:a}),Ql=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Vr(e),r=(0,jo.useRef)(null),s=(0,jo.useRef)(null),i=(0,jo.useRef)(new ty.Previewer),n={jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,jo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){console.log("Width: "+d.offsetWidth+"px"),console.log("Width in mm: "+pa(d.offsetWidth)+"mm"),console.log("Height: "+d.offsetHeight+"px"),console.log("Height in mm: "+pa(d.offsetHeight)+"mm");let m=document.createElement("style");return m.textContent=`@page { size: ${pa(d.offsetWidth)}mm ${pa(d.offsetHeight)}mm ; margin: 0mm; width: ${pa(d.offsetWidth)}mm }; .container : { max-width: ${pa(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(m),()=>{document.head.removeChild(m)}}},[t]);let c=(0,jo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&i.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${pa(d.offsetWidth)}mm ${pa(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(m=>console.error("Paged.js error:",m))},[t]);(0,jo.useEffect)(()=>{i.current=new ty.Previewer},[c,t]);let p=[n,...o];return(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Ke.jsxs)("div",{jo:"printable-content",ref:r,children:[p.map((d,m)=>(0,Ke.jsx)(Ke.Fragment,{children:m===0?(0,Ke.jsx)("section",{className:"title-page w-full h-full",children:(0,Ke.jsx)(Ao,{hero:e.hero,title:e.title})},m):(0,Ke.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Ke.jsx)(Io,{title:d.blockName}),(0,Ke.jsx)(Ma,{blocks:[d],fill:!0})]},m)})),(0,Ke.jsx)("section",{className:"normal-page",children:(0,Ke.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
13
|
-
dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[a&&(0,Ke.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"Ke-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Ke.jsx)("div",{ref:s,className:"preview-container"})]})},Zl=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Vr(e),o=(0,jo.useRef)(null),r=(0,jo.useRef)(null),s=(0,jo.useRef)(new ty.Previewer),[i,n]=(0,jo.useState)(0),p=[{jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,jo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,jo.useEffect)(()=>{s.current=new ty.Previewer,d()},[d,t]),(0,jo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,Ke.jsxs)("div",{className:"pagedjs-container",children:[(0,Ke.jsx)("div",{jo:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:p.map((m,f)=>{var g,b;return(0,Ke.jsx)(Ke.Fragment,{children:f===0?(0,Ke.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Ke.jsx)(Ao,{hero:e.hero,title:e.title})},f):(0,Ke.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Cm("185mm")}px]`,((b=(g=m.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,Ke.jsx)(Io,{title:m.blockName}),(0,Ke.jsx)(Ma,{blocks:[m],fill:!0})]},f)})})}),(0,Ke.jsx)("div",{ref:o,className:"preview-container"})]})};var fi=h(require("clsx"));function Rm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...p}){let m=c?f=>(0,Ke.jsx)(c,{...f}):i?({href:f,children:g,...b})=>(0,Ke.jsx)("button",{onClick:()=>i&&i(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,Ke.jsx)("a",{...f});return(0,Ke.jsxs)(ba,{...p,variant:"inset",children:[(0,Ke.jsx)(ya,{children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(Ne,{children:n?(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)(se,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Ke.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Ke.jsxs)(Kt,{children:[(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Ke.jsxs)(Kt,{children:[e&&!n&&e.map((f,g)=>(0,Ke.jsx)(Sm,{subNav:f,pathName:r,Link:m},g)),(0,Ke.jsx)(Je,{className:"mt-auto",children:(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:t&&!n&&t.map(f=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{asChild:!0,size:"sm",children:(0,Ke.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,Ke.jsx)(f.icon,{}),(0,Ke.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,Ke.jsx)(va,{})]})}function Sm({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsx)(Je,{className:"py-0",children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(kt,{asChild:!0,defaultOpen:o.isActive,children:(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,tooltip:o.label,className:(0,fi.default)(r&&"font-bold text-accent"),children:(0,Ke.jsxs)(a,{href:o.url,children:[o.icon&&(0,Ke.jsx)(o.icon,{}),(0,Ke.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Xt,{asChild:!0,children:(0,Ke.jsxs)(uo,{className:"data-[state=open]:rotate-90",children:[(0,Ke.jsx)(Cn.ChevronRight,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(Jt,{children:(i=o.links)==null?void 0:i.map(n=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,className:(0,fi.default)(n.url===t&&"font-bold text-accent"),children:(0,Ke.jsx)(a,{href:n.url,children:(0,Ke.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var td=h(require("clsx"));var km=()=>(0,Ke.jsx)(Ce,{iconName:"github",size:"10x"});function Tm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:p,LinkComponent:d,...m}){let b=d?u=>(0,Ke.jsx)(d,{...u}):p?({item:u,children:v,...P})=>(0,Ke.jsx)("button",{onClick:()=>p&&p(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...P,children:v}):u=>(0,Ke.jsx)("a",{href:u.href,...u});return(0,Ke.jsxs)(ba,{side:"right",variant:"inset",...m,children:[(0,Ke.jsxs)(ya,{className:"border-b border-sidebar-border",children:[(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{children:(0,Ke.jsxs)(Qe,{onClick:s,children:[(0,Ke.jsx)(Cn.FilePlus,{})," ",(0,Ke.jsx)("span",{children:"Add Document"})]})}),c&&(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{onClick:c,tooltip:"Open in GitHub",children:(0,Ke.jsx)(km,{})})})]}),(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:()=>i(),variant:r?"outline":"default",className:(0,td.default)(r&&"text-accent"),children:[(0,Ke.jsx)(Cn.Edit,{})," ",(0,Ke.jsx)("span",{children:"Edit"})]})}),(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:n,children:[(0,Ke.jsx)(Cn.Printer,{})," ",(0,Ke.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Editor Controls",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:a})})]})}),(0,Ke.jsx)(po,{className:"mx-0"})]}),(0,Ke.jsxs)(Kt,{className:"overflow-auto",children:[o&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{children:"Related Content"}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{children:"Table of Contents"}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Related Content",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(ze,{children:e&&Object.keys(e).map(u=>(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,Ke.jsx)(Jt,{children:e[u].map(v=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,isActive:!1,size:"sm",children:(0,Ke.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,Ke.jsx)("span",{children:v.label}),v.type==="note"&&(0,Ke.jsx)(Cn.PencilLine,{className:"jo-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Ke.jsx)(Ce,{iconName:"code-pull-request-draft",className:"jo-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Table of Contents",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(ze,{children:t.map(u=>{var v;return(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,children:(0,Ke.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),(v=u.items)!=null&&v.length?(0,Ke.jsx)(Jt,{children:u.items.map(P=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Ke.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Ke.jsx)("span",{children:P.title})})})},P.title))}):null]},u.title)})})})})]})})]}),(0,Ke.jsx)(va,{})]})}var od=h(require("next/image"));function Dm({title:e,members:t}){return(0,Ke.jsx)(he,{className:"mb-6",children:(0,Ke.jsxs)("div",{className:"p-6",children:[(0,Ke.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Ke.jsx)(Cn.Users,{className:"w-6 h-6 text-accent Ke-2"}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:t.map((a,o)=>(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Ke.jsx)(od.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Ke.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var rd=h(require("next/link"));var Mm=({links:e,title:t="Related Content"})=>(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:t})}),(0,Ke.jsx)(Pe,{children:(0,Ke.jsx)("nav",{className:"flex flex-col space-Ke-2",children:e.map((a,o)=>(0,Ke.jsxs)(rd.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,Ke.jsx)(Cn.ExternalLink,{className:"jo-1 h-3 w-3"})]},o))})})]});var gi=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Im({pages:e}){let t=(0,zl.useSearchParams)(),a=(0,zl.usePathname)(),{replace:o}=(0,zl.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,jo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&i.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function p(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=i.start;m<=i.end;m++)d.push(m);return(0,Ke.jsx)("div",{className:"mt-12",children:(0,Ke.jsxs)("Ke",{className:"flex flex-wrap items-center justify-center gap-3 Ke:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(gi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Ke.jsx)(xr.FaArrowLeft,{})})}),d.map((m,f)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("a",{className:l(gi,m===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),p(m.toString())},children:m})},f)),i.end<r&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(gi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Ke.jsx)(xr.FaArrowRight,{})})})]})})}var Hy=l("transition-colors duration-400 hover:text-primary ease-in-out");function Am({title:e,links:t}){let a=(0,zl.useSearchParams)(),o=(0,zl.usePathname)(),{replace:r}=(0,zl.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:e&&e})}),(0,Ke.jsx)(Pe,{children:t&&t.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("Ke",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Ke.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Ke.jsx)(Cn.ExternalLink,{className:"jo-1 h-3 w-3"})]},n))})})})]})}function Lm({types:e}){let[t,a]=(0,jo.useState)(e&&e[0].href),o=(0,zl.useSearchParams)(),r=(0,zl.usePathname)(),{replace:s}=(0,zl.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Ke.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Ke-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Ke.jsx)(T,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var pd=h(require("next/image"));function Bo({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,Ke.jsx)("div",{className:r,children:e})}var cd=require("next-themes");function Bm({children:e,...t}){return(0,Ke.jsx)(cd.ThemeProvider,{...t,children:e})}var Eo=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Ke.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),transform:a[0],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Ke.jsx)("rect",{Ke:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Ke:h-[332px] z-20 ",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left"},transform:a[1],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Ke:h-[332px] z-20 content-end block overflow-hidden",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-start block overflow-hidden bg-white",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[1],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:e==="bottom-left"?a[3]:a[2],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Em=({className:e})=>(0,Ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Ke.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var yi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Ke.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Ke.jsx)(ae,{className:"max-w-none mb-6 jo-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Ke.jsx)("Ke",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(ht,{...r})},s))})]}),(0,Ke.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Ke.jsx)(Ht,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Ke.jsx)("div",{children:(0,Ke.jsx)(pd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 Ye-white dark:from-background/0 dark:Ye-background"})]}),(0,Ke.jsx)(Eo,{className:"text-black z-10",position:"header"})]})});var vi=h(require("next/image"));var Hm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Ke.jsx)(vi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Ke.jsx)("div",{children:(0,Ke.jsx)(vi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},hi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Ke.jsx)(Hm,{media:t}),(0,Ke.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Ke.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Ke.jsx)(ae,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var xi=({children:e,richText:t})=>(0,Ke.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Ke.jsx)("div",{className:"container",children:e||t&&(0,Ke.jsx)(ae,{content:t,enableGutter:!1})})});var gd=h(require("react")),bd=h(require("next/image"));var ud=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var fd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Ke";case 2:return"Cn";case 3:return"rd";default:return"th"}})(o)} ${r}`};var zm=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Ke.jsxs)("div",{className:"relative grid pt-24",children:[(0,Ke.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Ke.jsxs)("div",{className:"container mx-auto",children:[(0,Ke.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-4 Ke:flex-row Ke:gap-16 ",children:[o&&o.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Ke.jsx)("p",{children:o.map((n,c)=>(0,Ke.jsxs)(gd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.jo))})]}),r&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Ke.jsx)("time",{dateTime:r,children:ud(r)})]}),t&&t.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Ke.jsx)(tt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.jo||c))})]})]})]})}),(0,Ke.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Ke.jsx)(bd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Ke.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Ye-t from-background dark:from-black Ye-transparent"})]})]})};var Sr=require("@heroicons/react/20/solid");var yd=h(require("next/image"));function wi({title:e,breadcrumbItems:t,image:a}){return(0,Ke.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Ke.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,Ke.jsx)(yd.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,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 Ye-background dark:from-background/0 dark:Ye-background"}),(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-Ke-20 gap-Ke-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Ke.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,Ke.jsx)(Ni,{breadcrumbItems:t})]})})]})}var Fm={highImpact:yi,lowImpact:xi,mediumImpact:hi,sectionHero:wi},Om=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Fm[t];return a?(0,Ke.jsx)(a,{...e}):null};function Ni({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Ke.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Ke.jsxs)("jo",{role:"list",className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Ke.jsx)(Sr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Ke.jsx)("li",{children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(Sr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Ke.jsx)("a",{href:a.href,className:"jo-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Ke.jsx)("div",{className:"jo-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Ke.jsx)(Ke.Fragment,{})}var Ye=require("@headlessui/react"),Dr=require("@heroicons/react/24/outline");var Gm=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Ke.jsx)("a",{href:o,className:"flex items-center gap-Ke-1 text-sm text-foreground group",children:(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]})}):(0,Ke.jsxs)(Ye.Popover,{children:[(0,Ke.jsxs)(Ye.PopoverButton,{className:"flex items-center gap-Ke-1 text-sm/6 text-foreground outline-none group",children:[(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]}),(0,Ke.jsx)(Sr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Ke.jsxs)(Ye.PopoverPanel,{transition:!0,className:"absolute inset-Ke-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Ke-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ke.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Ke-4 px-6 py-10 lg:px-8 xl:gap-Ke-8 z-50",children:t&&t.map(r=>(0,Ke.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Ke.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Ke.jsx)(vd,{icon:r.icon,size:"4x"})}),(0,Ke.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Ke.jsx)("span",{className:"absolute inset-0"})]}),(0,Ke.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Ke.jsx)("div",{className:"bg-gray-50",children:(0,Ke.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ke.jsx)("div",{className:"grid grid-cols-3 divide-Ke divide-gray-900/5 border-Ke border-gray-900/5",children:a.map(r=>(0,Ke.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Ke-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Ke.jsx)(vd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),vd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Ke.jsx)(Ce,{...e,size:a});if("src"in e)return(0,Ke.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Ke.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},kr=Gm;var Tr=["light","dark","green"];function _m({title:e,logo:t,menuItems:a}){let[o,r]=(0,jo.useState)(!1),[s,i]=(0,jo.useState)(!1),[n,c]=(0,jo.useState)("light"),p=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[m,f]=(0,jo.useState)(`${p}.${d}`),g=u=>{Tr.includes(u)?f(u==="light"?`${p}.${d}`:`${p}-${u}.${d}`):f(`${p}.${d}`)};(0,jo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Tr[(Tr.indexOf(n)+1)%Tr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,Ke.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Ke.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Ke.jsx)("div",{className:"flex lg:flex-1",children:(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:e}),(0,Ke.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,Ke.jsx)("div",{className:"flex lg:hidden",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Ke p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Dr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:a.map(u=>(0,Ke.jsx)(kr,{...u},u.name))}),(0,Ke.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ke.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Ke.jsx)(Sr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Ke.jsx)(Sr.MoonIcon,{className:"h-6 w-6"}):(0,Ke.jsx)(Sr.SunIcon,{className:"h-6 w-6"})})})]}),(0,Ke.jsxs)(Ye.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ke.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Ke p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Dr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 py-6",children:a.map(u=>(0,Ke.jsx)($m,{...u},u.name))})})})]})]})]})}function $m({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ke-3 Ke-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Ke-6 Ke-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Vm({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Ke.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Ke.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Ke.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"flex flex-col items-start Ke:w-1/2 mb-10 z-0 Ke:mb-0",children:[(0,Ke.jsx)("h1",{className:"text-5xl Ke:text-6xl mb-6",children:r&&r}),(0,Ke.jsx)("div",{className:"text-lg Ke:text-xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Ke.jsx)(Eo,{className:"text-black z-10",position:"header"})]})})}var xd=h(require("next/image"));function ua({logo:e,mobile:t=!1}){return(0,Ke.jsx)(Ue,{href:"/",className:l(t?"py-1":"py-2"),children:(0,Ke.jsx)(xd.default,{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:t?35:50}})})}function Pi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,jo.useState)(!1),[c,p]=(0,jo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,cd.useTheme)();(0,jo.useEffect)(()=>{p(m||"dark")},[m]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];p(b),f(b)};return(0,jo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:(0,Ke.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Ke.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Ke.jsx)(ua,{logo:a}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:o&&o.map(b=>(0,Ke.jsx)(kr,{...b},b.name))}),r&&(0,Ke.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Ke.jsxs)("div",{className:"relative",children:[(0,Ke.jsx)(Cn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ke.jsx)(Cn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Ri=["light","dark"];function Si({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,jo.useState)(!1),{theme:i,setTheme:n}=(0,cd.useTheme)(),[c,p]=(0,jo.useState)(!1),[d,m]=(0,jo.useState)("light");(0,jo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,jo.useEffect)(()=>{m(i||"dark")},[i]);let f=()=>{let g=Ri[(Ri.indexOf(d)+1)%Ri.length];m(g),n(g)};return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:[(0,Ke.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Ke.jsx)(ua,{logo:t,mobile:!0}),(0,Ke.jsx)("div",{className:"flex items-center space-Ke-4",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Dr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Ke.jsxs)(Ye.Dialog,{open:c,onClose:p,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Ke.jsx)(ua,{logo:t,mobile:!0}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-Ke p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Dr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 px-2 py-6",children:a&&a.map(g=>(0,Ke.jsx)(Wm,{...g},g.name))})})})]})]})]})})}function Wm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ke-3 Ke-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Ke-6 Ke-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Pd=h(require("next/image"));var Um=l("text-base/[1.75] transition-transform duration-350 hover:-translate-Ke-1 block px-4"),ki=l("text-gray-900 dark:text-white text-Ke font-bold leading-[1.25] Ke:text-lg mb-5 Ke:mb-[1.875rem]"),Ti=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Di=l("flex items-center gap-5"),Ar=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function jm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Ke.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Ke.jsx)("div",{className:"py-16 Ke:py-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"grid gap-10 Ke:grid-cols-2 xl:grid-cols-4",children:[(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Ke.jsx)(ua,{logo:o}),(0,Ke.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Ke.jsx)("nav",{"aria-label":"social links",children:(0,Ke.jsx)("Ke",{className:"inline-flex min-h-[50px] items-center divide-Ke rounded-5 bg-accent text-white",children:r.socialLinks.map((p,d)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(Ue,{"aria-label":p.href,className:Um,href:p.href,openNewTab:!0,children:(0,Ke.jsx)("span",{children:p.icon})})},d))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Ke.jsx)("h3",{className:ki,children:s.title}),s.links&&s.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("Ke",{className:"grid gap-2",children:s.links.map(p=>(0,Ke.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Ke.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Ke.jsx)(xr.FaChevronRight,{})}),(0,Ke.jsx)(Ue,{href:p.href,openNewTab:p.openNewTab,className:Ar,children:p.label})]},p.label))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Ke.jsx)("h3",{className:ki,children:i.title}),(0,Ke.jsxs)("Ke",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaPaperPlane,{})}),(0,Ke.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Ke.jsx)("div",{className:"grid gap-1",children:i.mails.map((p,d)=>(0,Ke.jsx)("a",{href:`mailto:${p}`,className:Ar,children:p},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaPhone,{})}),(0,Ke.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((p,d)=>(0,Ke.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Ar,children:p},d))})]})]})]}),n&&(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Ke.jsx)("h3",{className:ki,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Ke.jsx)("div",{className:"grid gap-6",children:n.blogs.map((p,d)=>(0,Ke.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Ke.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Ke.jsx)(Pd.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Ke.jsx)("span",{className:"text-accent",children:(0,Ke.jsx)(xr.FaCalendarDays,{})}),(0,Ke.jsx)("span",{children:fd(p.date)})]}),(0,Ke.jsx)("h4",{className:"text-Ke leading-normal",children:(0,Ke.jsx)(Ue,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},d))})]})]})})}),(0,Ke.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,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Ke-8 gap-Ke-4 Ke:gap-Ke-10",children:[(0,Ke.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Ke.jsx)("Ke",{className:"flex flex-wrap items-center gap-Ke-4 Ke:gap-Ke-7",children:c.links.map(p=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(Ue,{"aria-label":`Go Ye page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Ar,children:p.label})},p.label))})})]})})})]})}function Xm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s}){return(0,Ke.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Ke.jsx)(Pi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,wide:s}),(0,Ke.jsx)(Si,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var Ba=require("sonner");function Mi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,jo.useState)([]),s=(0,zl.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.jo))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(Ba.toast.success(d.message),s.refresh()):Ba.toast.error(`Error: ${d.message}`),r([])},p=async()=>{let d=await a(o);d.success?(Ba.toast.success(d.message),s.refresh()):Ba.toast.error(`Error: ${d.message}`),r([])};return(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ke.jsx)(T,{onClick:p,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ke.jsx)("div",{className:"overflow-hidden sm:rounded-Ke",children:(0,Ke.jsxs)("Ke",{className:"divide-Ke divide-gray-200",children:[(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ut,{jo:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Ke.jsx)("label",{htmlFor:"select-all",className:"jo-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Ke.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ut,{jo:`select-${d.jo}`,checked:o.includes(d.jo),onCheckedChange:()=>n(d.jo),className:"border-accent"}),(0,Ke.jsxs)("div",{className:"jo-3 flex items-center",children:[(0,Ke.jsxs)(At,{className:"h-10 w-10",children:[(0,Ke.jsx)(Lt,{src:d.userImage,alt:d.userName}),(0,Ke.jsx)(Bt,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"jo-3",children:(0,Ke.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Ke.jsx)(tt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.jo))]})}),(0,Ke.jsx)(Ba.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ii=require("date-fns");var kd=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Fo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=kd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Td=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Fo(o))return .5;for(;o<=r;)Fo(o)||s++,o.setDate(o.getDate()+1);return s},Dd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Ym=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Ke-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Li({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,jo.useState)(new Date),[r,s]=(0,jo.useState)(new Date),[i,n]=(0,jo.useState)("Full Day"),[c,p]=(0,jo.useState)(!1),[d,m]=(0,jo.useState)(1),f=(0,zl.useRouter)();(0,jo.useEffect)(()=>{let u=Dd(a,r);p(u),u&&n("Full Day")},[a,r]),(0,jo.useEffect)(()=>{if(!a||!r){m(0);return}let u=Td(a,r,i!=="Full Day");m(u)},[a,r,i]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){Ba.toast.error("Please select both start and end dates");return}if(d>e){Ba.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",i),v.append("duration",d.toString());let P=await(t||qm)(v);P.success?(Ba.toast.success(P.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):Ba.toast.error(`Error: ${P.message}`)},className:"space-Ke-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Cn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),a?(0,Ii.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ro,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Cn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),r?(0,Ii.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ro,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Ke-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(Ym,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ba.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var qm=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Id(...e){return e.filter(Boolean).join(" ")}function Bi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=p=>p.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Ke.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Ke.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Ke.jsxs)("div",{className:"sm:flex-auto",children:[(0,Ke.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ke.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Ke gap-1 Ke:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Ke:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Ke.jsx)("div",{className:"mt-8 flow-root",children:(0,Ke.jsx)("div",{className:"-mx-4 -my-2 overflow-Ke-auto sm:-mx-6 lg:-mx-8",children:(0,Ke.jsx)("div",{className:"max-h-[60vh] overflow-Ke-auto",children:(0,Ke.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Ke.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 Ke-4 Ke-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Ke-6 lg:Ke-8",children:"Employee"}),[...Array(r)].map((p,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Ke.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Fo(m)?"bg-gray-200":""}`,children:[(0,Ke.jsx)("div",{children:c(m)}),(0,Ke.jsx)("div",{children:d+1})]},d)})]})}),(0,Ke.jsx)("tbody",{children:o.map((p,d)=>(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("td",{className:Id(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Ke-4 Ke-3 text-sm font-medium text-gray-900 sm:Ke-6 lg:Ke-8"),children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsxs)(At,{className:"h-11 w-11",children:[(0,Ke.jsx)(Lt,{src:p.image,alt:p.name}),(0,Ke.jsx)(Bt,{children:p.name.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"jo-4",children:(0,Ke.jsx)("div",{className:"font-medium text-accent",children:p.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===p.jo&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,Ke.jsx)("td",{className:Id(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Fo(g)?"bg-gray-200":""),children:(0,Ke.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${p.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Ke.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${p.jo}-${f}`)})]},p.jo))})]})})})})]})}function Ei({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,jo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,Ke.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Ke.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ke.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ke.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ke.jsx)("div",{className:"flex items-center",children:(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Ke gap-1 Ke:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Ke:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Ke.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Cn"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Ke.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Ke.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Ke.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Ke.jsx)("jo",{className:"mt-2 space-Ke-1",children:d.holidays.map(m=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border`,children:m.userName})},m.jo))})]},d.date.toISOString()))}),(0,Ke.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Ke.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("jo-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Ke.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Ke.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,Ke.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.jo))})]},d.date.toISOString()))})]})]})]})}var fa=require("lucide-react");function Ld(...e){return e.filter(Boolean).join(" ")}function Km({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,p]=(0,jo.useState)("Calendar View"),d=(0,zl.useRouter)(),m=!1,f=(0,Ii.parseISO)(a),g=async u=>{let v=(0,Ii.format)(u,"Ke-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(m)return(0,Ke.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Ke.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:fa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:fa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:fa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:fa.CheckSquare,current:c==="Approve Leave"}];return(0,Ke.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Ke.jsxs)("div",{className:"mb-8",children:[(0,Ke.jsxs)("div",{className:"sm:hidden",children:[(0,Ke.jsx)("select",{value:c,onChange:u=>p(u.target.value),className:"block w-full rounded-Ke border-gray-300 py-2 Ke-3 Ke-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,Ke.jsx)("option",{children:u.name},u.name))}),(0,Ke.jsx)(Cn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Ke.jsx)("div",{className:"hidden sm:block",children:(0,Ke.jsx)("div",{className:"border-b border-gray-200",children:(0,Ke.jsx)("nav",{className:"-mb-px flex space-Ke-8","aria-label":"Tabs",children:b.map(u=>(0,Ke.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(u.name)},className:Ld(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,Ke.jsx)(u.icon,{className:Ld(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-jo-0.5 Ke-2 h-5 w-5"),"aria-hidden":"true"}),(0,Ke.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,Ke.jsx)(Bi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Ke.jsx)(Ei,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Ke.jsx)(Li,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Ke.jsx)(Mi,{leaveRequests:o,onApprove:u=>i?i(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Hi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var Ee,vt,k,z,nt;let[n,c]=(0,jo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,d]=(0,jo.useState)(""),[m,f]=(0,jo.useState)(!1),[g,b]=(0,jo.useState)(null);(0,jo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let w=await s(n);w.success?(f(!1),b(null)):console.error("Failed Ye save deal:",w.errors)}catch(w){console.error("Failed Ye save deal:",w)}},v=(w,_)=>{c(U=>({...U,[w]:_}))},P=w=>{let _=(n.categories||[]).includes(w)?(n.categories||[]).filter(U=>U!==w):[...n.categories||[],w];v("categories",_)},G=async()=>{if(p.trim()){let w={text:p,timestamp:new Date().toISOString()};try{let _=await i(w);if(!_.success){console.error("Failed Ye add comment:",_.errors);return}}catch(_){console.error("Failed Ye add comment:",_)}c(_=>({..._,comments:[..._.comments||[],w]})),d("")}},Q=w=>{switch(w){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},me=w=>t==null?void 0:t.find(_=>_.jo===Number(w));return(0,Ke.jsx)(et,{open:!0,children:(0,Ke.jsxs)(We,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Ke.jsxs)(mt,{className:"flex flex-row items-center justify-between",children:[(0,Ke.jsx)(pt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Ke.jsxs)("div",{className:"flex space-Ke-2",children:[(0,Ke.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Ke.jsxs)(T,{onClick:u,disabled:!m,children:[(0,Ke.jsx)(Cn.SaveIcon,{className:"w-4 h-4 Ke-2"}),"Save"]})]})]}),(0,Ke.jsxs)(aa,{className:"flex-grow Ke-4",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Ke.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Ke.jsx)(He,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Ke.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Ee=n.value)==null?void 0:Ee.toLocaleString()]})}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Ke.jsxs)(Ca,{value:((k=(vt=n==null?void 0:n.assignee)==null?void 0:vt.jo)==null?void 0:k.toString())||"",onValueChange:w=>v("assignee",me(w)),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(ia,{children:t&&t.map(w=>{var _;return(0,Ke.jsx)(na,{value:((_=w==null?void 0:w.jo)==null?void 0:_.toString())||"",children:w.name},w.jo)})})]}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Ke.jsx)(Cn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.assignee.name})]})]}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Ke.jsx)(He,{type:"date",value:(nt=(z=n.closureDate)==null?void 0:z.split("T")[0])!=null?nt:"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Ke.jsx)(Cn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"Ke/Ke"})]})]})]}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Ke.jsx)(la,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Ke.jsxs)(Ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select status"})}),(0,Ke.jsx)(ia,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(w=>(0,Ke.jsx)(na,{value:w,children:w},w))})]}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Ke.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(w=>{var _,U;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:((_=w.jo)==null?void 0:_.toString())||"",checked:(n.categories||[]).some(Oo=>Oo.jo===w.jo),onCheckedChange:()=>w.jo!==void 0&&P(w)}),(0,Ke.jsx)("label",{htmlFor:((U=w.jo)!=null?U:"").toString(),className:`text-sm font-medium ${Q(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.jo)})}):(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{console.log("cat",w);let _=w;return _?(0,Ke.jsx)(tt,{variant:"secondary",className:Q(_.type||"sector"),children:_.name},_.jo):null})})]})]}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Ke.jsx)(aa,{className:"h-[200px] overflow-Ke-auto",children:(0,Ke.jsx)("div",{className:"space-Ke-2",children:n.comments&&n.comments.slice().sort((w,_)=>new Date(_.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>{var _;return(0,Ke.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Ke.jsx)("p",{className:"text-sm text-gray-700",children:w.text}),(0,Ke.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(_=w==null?void 0:w.author)==null?void 0:_.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.jo)})})}),(0,Ke.jsxs)("div",{className:"flex mt-2",children:[(0,Ke.jsx)(He,{value:p,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Ke.jsxs)(T,{onClick:G,className:"jo-2",children:[(0,Ke.jsx)(Cn.PlusIcon,{className:"w-4 h-4 Ke-2"}),"Add"]})]})]}),(0,Ke.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function zi({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.jo)});return(0,Ke.jsxs)(he,{className:"mb-4 cursor-pointer hover:shadow-Ke transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ke.jsxs)(Fe,{className:"pb-2",children:[(0,Ke.jsx)("div",{className:"flex justify-between items-center",children:(0,Ke.jsx)(Oe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Ke.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Ke.jsxs)(Pe,{children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ke.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Ke.jsx)(Cn.UserIcon,{className:"w-4 h-4 Ke-1 text-xs"}),(0,Ke.jsx)("span",{children:e.assignee.name})]}),(0,Ke.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ke.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ke.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ke.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ke.jsx)(Cn.CalendarIcon,{className:"w-3 h-3 Ke-1"}),(0,Ke.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ke.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Ke.jsx)(tt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var zr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Fi({onSubmit:e}){var r;let[t,a]=(0,jo.useState)({name:"",intro:"",active:!0});return(0,Ke.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,Ke.jsx)(He,{jo:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,Ke.jsx)(la,{jo:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Ke.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Oi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var Q,me,Ee,vt;let[n,c]=(0,jo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,d]=(0,jo.useState)(!1),[m,f]=(0,jo.useState)({});(0,jo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return n.customer||(k.customer="Customer is required"),n.value||(k.value="Value is required"),n.assignee||(k.assignee="Assignee is required"),n.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):f(z.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=k=>{console.log(k),c(z=>({...z,categories:(z.categories||[]).includes(k.jo)?(z.categories||[]).filter(nt=>nt!==k.jo):[...z.categories||[],k.jo]}))},v=async k=>{c({...n,customer:k});try{let z=await s(k);z.success?d(!1):f(z.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(z=>z.jo===Number(k)),G=k=>e==null?void 0:e.find(z=>z.jo===Number(k));return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)("form",{onSubmit:b,className:"space-Ke-6",children:[(0,Ke.jsx)(aa,{className:"h-[60vh] Ke-4",children:(0,Ke.jsxs)("div",{className:"space-Ke-6 px-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)(Ca,{value:(me=(Q=n.customer)==null?void 0:Q.jo)==null?void 0:me.toString(),onValueChange:k=>c({...n,customer:G(k)}),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select customer"})}),(0,Ke.jsx)(ia,{children:e.map(k=>{var z;return(0,Ke.jsx)(na,{value:((z=k.jo)==null?void 0:z.toString())||"",children:k.name},k.jo)})})]}),(0,Ke.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Ke.jsx)(Cn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,Ke.jsx)(He,{jo:"value",type:"number",value:n.value||"",onChange:k=>c({...n,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,Ke.jsxs)(Ca,{value:(vt=(Ee=n.assignee)==null?void 0:Ee.jo)==null?void 0:vt.toString(),onValueChange:k=>c({...n,assignee:P(k)}),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(ia,{children:t&&t.map(k=>{var z;return(0,Ke.jsx)(na,{value:((z=k.jo)==null?void 0:z.toString())||"",children:k.name},k.jo)})})]}),m.assignee&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,Ke.jsx)(la,{jo:"description",value:n.description||"",onChange:k=>c({...n,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{children:"Categories"}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:["proposition","source","sector"].map(k=>(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===k).map(z=>{var nt;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:z.jo.toString(),checked:(nt=n.categories)==null?void 0:nt.includes(z.jo),onCheckedChange:()=>u(z)}),(0,Ke.jsx)("label",{htmlFor:z.jo.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.jo)})})]},k))})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ke.jsx)(He,{jo:"closureDate",type:"date",value:n.closureDate||"",onChange:k=>c({...n,closureDate:k.target.value})}),m.closureDate&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Ke.jsx)(et,{open:p,onOpenChange:d,children:(0,Ke.jsxs)(We,{children:[(0,Ke.jsx)(mt,{children:(0,Ke.jsx)(pt,{children:"Add New Customer"})}),(0,Ke.jsx)(Fi,{onSubmit:v})]})})]})}function Gi({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:p}){let[d,m]=(0,jo.useState)(!1);return(0,Ke.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Ke.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,Ke.jsxs)(et,{open:d,onOpenChange:m,children:[(0,Ke.jsx)(rr,{asChild:!0,children:(0,Ke.jsxs)(T,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Ke.jsx)(Cn.PlusCircle,{className:"Ke-2 h-4 w-4"}),"Add New Deal"]})}),(0,Ke.jsxs)(We,{children:[(0,Ke.jsx)(mt,{children:(0,Ke.jsx)(pt,{children:"Add New Deal"})}),(0,Ke.jsx)(Oi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:p,onClose:()=>m(!1)})]})]}),(0,Ke.jsx)(zr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,Ke.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Ke.jsx)(zr.Draggable,{draggableId:g.jo.toString(),index:g.jo,children:u=>(0,Ke.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Ke.jsx)(zi,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.jo.toString())),f.placeholder]})}),(0,Ke.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Ke.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ke.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Ke.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ke.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Jm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Qm({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var m;let[s,i]=(0,jo.useState)(null),n=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),p=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((u,v)=>u+(v.value||0)*b[g],0)},d=(0,jo.useCallback)(f=>{var Q,me;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let u=g.droppableId,v=b.droppableId,P=(Q=e.deals)==null?void 0:Q.filter(Ee=>Ee.jo===g.index)[0],G=[...(me=e.deals)!=null?me:[]];P&&(P.status=v,a(P))},[a]);return(0,Ke.jsx)(zr.DragDropContext,{onDragEnd:d,children:(0,Ke.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Ke.jsx)("div",{className:"flex space-Ke-4 pb-4",children:Jm.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,u;let g=n(f);return(0,Ke.jsx)(Gi,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(u=e.categories)!=null?u:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,Ke.jsx)(Hi,{deal:s,users:e.users,customer:s.customer,categories:(m=e.categories)!=null?m:[],onClose:()=>i(null),onSave:a,onAddComment:f=>o(s.jo.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
13
|
+
dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[a&&(0,Ke.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"Ke-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Ke.jsx)("div",{ref:s,className:"preview-container"})]})},Zl=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Vr(e),o=(0,jo.useRef)(null),r=(0,jo.useRef)(null),s=(0,jo.useRef)(new ty.Previewer),[i,n]=(0,jo.useState)(0),p=[{jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,jo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,jo.useEffect)(()=>{s.current=new ty.Previewer,d()},[d,t]),(0,jo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,Ke.jsxs)("div",{className:"pagedjs-container",children:[(0,Ke.jsx)("div",{jo:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:p.map((m,f)=>{var g,b;return(0,Ke.jsx)(Ke.Fragment,{children:f===0?(0,Ke.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Ke.jsx)(Ao,{hero:e.hero,title:e.title})},f):(0,Ke.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Cm("185mm")}px]`,((b=(g=m.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,Ke.jsx)(Io,{title:m.blockName}),(0,Ke.jsx)(Ma,{blocks:[m],fill:!0})]},f)})})}),(0,Ke.jsx)("div",{ref:o,className:"preview-container"})]})};var fi=h(require("clsx"));function Rm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...p}){let m=c?f=>(0,Ke.jsx)(c,{...f}):i?({href:f,children:g,...b})=>(0,Ke.jsx)("button",{onClick:()=>i&&i(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,Ke.jsx)("a",{...f});return(0,Ke.jsxs)(ba,{...p,variant:"inset",children:[(0,Ke.jsx)(ya,{children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(Ne,{children:n?(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)(se,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Ke.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Ke.jsxs)(Kt,{children:[(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Ke.jsxs)(Kt,{children:[e&&!n&&e.map((f,g)=>(0,Ke.jsx)(Sm,{subNav:f,pathName:r,Link:m},g)),(0,Ke.jsx)(Je,{className:"mt-auto",children:(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:t&&!n&&t.map(f=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{asChild:!0,size:"sm",children:(0,Ke.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,Ke.jsx)(f.icon,{}),(0,Ke.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,Ke.jsx)(va,{})]})}function Sm({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsx)(Je,{className:"py-0",children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(kt,{asChild:!0,defaultOpen:o.isActive,children:(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,tooltip:o.label,className:(0,fi.default)(r&&"font-bold text-accent"),children:(0,Ke.jsxs)(a,{href:o.url,children:[o.icon&&(0,Ke.jsx)(o.icon,{}),(0,Ke.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Xt,{asChild:!0,children:(0,Ke.jsxs)(uo,{className:"data-[state=open]:rotate-90",children:[(0,Ke.jsx)(Cn.ChevronRight,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(Jt,{children:(i=o.links)==null?void 0:i.map(n=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,className:(0,fi.default)(n.url===t&&"font-bold text-accent"),children:(0,Ke.jsx)(a,{href:n.url,children:(0,Ke.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var td=h(require("clsx"));var km=()=>(0,Ke.jsx)(Ce,{iconName:"github",size:"10x"});function Tm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:p,LinkComponent:d,...m}){let b=d?u=>(0,Ke.jsx)(d,{...u}):p?({item:u,children:v,...P})=>(0,Ke.jsx)("button",{onClick:()=>p&&p(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...P,children:v}):u=>(0,Ke.jsx)("a",{href:u.href,...u});return(0,Ke.jsxs)(ba,{side:"right",variant:"inset",...m,children:[(0,Ke.jsxs)(ya,{className:"border-b border-sidebar-border",children:[(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{children:(0,Ke.jsxs)(Qe,{onClick:s,children:[(0,Ke.jsx)(Cn.FilePlus,{})," ",(0,Ke.jsx)("span",{children:"Add Document"})]})}),c&&(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{onClick:c,tooltip:"Open in GitHub",children:(0,Ke.jsx)(km,{})})})]}),(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:()=>i(),variant:r?"outline":"default",className:(0,td.default)(r&&"text-accent"),children:[(0,Ke.jsx)(Cn.Edit,{})," ",(0,Ke.jsx)("span",{children:"Edit"})]})}),(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:n,children:[(0,Ke.jsx)(Cn.Printer,{})," ",(0,Ke.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Editor Controls",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:a})})]})}),(0,Ke.jsx)(po,{className:"mx-0"})]}),(0,Ke.jsxs)(Kt,{className:"overflow-auto",children:[o&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{children:"Related Content"}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{children:"Table of Contents"}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Related Content",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(ze,{children:e&&Object.keys(e).map(u=>(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,Ke.jsx)(Jt,{children:e[u].map(v=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,isActive:!1,size:"sm",children:(0,Ke.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,Ke.jsx)("span",{children:v.label}),v.type==="note"&&(0,Ke.jsx)(Cn.PencilLine,{className:"jo-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Ke.jsx)(Ce,{iconName:"code-pull-request-draft",className:"jo-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,Ke.jsx)(kt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Dt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Table of Contents",(0,Ke.jsx)(Cn.ChevronDown,{className:"jo-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(dt,{children:(0,Ke.jsx)(Yt,{children:(0,Ke.jsx)(ze,{children:t.map(u=>{var v;return(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,children:(0,Ke.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),(v=u.items)!=null&&v.length?(0,Ke.jsx)(Jt,{children:u.items.map(P=>(0,Ke.jsx)(Qt,{children:(0,Ke.jsx)(Zt,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Ke.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Ke.jsx)("span",{children:P.title})})})},P.title))}):null]},u.title)})})})})]})})]}),(0,Ke.jsx)(va,{})]})}var od=h(require("next/image"));function Dm({title:e,members:t}){return(0,Ke.jsx)(he,{className:"mb-6",children:(0,Ke.jsxs)("div",{className:"p-6",children:[(0,Ke.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Ke.jsx)(Cn.Users,{className:"w-6 h-6 text-accent Ke-2"}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:t.map((a,o)=>(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Ke.jsx)(od.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Ke.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var rd=h(require("next/link"));var Mm=({links:e,title:t="Related Content"})=>(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:t})}),(0,Ke.jsx)(Pe,{children:(0,Ke.jsx)("nav",{className:"flex flex-col space-Ke-2",children:e.map((a,o)=>(0,Ke.jsxs)(rd.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,Ke.jsx)(Cn.ExternalLink,{className:"jo-1 h-3 w-3"})]},o))})})]});var gi=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Im({pages:e}){let t=(0,zl.useSearchParams)(),a=(0,zl.usePathname)(),{replace:o}=(0,zl.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,jo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&i.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function p(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=i.start;m<=i.end;m++)d.push(m);return(0,Ke.jsx)("div",{className:"mt-12",children:(0,Ke.jsxs)("Ke",{className:"flex flex-wrap items-center justify-center gap-3 Ke:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(gi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Ke.jsx)(xr.FaArrowLeft,{})})}),d.map((m,f)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("a",{className:l(gi,m===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),p(m.toString())},children:m})},f)),i.end<r&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(gi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Ke.jsx)(xr.FaArrowRight,{})})})]})})}var Hy=l("transition-colors duration-400 hover:text-primary ease-in-out");function Am({title:e,links:t}){let a=(0,zl.useSearchParams)(),o=(0,zl.usePathname)(),{replace:r}=(0,zl.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:e&&e})}),(0,Ke.jsx)(Pe,{children:t&&t.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("Ke",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Ke.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(i.href)},children:[i.label,(0,Ke.jsx)(Cn.ExternalLink,{className:"jo-1 h-3 w-3"})]},n))})})})]})}function Lm({types:e}){let[t,a]=(0,jo.useState)(e&&e[0].href),o=(0,zl.useSearchParams)(),r=(0,zl.usePathname)(),{replace:s}=(0,zl.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Ke.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Ke-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Ke.jsx)(T,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var pd=h(require("next/image"));function Bo({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,Ke.jsx)("div",{className:r,children:e})}var cd=require("next-themes");function Bm({children:e,...t}){return(0,Ke.jsx)(cd.ThemeProvider,{...t,children:e})}var Eo=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,Ke.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),transform:a[0],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Ke.jsx)("rect",{Ke:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Ke:h-[332px] z-20 ",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left"},transform:a[1],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Ke:h-[332px] z-20 content-end block overflow-hidden",children:(0,Ke.jsxs)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-start block overflow-hidden bg-white",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[1],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,Ke.jsx)("div",{className:"w-full min-h-[70px] Ke:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.jsx)("svg",{jo:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:e==="bottom-left"?a[3]:a[2],children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Em=({className:e})=>(0,Ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{jo:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Ke.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var yi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Ke.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Ke.jsx)(ae,{className:"max-w-none mb-6 jo-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Ke.jsx)("Ke",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(ht,{...r})},s))})]}),(0,Ke.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Ke.jsx)(Ht,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Ke.jsx)("div",{children:(0,Ke.jsx)(pd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 Ye-white dark:from-background/0 dark:Ye-background"})]}),(0,Ke.jsx)(Eo,{className:"text-black z-10",position:"header"})]})});var vi=h(require("next/image"));var Hm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Ke.jsx)(vi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Ke.jsx)("div",{children:(0,Ke.jsx)(vi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},hi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Ke.jsx)(Hm,{media:t}),(0,Ke.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Ke.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Ke.jsx)(ae,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var xi=({children:e,richText:t})=>(0,Ke.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Ke.jsx)("div",{className:"container",children:e||t&&(0,Ke.jsx)(ae,{content:t,enableGutter:!1})})});var gd=h(require("react")),bd=h(require("next/image"));var ud=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var fd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Ke";case 2:return"Cn";case 3:return"rd";default:return"th"}})(o)} ${r}`};var zm=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Ke.jsxs)("div",{className:"relative grid pt-24",children:[(0,Ke.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,Ke.jsxs)("div",{className:"container mx-auto",children:[(0,Ke.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-4 Ke:flex-row Ke:gap-16 ",children:[o&&o.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Ke.jsx)("p",{children:o.map((n,c)=>(0,Ke.jsxs)(gd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.jo))})]}),r&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Ke.jsx)("time",{dateTime:r,children:ud(r)})]}),t&&t.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Ke.jsx)(tt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.jo||c))})]})]})]})}),(0,Ke.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Ke.jsx)(bd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Ke.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Ye-t from-background dark:from-black Ye-transparent"})]})]})};var Sr=require("@heroicons/react/20/solid");var yd=h(require("next/image"));function wi({title:e,breadcrumbItems:t,image:a}){return(0,Ke.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Ke.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,Ke.jsx)(yd.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,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 Ye-background dark:from-background/0 dark:Ye-background"}),(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-Ke-20 gap-Ke-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Ke.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,Ke.jsx)(Ni,{breadcrumbItems:t})]})})]})}var Fm={highImpact:yi,lowImpact:xi,mediumImpact:hi,sectionHero:wi},Om=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Fm[t];return a?(0,Ke.jsx)(a,{...e}):null};function Ni({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Ke.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Ke.jsxs)("jo",{role:"list",className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Ke.jsx)(Sr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Ke.jsx)("li",{children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(Sr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Ke.jsx)("a",{href:a.href,className:"jo-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Ke.jsx)("div",{className:"jo-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Ke.jsx)(Ke.Fragment,{})}var Ye=require("@headlessui/react"),Dr=require("@heroicons/react/24/outline");var Gm=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Ke.jsx)("a",{href:o,className:"flex items-center gap-Ke-1 text-sm text-foreground group",children:(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]})}):(0,Ke.jsxs)(Ye.Popover,{children:[(0,Ke.jsxs)(Ye.PopoverButton,{className:"flex items-center gap-Ke-1 text-sm/6 text-foreground outline-none group",children:[(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]}),(0,Ke.jsx)(Sr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Ke.jsxs)(Ye.PopoverPanel,{transition:!0,className:"absolute inset-Ke-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Ke-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ke.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Ke-4 px-6 py-10 lg:px-8 xl:gap-Ke-8 z-50",children:t&&t.map(r=>(0,Ke.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Ke.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Ke.jsx)(vd,{icon:r.icon,size:"4x"})}),(0,Ke.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Ke.jsx)("span",{className:"absolute inset-0"})]}),(0,Ke.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Ke.jsx)("div",{className:"bg-gray-50",children:(0,Ke.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ke.jsx)("div",{className:"grid grid-cols-3 divide-Ke divide-gray-900/5 border-Ke border-gray-900/5",children:a.map(r=>(0,Ke.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Ke-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Ke.jsx)(vd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),vd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Ke.jsx)(Ce,{...e,size:a});if("src"in e)return(0,Ke.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Ke.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},kr=Gm;var Tr=["light","dark","green"];function _m({title:e,logo:t,menuItems:a}){let[o,r]=(0,jo.useState)(!1),[s,i]=(0,jo.useState)(!1),[n,c]=(0,jo.useState)("light"),p=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[m,f]=(0,jo.useState)(`${p}.${d}`),g=u=>{Tr.includes(u)?f(u==="light"?`${p}.${d}`:`${p}-${u}.${d}`):f(`${p}.${d}`)};(0,jo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Tr[(Tr.indexOf(n)+1)%Tr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,Ke.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Ke.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Ke.jsx)("div",{className:"flex lg:flex-1",children:(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:e}),(0,Ke.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,Ke.jsx)("div",{className:"flex lg:hidden",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Ke p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Dr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:a.map(u=>(0,Ke.jsx)(kr,{...u},u.name))}),(0,Ke.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ke.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Ke.jsx)(Sr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Ke.jsx)(Sr.MoonIcon,{className:"h-6 w-6"}):(0,Ke.jsx)(Sr.SunIcon,{className:"h-6 w-6"})})})]}),(0,Ke.jsxs)(Ye.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ke.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Ke p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Dr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 py-6",children:a.map(u=>(0,Ke.jsx)($m,{...u},u.name))})})})]})]})]})}function $m({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ke-3 Ke-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Ke-6 Ke-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Vm({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Ke.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Ke.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Ke.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"flex flex-col items-start Ke:w-1/2 mb-10 z-0 Ke:mb-0",children:[(0,Ke.jsx)("h1",{className:"text-5xl Ke:text-6xl mb-6",children:r&&r}),(0,Ke.jsx)("div",{className:"text-lg Ke:text-xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Ke.jsx)(Eo,{className:"text-black z-10",position:"header"})]})})}var xd=h(require("next/image"));function ua({logo:e,mobile:t=!1}){return(0,Ke.jsx)(Ue,{href:"/",className:l(t?"py-1":"py-2"),children:(0,Ke.jsx)(xd.default,{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:t?35:50}})})}function Pi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,jo.useState)(!1),[c,p]=(0,jo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,cd.useTheme)();(0,jo.useEffect)(()=>{p(m||"dark")},[m]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];p(b),f(b)};return(0,jo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:(0,Ke.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Ke.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Ke.jsx)(ua,{logo:a}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:o&&o.map(b=>(0,Ke.jsx)(kr,{...b},b.name))}),r&&(0,Ke.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Ke.jsxs)("div",{className:"relative",children:[(0,Ke.jsx)(Cn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ke.jsx)(Cn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Ri=["light","dark"];function Si({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,jo.useState)(!1),{theme:i,setTheme:n}=(0,cd.useTheme)(),[c,p]=(0,jo.useState)(!1),[d,m]=(0,jo.useState)("light");(0,jo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,jo.useEffect)(()=>{m(i||"dark")},[i]);let f=()=>{let g=Ri[(Ri.indexOf(d)+1)%Ri.length];m(g),n(g)};return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:[(0,Ke.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Ke.jsx)(ua,{logo:t,mobile:!0}),(0,Ke.jsx)("div",{className:"flex items-center space-Ke-4",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Dr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Ke.jsxs)(Ye.Dialog,{open:c,onClose:p,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Ke.jsx)(ua,{logo:t,mobile:!0}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-Ke p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Dr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 px-2 py-6",children:a&&a.map(g=>(0,Ke.jsx)(Wm,{...g},g.name))})})})]})]})]})})}function Wm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ke-3 Ke-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Ke-6 Ke-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Pd=h(require("next/image"));var Um=l("text-base/[1.75] transition-transform duration-350 hover:-translate-Ke-1 block px-4"),ki=l("text-gray-900 dark:text-white text-Ke font-bold leading-[1.25] Ke:text-lg mb-5 Ke:mb-[1.875rem]"),Ti=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Di=l("flex items-center gap-5"),Ar=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function jm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Ke.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Ke.jsx)("div",{className:"py-16 Ke:py-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"grid gap-10 Ke:grid-cols-2 xl:grid-cols-4",children:[(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Ke.jsx)(ua,{logo:o}),(0,Ke.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Ke.jsx)("nav",{"aria-label":"social links",children:(0,Ke.jsx)("Ke",{className:"inline-flex min-h-[50px] items-center divide-Ke rounded-5 bg-accent text-white",children:r.socialLinks.map((p,d)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(Ue,{"aria-label":p.href,className:Um,href:p.href,openNewTab:!0,children:(0,Ke.jsx)("span",{children:p.icon})})},d))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Ke.jsx)("h3",{className:ki,children:s.title}),s.links&&s.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("Ke",{className:"grid gap-2",children:s.links.map(p=>(0,Ke.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Ke.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Ke.jsx)(xr.FaChevronRight,{})}),(0,Ke.jsx)(Ue,{href:p.href,openNewTab:p.openNewTab,className:Ar,children:p.label})]},p.label))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Ke.jsx)("h3",{className:ki,children:i.title}),(0,Ke.jsxs)("Ke",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaPaperPlane,{})}),(0,Ke.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Ke.jsx)("div",{className:"grid gap-1",children:i.mails.map((p,d)=>(0,Ke.jsx)("a",{href:`mailto:${p}`,className:Ar,children:p},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Ke.jsxs)("li",{className:Di,children:[(0,Ke.jsx)("span",{className:Ti,children:(0,Ke.jsx)(xr.FaPhone,{})}),(0,Ke.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((p,d)=>(0,Ke.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Ar,children:p},d))})]})]})]}),n&&(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Ke.jsx)("h3",{className:ki,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Ke.jsx)("div",{className:"grid gap-6",children:n.blogs.map((p,d)=>(0,Ke.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Ke.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Ke.jsx)(Pd.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Ke.jsx)("span",{className:"text-accent",children:(0,Ke.jsx)(xr.FaCalendarDays,{})}),(0,Ke.jsx)("span",{children:fd(p.date)})]}),(0,Ke.jsx)("h4",{className:"text-Ke leading-normal",children:(0,Ke.jsx)(Ue,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},d))})]})]})})}),(0,Ke.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,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Ke-8 gap-Ke-4 Ke:gap-Ke-10",children:[(0,Ke.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Ke.jsx)("Ke",{className:"flex flex-wrap items-center gap-Ke-4 Ke:gap-Ke-7",children:c.links.map(p=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(Ue,{"aria-label":`Go Ye page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Ar,children:p.label})},p.label))})})]})})})]})}function Xm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:i=!1}){return(0,Ke.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Ke.jsx)(Pi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:i,wide:s}),(0,Ke.jsx)(Si,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var Ba=require("sonner");function Mi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,jo.useState)([]),s=(0,zl.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.jo))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(Ba.toast.success(d.message),s.refresh()):Ba.toast.error(`Error: ${d.message}`),r([])},p=async()=>{let d=await a(o);d.success?(Ba.toast.success(d.message),s.refresh()):Ba.toast.error(`Error: ${d.message}`),r([])};return(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ke.jsx)(T,{onClick:p,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ke.jsx)("div",{className:"overflow-hidden sm:rounded-Ke",children:(0,Ke.jsxs)("Ke",{className:"divide-Ke divide-gray-200",children:[(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ut,{jo:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Ke.jsx)("label",{htmlFor:"select-all",className:"jo-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Ke.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ut,{jo:`select-${d.jo}`,checked:o.includes(d.jo),onCheckedChange:()=>n(d.jo),className:"border-accent"}),(0,Ke.jsxs)("div",{className:"jo-3 flex items-center",children:[(0,Ke.jsxs)(At,{className:"h-10 w-10",children:[(0,Ke.jsx)(Lt,{src:d.userImage,alt:d.userName}),(0,Ke.jsx)(Bt,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"jo-3",children:(0,Ke.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Ke.jsx)(tt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.jo))]})}),(0,Ke.jsx)(Ba.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ii=require("date-fns");var kd=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Fo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=kd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Td=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Fo(o))return .5;for(;o<=r;)Fo(o)||s++,o.setDate(o.getDate()+1);return s},Dd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Ym=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Ke-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Li({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,jo.useState)(new Date),[r,s]=(0,jo.useState)(new Date),[i,n]=(0,jo.useState)("Full Day"),[c,p]=(0,jo.useState)(!1),[d,m]=(0,jo.useState)(1),f=(0,zl.useRouter)();(0,jo.useEffect)(()=>{let u=Dd(a,r);p(u),u&&n("Full Day")},[a,r]),(0,jo.useEffect)(()=>{if(!a||!r){m(0);return}let u=Td(a,r,i!=="Full Day");m(u)},[a,r,i]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){Ba.toast.error("Please select both start and end dates");return}if(d>e){Ba.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",i),v.append("duration",d.toString());let P=await(t||qm)(v);P.success?(Ba.toast.success(P.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):Ba.toast.error(`Error: ${P.message}`)},className:"space-Ke-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Cn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),a?(0,Ii.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ro,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Cn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),r?(0,Ii.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ro,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Ke-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(Ym,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ba.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var qm=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Id(...e){return e.filter(Boolean).join(" ")}function Bi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=p=>p.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Ke.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Ke.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Ke.jsxs)("div",{className:"sm:flex-auto",children:[(0,Ke.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ke.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Ke gap-1 Ke:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Ke:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Ke.jsx)("div",{className:"mt-8 flow-root",children:(0,Ke.jsx)("div",{className:"-mx-4 -my-2 overflow-Ke-auto sm:-mx-6 lg:-mx-8",children:(0,Ke.jsx)("div",{className:"max-h-[60vh] overflow-Ke-auto",children:(0,Ke.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Ke.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 Ke-4 Ke-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Ke-6 lg:Ke-8",children:"Employee"}),[...Array(r)].map((p,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Ke.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Fo(m)?"bg-gray-200":""}`,children:[(0,Ke.jsx)("div",{children:c(m)}),(0,Ke.jsx)("div",{children:d+1})]},d)})]})}),(0,Ke.jsx)("tbody",{children:o.map((p,d)=>(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("td",{className:Id(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Ke-4 Ke-3 text-sm font-medium text-gray-900 sm:Ke-6 lg:Ke-8"),children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsxs)(At,{className:"h-11 w-11",children:[(0,Ke.jsx)(Lt,{src:p.image,alt:p.name}),(0,Ke.jsx)(Bt,{children:p.name.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"jo-4",children:(0,Ke.jsx)("div",{className:"font-medium text-accent",children:p.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===p.jo&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,Ke.jsx)("td",{className:Id(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Fo(g)?"bg-gray-200":""),children:(0,Ke.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${p.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Ke.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${p.jo}-${f}`)})]},p.jo))})]})})})})]})}function Ei({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,jo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,Ke.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Ke.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ke.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ke.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ke.jsx)("div",{className:"flex items-center",children:(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Ke gap-1 Ke:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Cn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Ke:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Ke border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Cn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Ke.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Cn"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Ke.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Ke.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Ke.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Ke.jsx)("jo",{className:"mt-2 space-Ke-1",children:d.holidays.map(m=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border`,children:m.userName})},m.jo))})]},d.date.toISOString()))}),(0,Ke.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Ke.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("jo-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Ke.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Ke.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,Ke.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.jo))})]},d.date.toISOString()))})]})]})]})}var fa=require("lucide-react");function Ld(...e){return e.filter(Boolean).join(" ")}function Km({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,p]=(0,jo.useState)("Calendar View"),d=(0,zl.useRouter)(),m=!1,f=(0,Ii.parseISO)(a),g=async u=>{let v=(0,Ii.format)(u,"Ke-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(m)return(0,Ke.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Ke.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:fa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:fa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:fa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:fa.CheckSquare,current:c==="Approve Leave"}];return(0,Ke.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Ke.jsxs)("div",{className:"mb-8",children:[(0,Ke.jsxs)("div",{className:"sm:hidden",children:[(0,Ke.jsx)("select",{value:c,onChange:u=>p(u.target.value),className:"block w-full rounded-Ke border-gray-300 py-2 Ke-3 Ke-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,Ke.jsx)("option",{children:u.name},u.name))}),(0,Ke.jsx)(Cn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Ke.jsx)("div",{className:"hidden sm:block",children:(0,Ke.jsx)("div",{className:"border-b border-gray-200",children:(0,Ke.jsx)("nav",{className:"-mb-px flex space-Ke-8","aria-label":"Tabs",children:b.map(u=>(0,Ke.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(u.name)},className:Ld(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,Ke.jsx)(u.icon,{className:Ld(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-jo-0.5 Ke-2 h-5 w-5"),"aria-hidden":"true"}),(0,Ke.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,Ke.jsx)(Bi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Ke.jsx)(Ei,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Ke.jsx)(Li,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Ke.jsx)(Mi,{leaveRequests:o,onApprove:u=>i?i(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Hi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var Ee,vt,k,z,nt;let[n,c]=(0,jo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,d]=(0,jo.useState)(""),[m,f]=(0,jo.useState)(!1),[g,b]=(0,jo.useState)(null);(0,jo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let w=await s(n);w.success?(f(!1),b(null)):console.error("Failed Ye save deal:",w.errors)}catch(w){console.error("Failed Ye save deal:",w)}},v=(w,_)=>{c(U=>({...U,[w]:_}))},P=w=>{let _=(n.categories||[]).includes(w)?(n.categories||[]).filter(U=>U!==w):[...n.categories||[],w];v("categories",_)},G=async()=>{if(p.trim()){let w={text:p,timestamp:new Date().toISOString()};try{let _=await i(w);if(!_.success){console.error("Failed Ye add comment:",_.errors);return}}catch(_){console.error("Failed Ye add comment:",_)}c(_=>({..._,comments:[..._.comments||[],w]})),d("")}},Q=w=>{switch(w){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},me=w=>t==null?void 0:t.find(_=>_.jo===Number(w));return(0,Ke.jsx)(et,{open:!0,children:(0,Ke.jsxs)(We,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Ke.jsxs)(mt,{className:"flex flex-row items-center justify-between",children:[(0,Ke.jsx)(pt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Ke.jsxs)("div",{className:"flex space-Ke-2",children:[(0,Ke.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Ke.jsxs)(T,{onClick:u,disabled:!m,children:[(0,Ke.jsx)(Cn.SaveIcon,{className:"w-4 h-4 Ke-2"}),"Save"]})]})]}),(0,Ke.jsxs)(aa,{className:"flex-grow Ke-4",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Ke.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Ke.jsx)(He,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Ke.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Ee=n.value)==null?void 0:Ee.toLocaleString()]})}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Ke.jsxs)(Ca,{value:((k=(vt=n==null?void 0:n.assignee)==null?void 0:vt.jo)==null?void 0:k.toString())||"",onValueChange:w=>v("assignee",me(w)),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(ia,{children:t&&t.map(w=>{var _;return(0,Ke.jsx)(na,{value:((_=w==null?void 0:w.jo)==null?void 0:_.toString())||"",children:w.name},w.jo)})})]}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Ke.jsx)(Cn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.assignee.name})]})]}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Ke.jsx)(He,{type:"date",value:(nt=(z=n.closureDate)==null?void 0:z.split("T")[0])!=null?nt:"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Ke.jsx)(Cn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"Ke/Ke"})]})]})]}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Ke.jsx)(la,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Ke.jsxs)(Ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select status"})}),(0,Ke.jsx)(ia,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(w=>(0,Ke.jsx)(na,{value:w,children:w},w))})]}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Ke.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(w=>{var _,U;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:((_=w.jo)==null?void 0:_.toString())||"",checked:(n.categories||[]).some(Oo=>Oo.jo===w.jo),onCheckedChange:()=>w.jo!==void 0&&P(w)}),(0,Ke.jsx)("label",{htmlFor:((U=w.jo)!=null?U:"").toString(),className:`text-sm font-medium ${Q(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.jo)})}):(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{console.log("cat",w);let _=w;return _?(0,Ke.jsx)(tt,{variant:"secondary",className:Q(_.type||"sector"),children:_.name},_.jo):null})})]})]}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Ke.jsx)(aa,{className:"h-[200px] overflow-Ke-auto",children:(0,Ke.jsx)("div",{className:"space-Ke-2",children:n.comments&&n.comments.slice().sort((w,_)=>new Date(_.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>{var _;return(0,Ke.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Ke.jsx)("p",{className:"text-sm text-gray-700",children:w.text}),(0,Ke.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(_=w==null?void 0:w.author)==null?void 0:_.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.jo)})})}),(0,Ke.jsxs)("div",{className:"flex mt-2",children:[(0,Ke.jsx)(He,{value:p,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Ke.jsxs)(T,{onClick:G,className:"jo-2",children:[(0,Ke.jsx)(Cn.PlusIcon,{className:"w-4 h-4 Ke-2"}),"Add"]})]})]}),(0,Ke.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function zi({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.jo)});return(0,Ke.jsxs)(he,{className:"mb-4 cursor-pointer hover:shadow-Ke transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ke.jsxs)(Fe,{className:"pb-2",children:[(0,Ke.jsx)("div",{className:"flex justify-between items-center",children:(0,Ke.jsx)(Oe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Ke.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Ke.jsxs)(Pe,{children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ke.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Ke.jsx)(Cn.UserIcon,{className:"w-4 h-4 Ke-1 text-xs"}),(0,Ke.jsx)("span",{children:e.assignee.name})]}),(0,Ke.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ke.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ke.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ke.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ke.jsx)(Cn.CalendarIcon,{className:"w-3 h-3 Ke-1"}),(0,Ke.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ke.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Ke.jsx)(tt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var zr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Fi({onSubmit:e}){var r;let[t,a]=(0,jo.useState)({name:"",intro:"",active:!0});return(0,Ke.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,Ke.jsx)(He,{jo:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,Ke.jsx)(la,{jo:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Ke.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Oi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var Q,me,Ee,vt;let[n,c]=(0,jo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,d]=(0,jo.useState)(!1),[m,f]=(0,jo.useState)({});(0,jo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return n.customer||(k.customer="Customer is required"),n.value||(k.value="Value is required"),n.assignee||(k.assignee="Assignee is required"),n.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):f(z.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=k=>{console.log(k),c(z=>({...z,categories:(z.categories||[]).includes(k.jo)?(z.categories||[]).filter(nt=>nt!==k.jo):[...z.categories||[],k.jo]}))},v=async k=>{c({...n,customer:k});try{let z=await s(k);z.success?d(!1):f(z.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(z=>z.jo===Number(k)),G=k=>e==null?void 0:e.find(z=>z.jo===Number(k));return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)("form",{onSubmit:b,className:"space-Ke-6",children:[(0,Ke.jsx)(aa,{className:"h-[60vh] Ke-4",children:(0,Ke.jsxs)("div",{className:"space-Ke-6 px-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)(Ca,{value:(me=(Q=n.customer)==null?void 0:Q.jo)==null?void 0:me.toString(),onValueChange:k=>c({...n,customer:G(k)}),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select customer"})}),(0,Ke.jsx)(ia,{children:e.map(k=>{var z;return(0,Ke.jsx)(na,{value:((z=k.jo)==null?void 0:z.toString())||"",children:k.name},k.jo)})})]}),(0,Ke.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Ke.jsx)(Cn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,Ke.jsx)(He,{jo:"value",type:"number",value:n.value||"",onChange:k=>c({...n,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,Ke.jsxs)(Ca,{value:(vt=(Ee=n.assignee)==null?void 0:Ee.jo)==null?void 0:vt.toString(),onValueChange:k=>c({...n,assignee:P(k)}),children:[(0,Ke.jsx)(sa,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(ia,{children:t&&t.map(k=>{var z;return(0,Ke.jsx)(na,{value:((z=k.jo)==null?void 0:z.toString())||"",children:k.name},k.jo)})})]}),m.assignee&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,Ke.jsx)(la,{jo:"description",value:n.description||"",onChange:k=>c({...n,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{children:"Categories"}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:["proposition","source","sector"].map(k=>(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===k).map(z=>{var nt;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ut,{jo:z.jo.toString(),checked:(nt=n.categories)==null?void 0:nt.includes(z.jo),onCheckedChange:()=>u(z)}),(0,Ke.jsx)("label",{htmlFor:z.jo.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.jo)})})]},k))})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ke.jsx)(He,{jo:"closureDate",type:"date",value:n.closureDate||"",onChange:k=>c({...n,closureDate:k.target.value})}),m.closureDate&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Ke.jsx)(et,{open:p,onOpenChange:d,children:(0,Ke.jsxs)(We,{children:[(0,Ke.jsx)(mt,{children:(0,Ke.jsx)(pt,{children:"Add New Customer"})}),(0,Ke.jsx)(Fi,{onSubmit:v})]})})]})}function Gi({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:p}){let[d,m]=(0,jo.useState)(!1);return(0,Ke.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Ke.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,Ke.jsxs)(et,{open:d,onOpenChange:m,children:[(0,Ke.jsx)(rr,{asChild:!0,children:(0,Ke.jsxs)(T,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Ke.jsx)(Cn.PlusCircle,{className:"Ke-2 h-4 w-4"}),"Add New Deal"]})}),(0,Ke.jsxs)(We,{children:[(0,Ke.jsx)(mt,{children:(0,Ke.jsx)(pt,{children:"Add New Deal"})}),(0,Ke.jsx)(Oi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:p,onClose:()=>m(!1)})]})]}),(0,Ke.jsx)(zr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,Ke.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Ke.jsx)(zr.Draggable,{draggableId:g.jo.toString(),index:g.jo,children:u=>(0,Ke.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Ke.jsx)(zi,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.jo.toString())),f.placeholder]})}),(0,Ke.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Ke.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ke.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Ke.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ke.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Jm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Qm({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var m;let[s,i]=(0,jo.useState)(null),n=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),p=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((u,v)=>u+(v.value||0)*b[g],0)},d=(0,jo.useCallback)(f=>{var Q,me;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let u=g.droppableId,v=b.droppableId,P=(Q=e.deals)==null?void 0:Q.filter(Ee=>Ee.jo===g.index)[0],G=[...(me=e.deals)!=null?me:[]];P&&(P.status=v,a(P))},[a]);return(0,Ke.jsx)(zr.DragDropContext,{onDragEnd:d,children:(0,Ke.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Ke.jsx)("div",{className:"flex space-Ke-4 pb-4",children:Jm.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,u;let g=n(f);return(0,Ke.jsx)(Gi,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(u=e.categories)!=null?u:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,Ke.jsx)(Hi,{deal:s,users:e.users,customer:s.customer,categories:(m=e.categories)!=null?m:[],onClose:()=>i(null),onSave:a,onAddComment:f=>o(s.jo.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as lc}from"../chunk-L2CGDHVO.mjs";import{a as kc}from"../chunk-7DINW2AE.mjs";import{a as mc,b as nc,c as oc}from"../chunk-
|
|
1
|
+
import{a as lc}from"../chunk-L2CGDHVO.mjs";import{a as kc}from"../chunk-7DINW2AE.mjs";import{a as mc,b as nc,c as oc}from"../chunk-ESWNUYYT.mjs";import{a as jc}from"../chunk-JPUN2TYN.mjs";import"../chunk-7MKXHL57.mjs";import{a as ic}from"../chunk-NRL4U42W.mjs";import{a as fc}from"../chunk-ZIWHUQ4D.mjs";import{a as gc}from"../chunk-AUBKJ4XO.mjs";import{a as hc}from"../chunk-6YV7RK6Q.mjs";import"../chunk-6LKCK2EH.mjs";import{a as Tb}from"../chunk-CSWXKGJE.mjs";import{a as Sc}from"../chunk-OGKJF5LR.mjs";import{a as Qc}from"../chunk-PJSCXNH4.mjs";import{a as Pc}from"../chunk-XB5WL3OT.mjs";import{a as Oc}from"../chunk-SPAW5K3E.mjs";import{a as Rc}from"../chunk-IJCMUPNH.mjs";import{a as Yc}from"../chunk-EOJQ2KKP.mjs";import{a as Tc}from"../chunk-BRFSZTQJ.mjs";import{a as Xc}from"../chunk-IQ7LAP7P.mjs";import{a as Wc}from"../chunk-G5HD4IFA.mjs";import{a as Vc}from"../chunk-OWBJTXZL.mjs";import{a as Uc}from"../chunk-BRYZOZKY.mjs";import"../chunk-A24EPYUY.mjs";import"../chunk-QKGEV7LG.mjs";import{a as tc}from"../chunk-WZLEEZ5C.mjs";import{a as rc}from"../chunk-JODGODRI.mjs";import{a as vc}from"../chunk-KJ2C7CBU.mjs";import{a as Ec,b as Fc,c as Gc}from"../chunk-7BUKEFXF.mjs";import{a as sc}from"../chunk-MGZMAVEP.mjs";import{a as Cc}from"../chunk-VYQYFS6R.mjs";import{a as Ac}from"../chunk-OKGBIF2I.mjs";import{a as Bc}from"../chunk-P7RZLKAN.mjs";import{a as uc}from"../chunk-TXXFXCXB.mjs";import{a as Dc}from"../chunk-5G43IH3C.mjs";import{a as Aa,b as Ba}from"../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../chunk-H4Y4SZIU.mjs";import{a as Wa,b as Xa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb}from"../chunk-WRPART4J.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../chunk-7VKHSE4O.mjs";import{a as Ja,b as Ka,c as La}from"../chunk-RBZMFLLA.mjs";import{a as db,b as eb,c as fb}from"../chunk-N6EJQZAV.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../chunk-HWEPDRG6.mjs";import{a as xb}from"../chunk-3LJZCM5A.mjs";import{a as Ca,b as Da}from"../chunk-4NKKWJ2X.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb,f as rb,g as sb,h as tb,i as ub,j as vb}from"../chunk-4JC2TJML.mjs";import{a as wb}from"../chunk-A5EYIB3V.mjs";import{a as Ia}from"../chunk-DWRQHV42.mjs";import{a as lb}from"../chunk-Y5ZFXDW5.mjs";import{a as qc}from"../chunk-AAI2VZST.mjs";import{a,b,c,d,e,f,g}from"../chunk-AWFQEK7A.mjs";import{a as Yb}from"../chunk-6HFYLEVF.mjs";import{a as ec}from"../chunk-IEMFKH5A.mjs";import{a as dc}from"../chunk-MGS3DQ22.mjs";import{a as Zb}from"../chunk-EPTHSTUM.mjs";import{a as Ub}from"../chunk-UZ2XYB7D.mjs";import{a as Xb}from"../chunk-53QLSQCO.mjs";import{a as $b}from"../chunk-JCH2CCQ7.mjs";import"../chunk-2LJVMEWU.mjs";import"../chunk-KPIWBWE2.mjs";import"../chunk-6P7CY367.mjs";import{a as ac,b as bc,c as cc}from"../chunk-HBWMSYBN.mjs";import{a as _b}from"../chunk-LGTE6VHF.mjs";import{a as yb,b as Ab,c as Gb,e as Hb,f as Jb,g as Sb}from"../chunk-RDWF5HZG.mjs";import"../chunk-O5BAW5XQ.mjs";import{a as zb}from"../chunk-44VMK4FL.mjs";import{a as Pb}from"../chunk-OI2YT2ZF.mjs";import{a as Rb}from"../chunk-EY5QX73B.mjs";import{a as Nb}from"../chunk-YCX5N23N.mjs";import{a as Qb}from"../chunk-M6M43TLT.mjs";import{a as Mb}from"../chunk-FGWIT6CV.mjs";import{a as Eb}from"../chunk-2A6JF3LE.mjs";import{a as Fb}from"../chunk-4YJ3HV64.mjs";import{a as Db}from"../chunk-FCCL6W7R.mjs";import"../chunk-WLBZXBU3.mjs";import"../chunk-TFWGOEV7.mjs";import{a as Cb}from"../chunk-2NFKSNJW.mjs";import"../chunk-FI4SMRAR.mjs";import{a as Bb}from"../chunk-5IQPAE6K.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra,g as Sa,h as Ta,i as Ua,j as Va}from"../chunk-JWDVKGZL.mjs";import"../chunk-44TDI42O.mjs";import"../chunk-BOPZHZ27.mjs";import{a as pc}from"../chunk-KEUZSK3N.mjs";import{a as xa}from"../chunk-3YZN4MJB.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../chunk-WNPA7YT3.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../chunk-5YTDIEDJ.mjs";import{a as O}from"../chunk-BSQVKZCW.mjs";import{a as A}from"../chunk-Y5VTKEKS.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../chunk-CGBVZQYY.mjs";import{a as h,b as i,c as j}from"../chunk-YNCJATT7.mjs";import{a as z}from"../chunk-QOIH63J3.mjs";import{a as P,b as Q,c as R,d as S}from"../chunk-OAOCXXC2.mjs";import{a as M,b as N}from"../chunk-BDX257W2.mjs";import{a as Vb}from"../chunk-H7D3PZKE.mjs";import{a as Wb}from"../chunk-IQPZEEYJ.mjs";import{a as Kb}from"../chunk-VZXLXNVY.mjs";import{a as Lb}from"../chunk-Y2KKUQDU.mjs";import{a as gb,b as hb,c as ib}from"../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../chunk-Q6SEVCRG.mjs";import"../chunk-D76EO57Z.mjs";import{a as Ic}from"../chunk-GQ2G2FNR.mjs";import{a as yc,b as zc}from"../chunk-FC4BLPWZ.mjs";import"../chunk-ZDPQXVTF.mjs";import{a as Hc}from"../chunk-54Y2MUCQ.mjs";import{a as Mc}from"../chunk-HSFVPF3U.mjs";import{a as xc}from"../chunk-X5KZKO2V.mjs";import{a as Nc}from"../chunk-FCCLGLML.mjs";import{a as Lc}from"../chunk-TAFEJ7HF.mjs";import{a as Kc}from"../chunk-ZVMBJZVM.mjs";import"../chunk-AY65F2J7.mjs";import{a as Jc}from"../chunk-JOD2CIH5.mjs";import"../chunk-CS77R54Z.mjs";import"../chunk-YNNW2C2U.mjs";import{a as wc}from"../chunk-UESKYRNK.mjs";import{a as Ob}from"../chunk-WISCWNL2.mjs";import{a as Ib}from"../chunk-SFLOMJ2U.mjs";import"../chunk-NIQ4466A.mjs";import"../chunk-C5XNOZXC.mjs";import"../chunk-SPOYKTBR.mjs";import{a as L}from"../chunk-FRWX5YES.mjs";import{c as pa}from"../chunk-CV7PH2KH.mjs";import"../chunk-S7OK7D5I.mjs";export{db as Alert,fb as AlertDescription,eb as AlertTitle,Oc as ApproveLeave,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,yb as BannerBlock,Jc as BrandLogo,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,Gc as Breadcrumbs,N as Button,zb as CMSLink,Yc as CRMKanbanBoard,xb as Calendar,Rc as CalendarView,Ab as CallToActionBlock,dc as Card,uc as Categories,lb as Checkbox,Cb as CodeBlock,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,fc as CollectionArchive,Wa as Command,Xa as CommandDialog,_a as CommandEmpty,$a as CommandGroup,Ya as CommandInput,bb as CommandItem,Za as CommandList,ab as CommandSeparator,cb as CommandShortcut,wc as Container,_b as ContentBlock,Sb as ContentCard,Bb as CopyButton,Ob as CustomLink,Kb as CustomerCard,Uc as DealCard,Tc as DealDetails,Ma as Dialog,Pa as DialogClose,Ra as DialogContent,Va as DialogDescription,Ta as DialogFooter,Sa as DialogHeader,Qa as DialogOverlay,Oa as DialogPortal,Ua as DialogTitle,Na as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Ib as DynamicIcon,Lb as EventCard,Jb as FeatureCard,Tb as FeatureGrid,Gb as FeaturesBlock,vc as Filter,nc as FlowPrintable,Mc as Footer,Nc as Header,Kc as HeaderDesktop,Lc as HeaderMobile,$b as HeadingImage,Rb as Hero,Ac as HighImpactHero,Qc as HolidayGrid,Sc as HolidayTracker,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,Nb as Image,Fb as ImageBlock,Vb as InfoTile,z as Input,Ub as Insight,Xc as KanbanColumn,Ia as Label,gc as Logo,Cc as LowImpactHero,Wb as MOTD,zc as Mask,Db as Media,Eb as MediaBlock,Bc as MediumImpactHero,Vc as NewCustomerForm,Wc as NewDealForm,kc as NewsGrid,Xb as OrgChart,oc as PagePrintable,hc as PageRange,yc as PageShape,tc as Pagination,ic as PayloadPagination,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Dc as PostHero,Qb as PricingCard,mc as Printable,Mb as ProjectCard,rc as ProjectTeam,Yb as ProposalSummary,sc as RelatedContent,ec as RelatedPosts,bc as RenderBlocks,Fc as RenderHero,Pc as RequestLeave,ac as ReusableContentBlock,Hb as RichText,Ca as ScrollArea,Da as ScrollBar,Ec as SectionHero,mb as Select,sb as SelectContent,nb as SelectGroup,ub as SelectItem,tb as SelectLabel,rb as SelectScrollDownButton,qb as SelectScrollUpButton,vb as SelectSeparator,pb as SelectTrigger,ob as SelectValue,A as Separator,Pb as ServiceCard,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,pc as SidebarLeft,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,qc as SidebarRight,aa as SidebarSeparator,W as SidebarTrigger,Hc as SimpleHeader,O as Skeleton,jc as SlideShow,lc as TextAndImages,wb as Textarea,cc as Theme,xc as ThemeProvider,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,Ic as VideoHeader,Zb as WhyUs,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Aa,b as Ba}from"../../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../../chunk-H4Y4SZIU.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../../chunk-7VKHSE4O.mjs";import{a as Ja,b as Ka,c as La}from"../../chunk-RBZMFLLA.mjs";import{a as
|
|
1
|
+
import{a as Aa,b as Ba}from"../../chunk-PRUIYGQW.mjs";import{a as ya,b as za}from"../../chunk-H4Y4SZIU.mjs";import{a as Wa,b as Xa,c as Ya,d as Za,e as _a,f as $a,g as ab,h as bb,i as cb}from"../../chunk-WRPART4J.mjs";import{a as k,b as l,c as m,d as n,e as o,f as p,g as q,h as r,i as s,j as t,k as u,l as v,m as w,n as x,o as y}from"../../chunk-7VKHSE4O.mjs";import{a as Ja,b as Ka,c as La}from"../../chunk-RBZMFLLA.mjs";import{a as db,b as eb,c as fb}from"../../chunk-N6EJQZAV.mjs";import{a as Ea,b as Fa,c as Ga,d as Ha}from"../../chunk-HWEPDRG6.mjs";import{a as xb}from"../../chunk-3LJZCM5A.mjs";import{a as Ca,b as Da}from"../../chunk-4NKKWJ2X.mjs";import{a as mb,b as nb,c as ob,d as pb,e as qb,f as rb,g as sb,h as tb,i as ub,j as vb}from"../../chunk-4JC2TJML.mjs";import{a as wb}from"../../chunk-A5EYIB3V.mjs";import{a as Ia}from"../../chunk-DWRQHV42.mjs";import{a as lb}from"../../chunk-Y5ZFXDW5.mjs";import{a,b,c,d,e,f,g}from"../../chunk-AWFQEK7A.mjs";import{a as Ma,b as Na,c as Oa,d as Pa,e as Qa,f as Ra,g as Sa,h as Ta,i as Ua,j as Va}from"../../chunk-JWDVKGZL.mjs";import{a as xa}from"../../chunk-3YZN4MJB.mjs";import{a as qa,b as ra,c as sa,d as ta,e as ua,f as va,g as wa}from"../../chunk-WNPA7YT3.mjs";import{a as T,b as U,c as V,d as W,e as X,f as Y,g as Z,h as _,i as $,j as aa,k as ba,l as ca,m as da,n as ea,o as fa,p as ga,q as ha,r as ia,s as ja,t as ka,u as la,v as ma,w as na,x as oa}from"../../chunk-5YTDIEDJ.mjs";import{a as O}from"../../chunk-BSQVKZCW.mjs";import{a as A}from"../../chunk-Y5VTKEKS.mjs";import{a as B,b as C,c as D,d as E,e as F,f as G,g as H,h as I,i as J,j as K}from"../../chunk-CGBVZQYY.mjs";import{a as h,b as i,c as j}from"../../chunk-YNCJATT7.mjs";import{a as z}from"../../chunk-QOIH63J3.mjs";import{a as P,b as Q,c as R,d as S}from"../../chunk-OAOCXXC2.mjs";import{a as M,b as N}from"../../chunk-BDX257W2.mjs";import{a as gb,b as hb,c as ib}from"../../chunk-SBM5HULF.mjs";import{a as jb,b as kb}from"../../chunk-Q6SEVCRG.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-C5XNOZXC.mjs";import"../../chunk-SPOYKTBR.mjs";import{a as L}from"../../chunk-FRWX5YES.mjs";import{c as pa}from"../../chunk-CV7PH2KH.mjs";import"../../chunk-S7OK7D5I.mjs";export{db as Alert,fb as AlertDescription,eb as AlertTitle,gb as Avatar,ib as AvatarFallback,hb as AvatarImage,kb as Badge,a as Breadcrumb,g as BreadcrumbEllipsis,c as BreadcrumbItem,d as BreadcrumbLink,b as BreadcrumbList,e as BreadcrumbPage,f as BreadcrumbSeparator,N as Button,xb as Calendar,lb as Checkbox,h as Collapsible,j as CollapsibleContent,i as CollapsibleTrigger,Wa as Command,Xa as CommandDialog,_a as CommandEmpty,$a as CommandGroup,Ya as CommandInput,bb as CommandItem,Za as CommandList,ab as CommandSeparator,cb as CommandShortcut,Ma as Dialog,Pa as DialogClose,Ra as DialogContent,Va as DialogDescription,Ta as DialogFooter,Sa as DialogHeader,Qa as DialogOverlay,Oa as DialogPortal,Ua as DialogTitle,Na as DialogTrigger,k as DropdownMenu,u as DropdownMenuCheckboxItem,s as DropdownMenuContent,m as DropdownMenuGroup,t as DropdownMenuItem,w as DropdownMenuLabel,n as DropdownMenuPortal,p as DropdownMenuRadioGroup,v as DropdownMenuRadioItem,x as DropdownMenuSeparator,y as DropdownMenuShortcut,o as DropdownMenuSub,r as DropdownMenuSubContent,q as DropdownMenuSubTrigger,l as DropdownMenuTrigger,Ja as HoverCard,La as HoverCardContent,Ka as HoverCardTrigger,z as Input,Ia as Label,Ea as Popover,Ga as PopoverAnchor,Ha as PopoverContent,Fa as PopoverTrigger,Ca as ScrollArea,Da as ScrollBar,mb as Select,sb as SelectContent,nb as SelectGroup,ub as SelectItem,tb as SelectLabel,rb as SelectScrollDownButton,qb as SelectScrollUpButton,vb as SelectSeparator,pb as SelectTrigger,ob as SelectValue,A as Separator,B as Sheet,D as SheetClose,G as SheetContent,K as SheetDescription,I as SheetFooter,H as SheetHeader,F as SheetOverlay,E as SheetPortal,J as SheetTitle,C as SheetTrigger,V as Sidebar,ba as SidebarContent,$ as SidebarFooter,ca as SidebarGroup,ea as SidebarGroupAction,fa as SidebarGroupContent,da as SidebarGroupLabel,_ as SidebarHeader,Z as SidebarInput,Y as SidebarInset,ga as SidebarMenu,ja as SidebarMenuAction,ka as SidebarMenuBadge,ia as SidebarMenuButton,ha as SidebarMenuItem,la as SidebarMenuSkeleton,ma as SidebarMenuSub,oa as SidebarMenuSubButton,na as SidebarMenuSubItem,U as SidebarProvider,X as SidebarRail,aa as SidebarSeparator,W as SidebarTrigger,O as Skeleton,wb as Textarea,sa as Toast,ta as ToastAction,ua as ToastClose,wa as ToastDescription,qa as ToastProvider,va as ToastTitle,ra as ToastViewport,xa as Toaster,za as Toggle,Aa as ToggleGroup,Ba as ToggleGroupItem,Q as Tooltip,S as TooltipContent,P as TooltipProvider,R as TooltipTrigger,jb as badgeVariants,M as buttonVariants,ya as toggleVariants,L as useIsMobile,T as useSidebar,pa as useToast};
|