cortex-react-components 1.65.1 → 1.65.3
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-NP2M5K7O.mjs → chunk-22KXWTT3.mjs} +1 -1
- package/dist/{chunk-JLCWVIEP.mjs → chunk-3RPTKOCL.mjs} +1 -1
- package/dist/{chunk-DIAK5C43.mjs → chunk-4EQF35LM.mjs} +1 -1
- package/dist/{chunk-T6W76EOH.mjs → chunk-666KIWPS.mjs} +1 -1
- package/dist/{chunk-EVVDCPEA.mjs → chunk-6BDDYPGK.mjs} +1 -1
- package/dist/{chunk-5ALQQYYE.mjs → chunk-6JAIW45L.mjs} +1 -1
- package/dist/{chunk-OMVXDUX7.mjs → chunk-7O2TMDTD.mjs} +1 -1
- package/dist/{chunk-U7Q6ZRR3.mjs → chunk-BA6HNFXB.mjs} +1 -1
- package/dist/chunk-BP62X7AM.mjs +4 -0
- package/dist/{chunk-2VOU42KD.mjs → chunk-BZBPA7IN.mjs} +1 -1
- package/dist/{chunk-FN5C27GW.mjs → chunk-CYVVXQ2A.mjs} +1 -1
- package/dist/{chunk-PBRC3UOA.mjs → chunk-DAJNZDN6.mjs} +1 -1
- package/dist/{chunk-KEM3XJKI.mjs → chunk-DV2PY5FI.mjs} +1 -1
- package/dist/{chunk-FSYU3D5O.mjs → chunk-EDB4YGKM.mjs} +1 -1
- package/dist/chunk-EEELKBAD.mjs +4 -0
- package/dist/{chunk-VGQTRTPZ.mjs → chunk-ERUB6LU6.mjs} +1 -1
- package/dist/{chunk-65BHP4TM.mjs → chunk-FM2YMSMY.mjs} +1 -1
- package/dist/{chunk-CDJP2IDQ.mjs → chunk-HB4BHTNM.mjs} +1 -1
- package/dist/{chunk-KGSTIGCT.mjs → chunk-HBE5POUB.mjs} +1 -1
- package/dist/chunk-IEQL2U53.mjs +4 -0
- package/dist/{chunk-SX5U74MW.mjs → chunk-KETV2XVN.mjs} +1 -1
- package/dist/{chunk-GHXEOXV4.mjs → chunk-LBOJXQGC.mjs} +1 -1
- package/dist/{chunk-IPVKFQEY.mjs → chunk-MCE2INP2.mjs} +1 -1
- package/dist/{chunk-IH37BDR2.mjs → chunk-MJUFOUCH.mjs} +1 -1
- package/dist/{chunk-WPL2QWNG.mjs → chunk-MO44Z74W.mjs} +1 -1
- package/dist/{chunk-T5W5LMEK.mjs → chunk-MYDBD7LR.mjs} +1 -1
- package/dist/{chunk-X4Q7WZZS.mjs → chunk-ND4NY6SK.mjs} +1 -1
- package/dist/{chunk-UDQTFQR7.mjs → chunk-NZKW64NF.mjs} +1 -1
- package/dist/{chunk-YGFSXGAJ.mjs → chunk-OINI2PT2.mjs} +1 -1
- package/dist/{chunk-MUBDAI2K.mjs → chunk-PKSY2IBO.mjs} +1 -1
- package/dist/{chunk-YPK6OLRS.mjs → chunk-R4QBZLWY.mjs} +1 -1
- package/dist/{chunk-77KWI6EL.mjs → chunk-ROEJPYRW.mjs} +1 -1
- package/dist/{chunk-B7STYVDB.mjs → chunk-RVA4WIRX.mjs} +1 -1
- package/dist/{chunk-COI2LCY2.mjs → chunk-TASJS6US.mjs} +1 -1
- package/dist/{chunk-FYEE5UWZ.mjs → chunk-UVPODMUO.mjs} +1 -1
- package/dist/{chunk-NUQ6Z3WQ.mjs → chunk-V3H2VIQR.mjs} +1 -1
- package/dist/{chunk-DVGPU4EL.mjs → chunk-VEVYFZEV.mjs} +1 -1
- package/dist/{chunk-IC57R2EU.mjs → chunk-VXGRJCCM.mjs} +1 -1
- package/dist/chunk-W3ONOYB6.mjs +1 -0
- package/dist/{chunk-MQRRCCAR.mjs → chunk-WLA5QCBE.mjs} +1 -1
- package/dist/{chunk-URPKAQGD.mjs → chunk-WSDHDEFO.mjs} +1 -1
- package/dist/{chunk-L5MDFQGH.mjs → chunk-XLURG5E2.mjs} +1 -1
- package/dist/{chunk-ZY2PDUUB.mjs → chunk-Z6NED523.mjs} +1 -1
- package/dist/{chunk-CJF6GVGP.mjs → chunk-ZJZ5HYAW.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/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.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/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.stories.js +1 -1
- package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
- package/dist/components/CRM/DealDetails.mjs +1 -1
- package/dist/components/CRM/DealDetails.stories.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.js +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.d.ts +1 -9
- package/dist/components/CRM/KanbanColumn.js +1 -4
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.stories.js +1 -4
- package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.mjs +1 -1
- package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
- package/dist/components/CRM/NewDealForm.mjs +1 -1
- package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
- package/dist/components/CRM/index.js +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/AddEpicModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskSidebar.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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/index.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/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/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +8 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/tabs.js +1 -1
- package/dist/components/ui/tabs.mjs +1 -1
- package/dist/components/ui/tabs.stories.css +1 -0
- package/dist/components/ui/tabs.stories.js +4 -0
- package/dist/components/ui/tabs.stories.mjs +1 -0
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +14 -14
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.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/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +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/ServiceDetail.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/form/index.mjs +1 -1
- package/dist/sections/index.js +2 -2
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-3AUTMBDB.mjs +0 -1
- package/dist/chunk-DVF55CWB.mjs +0 -4
- package/dist/chunk-HFT5KFCM.mjs +0 -4
- package/dist/chunk-ZAXQ74I3.mjs +0 -4
package/dist/components/index.js
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
'use server'
|
|
5
5
|
'use strict'
|
|
6
6
|
|
|
7
|
-
"use strict";var Rc=Object.create;var tr=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Dc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Ic=Object.prototype.hasOwnProperty;var Ac=(e,t)=>{for(var a in t)tr(e,a,{get:t[a],enumerable:!0})},Pn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Dc(t))!Ic.call(e,r)&&r!==a&&tr(e,r,{get:()=>t[r],enumerable:!(o=Tc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?Rc(Mc(e)):{},Pn(t||!e||!e.__esModule?tr(a,"default",{value:e,enumerable:!0}):a,e)),Bc=e=>Pn(tr({},"__esModule",{value:!0}),e);var ru={};Ac(ru,{Alert:()=>ui,AlertDescription:()=>gi,AlertTitle:()=>fi,ApproveLeave:()=>ln,Avatar:()=>We,AvatarFallback:()=>Ue,AvatarImage:()=>Ve,Badge:()=>je,BannerBlock:()=>hi,BrandLogo:()=>ya,Breadcrumb:()=>gs,BreadcrumbEllipsis:()=>ws,BreadcrumbItem:()=>ys,BreadcrumbLink:()=>vs,BreadcrumbList:()=>bs,BreadcrumbPage:()=>hs,BreadcrumbSeparator:()=>xs,Breadcrumbs:()=>Hp,Button:()=>T,CMSLink:()=>ht,CRMCogeBoard:()=>Qp,CRMKanbanBoard:()=>qp,Calendar:()=>Ho,CalendarView:()=>un,CallToActionBlock:()=>Da,CallToActionBlockOld:()=>zm,Card:()=>$o,Categories:()=>Rp,ChatCardTask:()=>yn,ChatInterfaceMessages:()=>ou,ChatMessage:()=>vn,Checkbox:()=>vt,CodeBlock:()=>Pi,Collapsible:()=>Bt,CollapsibleContent:()=>ea,CollapsibleTrigger:()=>Zt,CollectionArchive:()=>mp,Command:()=>xr,CommandDialog:()=>Cl,CommandEmpty:()=>li,CommandGroup:()=>di,CommandInput:()=>ii,CommandItem:()=>mi,CommandList:()=>ni,CommandSeparator:()=>ci,CommandShortcut:()=>pi,Container:()=>Ji,ContentBlock:()=>_o,ContentCard:()=>qm,CopyButton:()=>Ni,CustomLink:()=>it,CustomerCard:()=>td,DarkTop:()=>Li,DealCard:()=>fn,DealDetails:()=>Qo,Dialog:()=>st,DialogClose:()=>vr,DialogContent:()=>Qe,DialogDescription:()=>si,DialogFooter:()=>ri,DialogHeader:()=>bt,DialogOverlay:()=>hr,DialogPortal:()=>oi,DialogTitle:()=>yt,DialogTrigger:()=>yr,DropdownMenu:()=>En,DropdownMenuCheckboxItem:()=>Ss,DropdownMenuContent:()=>Ps,DropdownMenuGroup:()=>Fn,DropdownMenuItem:()=>ks,DropdownMenuLabel:()=>Ts,DropdownMenuPortal:()=>zn,DropdownMenuRadioGroup:()=>Gn,DropdownMenuRadioItem:()=>Rs,DropdownMenuSeparator:()=>Ds,DropdownMenuShortcut:()=>Ms,DropdownMenuSub:()=>On,DropdownMenuSubContent:()=>Cs,DropdownMenuSubTrigger:()=>Ns,DropdownMenuTrigger:()=>Hn,DynamicIcon:()=>Ie,EventCard:()=>ad,FeatureCard:()=>Er,FeatureGrid:()=>md,FeaturesBlock:()=>Ia,Filter:()=>Tp,FlowPrintable:()=>Ld,Footer:()=>$p,Header:()=>Wp,HeaderDesktop:()=>an,HeaderMobile:()=>rn,HeadingImage:()=>ip,Hero:()=>Ym,HighImpactHero:()=>Yi,HolidayGrid:()=>pn,HolidayTracker:()=>Xp,HoverCard:()=>vl,HoverCardContent:()=>ai,HoverCardTrigger:()=>hl,Image:()=>nd,ImageBlock:()=>Di,InfoTile:()=>Jm,Input:()=>_e,Insight:()=>Qm,KanbanColumn:()=>Jo,Label:()=>J,LightTop:()=>Ei,Logo:()=>pp,LowImpactHero:()=>Qi,MOTD:()=>ep,Mask:()=>Bp,Media:()=>$t,MediaBlock:()=>Wt,MediumImpactHero:()=>Ki,NewCustomerForm:()=>gn,NewDealForm:()=>bn,NewsGrid:()=>Ad,OrgChart:()=>op,PagePrintable:()=>Ed,PageRange:()=>gp,PageShape:()=>jo,Pagination:()=>Sp,PayloadPagination:()=>bp,Popover:()=>Ao,PopoverAnchor:()=>ul,PopoverContent:()=>Qa,PopoverTrigger:()=>Bo,PostHero:()=>Ip,PricingCard:()=>Xm,Printable:()=>hp,ProjectCard:()=>id,ProjectTeam:()=>Pp,ProposalSummary:()=>rp,RelatedContent:()=>kp,RelatedPagesMenu:()=>Vp,RelatedPosts:()=>cp,RenderBlocks:()=>ba,RenderBlocksWithShapes:()=>lp,RenderHero:()=>Ep,RequestLeave:()=>mn,ReusableContentBlock:()=>Bi,RichText:()=>Z,ScrollArea:()=>St,ScrollBar:()=>br,SectionHero:()=>en,Select:()=>ca,SelectContent:()=>Ot,SelectGroup:()=>Tm,SelectItem:()=>Gt,SelectLabel:()=>Dl,SelectScrollDownButton:()=>vi,SelectScrollUpButton:()=>yi,SelectSeparator:()=>Ml,SelectTrigger:()=>zt,SelectValue:()=>ma,Separator:()=>ho,ServiceCard:()=>jm,Sheet:()=>or,SheetClose:()=>Yn,SheetContent:()=>wo,SheetDescription:()=>Hs,SheetFooter:()=>Ls,SheetHeader:()=>Bs,SheetOverlay:()=>rr,SheetPortal:()=>As,SheetTitle:()=>Es,SheetTrigger:()=>Xn,Sidebar:()=>wa,SidebarContent:()=>aa,SidebarFooter:()=>Ca,SidebarGroup:()=>at,SidebarGroupAction:()=>Ws,SidebarGroupContent:()=>ft,SidebarGroupLabel:()=>Et,SidebarHeader:()=>Na,SidebarInput:()=>$s,SidebarInset:()=>_s,SidebarLeft:()=>xp,SidebarMenu:()=>$e,SidebarMenuAction:()=>Po,SidebarMenuBadge:()=>Vs,SidebarMenuButton:()=>ot,SidebarMenuItem:()=>Me,SidebarMenuSkeleton:()=>Us,SidebarMenuSub:()=>oa,SidebarMenuSubButton:()=>sa,SidebarMenuSubItem:()=>ra,SidebarProvider:()=>zs,SidebarRail:()=>Gs,SidebarRight:()=>Cp,SidebarSeparator:()=>Co,SidebarTrigger:()=>Os,SimpleHeader:()=>zp,Skeleton:()=>ce,SlideShow:()=>Dd,Tabs:()=>Dm,TabsContent:()=>Am,TabsList:()=>Mm,TabsTrigger:()=>Im,TextAndImages:()=>Bd,Textarea:()=>pa,Theme:()=>_r,ThemeProvider:()=>Ap,ThemeWithShapes:()=>vd,Toast:()=>Ro,ToastAction:()=>Ys,ToastClose:()=>To,ToastDescription:()=>Mo,ToastProvider:()=>fr,ToastTitle:()=>Do,ToastViewport:()=>So,Toaster:()=>nl,Toggle:()=>Ks,ToggleGroup:()=>Qs,ToggleGroupItem:()=>Js,Tooltip:()=>lr,TooltipContent:()=>No,TooltipProvider:()=>nr,TooltipTrigger:()=>dr,VideoHeader:()=>Gp,WhyUs:()=>sp,badgeVariants:()=>bi,buttonVariants:()=>ta,toggleVariants:()=>Io,useIsMobile:()=>ir,useSidebar:()=>qa,useToast:()=>ur});module.exports=Bc(ru);var Ua=h(require("react")),ar=require("@radix-ui/react-icons"),Ln=require("@radix-ui/react-slot");var Bn=require("clsx");var us="-",Lc=e=>{let t=Hc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(us);return n[0]===""&&n.length!==1&&n.shift(),Rn(n,t)||Ec(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},Rn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Rn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(us);return t.validators.find(({validator:l})=>l(s))?.classGroupId},kn=/^\[(.+)\]$/,Ec=e=>{if(kn.test(e)){let t=kn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Hc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return zc(Object.entries(e.classGroups),a).forEach(([s,l])=>{ps(l,o,s,t)}),o},ps=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Sn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Fc(r)){ps(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ps(l,Sn(t,s),a,o)})})},Sn=(e,t)=>{let a=e;return t.split(us).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Fc=e=>e.isThemeGetter,zc=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[t+l,n])):s);return[a,r]}):e,Oc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},Tn="!",Gc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],m=0,d=0,p;for(let v=0;v<n.length;v++){let M=n[v];if(m===0){if(M===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(M==="/"){p=v;continue}}M==="["?m++:M==="]"&&m--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Tn),b=g?f.substring(1):f,u=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:l}):l},_c=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},$c=e=>({cache:Oc(e.cacheSize),parseClassName:Gc(e),...Lc(e)}),Wc=/\s+/,Vc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Wc),n="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:g}=a(m),b=!!g,u=o(b?f.substring(0,g):f);if(!u){if(!b){n=m+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=m+(n.length>0?" "+n:n);continue}b=!1}let v=_c(d).join(":"),M=p?v+Tn:v,O=M+u;if(s.includes(O))continue;s.push(O);let N=r(u,b);for(let L=0;L<N.length;++L){let w=N[L];s.push(M+w)}n=m+(n.length>0?" "+n:n)}return n};function Uc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Dn(t))&&(o&&(o+=" "),o+=a);return o}var Dn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Dn(e[o]))&&(a&&(a+=" "),a+=t);return a};function jc(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=$c(m),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let m=o(c);if(m)return m;let d=Vc(c,a);return r(c,d),d}return function(){return s(Uc.apply(null,arguments))}}var te=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Mn=/^\[(?:([a-tt-]+):)?(.+)\]$/i,Xc=/^\d+\/\d+$/,Yc=new Set(["px","full","screen"]),qc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|tt)$/,Kc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|tt|sr|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jc=/^(inset_)?-?((\d+)?\.?(\d+)[a-tt]+|0)tt-?((\d+)?\.?(\d+)[a-tt]+|0)/,Zc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=e=>Wa(e)||Yc.has(e)||Xc.test(e),Qt=e=>Va(e,"length",nm),Wa=e=>!!e&&!Number.isNaN(Number(e)),ms=e=>Va(e,"number",Wa),yo=e=>!!e&&Number.isInteger(Number(e)),em=e=>e.endsWith("%")&&Wa(e.slice(0,-1)),I=e=>Mn.test(e),Jt=e=>qc.test(e),tm=new Set(["length","size","percentage"]),am=e=>Va(e,tm,In),om=e=>Va(e,"position",In),rm=new Set(["image","url"]),sm=e=>Va(e,rm,dm),im=e=>Va(e,"",lm),vo=()=>!0,Va=(e,t,a)=>{let o=Mn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},nm=e=>Kc.test(e)&&!Qc.test(e),In=()=>!1,lm=e=>Jc.test(e),dm=e=>Zc.test(e);var cm=()=>{let e=te("colors"),t=te("spacing"),a=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),l=te("borderSpacing"),n=te("borderWidth"),c=te("contrast"),m=te("grayscale"),d=te("hueRotate"),p=te("invert"),f=te("gap"),g=te("gradientColorStops"),b=te("gradientColorStopPositions"),u=te("inset"),v=te("margin"),M=te("opacity"),O=te("padding"),N=te("saturate"),L=te("scale"),w=te("sepia"),Q=te("skew"),$a=te("space"),hn=te("translate"),ns=()=>["auto","contain","none"],ls=()=>["auto","hidden","clip","visible","scroll"],ds=()=>["auto",I,t],re=()=>[I,t],xn=()=>["",At,Qt],Zo=()=>["auto",Wa,I],wn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],er=()=>["solid","dashed","dotted","double","none"],Nn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],cs=()=>["start","end","center","between","around","evenly","stretch"],bo=()=>["","0",I],Cn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],It=()=>[Wa,I];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[At,Qt],blur:["none","",Jt,I],brightness:It(),borderColor:[e],borderRadius:["none","","full",Jt,I],borderSpacing:re(),borderWidth:xn(),contrast:It(),grayscale:bo(),hueRotate:It(),invert:bo(),gap:re(),gradientColorStops:[e],gradientColorStopPositions:[em,Qt],inset:ds(),margin:ds(),opacity:It(),padding:re(),saturate:It(),scale:It(),sepia:bo(),skew:It(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":Cn()}],"break-before":[{"break-before":Cn()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...wn(),I]}],overflow:[{overflow:ls()}],"overflow-tt":[{"overflow-tt":ls()}],"overflow-tt":[{"overflow-tt":ls()}],overscroll:[{overscroll:ns()}],"overscroll-tt":[{"overscroll-tt":ns()}],"overscroll-tt":[{"overscroll-tt":ns()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-tt":[{"inset-tt":[u]}],"inset-tt":[{"inset-tt":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],tt:[{tt:["auto",yo,I]}],basis:[{basis:ds()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:bo()}],shrink:[{shrink:bo()}],order:[{order:["first","last","none",yo,I]}],"grid-cols":[{"grid-cols":[vo]}],"col-start-end":[{col:["auto",{span:["full",yo,I]},I]}],"col-start":[{"col-start":Zo()}],"col-end":[{"col-end":Zo()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[yo,I]},I]}],"row-start":[{"row-start":Zo()}],"row-end":[{"row-end":Zo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[f]}],"gap-tt":[{"gap-tt":[f]}],"gap-tt":[{"gap-tt":[f]}],"justify-content":[{justify:["normal",...cs()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...cs(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...cs(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],tt:[{tt:[O]}],tt:[{tt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],tt:[{tt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-tt":[{"space-tt":[$a]}],"space-tt-reverse":["space-tt-reverse"],"space-tt":[{"space-tt":[$a]}],"space-tt-reverse":["space-tt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ms]}],"font-family":[{font:[vo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Wa,ms]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","hd-underline"],"text-decoration-style":[{decoration:[...er(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,Qt]}],"underline-offset":[{"underline-offset":["auto",At,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...wn(),om]}],"bg-repeat":[{bg:["hd-repeat",{repeat:["","tt","tt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",am]}],"bg-image":[{bg:["none",{"gradient-tt":["t","tr","r","br","b","tt","l","jn"]},sm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-tt-pos":[{tt:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-tt":[{tt:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-sr":[{"rounded-sr":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-al":[{"rounded-al":[s]}],"rounded-jn":[{"rounded-jn":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"border-w":[{border:[n]}],"border-w-tt":[{"border-tt":[n]}],"border-w-tt":[{"border-tt":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...er(),"hidden"]}],"divide-tt":[{"divide-tt":[n]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-tt":[{"divide-tt":[n]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:er()}],"border-color":[{border:[r]}],"border-color-tt":[{"border-tt":[r]}],"border-color-tt":[{"border-tt":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...er()]}],"outline-offset":[{"outline-offset":[At,I]}],"outline-w":[{outline:[At,Qt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xn()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[At,Qt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,im]}],"shadow-color":[{shadow:[vo]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...Nn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Nn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Jt,I]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[N]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:It()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:It()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-tt":[{"scale-tt":[L]}],"scale-tt":[{"scale-tt":[L]}],rotate:[{rotate:[yo,I]}],"translate-tt":[{"translate-tt":[hn]}],"translate-tt":[{"translate-tt":[hn]}],"skew-tt":[{"skew-tt":[Q]}],"skew-tt":[{"skew-tt":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","hd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","tt-resize","nw-resize","tt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","tt","tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","tt","tt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-tt":[{"touch-pan":["tt","left","right"]}],"touch-tt":[{"touch-pan":["tt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[At,Qt,ms]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-tt","overflow-tt"],overscroll:["overscroll-tt","overscroll-tt"],inset:["inset-tt","inset-tt","start","end","top","right","bottom","left"],"inset-tt":["right","left"],"inset-tt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-tt","gap-tt"],p:["px","py","ps","tt","tt","pr","pb","pl"],px:["pr","pl"],py:["tt","pb"],m:["mx","my","ms","me","tt","mr","mb","ml"],mx:["mr","ml"],my:["tt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-sr","rounded-tt","rounded-tt","rounded-al","rounded-jn","rounded-tr","rounded-br","rounded-tt"],"rounded-s":["rounded-sr","rounded-al"],"rounded-e":["rounded-tt","rounded-tt"],"rounded-t":["rounded-jn","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-tt"],"rounded-l":["rounded-jn","rounded-tt"],"border-spacing":["border-spacing-tt","border-spacing-tt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-tt":["border-w-r","border-w-l"],"border-w-tt":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-tt":["border-color-r","border-color-l"],"border-color-tt":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-tt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-tt","scroll-tt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-tt","scroll-pb"],touch:["touch-tt","touch-tt","touch-pz"],"touch-tt":["touch"],"touch-tt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var An=jc(cm);function i(...e){return An((0,Bn.clsx)(e))}function fs(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),n.richText?.root?.children&&n.richText?.root?.children.length===1){let c=n.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of c)m.children[0]&&l.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),l}),r=mm(e.layout);return{tableOfContents:o,contentWithIds:r}}function mm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var tt=require("react/jsx-runtime"),gs=Ua.forwardRef(({...e},t)=>(0,tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));gs.displayName="Breadcrumb";var bs=Ua.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ol",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));bs.displayName="BreadcrumbList";var ys=Ua.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));ys.displayName="BreadcrumbItem";var vs=Ua.forwardRef(({asChild:e,className:t,...a},o)=>(0,tt.jsx)(e?Ln.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));vs.displayName="BreadcrumbLink";var hs=Ua.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));hs.displayName="BreadcrumbPage";var xs=({children:e,className:t,...a})=>(0,tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,tt.jsx)(ar.ChevronRightIcon,{})});xs.displayName="BreadcrumbSeparator";var ws=({className:e,...t})=>(0,tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(ar.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More"})]});ws.displayName="BreadcrumbElipssis";var ja=h(require("@radix-ui/react-collapsible")),Bt=ja.Root,Zt=ja.CollapsibleTrigger,ea=ja.CollapsibleContent;var Lt=h(require("react")),E=h(require("@radix-ui/react-dropdown-menu"));var En=E.Root,Hn=E.Trigger,Fn=E.Group,zn=E.Portal,On=E.Sub,Gn=E.RadioGroup,Ns=Lt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,tt.jsxs)(E.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,tt.jsx)(ar.ChevronRightIcon,{className:"ml-auto"})]}));Ns.displayName=E.SubTrigger.displayName;var Cs=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.SubContent,{ref:a,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Cs.displayName=E.SubContent.displayName;var Ps=Lt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(E.Portal,{children:(0,tt.jsx)(E.Content,{ref:o,sideOffset:t,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ps.displayName=E.Content.displayName;var ks=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ks.displayName=E.Item.displayName;var Ss=Lt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,tt.jsxs)(E.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(ar.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ss.displayName=E.CheckboxItem.displayName;var Rs=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(E.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(ar.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Rs.displayName=E.RadioItem.displayName;var Ts=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ts.displayName=E.Label.displayName;var Ds=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));Ds.displayName=E.Separator.displayName;var Ms=({className:e,...t})=>(0,tt.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});Ms.displayName="DropdownMenuShortcut";var _n=h(require("react"));var _e=_n.forwardRef(({className:e,type:t,...a},o)=>(0,$n.jsx)("input",{type:t,className:i("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));_e.displayName="Input";var Wn=h(require("react")),Is=h(require("@radix-ui/react-separator"));var ho=Wn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,tt.jsx)(Is.Root,{ref:r,decorative:a,orientation:t,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));ho.displayName=Is.Root.displayName;var xo=h(require("react")),de=h(require("@radix-ui/react-dialog")),jn=require("class-variance-authority");var or=de.Root,Xn=de.Trigger,Yn=de.Close,As=de.Portal,rr=xo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Overlay,{className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));rr.displayName=de.Overlay.displayName;var pm=(0,jn.cva)("fixed tt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-tt-0 top-0 border-b data-[state=closed]:slide-out-tt-top data-[state=open]:slide-in-from-top",bottom:"inset-tt-0 bottom-0 border-t data-[state=closed]:slide-out-tt-bottom data-[state=open]:slide-in-from-bottom",left:"inset-tt-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-tt-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-tt-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-tt-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wo=xo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,tt.jsxs)(As,{children:[(0,tt.jsx)(rr,{}),(0,tt.jsxs)(de.Content,{ref:r,className:i(pm({side:e}),t),...o,children:[(0,tt.jsxs)(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,tt.jsx)(ar.Cross2Icon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));wo.displayName=de.Content.displayName;var Bs=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-tt-2 text-center sm:text-left",e),...t});Bs.displayName="SheetHeader";var Ls=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});Ls.displayName="SheetFooter";var Es=xo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));Es.displayName=de.Title.displayName;var Hs=xo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Hs.displayName=de.Description.displayName;var F=h(require("react")),al=require("lucide-react");var sr=require("react"),ir=(e=768)=>{let[t,a]=(0,sr.useState)(!1);return(0,sr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Qn=h(require("react")),ta=(0,jn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Qn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,tt.jsx)(e?Ln.Slot:"button",{className:i(ta({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function ce({className:e,...t}){return(0,tt.jsx)("div",{className:i("animate-pulse rounded-md bg-primary/10",e),...t})}var el=h(require("react")),ut=h(require("@radix-ui/react-tooltip"));var nr=ut.Provider,lr=ut.Root,dr=ut.Trigger,No=el.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(ut.Portal,{children:(0,tt.jsx)(ut.Content,{ref:o,sideOffset:t,className:i("tt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));No.displayName=ut.Content.displayName;var um="sidebar:state",fm=60*60*24*7,gm="16rem",bm="18rem",ym="3rem",vm="b",ol=F.createContext(null);function qa(){let e=F.useContext(ol);if(!e)throw new Error("useSidebar must tt used within a SidebarProvider.");return e}var zs=F.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=ir(),[m,d]=F.useState(!1),[p,f]=F.useState(e),g=t??p,b=F.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(g):O);f(O),document.cookie=`${um}=${g}; path=/; max-age=${fm}`},[a,g]),u=F.useCallback(()=>c?d(O=>!O):b(O=>!O),[c,b,d]);F.useEffect(()=>{let O=N=>{N.key===vm&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",M=F.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,m,d,u]);return(0,tt.jsx)(ol.Provider,{value:M,children:(0,tt.jsx)(nr,{delayDuration:0,children:(0,tt.jsx)("div",{style:{"--sidebar-width":gm,"--sidebar-width-icon":ym,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});zs.displayName="SidebarProvider";var wa=F.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:m,setOpenMobile:d}=qa();return a==="none"?(0,tt.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,tt.jsx)(or,{open:m,onOpenChange:d,...s,children:(0,tt.jsx)(wo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":bm},side:e,children:(0,tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,tt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,tt.jsx)("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,tt.jsx)("div",{className:i("duration-200 fixed top-14 bottom-0 tt-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4)tt+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,tt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});wa.displayName="Sidebar";var Os=F.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=qa();return(0,tt.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,tt.jsx)(al.PanelLeft,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Os.displayName="SidebarTrigger";var Gs=F.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=qa();return(0,tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-tt-0 tt-20 hidden w-4 -translate-tt-1/2 transition-all ease-linear after:absolute after:inset-tt-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]tt&]:cursor-w-resize [[data-side=right]tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]tt&]:-left-2",e),...t})});Gs.displayName="SidebarRail";var _s=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("main",{ref:a,className:i("flex flex-1 flex-col bg-background overflow-tt-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-tt md:peer-data-[variant=inset]:shadow",e),...t}));_s.displayName="SidebarInset";var $s=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(_e,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));$s.displayName="SidebarInput";var Na=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));Na.displayName="SidebarHeader";var Ca=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));Ca.displayName="SidebarFooter";var Co=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ho,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));Co.displayName="SidebarSeparator";var aa=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));aa.displayName="SidebarContent";var at=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));at.displayName="SidebarGroup";var Et=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Ln.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-tt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Et.displayName="SidebarGroupLabel";var Ws=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Ln.Slot:"button",{ref:o,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Ws.displayName="SidebarGroupAction";var ft=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));ft.displayName="SidebarGroupContent";var $e=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));$e.displayName="SidebarMenu";var Me=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));Me.displayName="SidebarMenuItem";var hm=(0,jn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ot=F.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?Ln.Slot:"button",{isMobile:m,state:d}=qa(),p=(0,tt.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(hm({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,tt.jsxs)(lr,{children:[(0,tt.jsx)(dr,{asChild:!0,children:p}),(0,tt.jsx)(No,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ot.displayName="SidebarMenuButton";var Po=F.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,tt.jsx)(t?Ln.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));Po.displayName="SidebarMenuAction";var Vs=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Vs.displayName="SidebarMenuBadge";var Us=F.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=F.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,tt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,tt.jsx)(ce,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,tt.jsx)(ce,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Us.displayName="SidebarMenuSkeleton";var oa=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));oa.displayName="SidebarMenuSub";var ra=F.forwardRef(({...e},t)=>(0,tt.jsx)("li",{ref:t,...e}));ra.displayName="SidebarMenuSubItem";var sa=F.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,tt.jsx)(e?Ln.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("flex h-7 min-w-0 -translate-tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));sa.displayName="SidebarMenuSubButton";var pr=h(require("react")),xm=1,wm=1e6;var js=0;function Nm(){return js=(js+1)%Number.MAX_SAFE_INTEGER,js.toString()}var Xs=new Map,rl=e=>{if(Xs.has(e))return;let t=setTimeout(()=>{Xs.delete(e),ko({type:"REMOVE_TOAST",toastId:e})},wm);Xs.set(e,t)},Cm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,xm)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?rl(a):e.toasts.forEach(o=>{rl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},cr=[],mr={toasts:[]};function ko(e){mr=Cm(mr,e),cr.forEach(t=>{t(mr)})}function Pm({...e}){let t=Nm(),a=r=>ko({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>ko({type:"DISMISS_TOAST",toastId:t});return ko({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function ur(){let[e,t]=pr.useState(mr);return pr.useEffect(()=>(cr.push(t),()=>{let a=cr.indexOf(t);a>-1&&cr.splice(a,1)}),[e]),{...e,toast:Pm,dismiss:a=>ko({type:"DISMISS_TOAST",toastId:a})}}var Pa=h(require("react")),ye=h(require("@radix-ui/react-toast"));var fr=ye.Provider,So=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Viewport,{ref:a,className:i("fixed top-0 tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));So.displayName=ye.Viewport.displayName;var km=(0,jn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-tt-0 data-[swipe=end]:translate-tt-[var(--radix-toast-swipe-end-tt)] data-[swipe=move]:translate-tt-[var(--radix-toast-swipe-move-tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-tt-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ro=Pa.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)(ye.Root,{ref:o,className:i(km({variant:t}),e),...a}));Ro.displayName=ye.Root.displayName;var Ys=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Action,{ref:a,className:i("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ys.displayName=ye.Action.displayName;var To=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Close,{ref:a,className:i("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,tt.jsx)(al.tt,{className:"h-4 w-4"})}));To.displayName=ye.Close.displayName;var Do=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));Do.displayName=ye.Title.displayName;var Mo=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Mo.displayName=ye.Description.displayName;function nl(){let{toasts:e}=ur();return(0,tt.jsxs)(fr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,tt.jsxs)(Ro,{...s,children:[(0,tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,tt.jsx)(Do,{children:a}),o&&(0,tt.jsx)(Mo,{children:o})]}),r,(0,tt.jsx)(To,{})]},t)}),(0,tt.jsx)(So,{})]})}var ll=h(require("react")),qs=h(require("@radix-ui/react-toggle"));var Io=(0,jn.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ks=ll.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,tt.jsx)(qs.Root,{ref:r,className:i(Io({variant:t,size:a,className:e})),...o}));Ks.displayName=qs.Root.displayName;var ka=h(require("react")),Ka=h(require("@radix-ui/react-toggle-group"));var ml=ka.createContext({size:"default",variant:"default"}),Qs=ka.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,tt.jsx)(Ka.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,tt.jsx)(ml.Provider,{value:{variant:t,size:a},children:o})}));Qs.displayName=Ka.Root.displayName;var Js=ka.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=ka.useContext(ml);return(0,tt.jsx)(Ka.Item,{ref:s,className:i(Io({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Js.displayName=Ka.Item.displayName;var Zs=h(require("react")),rt=h(require("@radix-ui/react-scroll-area"));var St=Zs.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(rt.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,tt.jsx)(rt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,tt.jsx)(br,{}),(0,tt.jsx)(rt.Corner,{})]}));St.displayName=rt.Root.displayName;var br=Zs.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,tt.jsx)(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,tt.jsx)(rt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));br.displayName=rt.ScrollAreaScrollbar.displayName;var pl=h(require("react")),gt=h(require("@radix-ui/react-popover"));var Ao=gt.Root,Bo=gt.Trigger,ul=gt.Anchor,Qa=pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(gt.Portal,{children:(0,tt.jsx)(gt.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Qa.displayName=gt.Content.displayName;var fl=h(require("react")),ti=h(require("@radix-ui/react-label"));var Sm=(0,jn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=fl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ti.Root,{ref:a,className:i(Sm(),e),...t}));J.displayName=ti.Root.displayName;var yl=h(require("react")),Sa=h(require("@radix-ui/react-hover-card"));var vl=Sa.Root,hl=Sa.Trigger,ai=yl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(Sa.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ai.displayName=Sa.Content.displayName;var Lo=h(require("react")),me=h(require("@radix-ui/react-dialog"));var st=me.Root,yr=me.Trigger,oi=me.Portal,vr=me.Close,hr=Lo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Overlay,{ref:a,className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));hr.displayName=me.Overlay.displayName;var Qe=Lo.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(oi,{children:[(0,tt.jsx)(hr,{}),(0,tt.jsxs)(me.Content,{ref:o,className:i("fixed left-[50%] top-[50%] tt-50 grid w-full max-w-lg translate-tt-[-50%] translate-tt-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-tt-left-1/2 data-[state=closed]:slide-out-tt-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,tt.jsxs)(me.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,tt.jsx)(al.tt,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Qe.displayName=me.Content.displayName;var bt=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-tt-1.5 text-center sm:text-left",e),...t});bt.displayName="DialogHeader";var ri=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});ri.displayName="DialogFooter";var yt=Lo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));yt.displayName=me.Title.displayName;var si=Lo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));si.displayName=me.Description.displayName;var la=h(require("react")),He=require("cmdk");var xr=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command,{ref:a,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));xr.displayName=He.Command.displayName;var Cl=({children:e,...t})=>(0,tt.jsx)(st,{...t,children:(0,tt.jsx)(Qe,{className:"overflow-hidden p-0",children:(0,tt.jsx)(xr,{className:"[&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground [&tt[cmdk-group]:not([hidden])tt~[cmdk-group]]:tt-0 [&tt[cmdk-group]]:px-2 [&tt[cmdk-input-wrapper]_svg]:h-5 [&tt[cmdk-input-wrapper]_svg]:w-5 [&tt[cmdk-input]]:h-12 [&tt[cmdk-item]]:px-2 [&tt[cmdk-item]]:py-3 [&tt[cmdk-item]_svg]:h-5 [&tt[cmdk-item]_svg]:w-5",children:e})})}),ii=la.forwardRef(({className:e,...t},a)=>(0,tt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,tt.jsx)(al.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,tt.jsx)(He.Command.Input,{ref:a,className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));ii.displayName=He.Command.Input.displayName;var ni=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.List,{ref:a,className:i("max-h-[300px] overflow-tt-auto overflow-tt-hidden",e),...t}));ni.displayName=He.Command.List.displayName;var li=la.forwardRef((e,t)=>(0,tt.jsx)(He.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));li.displayName=He.Command.Empty.displayName;var di=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Group,{ref:a,className:i("overflow-hidden p-1 text-foreground [&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:py-1.5 [&tt[cmdk-group-heading]]:text-xs [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));di.displayName=He.Command.Group.displayName;var ci=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));ci.displayName=He.Command.Separator.displayName;var mi=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Item,{ref:a,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));mi.displayName=He.Command.Item.displayName;var pi=({className:e,...t})=>(0,tt.jsx)("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});pi.displayName="CommandShortcut";var wr=h(require("react"));var Rm=(0,jn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-tt-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ui=wr.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)("div",{ref:o,role:"alert",className:i(Rm({variant:t}),e),...a}));ui.displayName="Alert";var fi=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));fi.displayName="AlertTitle";var gi=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));gi.displayName="AlertDescription";var Cr=h(require("react")),Ft=h(require("@radix-ui/react-avatar"));var We=Cr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));We.displayName=Ft.Root.displayName;var Ve=Cr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));Ve.displayName=Ft.Image.displayName;var Ue=Cr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ue.displayName=Ft.Fallback.displayName;var bi=(0,jn.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function je({className:e,variant:t,...a}){return(0,tt.jsx)("div",{className:i(bi({variant:t}),e),...a})}var Eo=h(require("@radix-ui/react-checkbox")),Tl=h(require("react")),vt=Tl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Eo.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,tt.jsx)(Eo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,tt.jsx)(al.Check,{className:"h-4 w-4"})})}));vt.displayName=Eo.Root.displayName;var G=h(require("@radix-ui/react-select")),da=h(require("react")),ca=G.Root,Tm=G.Group,ma=G.Value,zt=da.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,tt.jsx)(G.Icon,{asChild:!0,children:(0,tt.jsx)(al.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));zt.displayName=G.Trigger.displayName;var yi=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(al.ChevronUp,{className:"h-4 w-4"})}));yi.displayName=G.ScrollUpButton.displayName;var vi=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(al.ChevronDown,{className:"h-4 w-4"})}));vi.displayName=G.ScrollDownButton.displayName;var Ot=da.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,tt.jsx)(G.Portal,{children:(0,tt.jsxs)(G.Content,{className:i("relative tt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-tt-1 data-[side=left]:-translate-tt-1 data-[side=right]:translate-tt-1 data-[side=top]:-translate-tt-1",t),position:a,ref:r,...o,children:[(0,tt.jsx)(yi,{}),(0,tt.jsx)(G.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,tt.jsx)(vi,{})]})}));Ot.displayName=G.Content.displayName;var Dl=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Label,{className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Dl.displayName=G.Label.displayName;var Gt=da.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(G.ItemIndicator,{children:(0,tt.jsx)(al.Check,{className:"h-4 w-4"})})}),(0,tt.jsx)(G.ItemText,{children:e})]}));Gt.displayName=G.Item.displayName;var Ml=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ml.displayName=G.Separator.displayName;var Il=h(require("react")),pa=Il.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));pa.displayName="Textarea";var Bl=require("react-day-picker");function Ho({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,tt.jsx)(Bl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-tt-4 sm:space-tt-4 sm:space-tt-0",month:"space-tt-4",caption:"flex justify-center tt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-tt-1 flex items-center",nav_button:i(ta({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-tt-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:tt-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:i(ta({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Ho.displayName="Calendar";var ua=h(require("@radix-ui/react-tabs"));function Dm({className:e,...t}){return(0,tt.jsx)(ua.Root,{"data-slot":"tabs",className:i("flex flex-col gap-2",e),...t})}function Mm({className:e,...t}){return(0,tt.jsx)(ua.List,{"data-slot":"tabs-list",className:i("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Im({className:e,...t}){return(0,tt.jsx)(ua.Trigger,{"data-slot":"tabs-trigger",className:i("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Am({className:e,...t}){return(0,tt.jsx)(ua.Content,{"data-slot":"tabs-content",className:i("flex-1 outline-none",e),...t})}var hi=({className:e,content:t,style:a})=>(0,tt.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,tt.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,tt.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var xi=h(require("next/link")),ht=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:n,size:c,url:m}=e,d=t==="reference"&&typeof n?.value=="object"&&n.value.slug?`${n?.relationTo!=="pages"?`/${n?.relationTo}`:""}/${n.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,tt.jsxs)(xi.default,{className:i(r),href:d||m||"",...f,children:[s&&s,o&&o]}):(0,tt.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,tt.jsxs)(xi.default,{className:i(r),href:d||m||"",...f,children:[s&&s,o&&o]})})};function Rr({className:e}){return i("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Bm({className:e,...t}){return(0,tt.jsx)("input",{...t,className:Rr({className:e})})}function Tr({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Bm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-tt-1/2 text-accent",children:e})]})}function Lm({className:e,...t}){return(0,tt.jsx)("textarea",{...t,className:i(Rr({}),"resize-none md:min-h-[130px]",e)})}function El({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Lm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Fl=require("formik"),zl=require("react-icons/fa6"),Ta=h(require("yup"));async function Hl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL sr not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let n=await fetch(s,{method:"POST",mode:"hd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var wi=require("sonner"),xt={tooShort:"Must tt at least ${min} characters",tooLong:"Must tt at most ${max} characters",required:"This field sr required",email:"Invalid email format"},Em=Ta.object().shape({name:Ta.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),email:Ta.string().email(xt.email).required(xt.required),subject:Ta.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),message:Ta.string().min(2,xt.tooShort).max(300,xt.tooLong).required(xt.required)}),Dr=i("!pr-[44px] text-foreground"),Mr=i("!border-red-600 border"),Ir=i("sr-only");function Ol(){return(0,tt.jsx)(Fl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Em,onSubmit:async(e,{resetForm:t})=>{let a=await Hl(e);a.data===null?wi.toast.error(a.message):(wi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,tt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 tt-2 lg:grid-cols-2",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Tr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(zl.FaUser,{className:"text-primary"}),className:i(Dr,e.name&&t.name&&Mr)}),e.name&&t.name&&(0,tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ir,children:e.name})]}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Tr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Hm,{}),className:i(Dr,e.email&&t.email&&Mr)}),e.email&&t.email&&(0,tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ir,children:e.email})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(Tr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:i(Dr,e.subject&&t.subject&&Mr)}),e.subject&&t.subject&&(0,tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ir,children:e.subject})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(El,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Fm,{}),className:i(Dr,e.message&&t.message&&Mr)}),e.message&&t.message&&(0,tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ir,children:e.message})]}),(0,tt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,tt.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Hm(){return(0,tt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Fm(){return(0,tt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var zm=({links:e,richText:t})=>(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,tt.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,tt.jsx)(ht,{size:"lg",...a},o))})]})}),Da=({links:e,richText:t})=>{let[a,o]=(0,sr.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,tt.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,tt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,tt.jsx)(Z,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,tt.jsx)("div",{className:"tt-10 flex items-center justify-center gap-tt-6",children:(0,tt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?(0,tt.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white hd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},m):(0,tt.jsx)(ht,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white hd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},m))})})]})}),a&&(0,tt.jsx)("div",{className:"absolute inset-0 tt-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,tt.jsxs)("div",{className:"bg-white p-6 tt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,tt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,tt.jsx)(Ol,{})," "]})})]})};var Ar=require("prism-react-renderer");function Ni({code:e}){let[t,a]=(0,$l.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,tt.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,tt.jsx)("p",{children:t}),(0,tt.jsx)("div",{className:"w-6 h-6",children:(0,tt.jsx)(al.ClipboardCopy,{})})]})})}var Wl=({code:e,language:t=""})=>e?(0,tt.jsx)(Ar.Highlight,{code:e,language:t,theme:Ar.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-tt-auto",children:[r.map((s,l)=>(0,tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,tt.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,tt.jsx)("span",{...o({token:n})},c))})]},l)),(0,tt.jsx)(Ni,{code:e})]})}):null;var Pi=({className:e,code:t,language:a})=>(0,tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,tt.jsx)(Wl,{code:t,language:a})});var Ul=h(require("next/image")),Om={"3xl":1920,"2xl":1536,tt:1280,lg:1024,md:768,sm:640},Vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",jl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,m,d,p=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:M,url:O,width:N}=s;if(M&&M>500){let L=500/M;m=N*L,d=M*L}else m=N,d=M;p=u||"",f=O||Vl}let g=c||"lazy",b=l||Object.entries(Om).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,tt.jsx)("picture",{children:(0,tt.jsx)(Ul.default,{alt:p||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Vl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:m})})};var Xl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,sr.useRef)(null);if((0,sr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,tt.jsx)("video",{autoPlay:!0,className:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,tt.jsx)("source",{src:a.url||""})})}return null};var $t=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,tt.jsx)(a||sr.Fragment,{...a!==null?{className:t}:{},children:r?(0,tt.jsx)(Xl,{...e}):(0,tt.jsx)(jl,{...e})})};var Wt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,tt.jsx)($t,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Di=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("",{container:a},t),children:(0,tt.jsx)($t,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ia=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,tt.jsxs)("section",{className:i(r?"w-full":"",""),children:[(0,tt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,tt.jsx)("h2",{className:"mb-6 tt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,tt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,tt.jsx)("div",{className:"mb-5 text-foreground",children:(0,tt.jsx)(Z,{content:t,enableGutter:!1})})]}),(0,tt.jsx)("div",{className:`grid gap-6 tt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,tt.jsx)(Er,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:n()??{type:"none",icon:null}},l)})})]});var Hr=h(require("react"));function Oo({nodes:e}){return(0,tt.jsx)(Hr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,tt.jsx)(Hr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,tt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,tt.jsx)("table",{children:(0,tt.jsx)("tbody",{children:t.children.map((s,l)=>(0,tt.jsx)("tr",{children:s.children.map((n,c)=>(0,tt.jsx)("td",{children:Oo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Oo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,tt.jsx)(Da,{...s},a);case"mediaBlock":return(0,tt.jsx)(Wt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,tt.jsx)(Di,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,tt.jsx)(hi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,tt.jsx)(Pi,{className:"col-start-2",...s},a);case"features":return(0,tt.jsx)(Ia,{...s,nested:!0},a);case"reusableContentBlock":Oo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,tt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,tt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,tt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,tt.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Oo({nodes:t?.root?.children})}):null;var Ie=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("al-")?e+" ":"al-"+e+" ",s="al-"+t,l=o??"",n=r+s+" al-"+a+" "+l;return(0,tt.jsx)("i",{className:n})};var Jl=h(require("next/image"));function Ql(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Er({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:n,className:c}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-tt-br from-[#A42368] tt-[#4A1030]",radial:"bg-gradient-tt-br from-[#4A1030] tt-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("a",{href:n?.url||"#",className:i("min-w-56 max-w-tt h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&m[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,tt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,tt.jsx)(Jl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,tt.jsxs)("div",{className:i(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,tt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,tt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,tt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,tt.jsx)(Gm,{icon:{type:t?.type||"al-light",iconName:t?.icon||"hd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,tt.jsx)(Z,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-tt","space-tt-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,tt.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-tt","space-tt-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,tt.jsx)("div",{className:"tt-6",children:(0,tt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:n?.label||"Find out more"})})]})]})}var Gm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="hd-icon-error"?(0,tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,tt.jsx)("div",{className:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Ql(e)&&(0,tt.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 tt-1":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="hd-icon-error"?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[Ql(e)&&(0,tt.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:i("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Zl=h(require("next/image")),ed=h(require("next/link"));var Aa=h(require("react"));var ue=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("rounded-tt border bg-card text-card-foreground shadow",e),...t}));ue.displayName="Card";var Re=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex flex-col space-tt-1.5 p-6",e),...t}));Re.displayName="CardHeader";var Te=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));Te.displayName="CardTitle";var Mi=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Mi.displayName="CardDescription";var Ne=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("p-6 tt-0",e),...t}));Ne.displayName="CardContent";var Ii=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex items-center p-6 tt-0",e),...t}));Ii.displayName="CardFooter";function td({name:e,logo:t,href:a}){return(0,tt.jsx)(ue,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,tt.jsxs)(ed.default,{href:a,className:"block",children:[(0,tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,tt.jsx)(Zl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,tt.jsx)(Ne,{className:"p-3 flex items-center justify-center h-18 bg-gradient-tt-br from-gray-900 via-brand-one tt-gray-900",children:(0,tt.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function ad({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,tt.jsx)(al.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,tt.jsx)(al.Award,{className:"h-4 w-4"});case"companyEvent":return(0,tt.jsx)(al.PartyPopper,{className:"h-4 w-4"});default:return(0,tt.jsx)(al.CalendarDays,{className:"h-4 w-4"})}},l=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 tt-slate-500"}};return(0,tt.jsxs)(ue,{className:`w-full max-w-md overflow-hidden bg-gradient-tt-br ${l(e)}`,children:[(0,tt.jsxs)(Re,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,tt.jsxs)(We,{className:"h-14 w-14 border-2 border-white",children:[(0,tt.jsx)(Ve,{src:r,alt:a||"Event"}),(0,tt.jsx)(Ue,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,tt.jsxs)("div",{className:"flex flex-col",children:[(0,tt.jsx)(Te,{className:"text-tt",children:a||"Untitled Event"}),(0,tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,tt.jsx)(al.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,tt.jsxs)(Ne,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,tt.jsxs)(je,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,tt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-tt])([tt-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var rd=h(require("next/link"));var sd=h(require("next/image")),od={sm:"640px",md:"768px",lg:"1024px",tt:"1280px","2xl":"1400px"};function id({slug:e,image:t,title:a,description:o}){return(0,tt.jsxs)(rd.default,{href:e,className:"group/portfolio relative tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,tt.jsx)("span",{className:i("absolute inset-0 tt-[2] bg-gradient-1 from-primary/0 tt-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,tt.jsx)(sd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
8
|
-
(min-width:${
|
|
9
|
-
(min-width:${
|
|
7
|
+
"use strict";var Pc=Object.create;var tr=Object.defineProperty;var kc=Object.getOwnPropertyDescriptor;var Sc=Object.getOwnPropertyNames;var Rc=Object.getPrototypeOf,Tc=Object.prototype.hasOwnProperty;var Dc=(e,t)=>{for(var a in t)tr(e,a,{get:t[a],enumerable:!0})},Nn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Sc(t))!Tc.call(e,r)&&r!==a&&tr(e,r,{get:()=>t[r],enumerable:!(o=kc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?Pc(Rc(e)):{},Nn(t||!e||!e.__esModule?tr(a,"default",{value:e,enumerable:!0}):a,e)),Mc=e=>Nn(tr({},"__esModule",{value:!0}),e);var au={};Dc(au,{Alert:()=>pi,AlertDescription:()=>fi,AlertTitle:()=>ui,ApproveLeave:()=>nn,Avatar:()=>$e,AvatarFallback:()=>Ve,AvatarImage:()=>We,Badge:()=>Ue,BannerBlock:()=>vi,BrandLogo:()=>ya,Breadcrumb:()=>fs,BreadcrumbEllipsis:()=>xs,BreadcrumbItem:()=>bs,BreadcrumbLink:()=>ys,BreadcrumbList:()=>gs,BreadcrumbPage:()=>vs,BreadcrumbSeparator:()=>hs,Breadcrumbs:()=>Bp,Button:()=>T,CMSLink:()=>bt,CRMCogeBoard:()=>qp,CRMKanbanBoard:()=>jp,Calendar:()=>Ho,CalendarView:()=>pn,CallToActionBlock:()=>Da,CallToActionBlockOld:()=>Em,Card:()=>$o,Categories:()=>Pp,ChatCardTask:()=>gn,ChatInterfaceMessages:()=>tu,ChatMessage:()=>bn,Checkbox:()=>gt,CodeBlock:()=>Ci,Collapsible:()=>It,CollapsibleContent:()=>ea,CollapsibleTrigger:()=>Zt,CollectionArchive:()=>lp,Command:()=>hr,CommandDialog:()=>Nl,CommandEmpty:()=>ni,CommandGroup:()=>li,CommandInput:()=>si,CommandItem:()=>ci,CommandList:()=>ii,CommandSeparator:()=>di,CommandShortcut:()=>mi,Container:()=>Qi,ContentBlock:()=>_o,ContentCard:()=>jm,CopyButton:()=>wi,CustomLink:()=>rt,CustomerCard:()=>ed,DarkTop:()=>Bi,DealCard:()=>un,DealDetails:()=>Qo,Dialog:()=>Pt,DialogClose:()=>yr,DialogContent:()=>ft,DialogDescription:()=>ri,DialogFooter:()=>oi,DialogHeader:()=>Et,DialogOverlay:()=>vr,DialogPortal:()=>ai,DialogTitle:()=>Ht,DialogTrigger:()=>xl,DropdownMenu:()=>Bn,DropdownMenuCheckboxItem:()=>ks,DropdownMenuContent:()=>Cs,DropdownMenuGroup:()=>En,DropdownMenuItem:()=>Ps,DropdownMenuLabel:()=>Rs,DropdownMenuPortal:()=>Hn,DropdownMenuRadioGroup:()=>zn,DropdownMenuRadioItem:()=>Ss,DropdownMenuSeparator:()=>Ts,DropdownMenuShortcut:()=>Ds,DropdownMenuSub:()=>Fn,DropdownMenuSubContent:()=>Ns,DropdownMenuSubTrigger:()=>ws,DropdownMenuTrigger:()=>Ln,DynamicIcon:()=>Me,EventCard:()=>td,FeatureCard:()=>Lr,FeatureGrid:()=>cd,FeaturesBlock:()=>Ia,Filter:()=>kp,FlowPrintable:()=>Bd,Footer:()=>Op,Header:()=>Gp,HeaderDesktop:()=>tn,HeaderMobile:()=>on,HeadingImage:()=>op,Hero:()=>Um,HighImpactHero:()=>Xi,HolidayGrid:()=>mn,HolidayTracker:()=>Vp,HoverCard:()=>bl,HoverCardContent:()=>ti,HoverCardTrigger:()=>yl,Image:()=>id,ImageBlock:()=>Ti,InfoTile:()=>qm,Input:()=>Ge,Insight:()=>Ym,KanbanColumn:()=>Jo,Label:()=>J,LightTop:()=>Li,Logo:()=>dp,LowImpactHero:()=>Ki,MOTD:()=>Qm,Mask:()=>Mp,Media:()=>$t,MediaBlock:()=>Wt,MediumImpactHero:()=>qi,NewCustomerForm:()=>fn,NewDealForm:()=>Xp,NewsGrid:()=>Id,OrgChart:()=>ep,PagePrintable:()=>Ld,PageRange:()=>pp,PageShape:()=>jo,Pagination:()=>Cp,PayloadPagination:()=>up,Popover:()=>Ao,PopoverAnchor:()=>ml,PopoverContent:()=>Qa,PopoverTrigger:()=>Bo,PostHero:()=>Tp,PricingCard:()=>Vm,Printable:()=>bp,ProjectCard:()=>sd,ProjectTeam:()=>wp,ProposalSummary:()=>tp,RelatedContent:()=>Np,RelatedPagesMenu:()=>_p,RelatedPosts:()=>np,RenderBlocks:()=>ba,RenderBlocksWithShapes:()=>sp,RenderHero:()=>Ap,RequestLeave:()=>cn,ReusableContentBlock:()=>Ai,RichText:()=>Z,ScrollArea:()=>Ct,ScrollBar:()=>br,SectionHero:()=>Zi,Select:()=>ca,SelectContent:()=>Ot,SelectGroup:()=>km,SelectItem:()=>Gt,SelectLabel:()=>Tl,SelectScrollDownButton:()=>yi,SelectScrollUpButton:()=>bi,SelectSeparator:()=>Dl,SelectTrigger:()=>zt,SelectValue:()=>ma,Separator:()=>ho,ServiceCard:()=>Wm,Sheet:()=>or,SheetClose:()=>jn,SheetContent:()=>wo,SheetDescription:()=>Es,SheetFooter:()=>Bs,SheetHeader:()=>As,SheetOverlay:()=>rr,SheetPortal:()=>Is,SheetTitle:()=>Ls,SheetTrigger:()=>Un,Sidebar:()=>wa,SidebarContent:()=>aa,SidebarFooter:()=>Ca,SidebarGroup:()=>tt,SidebarGroupAction:()=>$s,SidebarGroupContent:()=>pt,SidebarGroupLabel:()=>Bt,SidebarHeader:()=>Na,SidebarInput:()=>_s,SidebarInset:()=>Gs,SidebarLeft:()=>yp,SidebarMenu:()=>_e,SidebarMenuAction:()=>Po,SidebarMenuBadge:()=>Ws,SidebarMenuButton:()=>at,SidebarMenuItem:()=>De,SidebarMenuSkeleton:()=>Vs,SidebarMenuSub:()=>oa,SidebarMenuSubButton:()=>sa,SidebarMenuSubItem:()=>ra,SidebarProvider:()=>Fs,SidebarRail:()=>Os,SidebarRight:()=>xp,SidebarSeparator:()=>Co,SidebarTrigger:()=>zs,SimpleHeader:()=>Ep,Skeleton:()=>de,SlideShow:()=>Td,Tabs:()=>Sm,TabsContent:()=>Dm,TabsList:()=>Rm,TabsTrigger:()=>Tm,TextAndImages:()=>Ad,Textarea:()=>pa,Theme:()=>Gr,ThemeProvider:()=>Dp,ThemeWithShapes:()=>yd,Toast:()=>Ro,ToastAction:()=>Xs,ToastClose:()=>To,ToastDescription:()=>Mo,ToastProvider:()=>fr,ToastTitle:()=>Do,ToastViewport:()=>So,Toaster:()=>sl,Toggle:()=>qs,ToggleGroup:()=>Ks,ToggleGroupItem:()=>Qs,Tooltip:()=>lr,TooltipContent:()=>No,TooltipProvider:()=>nr,TooltipTrigger:()=>dr,VideoHeader:()=>Fp,WhyUs:()=>ap,badgeVariants:()=>gi,buttonVariants:()=>ta,toggleVariants:()=>Io,useIsMobile:()=>ir,useSidebar:()=>qa,useToast:()=>ur});module.exports=Mc(au);var Ua=h(require("react")),ar=require("@radix-ui/react-icons"),An=require("@radix-ui/react-slot");var In=require("clsx");var ps="-",Ic=e=>{let t=Bc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(ps);return n[0]===""&&n.length!==1&&n.shift(),kn(n,t)||Ac(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},kn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?kn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ps);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Cn=/^\[(.+)\]$/,Ac=e=>{if(Cn.test(e)){let t=Cn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Bc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Ec(Object.entries(e.classGroups),a).forEach(([s,l])=>{ms(l,o,s,t)}),o},ms=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Pn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Lc(r)){ms(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ms(l,Pn(t,s),a,o)})})},Pn=(e,t)=>{let a=e;return t.split(ps).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Lc=e=>e.isThemeGetter,Ec=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[t+l,n])):s);return[a,r]}):e,Hc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},Sn="!",Fc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],m=0,d=0,p;for(let v=0;v<n.length;v++){let M=n[v];if(m===0){if(M===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(M==="/"){p=v;continue}}M==="["?m++:M==="]"&&m--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Sn),b=g?f.substring(1):f,u=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:l}):l},zc=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Oc=e=>({cache:Hc(e.cacheSize),parseClassName:Fc(e),...Ic(e)}),Gc=/\s+/,_c=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Gc),n="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:g}=a(m),b=!!g,u=o(b?f.substring(0,g):f);if(!u){if(!b){n=m+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=m+(n.length>0?" "+n:n);continue}b=!1}let v=zc(d).join(":"),M=p?v+Sn:v,O=M+u;if(s.includes(O))continue;s.push(O);let N=r(u,b);for(let L=0;L<N.length;++L){let w=N[L];s.push(M+w)}n=m+(n.length>0?" "+n:n)}return n};function $c(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Rn(t))&&(o&&(o+=" "),o+=a);return o}var Rn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Rn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Wc(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=Oc(m),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let m=o(c);if(m)return m;let d=_c(c,a);return r(c,d),d}return function(){return s($c.apply(null,arguments))}}var te=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Tn=/^\[(?:([a-et-]+):)?(.+)\]$/i,Vc=/^\d+\/\d+$/,Uc=new Set(["px","full","screen"]),jc=/^(\d+(\.\d+)?)?(xs|sm|et|lg|xl)$/,Xc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,qc=/^(inset_)?-?((\d+)?\.?(\d+)[a-et]+|0)et-?((\d+)?\.?(\d+)[a-et]+|0)/,Kc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mt=e=>Wa(e)||Uc.has(e)||Vc.test(e),Qt=e=>Va(e,"length",rm),Wa=e=>!!e&&!Number.isNaN(Number(e)),cs=e=>Va(e,"number",Wa),yo=e=>!!e&&Number.isInteger(Number(e)),Qc=e=>e.endsWith("%")&&Wa(e.slice(0,-1)),I=e=>Tn.test(e),Jt=e=>jc.test(e),Jc=new Set(["length","size","percentage"]),Zc=e=>Va(e,Jc,Dn),em=e=>Va(e,"position",Dn),tm=new Set(["image","url"]),am=e=>Va(e,tm,im),om=e=>Va(e,"",sm),vo=()=>!0,Va=(e,t,a)=>{let o=Tn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},rm=e=>Xc.test(e)&&!Yc.test(e),Dn=()=>!1,sm=e=>qc.test(e),im=e=>Kc.test(e);var nm=()=>{let e=te("colors"),t=te("spacing"),a=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),l=te("borderSpacing"),n=te("borderWidth"),c=te("contrast"),m=te("grayscale"),d=te("hueRotate"),p=te("invert"),f=te("gap"),g=te("gradientColorStops"),b=te("gradientColorStopPositions"),u=te("inset"),v=te("margin"),M=te("opacity"),O=te("padding"),N=te("saturate"),L=te("scale"),w=te("sepia"),Q=te("skew"),$a=te("space"),yn=te("translate"),is=()=>["auto","contain","none"],ns=()=>["auto","hidden","clip","visible","scroll"],ls=()=>["auto",I,t],re=()=>[I,t],vn=()=>["",Mt,Qt],Zo=()=>["auto",Wa,I],hn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],er=()=>["solid","dashed","dotted","double","none"],xn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ds=()=>["start","end","center","between","around","evenly","stretch"],bo=()=>["","0",I],wn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Dt=()=>[Wa,I];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[Mt,Qt],blur:["none","",Jt,I],brightness:Dt(),borderColor:[e],borderRadius:["none","","full",Jt,I],borderSpacing:re(),borderWidth:vn(),contrast:Dt(),grayscale:bo(),hueRotate:Dt(),invert:bo(),gap:re(),gradientColorStops:[e],gradientColorStopPositions:[Qc,Qt],inset:ls(),margin:ls(),opacity:Dt(),padding:re(),saturate:Dt(),scale:Dt(),sepia:bo(),skew:Dt(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":wn()}],"break-before":[{"break-before":wn()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...hn(),I]}],overflow:[{overflow:ns()}],"overflow-et":[{"overflow-et":ns()}],"overflow-et":[{"overflow-et":ns()}],overscroll:[{overscroll:is()}],"overscroll-et":[{"overscroll-et":is()}],"overscroll-et":[{"overscroll-et":is()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-et":[{"inset-et":[u]}],"inset-et":[{"inset-et":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],et:[{et:["auto",yo,I]}],basis:[{basis:ls()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:bo()}],shrink:[{shrink:bo()}],order:[{order:["first","last","none",yo,I]}],"grid-cols":[{"grid-cols":[vo]}],"col-start-end":[{col:["auto",{span:["full",yo,I]},I]}],"col-start":[{"col-start":Zo()}],"col-end":[{"col-end":Zo()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[yo,I]},I]}],"row-start":[{"row-start":Zo()}],"row-end":[{"row-end":Zo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[f]}],"gap-et":[{"gap-et":[f]}],"gap-et":[{"gap-et":[f]}],"justify-content":[{justify:["normal",...ds()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ds(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ds(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],et:[{et:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-et":[{"space-et":[$a]}],"space-et-reverse":["space-et-reverse"],"space-et":[{"space-et":[$a]}],"space-et-reverse":["space-et-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cs]}],"font-family":[{font:[vo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Wa,cs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mt,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","vd-underline"],"text-decoration-style":[{decoration:[...er(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mt,Qt]}],"underline-offset":[{"underline-offset":["auto",Mt,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...hn(),em]}],"bg-repeat":[{bg:["vd-repeat",{repeat:["","et","et","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Zc]}],"bg-image":[{bg:["none",{"gradient-et":["t","tr","r","br","b","bl","l","tl"]},am]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-et-pos":[{et:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-et":[{et:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-sr":[{"rounded-sr":[s]}],"rounded-et":[{"rounded-et":[s]}],"rounded-et":[{"rounded-et":[s]}],"rounded-ln":[{"rounded-ln":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-et":[{"border-et":[n]}],"border-w-et":[{"border-et":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...er(),"hidden"]}],"divide-et":[{"divide-et":[n]}],"divide-et-reverse":["divide-et-reverse"],"divide-et":[{"divide-et":[n]}],"divide-et-reverse":["divide-et-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:er()}],"border-color":[{border:[r]}],"border-color-et":[{"border-et":[r]}],"border-color-et":[{"border-et":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...er()]}],"outline-offset":[{"outline-offset":[Mt,I]}],"outline-w":[{outline:[Mt,Qt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:vn()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[Mt,Qt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,om]}],"shadow-color":[{shadow:[vo]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...xn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Jt,I]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[N]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-et":[{"border-spacing-et":[l]}],"border-spacing-et":[{"border-spacing-et":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:Dt()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:Dt()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-et":[{"scale-et":[L]}],"scale-et":[{"scale-et":[L]}],rotate:[{rotate:[yo,I]}],"translate-et":[{"translate-et":[yn]}],"translate-et":[{"translate-et":[yn]}],"skew-et":[{"skew-et":[Q]}],"skew-et":[{"skew-et":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","vd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","et-resize","nw-resize","et-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","et","et",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-et":[{"scroll-et":re()}],"scroll-mt":[{"scroll-mt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-pe":[{"scroll-pe":re()}],"scroll-pt":[{"scroll-pt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","et","et","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-et":[{"touch-pan":["et","left","right"]}],"touch-et":[{"touch-pan":["et","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mt,Qt,cs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-et","overflow-et"],overscroll:["overscroll-et","overscroll-et"],inset:["inset-et","inset-et","start","end","top","right","bottom","left"],"inset-et":["right","left"],"inset-et":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-et","gap-et"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","et","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-sr","rounded-et","rounded-et","rounded-ln","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-sr","rounded-ln"],"rounded-e":["rounded-et","rounded-et"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-et","border-spacing-et"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-et":["border-w-r","border-w-l"],"border-w-et":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-et":["border-color-r","border-color-l"],"border-color-et":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-et","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-et","touch-et","touch-pz"],"touch-et":["touch"],"touch-et":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Mn=Wc(nm);function i(...e){return Mn((0,In.clsx)(e))}function us(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),n.richText?.root?.children&&n.richText?.root?.children.length===1){let c=n.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of c)m.children[0]&&l.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),l}),r=lm(e.layout);return{tableOfContents:o,contentWithIds:r}}function lm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var et=require("react/jsx-runtime"),fs=Ua.forwardRef(({...e},t)=>(0,et.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));fs.displayName="Breadcrumb";var gs=Ua.forwardRef(({className:e,...t},a)=>(0,et.jsx)("Vn",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));gs.displayName="BreadcrumbList";var bs=Ua.forwardRef(({className:e,...t},a)=>(0,et.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));bs.displayName="BreadcrumbItem";var ys=Ua.forwardRef(({asChild:e,className:t,...a},o)=>(0,et.jsx)(e?An.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));ys.displayName="BreadcrumbLink";var vs=Ua.forwardRef(({className:e,...t},a)=>(0,et.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));vs.displayName="BreadcrumbPage";var hs=({children:e,className:t,...a})=>(0,et.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,et.jsx)(ar.ChevronRightIcon,{})});hs.displayName="BreadcrumbSeparator";var xs=({className:e,...t})=>(0,et.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,et.jsx)(ar.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,et.jsx)("span",{className:"sr-only",children:"More"})]});xs.displayName="BreadcrumbElipssis";var ja=h(require("@radix-ui/react-collapsible")),It=ja.Root,Zt=ja.CollapsibleTrigger,ea=ja.CollapsibleContent;var At=h(require("react")),E=h(require("@radix-ui/react-dropdown-menu"));var Bn=E.Root,Ln=E.Trigger,En=E.Group,Hn=E.Portal,Fn=E.Sub,zn=E.RadioGroup,ws=At.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,et.jsxs)(E.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,et.jsx)(ar.ChevronRightIcon,{className:"ml-auto"})]}));ws.displayName=E.SubTrigger.displayName;var Ns=At.forwardRef(({className:e,...t},a)=>(0,et.jsx)(E.SubContent,{ref:a,className:i("et-50 min-w-[8rem] overflow-hidden rounded-et border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Ns.displayName=E.SubContent.displayName;var Cs=At.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,et.jsx)(E.Portal,{children:(0,et.jsx)(E.Content,{ref:o,sideOffset:t,className:i("et-50 min-w-[8rem] overflow-hidden rounded-et border bg-popover p-1 text-popover-foreground shadow-et","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Cs.displayName=E.Content.displayName;var Ps=At.forwardRef(({className:e,inset:t,...a},o)=>(0,et.jsx)(E.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Ps.displayName=E.Item.displayName;var ks=At.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,et.jsxs)(E.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,et.jsx)(E.ItemIndicator,{children:(0,et.jsx)(ar.CheckIcon,{className:"h-4 w-4"})})}),t]}));ks.displayName=E.CheckboxItem.displayName;var Ss=At.forwardRef(({className:e,children:t,...a},o)=>(0,et.jsxs)(E.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,et.jsx)(E.ItemIndicator,{children:(0,et.jsx)(ar.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Ss.displayName=E.RadioItem.displayName;var Rs=At.forwardRef(({className:e,inset:t,...a},o)=>(0,et.jsx)(E.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Rs.displayName=E.Label.displayName;var Ts=At.forwardRef(({className:e,...t},a)=>(0,et.jsx)(E.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));Ts.displayName=E.Separator.displayName;var Ds=({className:e,...t})=>(0,et.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});Ds.displayName="DropdownMenuShortcut";var On=h(require("react"));var Ge=On.forwardRef(({className:e,type:t,...a},o)=>(0,et.jsx)("input",{type:t,className:i("flex h-9 w-full rounded-et border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Ge.displayName="Input";var _n=h(require("react")),Ms=h(require("@radix-ui/react-separator"));var ho=_n.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,$n.jsx)(Ms.Root,{ref:r,decorative:a,orientation:t,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));ho.displayName=Ms.Root.displayName;var xo=h(require("react")),le=h(require("@radix-ui/react-dialog")),Vn=require("class-variance-authority");var or=le.Root,Un=le.Trigger,jn=le.Close,Is=le.Portal,rr=xo.forwardRef(({className:e,...t},a)=>(0,et.jsx)(le.Overlay,{className:i("fixed inset-0 et-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));rr.displayName=le.Overlay.displayName;var dm=(0,Vn.cva)("fixed et-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-et-0 top-0 border-b data-[state=closed]:slide-out-et-top data-[state=open]:slide-in-from-top",bottom:"inset-et-0 bottom-0 border-t data-[state=closed]:slide-out-et-bottom data-[state=open]:slide-in-from-bottom",left:"inset-et-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-et-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-et-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-et-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wo=xo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,et.jsxs)(Is,{children:[(0,et.jsx)(rr,{}),(0,et.jsxs)(le.Content,{ref:r,className:i(dm({side:e}),t),...o,children:[(0,et.jsxs)(le.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,et.jsx)(ar.Cross2Icon,{className:"h-4 w-4"}),(0,et.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));wo.displayName=le.Content.displayName;var As=({className:e,...t})=>(0,et.jsx)("div",{className:i("flex flex-col space-et-2 text-center sm:text-left",e),...t});As.displayName="SheetHeader";var Bs=({className:e,...t})=>(0,et.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-et-2",e),...t});Bs.displayName="SheetFooter";var Ls=xo.forwardRef(({className:e,...t},a)=>(0,et.jsx)(le.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));Ls.displayName=le.Title.displayName;var Es=xo.forwardRef(({className:e,...t},a)=>(0,et.jsx)(le.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Es.displayName=le.Description.displayName;var F=h(require("react")),el=require("lucide-react");var sr=require("react"),ir=(e=768)=>{let[t,a]=(0,sr.useState)(!1);return(0,sr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var qn=h(require("react")),ta=(0,Vn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=qn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,et.jsx)(e?An.Slot:"button",{className:i(ta({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function de({className:e,...t}){return(0,et.jsx)("div",{className:i("animate-pulse rounded-et bg-primary/10",e),...t})}var Jn=h(require("react")),mt=h(require("@radix-ui/react-tooltip"));var nr=mt.Provider,lr=mt.Root,dr=mt.Trigger,No=Jn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,et.jsx)(mt.Portal,{children:(0,et.jsx)(mt.Content,{ref:o,sideOffset:t,className:i("et-50 overflow-hidden rounded-et bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));No.displayName=mt.Content.displayName;var cm="sidebar:state",mm=60*60*24*7,pm="16rem",um="18rem",fm="3rem",gm="b",tl=F.createContext(null);function qa(){let e=F.useContext(tl);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var Fs=F.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=ir(),[m,d]=F.useState(!1),[p,f]=F.useState(e),g=t??p,b=F.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(g):O);f(O),document.cookie=`${cm}=${g}; path=/; max-age=${mm}`},[a,g]),u=F.useCallback(()=>c?d(O=>!O):b(O=>!O),[c,b,d]);F.useEffect(()=>{let O=N=>{N.key===gm&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",M=F.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,m,d,u]);return(0,et.jsx)(tl.Provider,{value:M,children:(0,et.jsx)(nr,{delayDuration:0,children:(0,et.jsx)("div",{style:{"--sidebar-width":pm,"--sidebar-width-icon":fm,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});Fs.displayName="SidebarProvider";var wa=F.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:m,setOpenMobile:d}=qa();return a==="none"?(0,et.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,et.jsx)(or,{open:m,onOpenChange:d,...s,children:(0,et.jsx)(wo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":um},side:e,children:(0,et.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,et.jsxs)("div",{ref:l,className:"group peer hidden et:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,et.jsx)("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)et+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,et.jsx)("div",{className:i("duration-200 fixed top-14 bottom-0 et-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear et:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)et+_theme(spacing.4)et+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,et.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});wa.displayName="Sidebar";var zs=F.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=qa();return(0,et.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,et.jsx)(el.PanelLeft,{}),(0,et.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});zs.displayName="SidebarTrigger";var Os=F.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=qa();return(0,et.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-et-0 et-20 hidden w-4 -translate-et-1/2 transition-all ease-linear after:absolute after:inset-et-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]et&]:cursor-w-resize [[data-side=right]et&]:cursor-e-resize","[[data-side=left][data-state=collapsed]et&]:cursor-e-resize [[data-side=right][data-state=collapsed]et&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-et-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]et&]:-right-2","[[data-side=right][data-collapsible=offcanvas]et&]:-left-2",e),...t})});Os.displayName="SidebarRail";var Gs=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("main",{ref:a,className:i("flex flex-1 flex-col bg-background overflow-et-auto relative max-h-full","et:peer-data-[variant=inset]:m-2 et:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 et:peer-data-[variant=inset]:ml-0 et:peer-data-[variant=inset]:rounded-xl et:peer-data-[variant=inset]:shadow",e),...t}));Gs.displayName="SidebarInset";var _s=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ge,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));_s.displayName="SidebarInput";var Na=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));Na.displayName="SidebarHeader";var Ca=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));Ca.displayName="SidebarFooter";var Co=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)(ho,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));Co.displayName="SidebarSeparator";var aa=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));aa.displayName="SidebarContent";var tt=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));tt.displayName="SidebarGroup";var Bt=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,et.jsx)(t?An.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-et px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Bt.displayName="SidebarGroupLabel";var $s=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,et.jsx)(t?An.Slot:"button",{ref:o,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-et p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:et:hidden","group-data-[collapsible=icon]:hidden",e),...a}));$s.displayName="SidebarGroupAction";var pt=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));pt.displayName="SidebarGroupContent";var _e=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("Vn",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));_e.displayName="SidebarMenu";var De=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));De.displayName="SidebarMenuItem";var bm=(0,Vn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-et p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),at=F.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?An.Slot:"button",{isMobile:m,state:d}=qa(),p=(0,et.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(bm({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,et.jsxs)(lr,{children:[(0,et.jsx)(dr,{asChild:!0,children:p}),(0,et.jsx)(No,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});at.displayName="SidebarMenuButton";var Po=F.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,et.jsx)(t?An.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-et p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:et:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground et:opacity-0",e),...o}));Po.displayName="SidebarMenuAction";var Ws=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-et px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ws.displayName="SidebarMenuBadge";var Vs=F.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=F.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,et.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-et h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,et.jsx)(de,{className:"size-4 rounded-et","data-sidebar":"menu-skeleton-icon"}),(0,et.jsx)(de,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Vs.displayName="SidebarMenuSkeleton";var oa=F.forwardRef(({className:e,...t},a)=>(0,et.jsx)("Vn",{ref:a,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-et-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));oa.displayName="SidebarMenuSub";var ra=F.forwardRef(({...e},t)=>(0,et.jsx)("li",{ref:t,...e}));ra.displayName="SidebarMenuSubItem";var sa=F.forwardRef(({asChild:e=!1,size:t="et",isActive:a,className:o,...r},s)=>(0,et.jsx)(e?An.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("flex h-7 min-w-0 -translate-et-px items-center gap-2 overflow-hidden rounded-et px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="et"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));sa.displayName="SidebarMenuSubButton";var pr=h(require("react")),ym=1,vm=1e6;var Us=0;function hm(){return Us=(Us+1)%Number.MAX_SAFE_INTEGER,Us.toString()}var js=new Map,al=e=>{if(js.has(e))return;let t=setTimeout(()=>{js.delete(e),ko({type:"REMOVE_TOAST",toastId:e})},vm);js.set(e,t)},xm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,ym)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?al(a):e.toasts.forEach(o=>{al(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},cr=[],mr={toasts:[]};function ko(e){mr=xm(mr,e),cr.forEach(t=>{t(mr)})}function wm({...e}){let t=hm(),a=r=>ko({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>ko({type:"DISMISS_TOAST",toastId:t});return ko({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function ur(){let[e,t]=pr.useState(mr);return pr.useEffect(()=>(cr.push(t),()=>{let a=cr.indexOf(t);a>-1&&cr.splice(a,1)}),[e]),{...e,toast:wm,dismiss:a=>ko({type:"DISMISS_TOAST",toastId:a})}}var Pa=h(require("react")),be=h(require("@radix-ui/react-toast"));var fr=be.Provider,So=Pa.forwardRef(({className:e,...t},a)=>(0,et.jsx)(be.Viewport,{ref:a,className:i("fixed top-0 et-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col et:max-w-[420px]",e),...t}));So.displayName=be.Viewport.displayName;var Nm=(0,Vn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-et-2 overflow-hidden rounded-et border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-et-0 data-[swipe=end]:translate-et-[var(--radix-toast-swipe-end-et)] data-[swipe=move]:translate-et-[var(--radix-toast-swipe-move-et)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-et-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ro=Pa.forwardRef(({className:e,variant:t,...a},o)=>(0,et.jsx)(be.Root,{ref:o,className:i(Nm({variant:t}),e),...a}));Ro.displayName=be.Root.displayName;var Xs=Pa.forwardRef(({className:e,...t},a)=>(0,et.jsx)(be.Action,{ref:a,className:i("inline-flex h-8 shrink-0 items-center justify-center rounded-et border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Xs.displayName=be.Action.displayName;var To=Pa.forwardRef(({className:e,...t},a)=>(0,et.jsx)(be.Close,{ref:a,className:i("absolute right-1 top-1 rounded-et p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,et.jsx)(el.et,{className:"h-4 w-4"})}));To.displayName=be.Close.displayName;var Do=Pa.forwardRef(({className:e,...t},a)=>(0,et.jsx)(be.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));Do.displayName=be.Title.displayName;var Mo=Pa.forwardRef(({className:e,...t},a)=>(0,et.jsx)(be.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Mo.displayName=be.Description.displayName;function sl(){let{toasts:e}=ur();return(0,et.jsxs)(fr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,et.jsxs)(Ro,{...s,children:[(0,et.jsxs)("div",{className:"grid gap-1",children:[a&&(0,et.jsx)(Do,{children:a}),o&&(0,et.jsx)(Mo,{children:o})]}),r,(0,et.jsx)(To,{})]},t)}),(0,et.jsx)(So,{})]})}var il=h(require("react")),Ys=h(require("@radix-ui/react-toggle"));var Io=(0,Vn.cva)("inline-flex items-center justify-center gap-2 rounded-et text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),qs=il.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,et.jsx)(Ys.Root,{ref:r,className:i(Io({variant:t,size:a,className:e})),...o}));qs.displayName=Ys.Root.displayName;var ka=h(require("react")),Ka=h(require("@radix-ui/react-toggle-group"));var dl=ka.createContext({size:"default",variant:"default"}),Ks=ka.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,et.jsx)(Ka.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,et.jsx)(dl.Provider,{value:{variant:t,size:a},children:o})}));Ks.displayName=Ka.Root.displayName;var Qs=ka.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=ka.useContext(dl);return(0,et.jsx)(Ka.Item,{ref:s,className:i(Io({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Qs.displayName=Ka.Item.displayName;var Js=h(require("react")),ot=h(require("@radix-ui/react-scroll-area"));var Ct=Js.forwardRef(({className:e,children:t,...a},o)=>(0,et.jsxs)(ot.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,et.jsx)(ot.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,et.jsx)(br,{}),(0,et.jsx)(ot.Corner,{})]}));Ct.displayName=ot.Root.displayName;var br=Js.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,et.jsx)(ot.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,et.jsx)(ot.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));br.displayName=ot.ScrollAreaScrollbar.displayName;var cl=h(require("react")),ut=h(require("@radix-ui/react-popover"));var Ao=ut.Root,Bo=ut.Trigger,ml=ut.Anchor,Qa=cl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,et.jsx)(ut.Portal,{children:(0,et.jsx)(ut.Content,{ref:r,align:t,sideOffset:a,className:i("et-50 w-72 rounded-et border bg-popover p-4 text-popover-foreground shadow-et outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Qa.displayName=ut.Content.displayName;var pl=h(require("react")),ei=h(require("@radix-ui/react-label"));var Cm=(0,Vn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=pl.forwardRef(({className:e,...t},a)=>(0,et.jsx)(ei.Root,{ref:a,className:i(Cm(),e),...t}));J.displayName=ei.Root.displayName;var gl=h(require("react")),Sa=h(require("@radix-ui/react-hover-card"));var bl=Sa.Root,yl=Sa.Trigger,ti=gl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,et.jsx)(Sa.Content,{ref:r,align:t,sideOffset:a,className:i("et-50 w-64 rounded-et border bg-popover p-4 text-popover-foreground shadow-et outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ti.displayName=Sa.Content.displayName;var Lo=h(require("react")),ce=h(require("@radix-ui/react-dialog"));var Pt=ce.Root,xl=ce.Trigger,ai=ce.Portal,yr=ce.Close,vr=Lo.forwardRef(({className:e,...t},a)=>(0,et.jsx)(ce.Overlay,{ref:a,className:i("fixed inset-0 et-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));vr.displayName=ce.Overlay.displayName;var ft=Lo.forwardRef(({className:e,children:t,...a},o)=>(0,et.jsxs)(ai,{children:[(0,et.jsx)(vr,{}),(0,et.jsxs)(ce.Content,{ref:o,className:i("fixed left-[50%] top-[50%] et-50 grid w-full max-w-lg translate-et-[-50%] translate-et-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-et-left-1/2 data-[state=closed]:slide-out-et-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,et.jsxs)(ce.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,et.jsx)(el.et,{className:"h-4 w-4"}),(0,et.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));ft.displayName=ce.Content.displayName;var Et=({className:e,...t})=>(0,et.jsx)("div",{className:i("flex flex-col space-et-1.5 text-center sm:text-left",e),...t});Et.displayName="DialogHeader";var oi=({className:e,...t})=>(0,et.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-et-2",e),...t});oi.displayName="DialogFooter";var Ht=Lo.forwardRef(({className:e,...t},a)=>(0,et.jsx)(ce.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));Ht.displayName=ce.Title.displayName;var ri=Lo.forwardRef(({className:e,...t},a)=>(0,et.jsx)(ce.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));ri.displayName=ce.Description.displayName;var la=h(require("react")),Ee=require("cmdk");var hr=la.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ee.Command,{ref:a,className:i("flex h-full w-full flex-col overflow-hidden rounded-et bg-popover text-popover-foreground",e),...t}));hr.displayName=Ee.Command.displayName;var Nl=({children:e,...t})=>(0,et.jsx)(Pt,{...t,children:(0,et.jsx)(ft,{className:"overflow-hidden p-0",children:(0,et.jsx)(hr,{className:"[&et[cmdk-group-heading]]:px-2 [&et[cmdk-group-heading]]:font-medium [&et[cmdk-group-heading]]:text-muted-foreground [&et[cmdk-group]:not([hidden])et~[cmdk-group]]:pt-0 [&et[cmdk-group]]:px-2 [&et[cmdk-input-wrapper]_svg]:h-5 [&et[cmdk-input-wrapper]_svg]:w-5 [&et[cmdk-input]]:h-12 [&et[cmdk-item]]:px-2 [&et[cmdk-item]]:py-3 [&et[cmdk-item]_svg]:h-5 [&et[cmdk-item]_svg]:w-5",children:e})})}),si=la.forwardRef(({className:e,...t},a)=>(0,et.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,et.jsx)(el.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,et.jsx)(Ee.Command.Input,{ref:a,className:i("flex h-10 w-full rounded-et bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));si.displayName=Ee.Command.Input.displayName;var ii=la.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ee.Command.List,{ref:a,className:i("max-h-[300px] overflow-et-auto overflow-et-hidden",e),...t}));ii.displayName=Ee.Command.List.displayName;var ni=la.forwardRef((e,t)=>(0,et.jsx)(Ee.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ni.displayName=Ee.Command.Empty.displayName;var li=la.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ee.Command.Group,{ref:a,className:i("overflow-hidden p-1 text-foreground [&et[cmdk-group-heading]]:px-2 [&et[cmdk-group-heading]]:py-1.5 [&et[cmdk-group-heading]]:text-xs [&et[cmdk-group-heading]]:font-medium [&et[cmdk-group-heading]]:text-muted-foreground",e),...t}));li.displayName=Ee.Command.Group.displayName;var di=la.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ee.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));di.displayName=Ee.Command.Separator.displayName;var ci=la.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ee.Command.Item,{ref:a,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ci.displayName=Ee.Command.Item.displayName;var mi=({className:e,...t})=>(0,et.jsx)("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});mi.displayName="CommandShortcut";var xr=h(require("react"));var Pm=(0,Vn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-et-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),pi=xr.forwardRef(({className:e,variant:t,...a},o)=>(0,et.jsx)("div",{ref:o,role:"alert",className:i(Pm({variant:t}),e),...a}));pi.displayName="Alert";var ui=xr.forwardRef(({className:e,...t},a)=>(0,et.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));ui.displayName="AlertTitle";var fi=xr.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));fi.displayName="AlertDescription";var Nr=h(require("react")),Ft=h(require("@radix-ui/react-avatar"));var $e=Nr.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ft.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));$e.displayName=Ft.Root.displayName;var We=Nr.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ft.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));We.displayName=Ft.Image.displayName;var Ve=Nr.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Ft.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ve.displayName=Ft.Fallback.displayName;var gi=(0,Vn.cva)("inline-flex items-center rounded-et border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Ue({className:e,variant:t,...a}){return(0,et.jsx)("div",{className:i(gi({variant:t}),e),...a})}var Eo=h(require("@radix-ui/react-checkbox")),Rl=h(require("react")),gt=Rl.forwardRef(({className:e,...t},a)=>(0,et.jsx)(Eo.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,et.jsx)(Eo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,et.jsx)(el.Check,{className:"h-4 w-4"})})}));gt.displayName=Eo.Root.displayName;var G=h(require("@radix-ui/react-select")),da=h(require("react")),ca=G.Root,km=G.Group,ma=G.Value,zt=da.forwardRef(({children:e,className:t,...a},o)=>(0,et.jsxs)(G.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,et.jsx)(G.Icon,{asChild:!0,children:(0,et.jsx)(el.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));zt.displayName=G.Trigger.displayName;var bi=da.forwardRef(({className:e,...t},a)=>(0,et.jsx)(G.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,et.jsx)(el.ChevronUp,{className:"h-4 w-4"})}));bi.displayName=G.ScrollUpButton.displayName;var yi=da.forwardRef(({className:e,...t},a)=>(0,et.jsx)(G.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,et.jsx)(el.ChevronDown,{className:"h-4 w-4"})}));yi.displayName=G.ScrollDownButton.displayName;var Ot=da.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,et.jsx)(G.Portal,{children:(0,et.jsxs)(G.Content,{className:i("relative et-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-et data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-et-1 data-[side=left]:-translate-et-1 data-[side=right]:translate-et-1 data-[side=top]:-translate-et-1",t),position:a,ref:r,...o,children:[(0,et.jsx)(bi,{}),(0,et.jsx)(G.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,et.jsx)(yi,{})]})}));Ot.displayName=G.Content.displayName;var Tl=da.forwardRef(({className:e,...t},a)=>(0,et.jsx)(G.Label,{className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Tl.displayName=G.Label.displayName;var Gt=da.forwardRef(({children:e,className:t,...a},o)=>(0,et.jsxs)(G.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,et.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,et.jsx)(G.ItemIndicator,{children:(0,et.jsx)(el.Check,{className:"h-4 w-4"})})}),(0,et.jsx)(G.ItemText,{children:e})]}));Gt.displayName=G.Item.displayName;var Dl=da.forwardRef(({className:e,...t},a)=>(0,et.jsx)(G.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Dl.displayName=G.Separator.displayName;var Ml=h(require("react")),pa=Ml.forwardRef(({className:e,...t},a)=>(0,et.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));pa.displayName="Textarea";var Al=require("react-day-picker");function Ho({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,et.jsx)(Al.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-et-4 sm:space-et-4 sm:space-et-0",month:"space-et-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-et-1 flex items-center",nav_button:i(ta({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-et-1",head_row:"flex",head_cell:"text-muted-foreground rounded-et w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:et-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-et",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-et [&:has(>.day-range-start)]:rounded-l-et first:[&:has([aria-selected])]:rounded-l-et last:[&:has([aria-selected])]:rounded-r-et":"[&:has([aria-selected])]:rounded-et"),day:i(ta({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Ho.displayName="Calendar";var ua=h(require("@radix-ui/react-tabs"));function Sm({className:e,...t}){return(0,et.jsx)(ua.Root,{"data-slot":"tabs",className:i("flex flex-col gap-2",e),...t})}function Rm({className:e,...t}){return(0,et.jsx)(ua.List,{"data-slot":"tabs-list",className:i("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Tm({className:e,...t}){return(0,et.jsx)(ua.Trigger,{"data-slot":"tabs-trigger",className:i("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-et border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Dm({className:e,...t}){return(0,et.jsx)(ua.Content,{"data-slot":"tabs-content",className:i("flex-1 outline-none",e),...t})}var vi=({className:e,content:t,style:a})=>(0,et.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,et.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,et.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var hi=h(require("next/link")),bt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:n,size:c,url:m}=e,d=t==="reference"&&typeof n?.value=="object"&&n.value.slug?`${n?.relationTo!=="pages"?`/${n?.relationTo}`:""}/${n.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,et.jsxs)(hi.default,{className:i(r),href:d||m||"",...f,children:[s&&s,o&&o]}):(0,et.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,et.jsxs)(hi.default,{className:i(r),href:d||m||"",...f,children:[s&&s,o&&o]})})};function Sr({className:e}){return i("flex items-center min-h-[3.5rem] et:min-h-[3.75rem] w-full rounded-5 px-4 et:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Mm({className:e,...t}){return(0,et.jsx)("input",{...t,className:Sr({className:e})})}function Rr({icon:e,...t}){return(0,et.jsxs)("div",{className:"relative w-full",children:[(0,et.jsx)(Mm,{...t}),e&&(0,et.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-et-1/2 text-accent",children:e})]})}function Im({className:e,...t}){return(0,et.jsx)("textarea",{...t,className:i(Sr({}),"resize-none et:min-h-[130px]",e)})}function Ll({icon:e,...t}){return(0,et.jsxs)("div",{className:"relative w-full",children:[(0,et.jsx)(Im,{...t}),e&&(0,et.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Hl=require("formik"),Fl=require("react-icons/fa6"),Ta=h(require("yup"));async function El(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let n=await fetch(s,{method:"POST",mode:"vd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var xi=require("sonner"),yt={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},Am=Ta.object().shape({name:Ta.string().min(2,yt.tooShort).max(50,yt.tooLong).required(yt.required),email:Ta.string().email(yt.email).required(yt.required),subject:Ta.string().min(2,yt.tooShort).max(50,yt.tooLong).required(yt.required),message:Ta.string().min(2,yt.tooShort).max(300,yt.tooLong).required(yt.required)}),Tr=i("!pr-[44px] text-foreground"),Dr=i("!border-red-600 border"),Mr=i("sr-only");function zl(){return(0,et.jsx)(Hl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Am,onSubmit:async(e,{resetForm:t})=>{let a=await El(e);a.data===null?xi.toast.error(a.message):(xi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,et.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,et.jsxs)("div",{children:[(0,et.jsx)(Rr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,et.jsx)(Fl.FaUser,{className:"text-primary"}),className:i(Tr,e.name&&t.name&&Dr)}),e.name&&t.name&&(0,et.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Mr,children:e.name})]}),(0,et.jsxs)("div",{children:[(0,et.jsx)(Rr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,et.jsx)(Bm,{}),className:i(Tr,e.email&&t.email&&Dr)}),e.email&&t.email&&(0,et.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Mr,children:e.email})]}),(0,et.jsxs)("div",{className:"lg:col-span-2",children:[(0,et.jsx)(Rr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:i(Tr,e.subject&&t.subject&&Dr)}),e.subject&&t.subject&&(0,et.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Mr,children:e.subject})]}),(0,et.jsxs)("div",{className:"lg:col-span-2",children:[(0,et.jsx)(Ll,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,et.jsx)(Lm,{}),className:i(Tr,e.message&&t.message&&Dr)}),e.message&&t.message&&(0,et.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Mr,children:e.message})]}),(0,et.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,et.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Bm(){return(0,et.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,et.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Lm(){return(0,et.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,et.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Em=({links:e,richText:t})=>(0,et.jsx)("div",{className:"container",children:(0,et.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 et:flex-row et:justify-between et:items-center",children:[(0,et.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,et.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,et.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,et.jsx)(bt,{size:"lg",...a},o))})]})}),Da=({links:e,richText:t})=>{let[a,o]=(0,sr.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,et.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,et.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,et.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,et.jsx)(Z,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,et.jsx)("div",{className:"mt-10 flex items-center justify-center gap-et-6",children:(0,et.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?(0,et.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white vd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},m):(0,et.jsx)(bt,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white vd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},m))})})]})}),a&&(0,et.jsx)("div",{className:"absolute inset-0 et-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,et.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,et.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,et.jsx)(zl,{})," "]})})]})};var Ir=require("prism-react-renderer");function wi({code:e}){let[t,a]=(0,sr.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,et.jsx)("div",{className:"flex justify-end align-middle",children:(0,et.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,et.jsx)("p",{children:t}),(0,et.jsx)("div",{className:"w-6 h-6",children:(0,et.jsx)(el.ClipboardCopy,{})})]})})}var $l=({code:e,language:t=""})=>e?(0,et.jsx)(Ir.Highlight,{code:e,language:t,theme:Ir.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,et.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-et-auto",children:[r.map((s,l)=>(0,et.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,et.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,et.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,et.jsx)("span",{...o({token:n})},c))})]},l)),(0,et.jsx)(wi,{code:e})]})}):null;var Ci=({className:e,code:t,language:a})=>(0,et.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,et.jsx)($l,{code:t,language:a})});var Vl=h(require("next/image")),Hm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,et:768,sm:640},Wl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",Ul=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,m,d,p=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:M,url:O,width:N}=s;if(M&&M>500){let L=500/M;m=N*L,d=M*L}else m=N,d=M;p=u||"",f=O||Wl}let g=c||"lazy",b=l||Object.entries(Hm).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,et.jsx)("picture",{children:(0,et.jsx)(Vl.default,{alt:p||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Wl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:m})})};var jl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,sr.useRef)(null);if((0,sr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,et.jsx)("video",{autoPlay:!0,className:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,et.jsx)("source",{src:a.url||""})})}return null};var $t=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,et.jsx)(a||sr.Fragment,{...a!==null?{className:t}:{},children:r?(0,et.jsx)(jl,{...e}):(0,et.jsx)(Ul,{...e})})};var Wt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,et.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,et.jsx)($t,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Ti=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,et.jsx)("div",{className:i("",{container:a},t),children:(0,et.jsx)($t,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ia=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,et.jsxs)("section",{className:i(r?"w-full":"",""),children:[(0,et.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,et.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,et.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,et.jsx)("div",{className:"mb-5 text-foreground",children:(0,et.jsx)(Z,{content:t,enableGutter:!1})})]}),(0,et.jsx)("div",{className:`grid gap-6 mt-6 et:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,et.jsx)(Lr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:n()??{type:"none",icon:null}},l)})})]});var Er=h(require("react"));function Oo({nodes:e}){return(0,et.jsx)(Er.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,et.jsx)(Er.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,et.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,et.jsx)("em",{children:s},a)),t.format&4&&(s=(0,et.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,et.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,et.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,et.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,et.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,et.jsx)("table",{children:(0,et.jsx)("tbody",{children:t.children.map((s,l)=>(0,et.jsx)("tr",{children:s.children.map((n,c)=>(0,et.jsx)("td",{children:Oo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Oo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,et.jsx)(Da,{...s},a);case"mediaBlock":return(0,et.jsx)(Wt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,et.jsx)(Ti,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,et.jsx)(vi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,et.jsx)(Ci,{className:"col-start-2",...s},a);case"features":return(0,et.jsx)(Ia,{...s,nested:!0},a);case"reusableContentBlock":Oo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,et.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,et.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,et.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,et.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,et.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,et.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,et.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,et.jsx)(bt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,et.jsx)(bt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,et.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Oo({nodes:t?.root?.children})}):null;var Me=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("el-")?e+" ":"el-"+e+" ",s="el-"+t,l=o??"",n=r+s+" el-"+a+" "+l;return(0,et.jsx)("i",{className:n})};var Ql=h(require("next/image"));function Kl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Lr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:n,className:c}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-et-br from-[#A42368] et-[#4A1030]",radial:"bg-gradient-et-br from-[#4A1030] et-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,et.jsxs)("a",{href:n?.url||"#",className:i("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 et:p-8",l&&!e&&m[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,et.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,et.jsx)(Ql.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,et.jsxs)("div",{className:i(e?"p-6 et:p-8":"p-0","flex flex-col flex-grow"),children:[(0,et.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,et.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,et.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,et.jsx)(Fm,{icon:{type:t?.type||"el-light",iconName:t?.icon||"vd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,et.jsx)(Z,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-xl","space-et-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,et.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-xl","space-et-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,et.jsx)("div",{className:"mt-6",children:(0,et.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:n?.label||"Find out more"})})]})]})}var Fm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="vd-icon-error"?(0,et.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,et.jsx)("div",{className:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Kl(e)&&(0,et.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 mt-1":""),children:(0,et.jsx)(Me,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="vd-icon-error"?(0,et.jsxs)("div",{className:"flex flex-col gap-4",children:[Kl(e)&&(0,et.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,et.jsx)(Me,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,et.jsx)("h3",{className:i("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,et.jsx)("div",{className:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Jl=h(require("next/image")),Zl=h(require("next/link"));var Aa=h(require("react"));var pe=Aa.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("rounded-xl border bg-card text-card-foreground shadow",e),...t}));pe.displayName="Card";var Se=Aa.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("flex flex-col space-et-1.5 p-6",e),...t}));Se.displayName="CardHeader";var Re=Aa.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));Re.displayName="CardTitle";var Di=Aa.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Di.displayName="CardDescription";var we=Aa.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("p-6 pt-0",e),...t}));we.displayName="CardContent";var Mi=Aa.forwardRef(({className:e,...t},a)=>(0,et.jsx)("div",{ref:a,className:i("flex items-center p-6 pt-0",e),...t}));Mi.displayName="CardFooter";function ed({name:e,logo:t,href:a}){return(0,et.jsx)(pe,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,et.jsxs)(Zl.default,{href:a,className:"block",children:[(0,et.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,et.jsx)("div",{className:"relative w-full h-full",children:t&&(0,et.jsx)(Jl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,et.jsx)(we,{className:"p-3 flex items-center justify-center h-18 bg-gradient-et-br from-gray-900 via-brand-one et-gray-900",children:(0,et.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function td({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,et.jsx)(el.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,et.jsx)(el.Award,{className:"h-4 w-4"});case"companyEvent":return(0,et.jsx)(el.PartyPopper,{className:"h-4 w-4"});default:return(0,et.jsx)(el.CalendarDays,{className:"h-4 w-4"})}},l=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 et-slate-500"}};return(0,et.jsxs)(pe,{className:`w-full max-w-et overflow-hidden bg-gradient-et-br ${l(e)}`,children:[(0,et.jsxs)(Se,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,et.jsxs)($e,{className:"h-14 w-14 border-2 border-white",children:[(0,et.jsx)(We,{src:r,alt:a||"Event"}),(0,et.jsx)(Ve,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,et.jsxs)("div",{className:"flex flex-col",children:[(0,et.jsx)(Re,{className:"text-xl",children:a||"Untitled Event"}),(0,et.jsxs)("p",{className:"text-sm text-white/80",children:[(0,et.jsx)(el.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,et.jsxs)(we,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,et.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,et.jsxs)(Ue,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,et.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-et])([et-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var od=h(require("next/link"));var rd=h(require("next/image")),ad={sm:"640px",et:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function sd({slug:e,image:t,title:a,description:o}){return(0,et.jsxs)(od.default,{href:e,className:"group/portfolio relative et-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 et:p-[1.875rem]",children:[(0,et.jsx)("span",{className:i("absolute inset-0 et-[2] bg-gradient-1 from-primary/0 et-primary [transition:all_500ms_ease] et:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","et:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] et:group-hover/portfolio:[transition-delay:.1s] et:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,et.jsx)(rd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
8
|
+
(min-width:${ad.et}) 50vw,
|
|
9
|
+
(min-width:${ad.lg}) 25vw,
|
|
10
10
|
100vw
|
|
11
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,tt.jsx)("div",{className:"relative tt-10 flex h-full flex-col",children:(0,tt.jsxs)("div",{className:"tt-auto divide-tt md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,tt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,tt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,tt.jsx)("p",{className:"tt-[13px] overflow-hidden tt-[11px] text-body",children:(0,tt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Ai=h(require("next/image")),Fr=h(require("path"));function _m(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function $m(e){return e.startsWith("http")}function Wm(e,t){let a=e;if(_m(e))a=`/docs/api/content/sharepoint?url=${e}`;else if($m(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Fr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Fr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Fr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Vm({src:e,alt:t}){let[a,o]=(0,sr.useState)(!1),[r,s]=(0,sr.useState)(!1),[l,n]=(0,sr.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:f,naturalHeight:g}=p.target;n({width:f,height:g}),s(f>300||g>300)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:c,children:(0,tt.jsx)(Ai.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,tt.jsx)(st,{open:a,onOpenChange:o,children:(0,tt.jsxs)(Qe,{className:"flex flex-col items-center justify-center",children:[(0,tt.jsxs)(bt,{className:"flex w-full justify-end",children:[(0,tt.jsx)(yt,{className:"hidden",children:t}),(0,tt.jsx)(vr,{})]}),(0,tt.jsx)("div",{className:"flex items-center justify-center",children:(0,tt.jsx)(Ai.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function nd({props:e,baseContext:t}){let{src:a}=e;return a=Wm(a,t),(0,tt.jsx)(Vm,{src:a,alt:e.alt})}var ld=h(require("next/link"));function it({children:e,href:t,openNewTab:a,...o}){return(0,tt.jsx)(ld.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Um(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function jm({icon:e,title:t,description:a,slug:o}){return(0,tt.jsxs)("article",{className:i(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative tt-1 block h-full space-tt-6 overflow-hidden rounded-5 p-6 md:space-tt-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,tt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,tt.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:Um(e)?(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,tt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,tt.jsx)(it,{href:o,children:t}):t})]}),(0,tt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,tt.jsx)(T,{asChild:!0,className:i(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,tt.jsxs)(it,{href:o,children:[(0,tt.jsx)("span",{children:"Read More"}),(0,tt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,tt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,tt.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,tt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-tt-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-tt-100 group-hover/service:opacity-100"})]})}function Xm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,tt.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,tt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:tt-14 lg:border-r lg:p-10",children:[(0,tt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-tt",children:e}),(0,tt.jsx)("p",{children:t})]}),(0,tt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,tt.jsxs)("div",{className:"flex flex-col justify-stretch gap-tt-14 gap-tt-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,tt.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,n)=>(0,tt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,tt.jsx)("span",{className:"text-accent tt-1",children:(0,tt.jsx)(zl.FaCircleCheck,{})}),(0,tt.jsx)("span",{children:l})]},n))}),(0,tt.jsxs)("p",{className:"font-secondary ml-auto text-tt font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,tt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,tt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,tt.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,tt.jsxs)(it,{href:s.href,openNewTab:s.openNewTab,children:[(0,tt.jsx)("span",{className:"relative tt-1",children:s.label}),(0,tt.jsx)("span",{className:"relative tt-1 pl-2",children:(0,tt.jsx)(zl.FaAnglesRight,{})})]})})})]})})]})}function Ym({className:e,badge:t,title:a,subtitle:o}){return(0,tt.jsxs)("div",{className:i("relative overflow-hidden rounded-tt bg-gradient-tt-br from-[#A42368] tt-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,tt.jsxs)("div",{className:"relative tt-10 mx-auto max-w-4xl text-center",children:[t&&(0,tt.jsx)("div",{className:"mb-4",children:(0,tt.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,tt.jsx)("h1",{className:"tt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,tt.jsx)("p",{className:"tt-6 text-base text-gray-300 sm:text-lg md:text-tt",children:o})]}),(0,tt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-tt-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,tt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-tt-1/2",children:(0,tt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,tt.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function cd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function qm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:n,content:c,statistic:m,buttonText:d,buttonHref:p}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-tt-br from-[#A42368] tt-[#4A1030]",radial:"bg-gradient-tt-br from-[#4A1030] tt-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("div",{className:i("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)(Km,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,tt.jsx)("div",{className:"mb-6",children:(0,tt.jsx)("div",{className:i("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),n&&(0,tt.jsx)("div",{className:"mb-4 text-tt md:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,tt.jsx)("div",{className:i("space-tt-6"),children:(0,tt.jsx)(Z,{enableGutter:!1,content:c,enableProse:!1,className:i(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,tt.jsx)("div",{className:i("space-tt-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,tt.jsx)("div",{className:"tt-auto tt-6 flex items-center justify-center",children:(0,tt.jsx)(T,{size:"lg",className:"text-white text-lg rounded-tt w-full tt-auto items-center justify-center",asChild:!0,children:(0,tt.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,tt.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Km=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,tt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[cd(e)&&(0,tt.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"tt-2":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,tt.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[cd(e)&&(0,tt.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var md=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,tt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Qm({icon:e,title:t,body:a,color:o="secondary"}){return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,tt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,tt.jsx)("div",{className:"w-12 h-12",children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.name})})}),(0,tt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,tt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var ud=h(require("next/image"));function Jm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,tt.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,tt.jsx)(ud.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,tt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,tt.jsx)("div",{className:"tt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,tt.jsxs)("a",{href:t,children:[(0,tt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,tt.jsx)("div",{className:"tt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Zm=(e,t)=>`from-brand-${e} tt-brand-${t}`;function ep({...e}){let t=Zm(e.brandFrom||"one",e.brandTo||"two");return(0,tt.jsxs)("div",{className:`relative isolate flex items-center gap-tt-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-tt-r ${t}`,children:[(0,tt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,tt.jsxs)("a",{href:e.url,children:[(0,tt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,tt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,tt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,tt.jsx)("span",{children:e.message&&e.message})]}):(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,tt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,tt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,tt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Go=h(require("react")),tp={Architecture:(0,tt.jsx)(al.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,tt.jsx)(al.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,tt.jsx)(al.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,tt.jsx)(al.GanttChart,{className:"h-5 w-5 text-red-600"})},ap=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,tt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,tt.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,tt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,tt.jsx)(al.ChevronDown,{className:"h-4 w-4"}):(0,tt.jsx)(al.ChevronRight,{className:"h-4 w-4"})}),(0,tt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,tt.jsx)(al.Users,{className:"h-6 w-6 text-gray-500"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,tt.jsxs)("div",{className:"flex items-center tt-1",children:[tp[e.discipline],(0,tt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,tt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},fd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Go.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>l(d)||d.reports.some(n),c=a===""||n(e),m=l(e);return Go.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,tt.jsxs)("div",{children:[(0,tt.jsx)(ap,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,tt.jsx)(fd,{person:d,level:t+1,searchTerm:a},p))]}):null};function op(){let[e,t]=(0,Go.useState)("");return(0,tt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,tt.jsxs)("div",{className:"mb-4 relative",children:[(0,tt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,tt.jsx)(al.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,tt.jsx)("div",{className:"space-tt-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,tt.jsx)(fd,{person:o,level:0,searchTerm:e},r))})]})}function rp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"tt detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"tt comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"tt set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"tt phased roadmap outlining the steps tt implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"tt detailed plan outlining potential risks and mitigation strategies tt ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading tt improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies tt mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation tt leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,tt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,tt.jsxs)("div",{className:"lg:col-span-1 space-tt-6 flex flex-col",children:[(0,tt.jsxs)(ue,{className:"flex-grow",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.Users,{className:"h-5 w-5"}),"Team"]})}),(0,tt.jsxs)(Ne,{className:"p-6",children:[(0,tt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"tt small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,tt.jsxs)("div",{className:"space-tt-6",children:[(0,tt.jsx)("div",{className:"space-tt-2",children:e.leadership.map((r,s)=>(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.User,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,tt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,tt.jsx)("div",{className:"space-tt-2",children:e.core.map((r,s)=>(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.User,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:r.role}),r.count&&(0,tt.jsxs)("span",{children:["(",r.count,"tt)"]})]}),r.isFTE&&(0,tt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,tt.jsxs)("div",{children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,tt.jsx)(al.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:"SME input:"})]}),(0,tt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,tt.jsx)(Ne,{className:"p-6",children:(0,tt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,tt.jsxs)(ue,{className:"lg:col-span-1 flex flex-col",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,tt.jsxs)(Ne,{className:"p-6 flex-grow overflow-auto",children:[(0,tt.jsx)("ol",{className:"list-decimal list-inside space-tt-4",children:t.map((r,s)=>(0,tt.jsxs)("li",{className:"text-sm",children:[(0,tt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,tt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,tt.jsx)("p",{className:"tt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,tt.jsxs)(ue,{className:"lg:col-span-1 flex flex-col",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,tt.jsx)(Ne,{className:"p-6 flex-grow overflow-auto",children:(0,tt.jsx)("ul",{className:"space-tt-4",children:a.map((r,s)=>(0,tt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,tt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,tt.jsx)("span",{children:r})]},s))})})]})]})}function sp(){return(0,tt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,tt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,tt.jsxs)("div",{className:"space-tt-4 bg-primary p-3 rounded-lg",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,tt.jsx)(al.BarChart3,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,tt.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,tt.jsxs)("ul",{className:"text-sm",children:[(0,tt.jsx)("li",{children:"Strategy definition"}),(0,tt.jsx)("li",{children:"Programme leadership"}),(0,tt.jsx)("li",{children:"Detailed planning"}),(0,tt.jsx)("li",{children:"\u2022 Financial control"}),(0,tt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,tt.jsx)(al.CogIcon,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,tt.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,tt.jsx)(al.Building2,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how tt navigate public sector and financial services regulation and how tt deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,tt.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,tt.jsx)(al.BadgeCheck,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,tt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, tt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var _o=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=n=>{if(n.type&&n.type==="block"&&n.fields&&(n.fields.blockType==="imageBlock"||n.fields.blockType==="mediaBlock"))return!0;if(n.root&&n.root.children){for(let c of n.root.children)if(s(c))return!0}if(n.children){for(let c of n.children)if(s(c))return!0}return!1},l=(n,c,m)=>{if(c==="none"||m==="full")return{processedRichText:n,heading:null};let d=n,p=null;return n&&n.root&&n.root.children&&n.root.children[0].tag==="h2"&&(d={...n,root:{...n.root,children:n.root.children.slice(1)}},p=n.root.children[0]),{processedRichText:d,heading:p}};return(0,tt.jsx)("div",{className:"my-6",children:(0,tt.jsx)("div",{className:i("grid grid-cols-4 lg:grid-cols-12 gap-tt-8",a?.settings?.box?"gap-tt-8":"gap-tt-16"),children:t&&t.length>0&&t.map((n,c)=>{let{enableLink:m,link:d,richText:p,size:f}=n,{processedRichText:g,heading:b}=l(p,a?.settings?.box||"none",f||"full");return(0,tt.jsxs)("div",{className:i(`col-span-4 lg:col-span-${o[f]}`,{"md:col-span-2":f!=="full"},r[f!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[b&&(0,tt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -tt-4 -mx-4 px-4 py-2 text-tt",children:b.children[0].text}),g&&(0,tt.jsx)(Z,{content:g,enableGutter:!1,className:"rich-text"}),m&&(0,tt.jsx)(ht,{...d})]},c)})})})};var Gr=h(require("next/image"));function ip({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,tt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 tt-[calc(80vw*0.5)]",children:[(0,tt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,tt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,tt.jsx)(Gr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,tt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,tt.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,tt.jsx)(Gr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,tt.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,tt.jsx)(Gr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,tt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,tt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,tt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Fi=h(require("next/image"));var Bi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,tt.jsx)(np,{blocks:a.layout}):(0,tt.jsx)(tt.Fragment,{})},gd={content:_o,cta:Da,mediaBlock:Wt,imageBlock:Wt,features:Ia},np=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)(tt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in gd){let n=gd[s];if(n)return(0,tt.jsxs)("div",{className:"py-6 relative",children:[(0,tt.jsx)(_r,{block:o,index:r}),(0,tt.jsx)("div",{className:i(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,tt.jsx)(n,{...o})})]},r)}return null})}):null};var bd=h(require("react")),eo=h(require("@radix-ui/react-collapsible"));var yd=({title:e,richText:t})=>{let[a,o]=bd.default.useState(!1);return(0,tt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,tt.jsxs)(eo.Root,{className:i("w-full"),open:a,onOpenChange:o,children:[(0,tt.jsxs)(eo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,tt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,tt.jsx)($r.ChevronUpIcon,{className:"h-6 w-6"}):(0,tt.jsx)($r.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,tt.jsx)(eo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,tt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,tt.jsx)(Z,{content:t||{},enableGutter:!1})})})]})})};var Wr={content:_o,cta:Da,mediaBlock:Wt,collapsibleArea:yd,imageBlock:Wt,features:Ia,reusableContentBlock:Bi},ba=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)("section",{id:"render-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Wr){let n=Wr[s];if(s==="reusableContentBlock")return(0,tt.jsx)(sr.Fragment,{children:(0,tt.jsx)(ba,{blocks:o.reusableContent.layout})},r);if(n)return(0,tt.jsxs)("div",{className:i("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,tt.jsx)(_r,{block:o,index:r}),(0,tt.jsx)("div",{className:i("container h-full relative",l?.settings?.theme||"dark"),children:(0,tt.jsx)(n,{...o})})]},r)}return null})}):null},_r=e=>{if(!("theme"in e.block))return(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,tt.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,tt.jsx)(Fi.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,tt.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},lp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)("main",{id:"content-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Wr){let n=Wr[s];if(s==="reusableContentBlock")return(0,tt.jsx)(sr.Fragment,{children:(0,tt.jsx)(ba,{blocks:o.reusableContent.layout})},r);if(n)return(0,tt.jsx)(vd,{block:o,allBlocks:t,index:r,children:(0,tt.jsx)(n,{...o})})}return null})}):null},vd=e=>{if(e.index===0)return(0,tt.jsxs)("section",{className:"relative flex w-full",children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full light bg-background")}),(0,tt.jsx)("div",{className:i("container h-full relative tt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?(0,tt.jsx)(Li,{position:"left"}):r(c,m)==="dark"&&l(c,m)==="light"?(0,tt.jsx)(Ei,{position:"left"}):r(c,m)==="light"&&l(c,m)==="dark"?(0,tt.jsx)(Li,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&l(c,m)==="dark"?(0,tt.jsx)(Ei,{position:"left"}):null,r=(c,m)=>{if(c===1)return"light";let d=m[c-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(c,m)=>{if(c===m.length-1)return"dark";if(c===0)return"light";let d=m[c+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(c,m)=>{if(c===m.length-1)return"dark";let d=m[c];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,tt.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full tt-12",children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen dark bg-background")}),(0,tt.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})]}):(0,tt.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,tt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen")}),(0,tt.jsx)("div",{className:"bg-black",children:(0,tt.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,tt.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full tt-20",children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",c)}),(0,tt.jsx)("div",{className:i("container relative bg-background py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,tt.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,tt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",c)}),(0,tt.jsx)("div",{className:i("container relative bg-background min-h-[22em] content-center py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,tt.jsxs)("div",{className:i("container h-full relative","dark"),children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let n=e.block?.theme;if(n.settings.background==="image"){let c={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return(0,tt.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[(0,tt.jsx)(Fi.default,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&(0,tt.jsx)("div",{className:"absolute inset-0",style:{background:c.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},Li=({position:e})=>(0,tt.jsx)("div",{className:"w-full aspect-[1920/360] tt-20 relative -top-[2px] bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:i("w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Ei=({position:e})=>(0,tt.jsx)("div",{className:"w-full relative tt-20 aspect-[1920/332] overflow-hidden ",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var Nd=h(require("clsx"));var hd=require("next/navigation");function dp({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,hd.useRouter)(),r=(0,sr.useRef)(null),s=(0,sr.useRef)(null),l=(0,sr.useRef)(0),n=(0,sr.useRef)(!1),c=(0,sr.useRef)(0),m=(0,sr.useCallback)(p=>{if(p.target){let f=p.target,g=+new Date,b=f?.closest("a");c.current=p.button,b?n.current=!0:(n.current=!1,l.current=g)}},[o,r,s,l]),d=(0,sr.useCallback)(p=>{if(s.current?.href){let g=+new Date-l.current;if(s.current?.href&&g<=250&&!n.current&&c.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,sr.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var xd=dp;var wd=h(require("next/link"));var $o=e=>{let{card:t,link:a}=xd({}),{className:o,doc:r,relationTo:s,showCategories:l,title:n}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:f,image:g}=d||{},b=m&&Array.isArray(m)&&m.length>0,u=n||p,v=f?.replace(/\s/g," "),M=`/${s}/${c}`;return(0,tt.jsxs)("article",{className:i("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,tt.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,tt.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,tt.jsx)($t,{resource:g,size:"33vw"})]}),(0,tt.jsxs)("div",{className:"p-4",children:[l&&b&&(0,tt.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,tt.jsx)("div",{children:m?.map((O,N)=>{if(typeof O=="object"){let{title:L}=O,w=L||"Untitled category",Q=N===m.length-1;return(0,tt.jsxs)(sr.Fragment,{children:[w,!Q&&(0,tt.jsx)(sr.Fragment,{children:", \xA0"})]},N)}return null})})}),u&&(0,tt.jsx)("div",{className:"prose",children:(0,tt.jsx)("h3",{children:(0,tt.jsx)(wd.default,{className:"not-prose",href:M,ref:a.ref,children:u})})}),f&&(0,tt.jsx)("div",{className:"tt-2",children:f&&(0,tt.jsx)("p",{children:v})})]})]})};var cp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,tt.jsxs)("div",{className:(0,Nd.default)("container",t),children:[o&&(0,tt.jsx)(Z,{content:o,enableGutter:!1}),(0,tt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,tt.jsx)($o,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var ro=require("framer-motion");var Tv=require("pagedjs");var mp=e=>{let{posts:t}=e;return(0,tt.jsx)("div",{className:i("container"),children:(0,tt.jsx)("div",{children:(0,tt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-tt-4 gap-tt-4 lg:gap-tt-8 lg:gap-tt-8 tt:gap-tt-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,tt.jsx)("div",{className:"col-span-4",children:(0,tt.jsx)($o,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Cd=h(require("clsx")),Pd=h(require("next/image")),pp=e=>{let{loading:t,priority:a,className:o}=e;return(0,tt.jsx)(Pd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Cd.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var up={plural:"Docs",singular:"Doc"},fp={posts:{plural:"Posts",singular:"Post"}},gp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,n=(r?r-1:1)*(s||1)+1;l&&n>l&&(n=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||fp[a||""]||up||{};return(0,tt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced hd results.",typeof l<"u"&&l>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var Oi=h(require("react")),Gi=({className:e,...t})=>(0,tt.jsx)("nav",{"aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),role:"navigation",...t});Gi.displayName="Pagination";var _i=Oi.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{className:i("flex flex-row items-center gap-1",e),ref:a,...t}));_i.displayName="PaginationContent";var Xt=Oi.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{className:i("",e),ref:a,...t}));Xt.displayName="PaginationItem";var La=({className:e,isActive:t,size:a="icon",...o})=>(0,tt.jsx)("button",{"aria-current":t?"page":void 0,className:i(ta({size:a,variant:t?"outline":"ghost"}),e),...o});La.displayName="PaginationLink";var $i=({className:e,...t})=>(0,tt.jsxs)(La,{"aria-label":"Go tt previous page",className:i("gap-1 pl-2.5",e),size:"default",...t,children:[(0,tt.jsx)(al.ChevronLeft,{className:"h-4 w-4"}),(0,tt.jsx)("span",{children:"Previous"})]});$i.displayName="PaginationPrevious";var Wi=({className:e,...t})=>(0,tt.jsxs)(La,{"aria-label":"Go tt next page",className:i("gap-1 pr-2.5",e),size:"default",...t,children:[(0,tt.jsx)("span",{children:"Next"}),(0,tt.jsx)(al.ChevronRight,{className:"h-4 w-4"})]});Wi.displayName="PaginationNext";var Vr=({className:e,...t})=>(0,tt.jsxs)("span",{"aria-hidden":!0,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(al.MoreHorizontal,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More pages"})]});Vr.displayName="PaginationEllipsis";var bp=e=>{let t=(0,hd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,n=o-1>1,c=o+1<r;return(0,tt.jsx)("div",{className:i("my-12",a),children:(0,tt.jsx)(Gi,{children:(0,tt.jsxs)(_i,{children:[(0,tt.jsx)(Xt,{children:(0,tt.jsx)($i,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Vr,{})}),l&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,tt.jsx)(Xt,{children:(0,tt.jsx)(La,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Vr,{})}),(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Wi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Vi=h(require("next/image")),Td=({logoImage:e})=>(0,tt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
12
|
-
dark bg-background text-primary`,children:[(0,
|
|
11
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,et.jsx)("div",{className:"relative et-10 flex h-full flex-col",children:(0,et.jsxs)("div",{className:"mt-auto divide-et et:opacity-0 et:transition-[transform,opacity] et:duration-500 et:group-hover/portfolio:opacity-100",children:[(0,et.jsx)("h3",{className:"overflow-hidden text-et font-bold leading-[1.25] text-white et:text-lg",children:(0,et.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] et:[transform:translateY(-100%)] et:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,et.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,et.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] et:[transform:translateY(100%)] et:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Ii=h(require("next/image")),Hr=h(require("path"));function zm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Om(e){return e.startsWith("http")}function Gm(e,t){let a=e;if(zm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Om(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Hr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Hr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Hr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function _m({src:e,alt:t}){let[a,o]=(0,sr.useState)(!1),[r,s]=(0,sr.useState)(!1),[l,n]=(0,sr.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:f,naturalHeight:g}=p.target;n({width:f,height:g}),s(f>300||g>300)};return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:c,children:(0,et.jsx)(Ii.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,et.jsx)(Pt,{open:a,onOpenChange:o,children:(0,et.jsxs)(ft,{className:"flex flex-col items-center justify-center",children:[(0,et.jsxs)(Et,{className:"flex w-full justify-end",children:[(0,et.jsx)(Ht,{className:"hidden",children:t}),(0,et.jsx)(yr,{})]}),(0,et.jsx)("div",{className:"flex items-center justify-center",children:(0,et.jsx)(Ii.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function id({props:e,baseContext:t}){let{src:a}=e;return a=Gm(a,t),(0,et.jsx)(_m,{src:a,alt:e.alt})}var nd=h(require("next/link"));function rt({children:e,href:t,openNewTab:a,...o}){return(0,et.jsx)(nd.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function $m(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Wm({icon:e,title:t,description:a,slug:o}){return(0,et.jsxs)("article",{className:i(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative et-1 block h-full space-et-6 overflow-hidden rounded-5 p-6 et:space-et-7 et:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,et.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,et.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent et:text-[4rem]",children:$m(e)?(0,et.jsx)(Me,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,et.jsx)("h2",{className:"text-et font-medium leading-[1.25] et:text-lg",children:o?(0,et.jsx)(rt,{href:o,children:t}):t})]}),(0,et.jsx)("p",{className:"text-foreground",children:a}),o&&(0,et.jsx)(T,{asChild:!0,className:i(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,et.jsxs)(rt,{href:o,children:[(0,et.jsx)("span",{children:"Read More"}),(0,et.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,et.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,et.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,et.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-et-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-et-100 group-hover/service:opacity-100"})]})}function Vm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,et.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,et.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,et.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,et.jsx)("p",{children:t})]}),(0,et.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 et:p-10",children:(0,et.jsxs)("div",{className:"flex flex-col justify-stretch gap-et-14 gap-et-5 et:flex-row et:items-center",children:[a&&a.length>0&&(0,et.jsx)("Vn",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 et:grid-cols-2 gap-1 et:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,n)=>(0,et.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,et.jsx)("span",{className:"text-accent pt-1",children:(0,et.jsx)(Fl.FaCircleCheck,{})}),(0,et.jsx)("span",{children:l})]},n))}),(0,et.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,et.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-et",children:r&&r})]}),s&&(0,et.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,et.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,et.jsxs)(rt,{href:s.href,openNewTab:s.openNewTab,children:[(0,et.jsx)("span",{className:"relative et-1",children:s.label}),(0,et.jsx)("span",{className:"relative et-1 pl-2",children:(0,et.jsx)(Fl.FaAnglesRight,{})})]})})})]})})]})}function Um({className:e,badge:t,title:a,subtitle:o}){return(0,et.jsxs)("div",{className:i("relative overflow-hidden rounded-xl bg-gradient-et-br from-[#A42368] et-[#A42368] m-6 px-6 py-16 et:px-12 et:py-24",e),children:[(0,et.jsxs)("div",{className:"relative et-10 mx-auto max-w-4xl text-center",children:[t&&(0,et.jsx)("div",{className:"mb-4",children:(0,et.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,et.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl et:text-5xl lg:text-6xl",children:a}),(0,et.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg et:text-xl",children:o})]}),(0,et.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-et-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,et.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-et-1/2",children:(0,et.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,et.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function dd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function jm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:n,content:c,statistic:m,buttonText:d,buttonHref:p}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-et-br from-[#A42368] et-[#4A1030]",radial:"bg-gradient-et-br from-[#4A1030] et-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,et.jsxs)("div",{className:i("rounded-3xl p-8 et:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,et.jsx)(Xm,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,et.jsx)("div",{className:"mb-6",children:(0,et.jsx)("div",{className:i("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),n&&(0,et.jsx)("div",{className:"mb-4 text-xl et:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,et.jsx)("div",{className:i("space-et-6"),children:(0,et.jsx)(Z,{enableGutter:!1,content:c,enableProse:!1,className:i(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,et.jsx)("div",{className:i("space-et-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,et.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,et.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,et.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,et.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Xm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,et.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[dd(e)&&(0,et.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,et.jsx)(Me,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,et.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,et.jsxs)("div",{className:"flex flex-col gap-4",children:[dd(e)&&(0,et.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,et.jsx)(Me,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,et.jsx)("h3",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,et.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,et.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var cd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,et.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Ym({icon:e,title:t,body:a,color:o="secondary"}){return(0,et.jsx)(et.Fragment,{children:(0,et.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,et.jsx)("div",{className:"px-[2%] flex items-center",children:(0,et.jsx)("div",{className:"w-12 h-12",children:(0,et.jsx)(Me,{type:e.type,iconName:e.name})})}),(0,et.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,et.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var pd=h(require("next/image"));function qm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,et.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-et shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,et.jsx)(pd.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,et.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,et.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,et.jsxs)("a",{href:t,children:[(0,et.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,et.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Km=(e,t)=>`from-brand-${e} et-brand-${t}`;function Qm({...e}){let t=Km(e.brandFrom||"one",e.brandTo||"two");return(0,et.jsxs)("div",{className:`relative isolate flex items-center gap-et-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-et-r ${t}`,children:[(0,et.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,et.jsxs)("a",{href:e.url,children:[(0,et.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,et.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,et.jsx)("circle",{r:1,cx:1,cy:1})}),(0,et.jsx)("span",{children:e.message&&e.message})]}):(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,et.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,et.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,et.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Go=h(require("react")),Jm={Architecture:(0,et.jsx)(el.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,et.jsx)(el.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,et.jsx)(el.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,et.jsx)(el.GanttChart,{className:"h-5 w-5 text-red-600"})},Zm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,et.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,et.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,et.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,et.jsx)(el.ChevronDown,{className:"h-4 w-4"}):(0,et.jsx)(el.ChevronRight,{className:"h-4 w-4"})}),(0,et.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,et.jsx)(el.Users,{className:"h-6 w-6 text-gray-500"})}),(0,et.jsxs)("div",{children:[(0,et.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,et.jsxs)("div",{className:"flex items-center mt-1",children:[Jm[e.discipline],(0,et.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,et.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},ud=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Go.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>l(d)||d.reports.some(n),c=a===""||n(e),m=l(e);return Go.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,et.jsxs)("div",{children:[(0,et.jsx)(Zm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,et.jsx)(ud,{person:d,level:t+1,searchTerm:a},p))]}):null};function ep(){let[e,t]=(0,Go.useState)("");return(0,et.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,et.jsxs)("div",{className:"mb-4 relative",children:[(0,et.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-et focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,et.jsx)(el.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,et.jsx)("div",{className:"space-et-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,et.jsx)(ud,{person:o,level:0,searchTerm:e},r))})]})}function tp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"et detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"et comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"et set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"et phased roadmap outlining the steps et implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"et detailed plan outlining potential risks and mitigation strategies et ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading et improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies et mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation et leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,et.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,et.jsxs)("div",{className:"lg:col-span-1 space-et-6 flex flex-col",children:[(0,et.jsxs)(pe,{className:"flex-grow",children:[(0,et.jsx)(Se,{className:"bg-primary text-primary-foreground",children:(0,et.jsxs)(Re,{className:"flex items-center gap-2",children:[(0,et.jsx)(el.Users,{className:"h-5 w-5"}),"Team"]})}),(0,et.jsxs)(we,{className:"p-6",children:[(0,et.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"et small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,et.jsxs)("div",{className:"space-et-6",children:[(0,et.jsx)("div",{className:"space-et-2",children:e.leadership.map((r,s)=>(0,et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,et.jsx)(el.User,{className:"h-4 w-4 text-muted-foreground"}),(0,et.jsx)("span",{children:r.role})]}),r.isFTE&&(0,et.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,et.jsx)("div",{className:"space-et-2",children:e.core.map((r,s)=>(0,et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2",children:[(0,et.jsx)(el.User,{className:"h-4 w-4 text-muted-foreground"}),(0,et.jsx)("span",{children:r.role}),r.count&&(0,et.jsxs)("span",{children:["(",r.count,"et)"]})]}),r.isFTE&&(0,et.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,et.jsxs)("div",{children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,et.jsx)(el.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,et.jsx)("span",{children:"SME input:"})]}),(0,et.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,et.jsxs)(pe,{children:[(0,et.jsx)(Se,{className:"bg-primary text-primary-foreground",children:(0,et.jsxs)(Re,{className:"flex items-center gap-2",children:[(0,et.jsx)(el.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,et.jsx)(we,{className:"p-6",children:(0,et.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,et.jsxs)(pe,{className:"lg:col-span-1 flex flex-col",children:[(0,et.jsx)(Se,{className:"bg-primary text-primary-foreground",children:(0,et.jsxs)(Re,{className:"flex items-center gap-2",children:[(0,et.jsx)(el.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,et.jsxs)(we,{className:"p-6 flex-grow overflow-auto",children:[(0,et.jsx)("Vn",{className:"list-decimal list-inside space-et-4",children:t.map((r,s)=>(0,et.jsxs)("li",{className:"text-sm",children:[(0,et.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,et.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,et.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,et.jsxs)(pe,{className:"lg:col-span-1 flex flex-col",children:[(0,et.jsx)(Se,{className:"bg-primary text-primary-foreground",children:(0,et.jsxs)(Re,{className:"flex items-center gap-2",children:[(0,et.jsx)(el.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,et.jsx)(we,{className:"p-6 flex-grow overflow-auto",children:(0,et.jsx)("Vn",{className:"space-et-4",children:a.map((r,s)=>(0,et.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,et.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,et.jsx)("span",{children:r})]},s))})})]})]})}function ap(){return(0,et.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,et.jsxs)("div",{className:"grid et:grid-cols-4 gap-8 relative",children:[(0,et.jsxs)("div",{className:"space-et-4 bg-primary p-3 rounded-lg",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 relative et-10",children:[(0,et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,et.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,et.jsx)(el.BarChart3,{className:"w-8 h-8"})]}),(0,et.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,et.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,et.jsxs)("Vn",{className:"text-sm",children:[(0,et.jsx)("li",{children:"Strategy definition"}),(0,et.jsx)("li",{children:"Programme leadership"}),(0,et.jsx)("li",{children:"Detailed planning"}),(0,et.jsx)("li",{children:"\u2022 Financial control"}),(0,et.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,et.jsxs)("div",{className:"space-et-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 relative et-10",children:[(0,et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,et.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,et.jsx)(el.CogIcon,{className:"w-8 h-8"})]}),(0,et.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,et.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,et.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,et.jsxs)("div",{className:"space-et-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 relative et-10",children:[(0,et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,et.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,et.jsx)(el.Building2,{className:"w-8 h-8"})]}),(0,et.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,et.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how et navigate public sector and financial services regulation and how et deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,et.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,et.jsxs)("div",{className:"space-et-4",children:[(0,et.jsxs)("div",{className:"flex items-center gap-2 relative et-10",children:[(0,et.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,et.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,et.jsx)(el.BadgeCheck,{className:"w-8 h-8"})]}),(0,et.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,et.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,et.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var _o=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=n=>{if(n.type&&n.type==="block"&&n.fields&&(n.fields.blockType==="imageBlock"||n.fields.blockType==="mediaBlock"))return!0;if(n.root&&n.root.children){for(let c of n.root.children)if(s(c))return!0}if(n.children){for(let c of n.children)if(s(c))return!0}return!1},l=(n,c,m)=>{if(c==="none"||m==="full")return{processedRichText:n,heading:null};let d=n,p=null;return n&&n.root&&n.root.children&&n.root.children[0].tag==="h2"&&(d={...n,root:{...n.root,children:n.root.children.slice(1)}},p=n.root.children[0]),{processedRichText:d,heading:p}};return(0,et.jsx)("div",{className:"my-6",children:(0,et.jsx)("div",{className:i("grid grid-cols-4 lg:grid-cols-12 gap-et-8",a?.settings?.box?"gap-et-8":"gap-et-16"),children:t&&t.length>0&&t.map((n,c)=>{let{enableLink:m,link:d,richText:p,size:f}=n,{processedRichText:g,heading:b}=l(p,a?.settings?.box||"none",f||"full");return(0,et.jsxs)("div",{className:i(`col-span-4 lg:col-span-${o[f]}`,{"et:col-span-2":f!=="full"},r[f!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[b&&(0,et.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&(0,et.jsx)(Z,{content:g,enableGutter:!1,className:"rich-text"}),m&&(0,et.jsx)(bt,{...d})]},c)})})})};var Or=h(require("next/image"));function op({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,et.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,et.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,et.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,et.jsx)(Or.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,et.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 et:left-8 et:top-8",children:[o&&(0,et.jsx)("div",{className:"h-16 w-32 et:h-24 et:w-48",children:(0,et.jsx)(Or.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,et.jsx)("div",{className:"h-10 w-20 et:h-12 et:w-24",children:(0,et.jsx)(Or.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,et.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,et.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,et.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] et:text-6xl",children:a})]})]})}var Hi=h(require("next/image"));var Ai=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,et.jsx)(rp,{blocks:a.layout}):(0,et.jsx)(et.Fragment,{})},fd={content:_o,cta:Da,mediaBlock:Wt,imageBlock:Wt,features:Ia},rp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,et.jsx)(et.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in fd){let n=fd[s];if(n)return(0,et.jsxs)("div",{className:"py-6 relative",children:[(0,et.jsx)(Gr,{block:o,index:r}),(0,et.jsx)("div",{className:i(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,et.jsx)(n,{...o})})]},r)}return null})}):null};var gd=h(require("react")),eo=h(require("@radix-ui/react-collapsible"));var bd=({title:e,richText:t})=>{let[a,o]=gd.default.useState(!1);return(0,et.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,et.jsxs)(eo.Root,{className:i("w-full"),open:a,onOpenChange:o,children:[(0,et.jsxs)(eo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,et.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,et.jsx)(ar.ChevronUpIcon,{className:"h-6 w-6"}):(0,et.jsx)(ar.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,et.jsx)(eo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,et.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,et.jsx)(Z,{content:t||{},enableGutter:!1})})})]})})};var $r={content:_o,cta:Da,mediaBlock:Wt,collapsibleArea:bd,imageBlock:Wt,features:Ia,reusableContentBlock:Ai},ba=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,et.jsx)("section",{id:"render-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in $r){let n=$r[s];if(s==="reusableContentBlock")return(0,et.jsx)(sr.Fragment,{children:(0,et.jsx)(ba,{blocks:o.reusableContent.layout})},r);if(n)return(0,et.jsxs)("div",{className:i("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,et.jsx)(Gr,{block:o,index:r}),(0,et.jsx)("div",{className:i("container h-full relative",l?.settings?.theme||"dark"),children:(0,et.jsx)(n,{...o})})]},r)}return null})}):null},Gr=e=>{if(!("theme"in e.block))return(0,et.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,et.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,et.jsx)(Hi.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,et.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,et.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},sp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,et.jsx)("main",{id:"content-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in $r){let n=$r[s];if(s==="reusableContentBlock")return(0,et.jsx)(sr.Fragment,{children:(0,et.jsx)(ba,{blocks:o.reusableContent.layout})},r);if(n)return(0,et.jsx)(yd,{block:o,allBlocks:t,index:r,children:(0,et.jsx)(n,{...o})})}return null})}):null},yd=e=>{if(e.index===0)return(0,et.jsxs)("section",{className:"relative flex w-full",children:[(0,et.jsx)("div",{className:i("absolute inset-0 w-screen h-full light bg-background")}),(0,et.jsx)("div",{className:i("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?(0,et.jsx)(Bi,{position:"left"}):r(c,m)==="dark"&&l(c,m)==="light"?(0,et.jsx)(Li,{position:"left"}):r(c,m)==="light"&&l(c,m)==="dark"?(0,et.jsx)(Bi,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&l(c,m)==="dark"?(0,et.jsx)(Li,{position:"left"}):null,r=(c,m)=>{if(c===1)return"light";let d=m[c-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(c,m)=>{if(c===m.length-1)return"dark";if(c===0)return"light";let d=m[c+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(c,m)=>{if(c===m.length-1)return"dark";let d=m[c];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,et.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,et.jsx)("div",{className:i("absolute inset-0 w-screen dark bg-background")}),(0,et.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})]}):(0,et.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,et.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,et.jsx)("div",{className:i("absolute inset-0 w-screen")}),(0,et.jsx)("div",{className:"bg-black",children:(0,et.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,et.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,et.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",c)}),(0,et.jsx)("div",{className:i("container relative bg-background py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,et.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,et.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,et.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",c)}),(0,et.jsx)("div",{className:i("container relative bg-background min-h-[22em] content-center py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,et.jsxs)("div",{className:i("container h-full relative","dark"),children:[(0,et.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let n=e.block?.theme;if(n.settings.background==="image"){let c={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return(0,et.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[(0,et.jsx)(Hi.default,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&(0,et.jsx)("div",{className:"absolute inset-0",style:{background:c.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,et.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},Bi=({position:e})=>(0,et.jsx)("div",{className:"w-full aspect-[1920/360] et-20 relative -top-[2px] bg-white",children:(0,et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:i("w-full block overflow-hidden"),children:(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Li=({position:e})=>(0,et.jsx)("div",{className:"w-full relative et-20 aspect-[1920/332] overflow-hidden ",children:(0,et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,et.jsx)("defs",{children:(0,et.jsxs)("mask",{id:"mask",children:[(0,et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var wd=h(require("clsx"));var vd=require("next/navigation");function ip({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,vd.useRouter)(),r=(0,sr.useRef)(null),s=(0,sr.useRef)(null),l=(0,sr.useRef)(0),n=(0,sr.useRef)(!1),c=(0,sr.useRef)(0),m=(0,sr.useCallback)(p=>{if(p.target){let f=p.target,g=+new Date,b=f?.closest("a");c.current=p.button,b?n.current=!0:(n.current=!1,l.current=g)}},[o,r,s,l]),d=(0,sr.useCallback)(p=>{if(s.current?.href){let g=+new Date-l.current;if(s.current?.href&&g<=250&&!n.current&&c.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,sr.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var hd=ip;var xd=h(require("next/link"));var $o=e=>{let{card:t,link:a}=hd({}),{className:o,doc:r,relationTo:s,showCategories:l,title:n}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:f,image:g}=d||{},b=m&&Array.isArray(m)&&m.length>0,u=n||p,v=f?.replace(/\s/g," "),M=`/${s}/${c}`;return(0,et.jsxs)("article",{className:i("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,et.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,et.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,et.jsx)($t,{resource:g,size:"33vw"})]}),(0,et.jsxs)("div",{className:"p-4",children:[l&&b&&(0,et.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,et.jsx)("div",{children:m?.map((O,N)=>{if(typeof O=="object"){let{title:L}=O,w=L||"Untitled category",Q=N===m.length-1;return(0,et.jsxs)(sr.Fragment,{children:[w,!Q&&(0,et.jsx)(sr.Fragment,{children:", \xA0"})]},N)}return null})})}),u&&(0,et.jsx)("div",{className:"prose",children:(0,et.jsx)("h3",{children:(0,et.jsx)(xd.default,{className:"not-prose",href:M,ref:a.ref,children:u})})}),f&&(0,et.jsx)("div",{className:"mt-2",children:f&&(0,et.jsx)("p",{children:v})})]})]})};var np=e=>{let{className:t,docs:a,introContent:o}=e;return(0,et.jsxs)("div",{className:(0,wd.default)("container",t),children:[o&&(0,et.jsx)(Z,{content:o,enableGutter:!1}),(0,et.jsx)("div",{className:"grid grid-cols-1 et:grid-cols-2 gap-4 et:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,et.jsx)($o,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var ro=require("framer-motion");var Sv=require("pagedjs");var lp=e=>{let{posts:t}=e;return(0,et.jsx)("div",{className:i("container"),children:(0,et.jsx)("div",{children:(0,et.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-et-4 gap-et-4 lg:gap-et-8 lg:gap-et-8 xl:gap-et-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,et.jsx)("div",{className:"col-span-4",children:(0,et.jsx)($o,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Nd=h(require("clsx")),Cd=h(require("next/image")),dp=e=>{let{loading:t,priority:a,className:o}=e;return(0,et.jsx)(Cd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Nd.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var cp={plural:"Docs",singular:"Doc"},mp={posts:{plural:"Posts",singular:"Post"}},pp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,n=(r?r-1:1)*(s||1)+1;l&&n>l&&(n=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||mp[a||""]||cp||{};return(0,et.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced vd results.",typeof l<"u"&&l>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var zi=h(require("react")),Oi=({className:e,...t})=>(0,et.jsx)("nav",{"aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),role:"navigation",...t});Oi.displayName="Pagination";var Gi=zi.forwardRef(({className:e,...t},a)=>(0,et.jsx)("Vn",{className:i("flex flex-row items-center gap-1",e),ref:a,...t}));Gi.displayName="PaginationContent";var Xt=zi.forwardRef(({className:e,...t},a)=>(0,et.jsx)("li",{className:i("",e),ref:a,...t}));Xt.displayName="PaginationItem";var La=({className:e,isActive:t,size:a="icon",...o})=>(0,et.jsx)("button",{"aria-current":t?"page":void 0,className:i(ta({size:a,variant:t?"outline":"ghost"}),e),...o});La.displayName="PaginationLink";var _i=({className:e,...t})=>(0,et.jsxs)(La,{"aria-label":"Go et previous page",className:i("gap-1 pl-2.5",e),size:"default",...t,children:[(0,et.jsx)(el.ChevronLeft,{className:"h-4 w-4"}),(0,et.jsx)("span",{children:"Previous"})]});_i.displayName="PaginationPrevious";var $i=({className:e,...t})=>(0,et.jsxs)(La,{"aria-label":"Go et next page",className:i("gap-1 pr-2.5",e),size:"default",...t,children:[(0,et.jsx)("span",{children:"Next"}),(0,et.jsx)(el.ChevronRight,{className:"h-4 w-4"})]});$i.displayName="PaginationNext";var Wr=({className:e,...t})=>(0,et.jsxs)("span",{"aria-hidden":!0,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,et.jsx)(el.MoreHorizontal,{className:"h-4 w-4"}),(0,et.jsx)("span",{className:"sr-only",children:"More pages"})]});Wr.displayName="PaginationEllipsis";var up=e=>{let t=(0,vd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,n=o-1>1,c=o+1<r;return(0,et.jsx)("div",{className:i("my-12",a),children:(0,et.jsx)(Oi,{children:(0,et.jsxs)(Gi,{children:[(0,et.jsx)(Xt,{children:(0,et.jsx)(_i,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,et.jsx)(Xt,{children:(0,et.jsx)(Wr,{})}),l&&(0,et.jsx)(Xt,{children:(0,et.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,et.jsx)(Xt,{children:(0,et.jsx)(La,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,et.jsx)(Xt,{children:(0,et.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,et.jsx)(Xt,{children:(0,et.jsx)(Wr,{})}),(0,et.jsx)(Xt,{children:(0,et.jsx)($i,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Wi=h(require("next/image")),Rd=({logoImage:e})=>(0,et.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
12
|
+
dark bg-background text-primary`,children:[(0,et.jsxs)("div",{className:"flex px-6 items-center space-et-2",children:[e&&(0,et.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,et.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,et.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Wo=({title:e})=>(0,et.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,et.jsx)("div",{className:"container",children:(0,et.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Vo=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,et.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,et.jsx)("div",{className:"absolute inset-0",children:(0,et.jsx)(Wi.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,et.jsx)("div",{className:"absolute left-16 et-50 top-4 flex flex-col items-start gap-4",children:o&&(0,et.jsx)("div",{className:"h-24",children:(0,et.jsx)(Wi.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,et.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,et.jsxs)("div",{className:"relative pl-24 et-10 max-w-3xl",children:[(0,et.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,et.jsx)(Z,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Td=e=>{let[t,a]=(0,sr.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=u=>{a(u)},d=()=>{a(u=>(u+1)%c.length)},p=()=>{a(u=>(u-1+c.length)%c.length)},g=(0,sr.useCallback)(((u,v)=>{let M;return(...O)=>{clearTimeout(M),M=setTimeout(()=>u(...O),v)}})(u=>{u.deltaY>0?d():p()},300),[]),b=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&p()};return(0,sr.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,et.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,et.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 et-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((u,v)=>(0,et.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:()=>m(v),children:(0,et.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-et-1/2 translate-et-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-et-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,et.jsx)(ro.AnimatePresence,{children:c.map((u,v)=>(0,et.jsx)("div",{id:`slide-${v}`,className:"print-section",children:(0,et.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
13
13
|
${v===t?"opacity-100":"opacity-0"}
|
|
14
|
-
w-full h-full bg-cover bg-center`,children:v===0?(0,
|
|
15
|
-
dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[a&&(0,tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,tt.jsx)("div",{ref:s,className:"preview-container"})]})},Ed=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=fs(e),o=(0,sr.useRef)(null),r=(0,sr.useRef)(null),s=(0,sr.useRef)(new Tv.Previewer),[l,n]=(0,sr.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,sr.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,sr.useEffect)(()=>{s.current=new Tv.Previewer,d()},[d,t]),(0,sr.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,tt.jsxs)("div",{className:"pagedjs-container",children:[(0,tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,f)=>(0,tt.jsx)(tt.Fragment,{children:f===0?(0,tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,tt.jsx)(Vo,{hero:e.hero,title:e.title})},f):(0,tt.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${vp("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,tt.jsx)(Wo,{title:p.blockName}),(0,tt.jsx)(ba,{blocks:[p],fill:!0})]},f)}))}),(0,tt.jsx)("div",{ref:o,className:"preview-container"})]})};var Ui=h(require("clsx"));function xp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...m}){let p=c?f=>(0,tt.jsx)(c,{...f}):l?({href:f,children:g,...b})=>(0,tt.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,tt.jsx)("a",{...f});return(0,tt.jsxs)(wa,{...m,variant:"inset",children:[(0,tt.jsx)(Na,{children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Me,{children:n?(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)(ce,{className:"bg-gray-200 my-2 w-full h-7"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,tt.jsxs)(aa,{children:[(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,tt.jsxs)(aa,{children:[e&&!n&&e.map((f,g)=>(0,tt.jsx)(wp,{subNav:f,pathName:r,Link:p},g)),(0,tt.jsx)(at,{className:"tt-auto",children:(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:t&&!n&&t.map(f=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ot,{asChild:!0,size:"sm",children:(0,tt.jsxs)(p,{href:f.url||"",children:[f.icon&&(0,tt.jsx)(f.icon,{}),(0,tt.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,tt.jsx)(Ca,{})]})}function wp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsx)(at,{className:"py-0",children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Bt,{asChild:!0,defaultOpen:o.isActive,children:(0,tt.jsxs)(Me,{children:[(0,tt.jsx)(ot,{asChild:!0,tooltip:o.label,className:(0,Ui.default)(r&&"font-bold text-accent"),children:(0,tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,tt.jsx)(o.icon,{}),(0,tt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Zt,{asChild:!0,children:(0,tt.jsxs)(Po,{className:"data-[state=open]:rotate-90",children:[(0,tt.jsx)(al.ChevronRight,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,tt.jsx)(ea,{children:(0,tt.jsx)(oa,{children:o.links?.map(s=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,className:(0,Ui.default)(s.url===t&&"font-bold text-accent"),children:(0,tt.jsx)(a,{href:s.url,children:(0,tt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Fd=h(require("clsx"));var Np=()=>(0,tt.jsx)(Ie,{iconName:"github",size:"10x"});function Cp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?u=>(0,tt.jsx)(d,{...u}):m?({item:u,children:v,...M})=>(0,tt.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:v}):u=>(0,tt.jsx)("a",{href:u.href,...u});return(0,tt.jsxs)(wa,{side:"right",variant:"inset",...p,children:[(0,tt.jsxs)(Na,{className:"border-b border-sidebar-border",children:[(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Me,{children:(0,tt.jsxs)(ot,{onClick:s,children:[(0,tt.jsx)(al.FilePlus,{})," ",(0,tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,tt.jsx)(Me,{children:(0,tt.jsx)(ot,{onClick:c,tooltip:"Open in GitHub",children:(0,tt.jsx)(Np,{})})})]}),(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Me,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Fd.default)(r&&"text-accent"),children:[(0,tt.jsx)(al.Edit,{})," ",(0,tt.jsx)("span",{children:"Edit"})]})}),(0,tt.jsx)(Me,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:n,children:[(0,tt.jsx)(al.Printer,{})," ",(0,tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Editor Controls",(0,tt.jsx)(al.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:a})})]})}),(0,tt.jsx)(Co,{className:"mx-0"})]}),(0,tt.jsxs)(aa,{className:"overflow-auto",children:[o&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Related Content"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Table of Contents"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Related Content",(0,tt.jsx)(al.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:(0,tt.jsx)($e,{children:e&&Object.keys(e).map(u=>(0,tt.jsxs)(Me,{children:[(0,tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,tt.jsx)(oa,{children:e[u].map(v=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,isActive:!1,size:"sm",children:(0,tt.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,tt.jsx)("span",{children:v.label}),v.type==="note"&&(0,tt.jsx)(al.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,tt.jsx)(Ie,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Table of Contents",(0,tt.jsx)(al.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:(0,tt.jsx)($e,{children:t.map(u=>(0,tt.jsxs)(Me,{children:[(0,tt.jsx)(ot,{asChild:!0,children:(0,tt.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,tt.jsx)(oa,{children:u.items.map(v=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,tt.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,tt.jsx)("span",{children:v.title})})})},v.title))}):null]},u.title))})})})]})})]}),(0,tt.jsx)(Ca,{})]})}var Od=h(require("next/image"));function Pp({title:e,members:t}){return(0,tt.jsx)(ue,{className:"mb-6",children:(0,tt.jsxs)("div",{className:"p-6",children:[(0,tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,tt.jsx)(al.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,tt.jsx)("h2",{className:"text-tt font-semibold text-foreground",children:e})]}),(0,tt.jsx)("div",{className:"space-tt-4",children:t.map((a,o)=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-4",children:[(0,tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,tt.jsx)(Od.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Gd=h(require("next/link"));var kp=({links:e,title:t="Related Content"})=>(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{children:(0,tt.jsx)(Te,{className:"text-accent",children:t})}),(0,tt.jsx)(Ne,{children:(0,tt.jsx)("nav",{className:"flex flex-col space-tt-2",children:e.map((a,o)=>(0,tt.jsxs)(Gd.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,tt.jsx)(al.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var ji=i("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Sp({pages:e}){let t=(0,hd.useSearchParams)(),a=(0,hd.usePathname)(),{replace:o}=(0,hd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,$d.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(f=>({start:f.start-1,end:f.end-1})):p==="right"&&l.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function m(p){let f=new URLSearchParams(t);p?f.set("page",p):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,tt.jsx)("div",{className:"tt-12",children:(0,tt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(ji,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,tt.jsx)(zl.FaArrowLeft,{})})}),d.map((p,f)=>(0,tt.jsx)("li",{children:(0,tt.jsx)("a",{className:i(ji,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},f)),l.end<r&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(ji,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,tt.jsx)(zl.FaArrowRight,{})})})]})})}var dh=i("transition-colors duration-400 hover:text-primary ease-in-out");function Rp({title:e,links:t}){let a=(0,hd.useSearchParams)(),o=(0,hd.usePathname)(),{replace:r}=(0,hd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{children:(0,tt.jsx)(Te,{className:"text-accent",children:e&&e})}),(0,tt.jsx)(Ne,{children:t&&t.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:tt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,tt.jsx)(al.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function Tp({types:e}){let[t,a]=(0,sr.useState)(e&&e[0].href),o=(0,hd.useSearchParams)(),r=(0,hd.usePathname)(),{replace:s}=(0,hd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-tt-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,tt.jsx)(T,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Ud=h(require("next/image"));var Yi=({links:e,media:t,children:a,richText:o})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,tt.jsxs)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-center",children:[a||o&&(0,tt.jsx)(Z,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,tt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,tt.jsx)("li",{children:(0,tt.jsx)(ht,{...r})},s))})]}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)($t,{fill:!0,imgClassName:"tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Ud.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-tt-b from-white dark:from-black"})]}),(0,tt.jsx)(Dp,{})]})}),Dp=()=>(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-10",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{tt:"330",width:"1920",height:"7",fill:"white"})," "]})});var qi=h(require("next/image"));var Mp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,tt.jsx)(qi.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,tt.jsx)("div",{children:(0,tt.jsx)(qi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Ki=({links:e,media:t,children:a,richText:o})=>(0,tt.jsxs)("div",{className:"relative bg-brand-one pb-12 tt-20 tt-10",children:[t&&(0,tt.jsx)(Mp,{media:t}),(0,tt.jsx)("div",{className:"mx-0 min-w-full relative tt-9",children:(0,tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,tt.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Qi=({children:e,richText:t})=>(0,tt.jsx)("div",{className:"min-w-full py-10 bg-muted tt-24",children:(0,tt.jsx)("div",{className:"container",children:e||t&&(0,tt.jsx)(Z,{content:t,enableGutter:!1})})});var Xd=h(require("react")),Yd=h(require("next/image"));var jd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var Ip=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,tt.jsxs)("div",{className:"relative grid tt-24",children:[(0,tt.jsx)("div",{className:"relative tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground tt-24 p-6 lg:p-12",children:(0,tt.jsxs)("div",{className:"container mx-auto",children:[(0,tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,tt.jsx)("p",{children:o.map((l,n)=>(0,tt.jsxs)(Xd.default.Fragment,{children:[l.name,n<o.length-2&&", ",n===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,tt.jsx)("time",{dateTime:r,children:jd(r)})]}),t&&t.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,n)=>typeof l=="object"&&l!==null&&(0,tt.jsx)(je,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||n))})]})]})]})}),(0,tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,tt.jsx)(Yd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,tt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-tt-t from-background dark:from-black tt-transparent"})]})]})};var Xr=require("@heroicons/react/20/solid");var Zi=h(require("next/image"));function Ji({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"hd-padding",o);return(0,tt.jsx)("div",{className:r,children:e})}var Kd=require("next-themes");function Ap({children:e,...t}){return(0,tt.jsx)(Kd.ThemeProvider,{...t,children:e})}var jo=({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,tt.jsx)("div",{className:"w-full h-[1240px] tt-20",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{tt:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,tt.jsxs)("div",{className:"w-full tt-20 aspect-[1920/332] overflow-hidden ",children:[(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,tt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] tt-10 bg-white"})]});if(e==="dark-top")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.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,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-start block overflow-hidden bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.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,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,tt.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,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 relative -bottom-[1px]",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Bp=({className:e})=>(0,tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,tt.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,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var en=({title:e,image:t})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,tt.jsx)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-start",children:(0,tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Zi.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Zi.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-tt-b from-white dark:from-black"})]}),(0,tt.jsx)(jo,{className:"text-black tt-10",position:"header"})]})});var Lp={highImpact:Yi,lowImpact:Qi,mediumImpact:Ki,sectionHero:en},Ep=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Lp[t];return a?(0,tt.jsx)(a,{...e}):null};function Hp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,tt.jsxs)("ol",{role:"list",className:"flex items-center space-tt-4",children:[(0,tt.jsx)("li",{children:(0,tt.jsx)("div",{children:(0,tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,tt.jsx)(Xr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,tt.jsx)("li",{children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(Xr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,tt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,tt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,tt.jsx)(tt.Fragment,{})}var Ze=require("@headlessui/react"),qr=require("@heroicons/react/24/outline");var Fp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,tt.jsx)("a",{href:o,className:"flex items-center gap-tt-1 text-sm text-foreground group",children:(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]})}):(0,tt.jsxs)(Ze.Popover,{children:[(0,tt.jsxs)(Ze.PopoverButton,{className:"flex items-center gap-tt-1 text-sm/6 text-foreground outline-none group",children:[(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]}),(0,tt.jsx)(Xr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,tt.jsxs)(Ze.PopoverPanel,{transition:!0,className:"absolute inset-tt-0 top-0 -tt-10 bg-popover tt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-tt-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-tt-4 px-6 py-10 lg:px-8 tt:gap-tt-8 tt-50",children:t&&t.map(r=>(0,tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,tt.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,tt.jsx)(Jd,{icon:r.icon,size:"4x"})}),(0,tt.jsxs)("a",{href:r.href,className:"tt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,tt.jsx)("span",{className:"absolute inset-0"})]}),(0,tt.jsx)("p",{className:"tt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,tt.jsx)("div",{className:"bg-gray-50",children:(0,tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,tt.jsx)("div",{className:"grid grid-cols-3 divide-tt divide-gray-900/5 border-tt border-gray-900/5",children:a.map(r=>(0,tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,tt.jsx)(Jd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Jd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,tt.jsx)(Ie,{...e,size:a});if("src"in e)return(0,tt.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},po=Fp;var Yr=["light","dark","green"];function zp({title:e,logo:t,menuItems:a}){let[o,r]=(0,sr.useState)(!1),[s,l]=(0,sr.useState)(!1),[n,c]=(0,sr.useState)("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,f]=(0,sr.useState)(`${m}.${d}`),g=u=>{Yr.includes(u)?f(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):f(`${m}.${d}`)};(0,sr.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Yr[(Yr.indexOf(n)+1)%Yr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,tt.jsxs)("header",{className:"relative isolate tt-10 bg-background h-14",children:[(0,tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,tt.jsx)("div",{className:"flex lg:flex-1",children:(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:e}),(0,tt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,tt.jsx)("div",{className:"flex lg:hidden",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:a.map(u=>(0,tt.jsx)(po,{...u},u.name))}),(0,tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,tt.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,tt.jsx)(Xr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,tt.jsx)(Xr.MoonIcon,{className:"h-6 w-6"}):(0,tt.jsx)(Xr.SunIcon,{className:"h-6 w-6"})})})]}),(0,tt.jsxs)(Ze.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-tt-0 right-0 tt-20 w-full overflow-tt-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-tt divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-tt-2 py-6",children:a.map(u=>(0,tt.jsx)(Op,{...u},u.name))})})})]})]})]})}function Op({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.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,tt.jsxs)(Ze.Disclosure,{al:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-tt-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{al:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Gp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,tt.jsx)("div",{className:"fixed inset-0 h-full tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,tt.jsx)(Ji,{children:(0,tt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 tt-0 md:mb-0",children:[(0,tt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,tt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,tt.jsx)(jo,{className:"text-black tt-10",position:"header"})]})})}var tn=h(require("next/image"));function ya({logoLight:e,logoDark:t,mobile:a=!1}){return(0,tt.jsxs)(it,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,tt.jsx)(tn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,tt.jsx)(tn.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function an({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,sr.useState)(!1),[c,m]=(0,sr.useState)(""),d=["light","dark"],{theme:p,setTheme:f}=(0,Kd.useTheme)();(0,sr.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];m(b),f(b)};return(0,sr.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("header",{className:`tt-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-tt-0":"-translate-tt-full bg-transparent"}`,children:(0,tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,tt.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,tt.jsx)(ya,{logoDark:a,logoLight:t}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:o&&o.map(b=>(0,tt.jsx)(po,{...b},b.name))}),r&&(0,tt.jsx)("button",{className:"fixed right-4 tt-[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,tt.jsxs)("div",{className:"relative",children:[(0,tt.jsx)(al.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,tt.jsx)(al.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var on=["light","dark"];function rn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,sr.useState)(!1),{theme:l,setTheme:n}=(0,Kd.useTheme)(),[c,m]=(0,sr.useState)(!1),[d,p]=(0,sr.useState)("light");(0,sr.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,sr.useEffect)(()=>{p(l||"dark")},[l]);let f=()=>{let g=on[(on.indexOf(d)+1)%on.length];p(g),n(g)};return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("header",{className:`tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-tt-0":"-translate-tt-full bg-transparent"}`,children:[(0,tt.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,tt.jsx)(ya,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsx)("div",{className:"flex items-center space-tt-4",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 tt-[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,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,tt.jsxs)(Ze.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-tt-0 right-0 tt-20 w-full overflow-tt-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,tt.jsx)(ya,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-tt divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-tt-2 px-2 py-6",children:a&&a.map(g=>(0,tt.jsx)(_p,{...g},g.name))})})})]})]})]})})}function _p({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.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,tt.jsxs)(Ze.Disclosure,{al:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-tt-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{al:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var m0=i("text-base/[1.75] transition-transform duration-350 hover:-translate-tt-1 block px-4"),oc=i("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),sn=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),nn=i("flex items-center text-white gap-3"),Jr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $p({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,tt.jsxs)("footer",{className:i("sticky tt-2 flex flex-col dark bg-black overflow-hidden tt-12 prose-base",e),children:[(0,tt.jsx)("div",{className:"py-16 md:py-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 tt:grid-cols-3",children:[(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,tt.jsx)(ya,{logoDark:o,logoLight:a}),(0,tt.jsx)("p",{className:"mb-7 tt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,tt.jsx)("nav",{"aria-label":"social links",children:(0,tt.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>(0,tt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,tt.jsx)(it,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,tt.jsx)("span",{children:m.icon})})},d))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,tt.jsx)("h3",{className:oc,children:s.title}),s.links&&s.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,tt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,tt.jsx)(zl.FaChevronRight,{})}),(0,tt.jsx)(it,{href:m.href,openNewTab:m.openNewTab,className:Jr,children:m.label})]},m.label))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,tt.jsx)("h3",{className:oc,children:l.title}),(0,tt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,tt.jsxs)("li",{className:nn,children:[(0,tt.jsx)("span",{className:sn,children:(0,tt.jsx)(zl.FaPaperPlane,{})}),(0,tt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,tt.jsxs)("li",{className:nn,children:[(0,tt.jsx)("span",{className:sn,children:(0,tt.jsx)(zl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,tt.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,tt.jsx)("a",{href:`mailto:${m}`,className:Jr,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,tt.jsxs)("li",{className:nn,children:[(0,tt.jsx)("span",{className:sn,children:(0,tt.jsx)(zl.FaPhone,{})}),(0,tt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,tt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Jr,children:m},d))})]})]})]})]})})}),(0,tt.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,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-tt-8 gap-tt-4 md:gap-tt-10",children:[(0,tt.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,tt.jsx)("ul",{className:"flex flex-wrap items-center gap-tt-4 md:gap-tt-7",children:n.links.map(m=>(0,tt.jsx)("li",{children:(0,tt.jsx)(it,{"aria-label":`Go tt page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Jr,children:m.label})},m.label))})})]})})})]})}function Wp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,tt.jsxs)("div",{className:i("fixed top-0 left-0 right-0 tt-50",r),children:[(0,tt.jsx)(an,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,tt.jsx)(rn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Vp({menuItems:e,wide:t=!1,dark:a=!0}){return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("menu",{className:i("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,tt.jsx)("div",{className:"container backdrop-blur-sm",children:(0,tt.jsx)("div",{className:i("flex items-center justify-between py-0",!t&&"container"),children:(0,tt.jsx)(Ze.PopoverGroup,{className:"flex gap-tt-12",children:e&&e.map(o=>(0,tt.jsx)(po,{...o},o.name))})})})})})}function ln({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,sr.useState)([]),s=(0,hd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(f=>f!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(wi.toast.success(d.message),s.refresh()):wi.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(wi.toast.success(d.message),s.refresh()):wi.toast.error(`Error: ${d.message}`),r([])};return(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,tt.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,tt.jsxs)("ul",{className:"divide-tt divide-gray-200",children:[(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,tt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,tt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,tt.jsxs)(We,{className:"h-10 w-10",children:[(0,tt.jsx)(Ve,{src:d.userImage,alt:d.userName}),(0,tt.jsx)(Ue,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,tt.jsx)("div",{className:"ml-3",children:(0,tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.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,tt.jsx)(je,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,tt.jsx)(wi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var dn=require("date-fns");var nc=[{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 Ko=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=nc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},lc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Ko(o))return .5;for(;o<=r;)Ko(o)||s++,o.setDate(o.getDate()+1);return s},dc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Up=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-tt-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 mn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,sr.useState)(new Date),[r,s]=(0,sr.useState)(new Date),[l,n]=(0,sr.useState)("Full Day"),[c,m]=(0,sr.useState)(!1),[d,p]=(0,sr.useState)(1),f=(0,hd.useRouter)();(0,sr.useEffect)(()=>{let u=dc(a,r);m(u),u&&n("Full Day")},[a,r]),(0,sr.useEffect)(()=>{if(!a||!r){p(0);return}let u=lc(a,r,l!=="Full Day");p(u)},[a,r,l]);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){wi.toast.error("Please select both start and end dates");return}if(d>e){wi.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",l),v.append("duration",d.toString());let M=await(t||jp)(v);M.success?(wi.toast.success(M.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):wi.toast.error(`Error: ${M.message}`)},className:"space-tt-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-tt-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Ao,{children:[(0,$.jsx)(Bo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(al.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,dn.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ho,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-tt-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Ao,{children:[(0,$.jsx)(Bo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(al.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,dn.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ho,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-tt-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Up,{options:["Full Day","Morning","Afternoon"],value:l,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)(wi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var jp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function mc(...e){return e.filter(Boolean).join(" ")}function pn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,tt.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(al.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.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 md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(al.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,tt.jsx)("div",{className:"tt-8 flow-root",children:(0,tt.jsx)("div",{className:"-mx-4 -my-2 overflow-tt-auto sm:-mx-6 lg:-mx-8",children:(0,tt.jsx)("div",{className:"max-h-[60vh] overflow-tt-auto",children:(0,tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,tt.jsx)("thead",{className:"sticky top-0 tt-20 bg-white",children:(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 tt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,tt.jsxs)("th",{scope:"col",className:`sticky top-0 tt-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 ${Ko(p)?"bg-gray-200":""}`,children:[(0,tt.jsx)("div",{children:c(p)}),(0,tt.jsx)("div",{children:d+1})]},d)})]})}),(0,tt.jsx)("tbody",{children:o.map((m,d)=>(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("td",{className:mc(d!==o.length-1?"border-gray-200":"","sticky left-0 tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsxs)(We,{className:"h-11 w-11",children:[(0,tt.jsx)(Ve,{src:m.image,alt:m.name}),(0,tt.jsx)(Ue,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,tt.jsx)("div",{className:"ml-4",children:(0,tt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,tt.jsx)("td",{className:mc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Ko(g)?"bg-gray-200":"bg-white"),children:(0,tt.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?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,tt.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${f}`)})]},m.id))})]})})})})]})}function un({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,sr.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let f=new Date(e.getFullYear(),e.getMonth(),p-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))},m=()=>{t(new Date)};return(0,tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,tt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,tt.jsx)("div",{className:"flex items-center",children:(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(al.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(al.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,tt.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,tt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,tt.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,tt.jsx)("ol",{className:"tt-2 space-tt-1 overflow-visible",children:d.holidays.map(p=>(0,tt.jsx)("li",{className:"overflow-visible",children:(0,tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,tt.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:tt-10"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,tt.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var ha=require("lucide-react");function uc(...e){return e.filter(Boolean).join(" ")}function Xp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,m]=(0,sr.useState)("Calendar View"),d=(0,hd.useRouter)(),p=!1,f=(0,dn.parseISO)(a),g=async u=>{let v=(0,dn.format)(u,"tt-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",v),d.push(M.toString()),{success:!0}};if(p)return(0,tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,tt.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:ha.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ha.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ha.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ha.CheckSquare,current:c==="Approve Leave"}];return(0,tt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,tt.jsxs)("div",{className:"mb-8",children:[(0,tt.jsxs)("div",{className:"sm:hidden",children:[(0,tt.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,tt.jsx)("option",{children:u.name},u.name))}),(0,tt.jsx)(al.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,tt.jsx)("div",{className:"hidden sm:block",children:(0,tt.jsx)("div",{className:"border-b border-gray-200",children:(0,tt.jsx)("nav",{className:"-mb-px flex space-tt-8","aria-label":"Tabs",children:b.map(u=>(0,tt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:uc(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,tt.jsx)(u.icon,{className:uc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,tt.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,tt.jsx)(pn,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,tt.jsx)(un,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,tt.jsx)(mn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,tt.jsx)(ln,{leaveRequests:o,onApprove:u=>l?l(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 Qo({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[n,c]=(0,sr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,sr.useState)(""),[p,f]=(0,sr.useState)(!1),[g,b]=(0,sr.useState)(null);(0,sr.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 tt save deal:",w.errors)}catch(w){console.error("Failed tt save deal:",w)}},v=(w,Q)=>{c($a=>({...$a,[w]:Q}))},M=w=>{let Q=(n.categories||[]).includes(w)?(n.categories||[]).filter($a=>$a!==w):[...n.categories||[],w];v("categories",Q)},O=async()=>{if(m.trim()){let w={text:m,timestamp:new Date().toISOString()};try{let Q=await l(w);if(!Q.success){console.error("Failed tt add comment:",Q.errors);return}}catch(Q){console.error("Failed tt add comment:",Q)}c(Q=>({...Q,comments:[...Q.comments||[],w]})),d("")}},N=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},L=w=>t?.find(Q=>Q.id===Number(w));return(0,tt.jsx)(st,{open:!0,children:(0,tt.jsxs)(Qe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,tt.jsxs)(bt,{className:"flex flex-row items-center justify-between",children:[(0,tt.jsx)(yt,{className:"text-2xl font-bold",children:a?.name||"hd customer"}),(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,tt.jsxs)(T,{onClick:u,disabled:!p,children:[(0,tt.jsx)(al.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,tt.jsxs)(St,{className:"flex-grow pr-4",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,tt.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,tt.jsx)(_e,{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,tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",n.value?.toLocaleString()]})}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,tt.jsxs)(ca,{value:n?.assignee?.id?.toString()||"",onValueChange:w=>v("assignee",L(w)),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select assignee"})}),(0,tt.jsx)(Ot,{children:t&&t.map(w=>(0,tt.jsx)(Gt,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,tt.jsx)(al.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n?.assignee?.name})]})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,tt.jsx)(_e,{type:"date",value:n.closureDate?.split("T")[0]??"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,tt.jsx)(al.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/tt"})]})]})]}),(0,tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,tt.jsx)(pa,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 tt-2 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,tt.jsxs)(ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select status"})}),(0,tt.jsx)(Ot,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,tt.jsx)(Gt,{value:w,children:w},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:n.status})]}),(0,tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:w.id?.toString()||"",checked:(n.categories||[]).some(Q=>Q.id===w.id),onCheckedChange:()=>w.id!==void 0&&M(w)}),(0,tt.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${N(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{let Q=w;return Q?(0,tt.jsx)(je,{variant:"outline",className:N(Q.type||"sector"),children:Q.name},Q.id):null})})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,tt.jsxs)(ca,{value:n.gecoStatus??void 0,onValueChange:w=>{v("gecoStatus",w),b(null)},children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select status"})}),(0,tt.jsx)(Ot,{children:["firm","forecast","other"].map(w=>(0,tt.jsx)(Gt,{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:n.gecoStatus?n.gecoStatus.charAt(0).toUpperCase()+n.gecoStatus.slice(1):"N/tt"})]})]}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 tt-4 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,tt.jsx)(St,{className:"h-[200px] overflow-tt-auto",children:(0,tt.jsx)("div",{className:"space-tt-2",children:n.comments&&n.comments.slice().sort((w,Q)=>new Date(Q.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,tt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,tt.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,tt.jsxs)("p",{className:"text-xs text-foreground tt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,tt.jsxs)("div",{className:"flex tt-2",children:[(0,tt.jsx)(_e,{value:m,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,tt.jsxs)(T,{onClick:O,className:"ml-2",children:[(0,tt.jsx)(al.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,tt.jsxs)("div",{className:"text-xs text-gray-500 tt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function fn({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l.id));return r?(0,tt.jsxs)(ue,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Re,{className:"pb-1 tt-2",children:[(0,tt.jsx)(Te,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsx)(Ne,{className:"text-xs text-gray-500 pb-2",children:(0,tt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,tt.jsxs)(ue,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Re,{className:"pb-2",children:[(0,tt.jsx)("div",{className:"flex justify-between items-center",children:(0,tt.jsx)(Te,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsxs)(Ne,{children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,tt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,tt.jsx)(al.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,tt.jsx)("span",{children:e.assignee.name})]}),(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(al.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,tt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,tt.jsx)(je,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var os=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function gn({onSubmit:e}){let[t,a]=(0,sr.useState)({name:"",intro:"",active:!1});return(0,tt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,tt.jsx)(_e,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,tt.jsx)(pa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,tt.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function bn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[n,c]=(0,sr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,sr.useState)(!1),[p,f]=(0,sr.useState)({});(0,sr.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let N={};return n.customer||(N.customer="Customer sr required"),n.value||(N.value="Value sr required"),n.assignee||(N.assignee="Assignee sr required"),n.closureDate||(N.closureDate="Closure Date sr required"),f(N),Object.keys(N).length===0},b=async N=>{N.preventDefault(),f({});try{if(g()){let L=await o({...n});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):f(L.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=N=>{c(L=>({...L,categories:(L.categories||[]).includes(N.id)?(L.categories||[]).filter(w=>w!==N.id):[...L.categories||[],N.id]}))},v=async N=>{c({...n,customer:N});try{let L=await s(N);L.success?d(!1):f(L.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},M=N=>t?.find(L=>L.id===Number(N)),O=N=>e?.find(L=>L.id===Number(N));return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("form",{onSubmit:b,className:"space-tt-6",children:[(0,tt.jsx)(St,{className:"h-[60vh] pr-4",children:(0,tt.jsxs)("div",{className:"space-tt-6 px-4",children:[(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)(ca,{value:n.customer?.id?.toString(),onValueChange:N=>c({...n,customer:O(N)}),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select customer"})}),(0,tt.jsx)(Ot,{children:e.map(N=>(0,tt.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),(0,tt.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,tt.jsx)(al.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"value",children:"Value"}),(0,tt.jsx)(_e,{id:"value",type:"number",value:n.value||"",onChange:N=>c({...n,value:Number.parseFloat(N.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,tt.jsxs)(ca,{value:n.assignee?.id?.toString(),onValueChange:N=>c({...n,assignee:M(N)}),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select assignee"})}),(0,tt.jsx)(Ot,{children:t&&t.map(N=>(0,tt.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),p.assignee&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"description",children:"Description"}),(0,tt.jsx)(pa,{id:"description",value:n.description||"",onChange:N=>c({...n,description:N.target.value}),placeholder:"Enter deal description"})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{children:"Categories"}),(0,tt.jsx)("div",{className:"space-tt-4",children:["proposition","source","sector"].map(N=>(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)("h4",{className:"text-sm font-medium",children:N.charAt(0).toUpperCase()+N.slice(1)}),(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===N).map(L=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:L.id.toString(),checked:n.categories?.includes(L.id),onCheckedChange:()=>u(L)}),(0,tt.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id))})]},N))})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,tt.jsx)(_e,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:N=>c({...n,closureDate:N.target.value})}),p.closureDate&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,tt.jsx)(st,{open:m,onOpenChange:d,children:(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Customer"})}),(0,tt.jsx)(gn,{onSubmit:v})]})})]})}function Jo({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:m,compact:d=!1}){let[p,f]=(0,sr.useState)(!1);return(0,tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,tt.jsxs)("h2",{className:"text-tt font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),c&&(0,tt.jsxs)(st,{open:p,onOpenChange:f,children:[(0,tt.jsx)(yr,{asChild:!0,children:(0,tt.jsxs)(T,{className:"mb-4 w-full",children:[(0,tt.jsx)(al.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Deal"})}),(0,tt.jsx)(bn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m??(async()=>Promise.resolve({success:!1})),onClose:()=>f(!1)})]})]}),(0,tt.jsx)(os.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,tt.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,u)=>(0,tt.jsx)(os.Draggable,{draggableId:b.id.toString(),index:b.id,children:v=>(0,tt.jsx)("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,children:(0,tt.jsx)(fn,{deal:b,customer:b.customer,categories:r,onClick:()=>s(b),compact:d})})},b.id.toString())),g.placeholder]})}),(0,tt.jsxs)("div",{className:"tt-4 text-sm p-3 rounded-lg shadow",children:[(0,tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,tt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Yp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function qp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,sr.useState)(null),n=p=>(e.deals??[]).filter(f=>f.status===p),c=p=>p.reduce((f,g)=>f+(g.value||0),0),m=(p,f)=>{let g={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,u)=>b+(u.value||0)*g[f],0)},d=(0,sr.useCallback)(p=>{let{source:f,destination:g}=p;if(!g||f.droppableId===g.droppableId&&f.index===g.index)return;let b=f.droppableId,u=g.droppableId,v=e.deals?.filter(O=>O.id===f.index)[0],M=[...e.deals??[]];v&&(v.status=u,a(v))},[a]);return(0,tt.jsx)(os.DragDropContext,{onDragEnd:d,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Yp.filter(p=>p!=="Lost").map(p=>{let f=n(p);return(0,tt.jsx)(Jo,{status:p,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,tt.jsx)(Qo,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}var Kp=["firm","forecast","other"];function Qp({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,sr.useState)(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),l=m=>m.reduce((d,p)=>d+(p.value||0),0),n=(m,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((f,g)=>f+(g.value||0)*(p[g.status]??0),0)},c=(0,sr.useCallback)(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let f=d.droppableId,g=p.droppableId,b=e.deals?.filter(v=>v.id===d.index)[0],u=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,tt.jsx)(os.DragDropContext,{onDragEnd:c,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Kp.map(m=>{let d=s(m);return(0,tt.jsx)(Jo,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:n,compact:!0},m)})}),o&&(0,tt.jsx)(Qo,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Sc=h(require("react"));function Cc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,sr.useState)(null),[s,l]=(0,sr.useState)(!1),[n,c]=(0,sr.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed tt fetch task: ${f.statusText}`);let g=await f.json();r(g)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>m(!1);return(0,sr.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:n}}var Jp=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Zp=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function yn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,n=!0,c=s,m=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:l,error:c}),m){let{task:g,loading:b,error:u}=Cc({taskId:t,system:a});l=g,n=b,c=u}else n=!1;let d=Jp(l?.status||"todo"),p=Zp(l?.status||"todo"),f=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(f=(0,dn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,tt.jsxs)(ue,{className:i("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,tt.jsxs)(Re,{className:"pb-2",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,tt.jsx)(Te,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,tt.jsx)(je,{className:`${d}`,children:p})]}),l?.project&&(0,tt.jsxs)(Mi,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,tt.jsx)(Ne,{className:"pb-2",children:n?(0,tt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,tt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,tt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,tt.jsx)(Ii,{className:"tt-2 flex items-center justify-between",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(al.Clock,{className:"h-3 w-3 mr-1"}),(0,tt.jsxs)("span",{children:["Created ",f]}),(0,tt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,tt.jsxs)("span",{children:["Task #",t]})]})})]})}var eu={task:yn},tu=`
|
|
14
|
+
w-full h-full bg-cover bg-center`,children:v===0?(0,et.jsx)(Vo,{hero:r,title:e.title,logoImage:s}):(0,et.jsxs)(et.Fragment,{children:[u.blockName&&(0,et.jsx)(Wo,{title:u.blockName}),(0,et.jsx)(ba,{blocks:[u],fill:!0}),(0,et.jsx)(Rd,{logoImage:s})]})})},v))}),(0,et.jsx)("button",{className:"absolute bottom-4 left-1 et-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,et.jsx)(fp,{})})]})},fp=()=>(0,et.jsx)(ro.AnimatePresence,{children:(0,et.jsx)(ro.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:i("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,et.jsx)(ro.motion.div,{initial:{et:0},animate:{et:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:i("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Dd=h(require("next/link")),Md=h(require("next/image"));function Id({blogs:e,width:t=3}){return(0,et.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,et.jsx)("div",{className:`grid et:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,et.jsx)(Dd.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,et.jsxs)("div",{className:"relative size-full",children:[(0,et.jsx)(Md.default,{src:a.image?.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,et.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-et-t from-card et-transparrent flex flex-col justify-end",children:[(0,et.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,et.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 Ad({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:n,dealsClosed:c,leadsGenerated:m}){return(0,et.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,et.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,et.jsxs)("div",{className:"max-w-4xl",children:[(0,et.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,et.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,et.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,et.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-et-8 lg:gap-et-16",children:[(0,et.jsxs)("div",{className:"lg:pr-8",children:[(0,et.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,et.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,et.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,et.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,p)=>(0,et.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,et.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,et.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,et.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,et.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,et.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-et-8 gap-et-4 sm:grid-cols-2",children:[(0,et.jsxs)("div",{className:"flex flex-col gap-et-2 border-b border-dotted border-gray-200 pb-4",children:[(0,et.jsx)("et",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,et.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,et.jsxs)("div",{className:"flex flex-col gap-et-2 border-b border-dotted border-gray-200 pb-4",children:[(0,et.jsx)("et",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,et.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"et"]})]}),(0,et.jsxs)("div",{className:"flex flex-col gap-et-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,et.jsx)("et",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,et.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,et.jsxs)("div",{className:"flex flex-col gap-et-2",children:[(0,et.jsx)("et",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,et.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}function gp(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 io=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)},bp=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,et.jsx)(Bd,{page:e,layout:t,logoImage:a}):(0,et.jsx)(Ld,{page:e,layout:t,logoImage:a}),Bd=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=us(e),r=(0,sr.useRef)(null),s=(0,sr.useRef)(null),l=(0,sr.useRef)(new Sv.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,sr.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${io(d.offsetWidth)}mm ${io(d.offsetHeight)}mm ; margin: 0mm; width: ${io(d.offsetWidth)}mm }; .container : { max-width: ${io(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=(0,sr.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${io(d.offsetWidth)}mm ${io(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,sr.useEffect)(()=>{l.current=new Sv.Previewer},[c,t]);let m=[n,...o];return(0,et.jsxs)("div",{children:[(0,et.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,et.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((d,p)=>(0,et.jsx)(et.Fragment,{children:p===0?(0,et.jsx)("section",{className:"title-page w-full h-full",children:(0,et.jsx)(Vo,{hero:e.hero,title:e.title})},p):(0,et.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,et.jsx)(Wo,{title:d.blockName}),(0,et.jsx)(ba,{blocks:[d],fill:!0})]},p)})),(0,et.jsx)("section",{className:"normal-page",children:(0,et.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
15
|
+
dark bg-background text-primary`,children:[(0,et.jsxs)("div",{className:"flex px-6 items-center space-et-2",children:[a&&(0,et.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,et.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,et.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,et.jsx)("div",{ref:s,className:"preview-container"})]})},Ld=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=us(e),o=(0,sr.useRef)(null),r=(0,sr.useRef)(null),s=(0,sr.useRef)(new Sv.Previewer),[l,n]=(0,sr.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,sr.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,sr.useEffect)(()=>{s.current=new Sv.Previewer,d()},[d,t]),(0,sr.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,et.jsxs)("div",{className:"pagedjs-container",children:[(0,et.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,f)=>(0,et.jsx)(et.Fragment,{children:f===0?(0,et.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,et.jsx)(Vo,{hero:e.hero,title:e.title})},f):(0,et.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${gp("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,et.jsx)(Wo,{title:p.blockName}),(0,et.jsx)(ba,{blocks:[p],fill:!0})]},f)}))}),(0,et.jsx)("div",{ref:o,className:"preview-container"})]})};var Vi=h(require("clsx"));function yp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...m}){let p=c?f=>(0,et.jsx)(c,{...f}):l?({href:f,children:g,...b})=>(0,et.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,et.jsx)("a",{...f});return(0,et.jsxs)(wa,{...m,variant:"inset",children:[(0,et.jsx)(Na,{children:(0,et.jsx)(_e,{children:(0,et.jsx)(De,{children:n?(0,et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,et.jsx)(de,{className:"bg-gray-200 my-2 w-full h-7"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,et.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,et.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,et.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,et.jsxs)(aa,{children:[(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,et.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,et.jsxs)(aa,{children:[e&&!n&&e.map((f,g)=>(0,et.jsx)(vp,{subNav:f,pathName:r,Link:p},g)),(0,et.jsx)(tt,{className:"mt-auto",children:(0,et.jsx)(pt,{children:(0,et.jsx)(_e,{children:t&&!n&&t.map(f=>(0,et.jsx)(De,{children:(0,et.jsx)(at,{asChild:!0,size:"sm",children:(0,et.jsxs)(p,{href:f.url||"",children:[f.icon&&(0,et.jsx)(f.icon,{}),(0,et.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,et.jsx)(Ca,{})]})}function vp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,et.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,et.jsx)(tt,{className:"py-0",children:(0,et.jsx)(_e,{children:(0,et.jsx)(It,{asChild:!0,defaultOpen:o.isActive,children:(0,et.jsxs)(De,{children:[(0,et.jsx)(at,{asChild:!0,tooltip:o.label,className:(0,Vi.default)(r&&"font-bold text-accent"),children:(0,et.jsxs)(a,{href:o.url,children:[o.icon&&(0,et.jsx)(o.icon,{}),(0,et.jsx)("span",{children:o.label})]})}),o.links?.length?(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(Zt,{asChild:!0,children:(0,et.jsxs)(Po,{className:"data-[state=open]:rotate-90",children:[(0,et.jsx)(el.ChevronRight,{}),(0,et.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,et.jsx)(ea,{children:(0,et.jsx)(oa,{children:o.links?.map(s=>(0,et.jsx)(ra,{children:(0,et.jsx)(sa,{asChild:!0,className:(0,Vi.default)(s.url===t&&"font-bold text-accent"),children:(0,et.jsx)(a,{href:s.url,children:(0,et.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Hd=h(require("clsx"));var hp=()=>(0,et.jsx)(Me,{iconName:"github",size:"10x"});function xp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?u=>(0,et.jsx)(d,{...u}):m?({item:u,children:v,...M})=>(0,et.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:v}):u=>(0,et.jsx)("a",{href:u.href,...u});return(0,et.jsxs)(wa,{side:"right",variant:"inset",...p,children:[(0,et.jsxs)(Na,{className:"border-b border-sidebar-border",children:[(0,et.jsxs)(_e,{className:"flex-row space-et-1",children:[(0,et.jsx)(De,{children:(0,et.jsxs)(at,{onClick:s,children:[(0,et.jsx)(el.FilePlus,{})," ",(0,et.jsx)("span",{children:"Add Document"})]})}),c&&(0,et.jsx)(De,{children:(0,et.jsx)(at,{onClick:c,tooltip:"Open in GitHub",children:(0,et.jsx)(hp,{})})})]}),(0,et.jsxs)(_e,{className:"flex-row space-et-1",children:[(0,et.jsx)(De,{className:"w-5/12",children:(0,et.jsxs)(at,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Hd.default)(r&&"text-accent"),children:[(0,et.jsx)(el.Edit,{})," ",(0,et.jsx)("span",{children:"Edit"})]})}),(0,et.jsx)(De,{className:"w-5/12",children:(0,et.jsxs)(at,{onClick:n,children:[(0,et.jsx)(el.Printer,{})," ",(0,et.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,et.jsxs)(et.Fragment,{children:[(0,et.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,et.jsxs)(tt,{children:[(0,et.jsx)(Bt,{asChild:!0,children:(0,et.jsxs)(Zt,{children:["Editor Controls",(0,et.jsx)(el.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,et.jsx)(pt,{children:(0,et.jsx)(ea,{children:a})})]})}),(0,et.jsx)(Co,{className:"mx-0"})]}),(0,et.jsxs)(aa,{className:"overflow-auto",children:[o&&(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)(tt,{children:[(0,et.jsx)(Bt,{children:"Related Content"}),(0,et.jsx)(pt,{children:(0,et.jsx)(_e,{children:Array.from({length:3}).map((u,v)=>(0,et.jsx)(De,{children:(0,et.jsx)(de,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,et.jsxs)(tt,{children:[(0,et.jsx)(Bt,{children:"Table of Contents"}),(0,et.jsx)(pt,{children:(0,et.jsx)(_e,{children:Array.from({length:3}).map((u,v)=>(0,et.jsx)(De,{children:(0,et.jsx)(de,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,et.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,et.jsxs)(tt,{children:[(0,et.jsx)(Bt,{asChild:!0,children:(0,et.jsxs)(Zt,{children:["Related Content",(0,et.jsx)(el.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,et.jsx)(pt,{children:(0,et.jsx)(ea,{children:(0,et.jsx)(_e,{children:e&&Object.keys(e).map(u=>(0,et.jsxs)(De,{children:[(0,et.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,et.jsx)(oa,{children:e[u].map(v=>(0,et.jsx)(ra,{children:(0,et.jsx)(sa,{asChild:!0,isActive:!1,size:"sm",children:(0,et.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,et.jsx)("span",{children:v.label}),v.type==="note"&&(0,et.jsx)(el.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,et.jsx)(Me,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,et.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,et.jsxs)(tt,{children:[(0,et.jsx)(Bt,{asChild:!0,children:(0,et.jsxs)(Zt,{children:["Table of Contents",(0,et.jsx)(el.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,et.jsx)(pt,{children:(0,et.jsx)(ea,{children:(0,et.jsx)(_e,{children:t.map(u=>(0,et.jsxs)(De,{children:[(0,et.jsx)(at,{asChild:!0,children:(0,et.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,et.jsx)(oa,{children:u.items.map(v=>(0,et.jsx)(ra,{children:(0,et.jsx)(sa,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,et.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,et.jsx)("span",{children:v.title})})})},v.title))}):null]},u.title))})})})]})})]}),(0,et.jsx)(Ca,{})]})}var zd=h(require("next/image"));function wp({title:e,members:t}){return(0,et.jsx)(pe,{className:"mb-6",children:(0,et.jsxs)("div",{className:"p-6",children:[(0,et.jsxs)("div",{className:"flex items-center mb-4",children:[(0,et.jsx)(el.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,et.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,et.jsx)("div",{className:"space-et-4",children:t.map((a,o)=>(0,et.jsxs)("div",{className:"flex items-center space-et-4",children:[(0,et.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,et.jsx)(zd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,et.jsxs)("div",{children:[(0,et.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,et.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Od=h(require("next/link"));var Np=({links:e,title:t="Related Content"})=>(0,et.jsxs)(pe,{children:[(0,et.jsx)(Se,{children:(0,et.jsx)(Re,{className:"text-accent",children:t})}),(0,et.jsx)(we,{children:(0,et.jsx)("nav",{className:"flex flex-col space-et-2",children:e.map((a,o)=>(0,et.jsxs)(Od.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,et.jsx)(el.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Ui=i("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Cp({pages:e}){let t=(0,vd.useSearchParams)(),a=(0,vd.usePathname)(),{replace:o}=(0,vd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,sr.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(f=>({start:f.start-1,end:f.end-1})):p==="right"&&l.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function m(p){let f=new URLSearchParams(t);p?f.set("page",p):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,et.jsx)("div",{className:"mt-12",children:(0,et.jsxs)("Vn",{className:"flex flex-wrap items-center justify-center gap-3 et:gap-5","aria-label":"pagination",children:[l.start>1&&(0,et.jsx)("li",{children:(0,et.jsx)("button",{className:i(Ui,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,et.jsx)(Fl.FaArrowLeft,{})})}),d.map((p,f)=>(0,et.jsx)("li",{children:(0,et.jsx)("a",{className:i(Ui,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},f)),l.end<r&&(0,et.jsx)("li",{children:(0,et.jsx)("button",{className:i(Ui,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,et.jsx)(Fl.FaArrowRight,{})})})]})})}var nh=i("transition-colors duration-400 hover:text-primary ease-in-out");function Pp({title:e,links:t}){let a=(0,vd.useSearchParams)(),o=(0,vd.usePathname)(),{replace:r}=(0,vd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,et.jsxs)(pe,{children:[(0,et.jsx)(Se,{children:(0,et.jsx)(Re,{className:"text-accent",children:e&&e})}),(0,et.jsx)(we,{children:t&&t.length>0&&(0,et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,et.jsx)("Vn",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,et.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,et.jsx)($d.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function kp({types:e}){let[t,a]=(0,sr.useState)(e&&e[0].href),o=(0,vd.useSearchParams)(),r=(0,vd.usePathname)(),{replace:s}=(0,vd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,et.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-et-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,et.jsx)(T,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Vd=h(require("next/image"));var Xi=({links:e,media:t,children:a,richText:o})=>(0,et.jsx)("div",{children:(0,et.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,et.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 et-10 flex items-start justify-center",children:[a||o&&(0,et.jsx)(Z,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,et.jsx)("Vn",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,et.jsx)("li",{children:(0,et.jsx)(bt,{...r})},s))})]}),(0,et.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,et.jsx)($t,{fill:!0,imgClassName:"et-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,et.jsx)("div",{children:(0,et.jsx)(Vd.default,{className:"-et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,et.jsx)("span",{className:"absolute inset-0 bg-gradient-et-b from-white dark:from-black"})]}),(0,et.jsx)(Sp,{})]})}),Sp=()=>(0,et.jsx)("div",{className:"w-full h-[1240px] et-10",children:(0,et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,et.jsx)("defs",{children:(0,et.jsxs)("mask",{id:"mask",children:[(0,et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,et.jsx)("rect",{et:"330",width:"1920",height:"7",fill:"white"})," "]})});var Yi=h(require("next/image"));var Rp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,et.jsx)(Yi.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,et.jsx)("div",{children:(0,et.jsx)(Yi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},qi=({links:e,media:t,children:a,richText:o})=>(0,et.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,et.jsx)(Rp,{media:t}),(0,et.jsx)("div",{className:"mx-0 min-w-full relative et-9",children:(0,et.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,et.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Ki=({children:e,richText:t})=>(0,et.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,et.jsx)("div",{className:"container",children:e||t&&(0,et.jsx)(Z,{content:t,enableGutter:!1})})});var jd=h(require("react")),Xd=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,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var Tp=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,et.jsxs)("div",{className:"relative grid pt-24",children:[(0,et.jsx)("div",{className:"relative et-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,et.jsxs)("div",{className:"container mx-auto",children:[(0,et.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,et.jsxs)("div",{className:"flex flex-col gap-4 et:flex-row et:gap-16 ",children:[o&&o.length>0&&(0,et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,et.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,et.jsx)("p",{children:o.map((l,n)=>(0,et.jsxs)(jd.default.Fragment,{children:[l.name,n<o.length-2&&", ",n===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,et.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,et.jsx)("time",{dateTime:r,children:Ud(r)})]}),t&&t.length>0&&(0,et.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,et.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,et.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,n)=>typeof l=="object"&&l!==null&&(0,et.jsx)(Ue,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||n))})]})]})]})}),(0,et.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,et.jsx)(Xd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,et.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-et-t from-background dark:from-black et-transparent"})]})]})};var jr=require("@heroicons/react/20/solid");var Ji=h(require("next/image"));function Qi({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"vd-padding",o);return(0,et.jsx)("div",{className:r,children:e})}var qd=require("next-themes");function Dp({children:e,...t}){return(0,et.jsx)(qd.ThemeProvider,{...t,children:e})}var jo=({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,et.jsx)("div",{className:"w-full h-[1240px] et-20",children:(0,et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,et.jsx)("defs",{children:(0,et.jsxs)("mask",{id:"mask",children:[(0,et.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,et.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,et.jsx)("rect",{et:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,et.jsxs)("div",{className:"w-full et-20 aspect-[1920/332] overflow-hidden ",children:[(0,et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,et.jsx)("defs",{children:(0,et.jsxs)("mask",{id:"mask",children:[(0,et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,et.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] et-10 bg-white"})]});if(e==="dark-top")return(0,et.jsx)("div",{className:"w-full aspect-[1920/332] et-20 content-end block overflow-hidden",children:(0,et.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,et.jsx)("defs",{children:(0,et.jsxs)("mask",{id:"mask",children:[(0,et.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,et.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,et.jsx)("div",{className:"w-full aspect-[1920/332] et-20 content-start block overflow-hidden bg-white",children:(0,et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,et.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,et.jsx)("div",{className:"w-full aspect-[1920/332] et-20 content-end block overflow-hidden",children:(0,et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,et.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,et.jsx)("div",{className:"w-full aspect-[1920/332] et-20 relative -bottom-[1px]",children:(0,et.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,et.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Mp=({className:e})=>(0,et.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,et.jsx)("defs",{children:(0,et.jsxs)("mask",{id:"mask",children:[(0,et.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,et.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,et.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Zi=({title:e,image:t})=>(0,et.jsx)("div",{children:(0,et.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,et.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 et-10 flex items-start justify-start",children:(0,et.jsx)("h1",{className:"text-5xl et:text-6xl",children:e})}),(0,et.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,et.jsx)(Ji.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,et.jsx)("div",{children:(0,et.jsx)(Ji.default,{className:"-et-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,et.jsx)("span",{className:"absolute inset-0 bg-gradient-et-b from-white dark:from-black"})]}),(0,et.jsx)(jo,{className:"text-black et-10",position:"header"})]})});var Ip={highImpact:Xi,lowImpact:Ki,mediumImpact:qi,sectionHero:Zi},Ap=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Ip[t];return a?(0,et.jsx)(a,{...e}):null};function Bp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,et.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,et.jsxs)("Vn",{role:"list",className:"flex items-center space-et-4",children:[(0,et.jsx)("li",{children:(0,et.jsx)("div",{children:(0,et.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,et.jsx)(jr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,et.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,et.jsx)("li",{children:(0,et.jsxs)("div",{className:"flex items-center",children:[(0,et.jsx)(jr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,et.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,et.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,et.jsx)(et.Fragment,{})}var Je=require("@headlessui/react"),Yr=require("@heroicons/react/24/outline");var Lp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,et.jsx)("a",{href:o,className:"flex items-center gap-et-1 text-sm text-foreground group",children:(0,et.jsxs)("span",{className:"relative",children:[e,(0,et.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-et-1/2 scale-et-0 transition-transform duration-300 ease-in-out group-hover:scale-et-100"})]})}):(0,et.jsxs)(Je.Popover,{children:[(0,et.jsxs)(Je.PopoverButton,{className:"flex items-center gap-et-1 text-sm/6 text-foreground outline-none group",children:[(0,et.jsxs)("span",{className:"relative",children:[e,(0,et.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-et-1/2 scale-et-0 transition-transform duration-300 ease-in-out group-hover:scale-et-100"})]}),(0,et.jsx)(jr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,et.jsxs)(Je.PopoverPanel,{transition:!0,className:"absolute inset-et-0 top-0 -et-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-et-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,et.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-et-4 px-6 py-10 lg:px-8 xl:gap-et-8 et-50",children:t&&t.map(r=>(0,et.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,et.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,et.jsx)(Qd,{icon:r.icon,size:"4x"})}),(0,et.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,et.jsx)("span",{className:"absolute inset-0"})]}),(0,et.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,et.jsx)("div",{className:"bg-gray-50",children:(0,et.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,et.jsx)("div",{className:"grid grid-cols-3 divide-et divide-gray-900/5 border-et border-gray-900/5",children:a.map(r=>(0,et.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-et-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,et.jsx)(Qd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Qd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,et.jsx)(Me,{...e,size:a});if("src"in e)return(0,et.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,et.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},po=Lp;var Xr=["light","dark","green"];function Ep({title:e,logo:t,menuItems:a}){let[o,r]=(0,sr.useState)(!1),[s,l]=(0,sr.useState)(!1),[n,c]=(0,sr.useState)("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,f]=(0,sr.useState)(`${m}.${d}`),g=u=>{Xr.includes(u)?f(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):f(`${m}.${d}`)};(0,sr.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Xr[(Xr.indexOf(n)+1)%Xr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,et.jsxs)("header",{className:"relative isolate et-10 bg-background h-14",children:[(0,et.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,et.jsx)("div",{className:"flex lg:flex-1",children:(0,et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,et.jsx)("span",{className:"sr-only",children:e}),(0,et.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,et.jsx)("div",{className:"flex lg:hidden",children:(0,et.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-et p-2.5 text-gray-700 outline-none",children:[(0,et.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,et.jsx)(Yr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,et.jsx)(Je.PopoverGroup,{className:"hidden lg:flex lg:gap-et-12",children:a.map(u=>(0,et.jsx)(po,{...u},u.name))}),(0,et.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,et.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,et.jsx)(jr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,et.jsx)(jr.MoonIcon,{className:"h-6 w-6"}):(0,et.jsx)(jr.SunIcon,{className:"h-6 w-6"})})})]}),(0,et.jsxs)(Je.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,et.jsx)("div",{className:"fixed inset-0 et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,et.jsxs)(Je.DialogPanel,{className:"fixed inset-et-0 right-0 et-20 w-full overflow-et-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,et.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,et.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,et.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,et.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-et p-2.5 text-gray-700 outline-none",children:[(0,et.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,et.jsx)(Yr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,et.jsx)("div",{className:"mt-6 flow-root",children:(0,et.jsx)("div",{className:"-my-6 divide-et divide-gray-500/10",children:(0,et.jsx)("div",{className:"space-et-2 py-6",children:a.map(u=>(0,et.jsx)(Hp,{...u},u.name))})})})]})]})]})}function Hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,et.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,et.jsxs)(Je.Disclosure,{as:"div",className:"-mx-3",children:[(0,et.jsx)(Je.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,et.jsx)(Je.DisclosurePanel,{className:"mt-2 space-et-2",children:t&&t.map(r=>(0,et.jsx)(Je.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Fp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,et.jsx)("div",{children:(0,et.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,et.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full et-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,et.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,et.jsx)("div",{className:"fixed inset-0 h-full et-10 flex flex-col items-start justify-center text-white px-4",children:(0,et.jsx)(Qi,{children:(0,et.jsxs)("div",{className:"flex flex-col items-start et:w-2/3 mb-10 et-0 et:mb-0",children:[(0,et.jsx)("h1",{className:"text-5xl et:text-7xl mb-6",children:r&&r}),(0,et.jsx)("div",{className:"text-lg et:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,et.jsx)(jo,{className:"text-black et-10",position:"header"})]})})}var en=h(require("next/image"));function ya({logoLight:e,logoDark:t,mobile:a=!1}){return(0,et.jsxs)(rt,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,et.jsx)(en.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,et.jsx)(en.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function tn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,sr.useState)(!1),[c,m]=(0,sr.useState)(""),d=["light","dark"],{theme:p,setTheme:f}=(0,qd.useTheme)();(0,sr.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];m(b),f(b)};return(0,sr.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,et.jsx)(et.Fragment,{children:(0,et.jsx)("header",{className:`et-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-et-0":"-translate-et-full bg-transparent"}`,children:(0,et.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,et.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,et.jsx)(ya,{logoDark:a,logoLight:t}),(0,et.jsx)(Je.PopoverGroup,{className:"hidden lg:flex lg:gap-et-12",children:o&&o.map(b=>(0,et.jsx)(po,{...b},b.name))}),r&&(0,et.jsx)("button",{className:"fixed right-4 et-[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,et.jsxs)("div",{className:"relative",children:[(0,et.jsx)(el.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,et.jsx)(el.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var an=["light","dark"];function on({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,sr.useState)(!1),{theme:l,setTheme:n}=(0,qd.useTheme)(),[c,m]=(0,sr.useState)(!1),[d,p]=(0,sr.useState)("light");(0,sr.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,sr.useEffect)(()=>{p(l||"dark")},[l]);let f=()=>{let g=an[(an.indexOf(d)+1)%an.length];p(g),n(g)};return(0,et.jsx)(et.Fragment,{children:(0,et.jsxs)("header",{className:`et-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-et-0":"-translate-et-full bg-transparent"}`,children:[(0,et.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,et.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&et.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,et.jsx)(ya,{logoDark:t,logoLight:e,mobile:!0}),(0,et.jsx)("div",{className:"flex items-center space-et-4",children:(0,et.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 et-[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,et.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,et.jsx)(Yr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,et.jsxs)(Je.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,et.jsx)("div",{className:"fixed inset-0 et-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,et.jsxs)(Je.DialogPanel,{className:"fixed inset-et-0 right-0 et-20 w-full overflow-et-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,et.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,et.jsx)(ya,{logoDark:t,logoLight:e,mobile:!0}),(0,et.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-et p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,et.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,et.jsx)(Yr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,et.jsx)("div",{className:"mt-6 flow-root",children:(0,et.jsx)("div",{className:"-my-6 divide-et divide-gray-500/10",children:(0,et.jsx)("div",{className:"space-et-2 px-2 py-6",children:a&&a.map(g=>(0,et.jsx)(zp,{...g},g.name))})})})]})]})]})})}function zp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,et.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,et.jsxs)(Je.Disclosure,{as:"div",className:"-mx-3",children:[(0,et.jsx)(Je.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,et.jsx)(Je.DisclosurePanel,{className:"mt-2 space-et-2",children:t&&t.map(r=>(0,et.jsx)(Je.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var d0=i("text-base/[1.75] transition-transform duration-350 hover:-translate-et-1 block px-4"),ac=i("text-brand-green text-et leading-[1.25] et:text-lg mb-5 et:mb-[1.5rem]"),rn=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),sn=i("flex items-center text-white gap-3"),Qr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Op({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,et.jsxs)("footer",{className:i("sticky et-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,et.jsx)("div",{className:"py-16 et:py-20",children:(0,et.jsx)("div",{className:"container",children:(0,et.jsxs)("div",{className:"grid gap-10 et:grid-cols-2 xl:grid-cols-3",children:[(0,et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,et.jsx)(ya,{logoDark:o,logoLight:a}),(0,et.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,et.jsx)("nav",{"aria-label":"social links",children:(0,et.jsx)("Vn",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>(0,et.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,et.jsx)(rt,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,et.jsx)("span",{children:m.icon})})},d))})})]}),(0,et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,et.jsx)("h3",{className:ac,children:s.title}),s.links&&s.links.length>0&&(0,et.jsx)("nav",{"aria-label":"footer links navigation",children:(0,et.jsx)("Vn",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,et.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,et.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,et.jsx)(Fl.FaChevronRight,{})}),(0,et.jsx)(rt,{href:m.href,openNewTab:m.openNewTab,className:Qr,children:m.label})]},m.label))})})]}),(0,et.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,et.jsx)("h3",{className:ac,children:l.title}),(0,et.jsxs)("Vn",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,et.jsxs)("li",{className:sn,children:[(0,et.jsx)("span",{className:rn,children:(0,et.jsx)(Fl.FaPaperPlane,{})}),(0,et.jsx)("address",{className:"not-italic",children:l.location})]}),(0,et.jsxs)("li",{className:sn,children:[(0,et.jsx)("span",{className:rn,children:(0,et.jsx)(Fl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,et.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,et.jsx)("a",{href:`mailto:${m}`,className:Qr,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,et.jsxs)("li",{className:sn,children:[(0,et.jsx)("span",{className:rn,children:(0,et.jsx)(Fl.FaPhone,{})}),(0,et.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,et.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Qr,children:m},d))})]})]})]})]})})}),(0,et.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,et.jsx)("div",{className:"container",children:(0,et.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-et-8 gap-et-4 et:gap-et-10",children:[(0,et.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,et.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,et.jsx)("Vn",{className:"flex flex-wrap items-center gap-et-4 et:gap-et-7",children:n.links.map(m=>(0,et.jsx)("li",{children:(0,et.jsx)(rt,{"aria-label":`Go et page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Qr,children:m.label})},m.label))})})]})})})]})}function Gp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,et.jsxs)("div",{className:i("fixed top-0 left-0 right-0 et-50",r),children:[(0,et.jsx)(tn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,et.jsx)(on,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function _p({menuItems:e,wide:t=!1,dark:a=!0}){return(0,et.jsx)(et.Fragment,{children:(0,et.jsx)("menu",{className:i("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,et.jsx)("div",{className:"container backdrop-blur-sm",children:(0,et.jsx)("div",{className:i("flex items-center justify-between py-0",!t&&"container"),children:(0,et.jsx)(Je.PopoverGroup,{className:"flex gap-et-12",children:e&&e.map(o=>(0,et.jsx)(po,{...o},o.name))})})})})})}function nn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,sr.useState)([]),s=(0,vd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(f=>f!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(xi.toast.success(d.message),s.refresh()):xi.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(xi.toast.success(d.message),s.refresh()):xi.toast.error(`Error: ${d.message}`),r([])};return(0,et.jsxs)("div",{className:"space-et-4",children:[(0,et.jsxs)("div",{className:"flex justify-between items-center",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,et.jsxs)("div",{className:"space-et-2",children:[(0,et.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,et.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,et.jsx)("div",{className:"overflow-hidden sm:rounded-et",children:(0,et.jsxs)("Vn",{className:"divide-et divide-gray-200",children:[(0,et.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,et.jsxs)("div",{className:"flex items-center",children:[(0,et.jsx)(gt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,et.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,et.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,et.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,et.jsxs)("div",{className:"flex items-center justify-between",children:[(0,et.jsxs)("div",{className:"flex items-center",children:[(0,et.jsx)(gt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,et.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,et.jsxs)($e,{className:"h-10 w-10",children:[(0,et.jsx)(We,{src:d.userImage,alt:d.userName}),(0,et.jsx)(Ve,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,et.jsx)("div",{className:"ml-3",children:(0,et.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,et.jsxs)("div",{className:"flex items-center space-et-2",children:[(0,et.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,et.jsx)(Ue,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,et.jsx)(xi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"et-50"})]})}var ln=require("date-fns");var ic=[{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 Ko=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=ic.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},nc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Ko(o))return .5;for(;o<=r;)Ko(o)||s++,o.setDate(o.getDate()+1);return s},lc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var $p=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-et-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 cn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,sr.useState)(new Date),[r,s]=(0,sr.useState)(new Date),[l,n]=(0,sr.useState)("Full Day"),[c,m]=(0,sr.useState)(!1),[d,p]=(0,sr.useState)(1),f=(0,vd.useRouter)();(0,sr.useEffect)(()=>{let u=lc(a,r);m(u),u&&n("Full Day")},[a,r]),(0,sr.useEffect)(()=>{if(!a||!r){p(0);return}let u=nc(a,r,l!=="Full Day");p(u)},[a,r,l]);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){xi.toast.error("Please select both start and end dates");return}if(d>e){xi.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",l),v.append("duration",d.toString());let M=await(t||Wp)(v);M.success?(xi.toast.success(M.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):xi.toast.error(`Error: ${M.message}`)},className:"space-et-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-et-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Ao,{children:[(0,$.jsx)(Bo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(el.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,ln.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ho,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-et-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Ao,{children:[(0,$.jsx)(Bo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(el.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,ln.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ho,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-et-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)($p,{options:["Full Day","Morning","Afternoon"],value:l,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)(xi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"et-50"})]})}var Wp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function cc(...e){return e.filter(Boolean).join(" ")}function mn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,et.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,et.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,et.jsxs)("div",{className:"sm:flex-auto",children:[(0,et.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,et.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,et.jsxs)("div",{className:"relative flex items-center rounded-et gap-1 et:items-stretch",children:[(0,et.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-et border-accent hover:text-accent",children:[(0,et.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,et.jsx)(el.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,et.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 et:block",children:"Today"}),(0,et.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-et border-accent hover:text-accent",children:[(0,et.jsx)("span",{className:"sr-only",children:"Next month"}),(0,et.jsx)(el.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,et.jsx)("div",{className:"mt-8 flow-root",children:(0,et.jsx)("div",{className:"-mx-4 -my-2 overflow-et-auto sm:-mx-6 lg:-mx-8",children:(0,et.jsx)("div",{className:"max-h-[60vh] overflow-et-auto",children:(0,et.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,et.jsx)("thead",{className:"sticky top-0 et-20 bg-white",children:(0,et.jsxs)("tr",{children:[(0,et.jsx)("th",{scope:"col",className:"sticky left-0 top-0 et-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,et.jsxs)("th",{scope:"col",className:`sticky top-0 et-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 ${Ko(p)?"bg-gray-200":""}`,children:[(0,et.jsx)("div",{children:c(p)}),(0,et.jsx)("div",{children:d+1})]},d)})]})}),(0,et.jsx)("tbody",{children:o.map((m,d)=>(0,et.jsxs)("tr",{children:[(0,et.jsx)("td",{className:cc(d!==o.length-1?"border-gray-200":"","sticky left-0 et-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,et.jsxs)("div",{className:"flex items-center",children:[(0,et.jsxs)($e,{className:"h-11 w-11",children:[(0,et.jsx)(We,{src:m.image,alt:m.name}),(0,et.jsx)(Ve,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,et.jsx)("div",{className:"ml-4",children:(0,et.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,et.jsx)("td",{className:cc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Ko(g)?"bg-gray-200":"bg-white"),children:(0,et.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?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,et.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${f}`)})]},m.id))})]})})})})]})}function pn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,sr.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let f=new Date(e.getFullYear(),e.getMonth(),p-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))},m=()=>{t(new Date)};return(0,et.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,et.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,et.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,et.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,et.jsx)("div",{className:"flex items-center",children:(0,et.jsxs)("div",{className:"relative flex items-center rounded-et gap-1 et:items-stretch",children:[(0,et.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-et border-accent hover:text-accent",children:[(0,et.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,et.jsx)(el.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,et.jsx)(T,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative et:block",children:"Today"}),(0,et.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-et border-accent hover:text-accent",children:[(0,et.jsx)("span",{className:"sr-only",children:"Next month"}),(0,et.jsx)(el.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,et.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,et.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,et.jsxs)("div",{className:"bg-white py-2",children:["M",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,et.jsxs)("div",{className:"bg-white py-2",children:["T",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"et"})]}),(0,et.jsxs)("div",{className:"bg-white py-2",children:["et",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,et.jsxs)("div",{className:"bg-white py-2",children:["T",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,et.jsxs)("div",{className:"bg-white py-2",children:["F",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,et.jsxs)("div",{className:"bg-white py-2",children:["et",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,et.jsxs)("div",{className:"bg-white py-2",children:["et",(0,et.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,et.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,et.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,et.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,et.jsx)("time",{dateTime:d.date.toISOString(),className:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,et.jsx)("Vn",{className:"mt-2 space-et-1 overflow-visible",children:d.holidays.map(p=>(0,et.jsx)("li",{className:"overflow-visible",children:(0,et.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,et.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,et.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:et-10"),children:[(0,et.jsx)("time",{dateTime:d.date.toISOString(),className:i("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,et.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,et.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,et.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var ha=require("lucide-react");function pc(...e){return e.filter(Boolean).join(" ")}function Vp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,m]=(0,sr.useState)("Calendar View"),d=(0,vd.useRouter)(),p=!1,f=(0,ln.parseISO)(a),g=async u=>{let v=(0,ln.format)(u,"dd-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",v),d.push(M.toString()),{success:!0}};if(p)return(0,et.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,et.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:ha.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ha.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ha.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ha.CheckSquare,current:c==="Approve Leave"}];return(0,et.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,et.jsxs)("div",{className:"mb-8",children:[(0,et.jsxs)("div",{className:"sm:hidden",children:[(0,et.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block w-full rounded-et border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,et.jsx)("option",{children:u.name},u.name))}),(0,et.jsx)(el.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,et.jsx)("div",{className:"hidden sm:block",children:(0,et.jsx)("div",{className:"border-b border-gray-200",children:(0,et.jsx)("nav",{className:"-mb-px flex space-et-8","aria-label":"Tabs",children:b.map(u=>(0,et.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:pc(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,et.jsx)(u.icon,{className:pc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,et.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,et.jsx)(mn,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,et.jsx)(pn,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,et.jsx)(cn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,et.jsx)(nn,{leaveRequests:o,onApprove:u=>l?l(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 Qo({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[n,c]=(0,sr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,sr.useState)(""),[p,f]=(0,sr.useState)(!1),[g,b]=(0,sr.useState)(null);(0,sr.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 et save deal:",w.errors)}catch(w){console.error("Failed et save deal:",w)}},v=(w,Q)=>{c($a=>({...$a,[w]:Q}))},M=w=>{let Q=(n.categories||[]).includes(w)?(n.categories||[]).filter($a=>$a!==w):[...n.categories||[],w];v("categories",Q)},O=async()=>{if(m.trim()){let w={text:m,timestamp:new Date().toISOString()};try{let Q=await l(w);if(!Q.success){console.error("Failed et add comment:",Q.errors);return}}catch(Q){console.error("Failed et add comment:",Q)}c(Q=>({...Q,comments:[...Q.comments||[],w]})),d("")}},N=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},L=w=>t?.find(Q=>Q.id===Number(w));return(0,et.jsx)(Pt,{open:!0,children:(0,et.jsxs)(ft,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,et.jsxs)(Et,{className:"flex flex-row items-center justify-between",children:[(0,et.jsx)(Ht,{className:"text-2xl font-bold",children:a?.name||"vd customer"}),(0,et.jsxs)("div",{className:"flex space-et-2",children:[(0,et.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,et.jsxs)(T,{onClick:u,disabled:!p,children:[(0,et.jsx)(el.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,et.jsxs)(Ct,{className:"flex-grow pr-4",children:[(0,et.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,et.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,et.jsx)(Ge,{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,et.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",n.value?.toLocaleString()]})}),(0,et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,et.jsxs)(ca,{value:n?.assignee?.id?.toString()||"",onValueChange:w=>v("assignee",L(w)),children:[(0,et.jsx)(zt,{children:(0,et.jsx)(ma,{placeholder:"Select assignee"})}),(0,et.jsx)(Ot,{children:t&&t.map(w=>(0,et.jsx)(Gt,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,et.jsxs)("div",{className:"flex items-center space-et-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,et.jsx)(el.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,et.jsx)("span",{children:n?.assignee?.name})]})]}),(0,et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,et.jsx)(Ge,{type:"date",value:n.closureDate?.split("T")[0]??"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,et.jsxs)("div",{className:"flex items-center space-et-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,et.jsx)(el.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,et.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/et"})]})]})]}),(0,et.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,et.jsx)(pa,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,et.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,et.jsxs)(ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,et.jsx)(zt,{children:(0,et.jsx)(ma,{placeholder:"Select status"})}),(0,et.jsx)(Ot,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,et.jsx)(Gt,{value:w,children:w},w))})]}):(0,et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:n.status})]}),(0,et.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,et.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,et.jsxs)("div",{className:"flex items-center space-et-2",children:[(0,et.jsx)(gt,{id:w.id?.toString()||"",checked:(n.categories||[]).some(Q=>Q.id===w.id),onCheckedChange:()=>w.id!==void 0&&M(w)}),(0,et.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${N(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,et.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{let Q=w;return Q?(0,et.jsx)(Ue,{variant:"outline",className:N(Q.type||"sector"),children:Q.name},Q.id):null})})]}),(0,et.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,et.jsxs)(ca,{value:n.gecoStatus??void 0,onValueChange:w=>{v("gecoStatus",w),b(null)},children:[(0,et.jsx)(zt,{children:(0,et.jsx)(ma,{placeholder:"Select status"})}),(0,et.jsx)(Ot,{children:["firm","forecast","other"].map(w=>(0,et.jsx)(Gt,{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}):(0,et.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:n.gecoStatus?n.gecoStatus.charAt(0).toUpperCase()+n.gecoStatus.slice(1):"N/et"})]})]}),(0,et.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,et.jsxs)("div",{className:"grid gap-2",children:[(0,et.jsx)(J,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,et.jsx)(Ct,{className:"h-[200px] overflow-et-auto",children:(0,et.jsx)("div",{className:"space-et-2",children:n.comments&&n.comments.slice().sort((w,Q)=>new Date(Q.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,et.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,et.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,et.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,et.jsxs)("div",{className:"flex mt-2",children:[(0,et.jsx)(Ge,{value:m,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,et.jsxs)(T,{onClick:O,className:"ml-2",children:[(0,et.jsx)(el.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,et.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function un({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l.id));return r?(0,et.jsxs)(pe,{className:"mb-1 cursor-pointer hover:shadow-et transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,et.jsxs)(Se,{className:"pb-1 pt-2",children:[(0,et.jsx)(Re,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,et.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,et.jsx)(we,{className:"text-xs text-gray-500 pb-2",children:(0,et.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,et.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,et.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,et.jsxs)(pe,{className:"mb-4 cursor-pointer hover:shadow-et transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,et.jsxs)(Se,{className:"pb-2",children:[(0,et.jsx)("div",{className:"flex justify-between items-center",children:(0,et.jsx)(Re,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,et.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,et.jsxs)(we,{children:[(0,et.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,et.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,et.jsx)(el.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,et.jsx)("span",{children:e.assignee.name})]}),(0,et.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,et.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,et.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,et.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,et.jsx)(el.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,et.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,et.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,et.jsx)(Ue,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var as=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Jo({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,compact:c=!1}){return(0,et.jsxs)("div",{className:"flex flex-col w-80",children:[(0,et.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,et.jsx)(as.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,et.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((d,p)=>(0,et.jsx)(as.Draggable,{draggableId:d.id.toString(),index:d.id,children:f=>(0,et.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,et.jsx)(un,{deal:d,customer:d.customer,categories:r,onClick:()=>s(d),compact:c})})},d.id.toString())),m.placeholder]})}),(0,et.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,et.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,et.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,et.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,et.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Up=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function jp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,sr.useState)(null),n=p=>(e.deals??[]).filter(f=>f.status===p),c=p=>p.reduce((f,g)=>f+(g.value||0),0),m=(p,f)=>{let g={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,u)=>b+(u.value||0)*g[f],0)},d=(0,sr.useCallback)(p=>{let{source:f,destination:g}=p;if(!g||f.droppableId===g.droppableId&&f.index===g.index)return;let b=f.droppableId,u=g.droppableId,v=e.deals?.filter(O=>O.id===f.index)[0],M=[...e.deals??[]];v&&(v.status=u,a(v))},[a]);return(0,et.jsx)(as.DragDropContext,{onDragEnd:d,children:(0,et.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,et.jsx)("div",{className:"flex space-et-4 pb-4",children:Up.filter(p=>p!=="Lost").map(p=>{let f=n(p);return(0,et.jsx)(Jo,{status:p,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m},p)})}),s&&(0,et.jsx)(Qo,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function fn({onSubmit:e}){let[t,a]=(0,sr.useState)({name:"",intro:"",active:!1});return(0,et.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-et-4",children:[(0,et.jsxs)("div",{className:"space-et-2",children:[(0,et.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,et.jsx)(Ge,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,et.jsxs)("div",{className:"space-et-2",children:[(0,et.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,et.jsx)(pa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,et.jsxs)("div",{className:"flex items-center space-et-2",children:[(0,et.jsx)(gt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,et.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,et.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Xp({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[n,c]=(0,sr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,sr.useState)(!1),[p,f]=(0,sr.useState)({});(0,sr.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let N={};return n.customer||(N.customer="Customer is required"),n.value||(N.value="Value is required"),n.assignee||(N.assignee="Assignee is required"),n.closureDate||(N.closureDate="Closure Date is required"),f(N),Object.keys(N).length===0},b=async N=>{N.preventDefault(),f({});try{if(g()){let L=await o({...n});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):f(L.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=N=>{c(L=>({...L,categories:(L.categories||[]).includes(N.id)?(L.categories||[]).filter(w=>w!==N.id):[...L.categories||[],N.id]}))},v=async N=>{c({...n,customer:N});try{let L=await s(N);L.success?d(!1):f(L.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},M=N=>t?.find(L=>L.id===Number(N)),O=N=>e?.find(L=>L.id===Number(N));return(0,et.jsxs)(et.Fragment,{children:[(0,et.jsxs)("form",{onSubmit:b,className:"space-et-6",children:[(0,et.jsx)(Ct,{className:"h-[60vh] pr-4",children:(0,et.jsxs)("div",{className:"space-et-6 px-4",children:[(0,et.jsxs)("div",{className:"space-et-2 space-et-2",children:[(0,et.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,et.jsxs)("div",{className:"flex items-center space-et-2",children:[(0,et.jsxs)(ca,{value:n.customer?.id?.toString(),onValueChange:N=>c({...n,customer:O(N)}),children:[(0,et.jsx)(zt,{children:(0,et.jsx)(ma,{placeholder:"Select customer"})}),(0,et.jsx)(Ot,{children:e.map(N=>(0,et.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),(0,et.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,et.jsx)(el.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,et.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,et.jsxs)("div",{className:"space-et-2 space-et-2",children:[(0,et.jsx)(J,{htmlFor:"value",children:"Value"}),(0,et.jsx)(Ge,{id:"value",type:"number",value:n.value||"",onChange:N=>c({...n,value:Number.parseFloat(N.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,et.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,et.jsxs)("div",{className:"space-et-2 space-et-2",children:[(0,et.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,et.jsxs)(ca,{value:n.assignee?.id?.toString(),onValueChange:N=>c({...n,assignee:M(N)}),children:[(0,et.jsx)(zt,{children:(0,et.jsx)(ma,{placeholder:"Select assignee"})}),(0,et.jsx)(Ot,{children:t&&t.map(N=>(0,et.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),p.assignee&&(0,et.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,et.jsxs)("div",{className:"space-et-2 space-et-2",children:[(0,et.jsx)(J,{htmlFor:"description",children:"Description"}),(0,et.jsx)(pa,{id:"description",value:n.description||"",onChange:N=>c({...n,description:N.target.value}),placeholder:"Enter deal description"})]}),(0,et.jsxs)("div",{className:"space-et-2 space-et-2",children:[(0,et.jsx)(J,{children:"Categories"}),(0,et.jsx)("div",{className:"space-et-4",children:["proposition","source","sector"].map(N=>(0,et.jsxs)("div",{className:"space-et-2",children:[(0,et.jsx)("h4",{className:"text-sm font-medium",children:N.charAt(0).toUpperCase()+N.slice(1)}),(0,et.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===N).map(L=>(0,et.jsxs)("div",{className:"flex items-center space-et-2",children:[(0,et.jsx)(gt,{id:L.id.toString(),checked:n.categories?.includes(L.id),onCheckedChange:()=>u(L)}),(0,et.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id))})]},N))})]}),(0,et.jsxs)("div",{className:"space-et-2 space-et-2",children:[(0,et.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,et.jsx)(Ge,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:N=>c({...n,closureDate:N.target.value})}),p.closureDate&&(0,et.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,et.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,et.jsx)(Pt,{open:m,onOpenChange:d,children:(0,et.jsxs)(ft,{children:[(0,et.jsx)(Et,{children:(0,et.jsx)(Ht,{children:"Add New Customer"})}),(0,et.jsx)(fn,{onSubmit:v})]})})]})}var Yp=["firm","forecast","other"];function qp({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,sr.useState)(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),l=m=>m.reduce((d,p)=>d+(p.value||0),0),n=(m,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((f,g)=>f+(g.value||0)*(p[g.status]??0),0)},c=(0,sr.useCallback)(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let f=d.droppableId,g=p.droppableId,b=e.deals?.filter(v=>v.id===d.index)[0],u=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,et.jsx)(as.DragDropContext,{onDragEnd:c,children:(0,et.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,et.jsx)("div",{className:"flex space-et-4 pb-4",children:Yp.map(m=>{let d=s(m);return(0,et.jsx)(Jo,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:n,compact:!0},m)})}),o&&(0,et.jsx)(Qo,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Cc=h(require("react"));function xc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,sr.useState)(null),[s,l]=(0,sr.useState)(!1),[n,c]=(0,sr.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed et fetch task: ${f.statusText}`);let g=await f.json();r(g)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>m(!1);return(0,sr.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:n}}var Kp=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Qp=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function gn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,n=!0,c=s,m=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:l,error:c}),m){let{task:g,loading:b,error:u}=xc({taskId:t,system:a});l=g,n=b,c=u}else n=!1;let d=Kp(l?.status||"todo"),p=Qp(l?.status||"todo"),f=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(f=(0,ln.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,et.jsxs)(pe,{className:i("w-full max-w-et shadow-et",c&&"border border-destructive"),children:[(0,et.jsxs)(Se,{className:"pb-2",children:[(0,et.jsxs)("div",{className:"flex justify-between items-start",children:[(0,et.jsx)(Re,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,et.jsx)(Ue,{className:`${d}`,children:p})]}),l?.project&&(0,et.jsxs)(Di,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,et.jsx)(we,{className:"pb-2",children:n?(0,et.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,et.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,et.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,et.jsx)(Mi,{className:"pt-2 flex items-center justify-between",children:(0,et.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,et.jsx)(el.Clock,{className:"h-3 w-3 mr-1"}),(0,et.jsxs)("span",{children:["Created ",f]}),(0,et.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,et.jsxs)("span",{children:["Task #",t]})]})})]})}var Jp={task:gn},Zp=`
|
|
16
16
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
|
|
17
17
|
<path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
|
|
18
|
-
</svg>`,
|
|
18
|
+
</svg>`,eu=`data:image/svg+xml;utf8,${encodeURIComponent(Zp)}`,bn=Cc.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,l=s==="user",n=l?r?.name||"You":r?.name||"AI Assistant",c=l?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,et.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${l?"flex-row-reverse":""}`,children:["Forwarding et ",o?.data?.content]},a);case"text":return(0,et.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,et.jsxs)($e,{children:[(0,et.jsx)(We,{src:c,alt:n}),(0,et.jsx)(Ve,{children:n.substring(0,2).toUpperCase()})]}):(0,et.jsx)("img",{src:eu,alt:"AI Assistant",className:"w-10 h-10"}),(0,et.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,et.jsx)("div",{className:"flex items-center gap-2",children:(0,et.jsx)("span",{className:"font-medium",children:n})}),(0,et.jsx)("div",{className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,et.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,et.jsxs)($e,{className:l?"":"ai-border",children:[(0,et.jsx)(We,{src:c,alt:n}),(0,et.jsx)(Ve,{children:n.substring(0,2).toUpperCase()})]}),(0,et.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,et.jsx)("div",{className:"flex items-center gap-2",children:(0,et.jsx)("span",{className:"font-medium",children:n})}),(0,et.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=Jp[o.data.tool];return m?(0,et.jsx)("div",{className:"mt-2",children:(0,et.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,et.jsx)("div",{className:"mt-2",children:"......"}))}}});function tu({messages:e,isLoading:t}){let a=(0,sr.useRef)(null);return(0,sr.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,et.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,et.jsxs)(Ct,{className:"container flex-1 p-4",children:[(0,et.jsxs)("div",{className:"space-et-6",children:[e.length===0&&(0,et.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,et.jsxs)("div",{className:"text-center max-w-et",children:[(0,et.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome et Dexter"}),(0,et.jsx)("p",{className:"text-zinc-400",children:"Ask et anything or direct your question et a business function directly using the toolbar below."})]})}),t&&(0,et.jsxs)("div",{className:"flex items-start gap-3",children:[(0,et.jsxs)($e,{className:"ai-border",children:[(0,et.jsx)(We,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,et.jsx)(Ve,{children:"AI"})]}),(0,et.jsxs)("div",{className:"grid gap-1.5",children:[(0,et.jsx)("div",{className:"flex items-center gap-2",children:(0,et.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,et.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,et.jsxs)("div",{className:"flex space-et-2",children:[(0,et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,et.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,et.jsx)(bn,{...o},r))]}),(0,et.jsx)("div",{ref:a})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,Tabs,TabsContent,TabsList,TabsTrigger,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|