cortex-react-components 1.52.0 → 1.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BA6O4DAT.mjs → chunk-2LK6U67F.mjs} +1 -1
- package/dist/{chunk-FFAJTZPI.mjs → chunk-3DTKXXXK.mjs} +2 -2
- package/dist/{chunk-PFWWPJYL.mjs → chunk-3ZR5WDOS.mjs} +1 -1
- package/dist/{chunk-3JFKZDWH.mjs → chunk-3ZXOVXZO.mjs} +1 -1
- package/dist/{chunk-34FASRX2.mjs → chunk-53X3DJGT.mjs} +1 -1
- package/dist/{chunk-PXO6XB4R.mjs → chunk-5ZK27HPT.mjs} +1 -1
- package/dist/chunk-7DICAJS4.mjs +1 -0
- package/dist/{chunk-XYKGA7DT.mjs → chunk-7VDPP3W7.mjs} +1 -1
- package/dist/chunk-CDXQC772.mjs +4 -0
- package/dist/{chunk-6CKPMSTB.mjs → chunk-ESAZG25O.mjs} +1 -1
- package/dist/{chunk-NETY6BCN.mjs → chunk-IKRNLNH4.mjs} +1 -1
- package/dist/{chunk-5YTDIEDJ.mjs → chunk-KB6PO4K4.mjs} +1 -1
- package/dist/{chunk-UBA3ZRKC.mjs → chunk-KIICLHKI.mjs} +1 -1
- package/dist/chunk-MSIP573K.mjs +1 -0
- package/dist/{chunk-EFUJ5SFT.mjs → chunk-N42N4DBZ.mjs} +1 -1
- package/dist/{chunk-KSCHUMVE.mjs → chunk-OGB5WICP.mjs} +1 -1
- package/dist/{chunk-KEUZSK3N.mjs → chunk-PY53YVFX.mjs} +1 -1
- package/dist/{chunk-ZOXR3VIC.mjs → chunk-QPYPL4ZL.mjs} +1 -1
- package/dist/{chunk-OCYHJJMY.mjs → chunk-R2LUEFR3.mjs} +1 -1
- package/dist/{chunk-K4U5ME5Y.mjs → chunk-S3LLU4LR.mjs} +1 -1
- package/dist/{chunk-AAI2VZST.mjs → chunk-SBAFXZVU.mjs} +1 -1
- package/dist/chunk-SBQGXEDZ.mjs +1 -0
- package/dist/{chunk-G5HD4IFA.mjs → chunk-TPJ3YV7Z.mjs} +1 -1
- package/dist/{chunk-Y43YEJBH.mjs → chunk-W7IJKJZC.mjs} +1 -1
- package/dist/{chunk-G455HHXO.mjs → chunk-WBNYJISJ.mjs} +1 -1
- package/dist/{chunk-WS2BEH2A.mjs → chunk-WVDIFSZH.mjs} +1 -1
- package/dist/{chunk-RCNFNCBQ.mjs → chunk-YF2JNOIM.mjs} +1 -1
- package/dist/{chunk-FDNWKBQE.mjs → chunk-YS3Z4KM7.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/CaseStudy.mjs +1 -1
- package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
- package/dist/components/Blocks/Code.client.mjs +1 -1
- package/dist/components/Blocks/Code.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
- package/dist/components/Blocks/ConsultantProfile.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/CopyButton.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.mjs +1 -1
- package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/DealCard.mjs +1 -1
- package/dist/components/CRM/DealCard.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.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- 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.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/CustomerCard.mjs +1 -1
- package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
- package/dist/components/Cards/EventCard.mjs +1 -1
- package/dist/components/Cards/EventCard.stories.mjs +1 -1
- package/dist/components/Cards/HeroCard.mjs +1 -1
- package/dist/components/Cards/HeroCard.stories.mjs +1 -1
- package/dist/components/Cards/Image.mjs +1 -1
- package/dist/components/Cards/Image.stories.mjs +1 -1
- package/dist/components/Cards/PricingCard.mjs +1 -1
- package/dist/components/Cards/PricingCard.stories.mjs +1 -1
- package/dist/components/Cards/ServiceCard.mjs +1 -1
- package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.js +1 -1
- package/dist/components/HeaderFooter/Footer.mjs +1 -1
- package/dist/components/HeaderFooter/Footer.stories.js +1 -1
- package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
- package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.js +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.mjs +1 -1
- package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
- package/dist/components/Holidays/CalendarView.mjs +1 -1
- package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.mjs +1 -1
- package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.mjs +1 -1
- package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.mjs +1 -1
- package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
- package/dist/components/Holidays/index.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.d.ts +0 -1
- package/dist/components/Layouts/index.js +4 -12
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/Categories.mjs +1 -1
- package/dist/components/Menus/Categories.stories.mjs +1 -1
- package/dist/components/Menus/Filter.mjs +1 -1
- package/dist/components/Menus/Filter.stories.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.mjs +1 -1
- package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
- package/dist/components/Menus/RelatedContent.mjs +1 -1
- package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/Container.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/Link/index.mjs +1 -1
- package/dist/components/Payload/Pagination/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 +7 -15
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/alert.mjs +1 -1
- package/dist/components/ui/alert.stories.mjs +1 -1
- package/dist/components/ui/avatar.mjs +1 -1
- package/dist/components/ui/avatar.stories.mjs +1 -1
- package/dist/components/ui/badge.mjs +1 -1
- package/dist/components/ui/badge.stories.mjs +1 -1
- package/dist/components/ui/breadcrumb.mjs +1 -1
- package/dist/components/ui/breadcrumb.stories.mjs +1 -1
- package/dist/components/ui/button.mjs +1 -1
- package/dist/components/ui/button.stories.mjs +1 -1
- package/dist/components/ui/calendar.mjs +1 -1
- package/dist/components/ui/card.mjs +1 -1
- package/dist/components/ui/card.stories.mjs +1 -1
- package/dist/components/ui/checkbox.mjs +1 -1
- package/dist/components/ui/command.mjs +1 -1
- package/dist/components/ui/command.stories.mjs +1 -1
- package/dist/components/ui/dialog.mjs +1 -1
- package/dist/components/ui/dialog.stories.mjs +1 -1
- package/dist/components/ui/dropdown-menu.mjs +1 -1
- package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
- package/dist/components/ui/hover-card.mjs +1 -1
- package/dist/components/ui/hover-card.stories.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/input.mjs +1 -1
- package/dist/components/ui/input.stories.mjs +1 -1
- package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
- package/dist/components/ui/inputs/text-input/index.mjs +1 -1
- package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
- package/dist/components/ui/label.mjs +1 -1
- package/dist/components/ui/label.stories.mjs +1 -1
- package/dist/components/ui/pagination.mjs +1 -1
- package/dist/components/ui/popover.mjs +1 -1
- package/dist/components/ui/popover.stories.mjs +1 -1
- package/dist/components/ui/scroll-area.mjs +1 -1
- package/dist/components/ui/scroll-area.stories.mjs +1 -1
- package/dist/components/ui/select.mjs +1 -1
- package/dist/components/ui/separator.mjs +1 -1
- package/dist/components/ui/separator.stories.mjs +1 -1
- package/dist/components/ui/sheet.mjs +1 -1
- package/dist/components/ui/sheet.stories.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/skeleton.mjs +1 -1
- package/dist/components/ui/skeleton.stories.mjs +1 -1
- package/dist/components/ui/textarea.mjs +1 -1
- package/dist/components/ui/toast.mjs +1 -1
- package/dist/components/ui/toast.stories.mjs +1 -1
- package/dist/components/ui/toaster.mjs +1 -1
- package/dist/components/ui/toggle-group.mjs +1 -1
- package/dist/components/ui/toggle.mjs +1 -1
- package/dist/components/ui/toggle.stories.mjs +1 -1
- package/dist/components/ui/tooltip.mjs +1 -1
- package/dist/components/ui/tooltip.stories.mjs +1 -1
- package/dist/index.js +7 -7
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/Documentation.stories.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/IndexPage.stories.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/Intranet.stories.mjs +1 -1
- package/dist/pages/LandingPage.js +9 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/LandingPage.stories.js +9 -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.js +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/{components/Layouts → sections}/BlogList.js +2 -2
- package/dist/sections/BlogList.mjs +1 -0
- package/dist/{components/Layouts → sections}/BlogList.stories.js +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -0
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.js +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.js +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.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.d.ts +1 -0
- package/dist/sections/index.js +9 -1
- package/dist/sections/index.mjs +1 -1
- package/dist/styles/Colors.mjs +1 -1
- package/dist/styles/Colors.stories.mjs +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-23L5ZJ2U.mjs +0 -1
- package/dist/chunk-64O5I5ZI.mjs +0 -4
- package/dist/chunk-BOZT7Z5K.mjs +0 -1
- package/dist/components/Layouts/BlogList.mjs +0 -1
- package/dist/components/Layouts/BlogList.stories.mjs +0 -1
- /package/dist/{components/Layouts → sections}/BlogList.css +0 -0
- /package/dist/{components/Layouts → sections}/BlogList.d.ts +0 -0
- /package/dist/{components/Layouts → sections}/BlogList.stories.css +0 -0
package/dist/components/index.js
CHANGED
|
@@ -2,20 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
5
|
-
"use strict";var Jd=Object.create;var Xo=Object.defineProperty;var Qd=Object.getOwnPropertyDescriptor;var Zd=Object.getOwnPropertyNames;var ec=Object.getPrototypeOf,tc=Object.prototype.hasOwnProperty;var ac=(e,t)=>{for(var a in t)Xo(e,a,{get:t[a],enumerable:!0})},qi=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Zd(t))!tc.call(e,r)&&r!==a&&Xo(e,r,{get:()=>t[r],enumerable:!(o=Qd(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?Jd(ec(e)):{},qi(t||!e||!e.__esModule?Xo(a,"default",{value:e,enumerable:!0}):a,e)),oc=e=>qi(Xo({},"__esModule",{value:!0}),e);var np={};ac(np,{Alert:()=>Ys,AlertDescription:()=>Ks,AlertTitle:()=>qs,ApproveLeave:()=>Ei,Avatar:()=>It,AvatarFallback:()=>Lt,AvatarImage:()=>At,Badge:()=>tt,BannerBlock:()=>ti,BlogCard:()=>dd,BlogList:()=>Im,BrandLogo:()=>pa,Breadcrumb:()=>Kr,BreadcrumbEllipsis:()=>as,BreadcrumbItem:()=>Qr,BreadcrumbLink:()=>Zr,BreadcrumbList:()=>Jr,BreadcrumbPage:()=>es,BreadcrumbSeparator:()=>ts,Breadcrumbs:()=>Di,Button:()=>T,CMSLink:()=>vt,CRMKanbanBoard:()=>ip,Calendar:()=>So,CalendarView:()=>_i,CallToActionBlock:()=>ka,Card:()=>Io,Categories:()=>Gm,Checkbox:()=>pt,CodeBlock:()=>si,Collapsible:()=>St,CollapsibleContent:()=>jt,CollapsibleTrigger:()=>Xt,CollectionArchive:()=>Pm,Command:()=>mr,CommandDialog:()=>qn,CommandEmpty:()=>Vs,CommandGroup:()=>Ws,CommandInput:()=>Gs,CommandItem:()=>Xs,CommandList:()=>$s,CommandSeparator:()=>Us,CommandShortcut:()=>js,Container:()=>Bo,ContentBlock:()=>Mo,ContentCard:()=>mi,CopyButton:()=>oi,CustomLink:()=>Re,CustomerCard:()=>ml,DealCard:()=>$i,DealDetails:()=>Gi,Dialog:()=>et,DialogClose:()=>dr,DialogContent:()=>Ue,DialogDescription:()=>_s,DialogFooter:()=>Os,DialogHeader:()=>ct,DialogOverlay:()=>cr,DialogPortal:()=>Fs,DialogTitle:()=>mt,DialogTrigger:()=>lr,DropdownMenu:()=>nn,DropdownMenuCheckboxItem:()=>ns,DropdownMenuContent:()=>ss,DropdownMenuGroup:()=>dn,DropdownMenuItem:()=>is,DropdownMenuLabel:()=>ds,DropdownMenuPortal:()=>cn,DropdownMenuRadioGroup:()=>pn,DropdownMenuRadioItem:()=>ls,DropdownMenuSeparator:()=>cs,DropdownMenuShortcut:()=>ms,DropdownMenuSub:()=>mn,DropdownMenuSubContent:()=>rs,DropdownMenuSubTrigger:()=>os,DropdownMenuTrigger:()=>ln,DynamicIcon:()=>Ie,EventCard:()=>pl,FeatureCard:()=>ll,FeatureGrid:()=>Al,FeaturesBlock:()=>Da,Filter:()=>$m,FlowPrintable:()=>cd,Footer:()=>Zm,Header:()=>ep,HeaderDesktop:()=>Fo,HeaderMobile:()=>Oo,HeadingImage:()=>xm,Hero:()=>lm,HighImpactHero:()=>Pi,HolidayGrid:()=>Oi,HolidayTracker:()=>rp,HoverCard:()=>Wn,HoverCardContent:()=>zs,HoverCardTrigger:()=>Un,Image:()=>yl,ImageBlock:()=>ci,InfoTile:()=>pm,Input:()=>He,Insight:()=>mm,KanbanColumn:()=>Ui,Label:()=>Z,Logo:()=>Rm,LowImpactHero:()=>ki,MOTD:()=>gm,Media:()=>zt,MediaBlock:()=>Ft,MediumImpactHero:()=>Si,NewCustomerForm:()=>Vi,NewDealForm:()=>Wi,NewsGrid:()=>Zl,OrgChart:()=>ym,PagePrintable:()=>md,PageRange:()=>Tm,Pagination:()=>_m,PayloadPagination:()=>Dm,Popover:()=>wo,PopoverAnchor:()=>On,PopoverContent:()=>ja,PopoverTrigger:()=>Co,PostHero:()=>Wm,PricingCard:()=>nm,Printable:()=>Lm,ProjectCard:()=>bl,ProjectTeam:()=>Fm,ProposalSummary:()=>vm,RelatedContent:()=>Om,RelatedPosts:()=>Cm,RenderBlocks:()=>Ma,RenderHero:()=>Xm,RequestLeave:()=>Fi,ReusableContentBlock:()=>pi,RichText:()=>te,ScrollArea:()=>ta,ScrollBar:()=>nr,SectionHero:()=>Ti,Select:()=>wa,SelectContent:()=>sa,SelectGroup:()=>Qc,SelectItem:()=>ia,SelectLabel:()=>tl,SelectScrollDownButton:()=>Zs,SelectScrollUpButton:()=>Qs,SelectSeparator:()=>al,SelectTrigger:()=>ra,SelectValue:()=>Ca,Separator:()=>lo,ServiceCard:()=>im,Sheet:()=>Yo,SheetClose:()=>xn,SheetContent:()=>mo,SheetDescription:()=>ys,SheetFooter:()=>fs,SheetHeader:()=>gs,SheetOverlay:()=>qo,SheetPortal:()=>us,SheetTitle:()=>bs,SheetTrigger:()=>hn,Sidebar:()=>fa,SidebarContent:()=>qt,SidebarFooter:()=>ya,SidebarGroup:()=>Je,SidebarGroupAction:()=>Ps,SidebarGroupContent:()=>lt,SidebarGroupLabel:()=>Tt,SidebarHeader:()=>ba,SidebarInput:()=>Cs,SidebarInset:()=>ws,SidebarLeft:()=>Bm,SidebarMenu:()=>ze,SidebarMenuAction:()=>go,SidebarMenuBadge:()=>Rs,SidebarMenuButton:()=>Qe,SidebarMenuItem:()=>Ce,SidebarMenuSkeleton:()=>Ss,SidebarMenuSub:()=>Kt,SidebarMenuSubButton:()=>Qt,SidebarMenuSubItem:()=>Jt,SidebarProvider:()=>hs,SidebarRail:()=>Ns,SidebarRight:()=>zm,SidebarSeparator:()=>uo,SidebarTrigger:()=>xs,SimpleHeader:()=>Ym,Skeleton:()=>re,SlideShow:()=>Kl,TextAndImages:()=>ed,Textarea:()=>na,Theme:()=>Sr,ThemeProvider:()=>tp,Toast:()=>yo,ToastAction:()=>Ds,ToastClose:()=>vo,ToastDescription:()=>xo,ToastProvider:()=>sr,ToastTitle:()=>ho,ToastViewport:()=>bo,Toaster:()=>Ln,Toggle:()=>Is,ToggleGroup:()=>As,ToggleGroupItem:()=>Ls,Tooltip:()=>Zo,TooltipContent:()=>po,TooltipProvider:()=>Qo,TooltipTrigger:()=>er,VideoHeader:()=>Jm,WhyUs:()=>hm,badgeVariants:()=>Js,buttonVariants:()=>Yt,toggleVariants:()=>No,useIsMobile:()=>Jo,useSidebar:()=>Ua,useToast:()=>rr});module.exports=oc(np);var Ga=h(require("react")),jo=require("@radix-Ko/react-icons"),sn=require("@radix-Ko/react-slot");var rn=require("clsx");var Yr="-",rc=e=>{let t=ic(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(Yr);return i[0]===""&&i.length!==1&&i.shift(),Qi(i,t)||sc(l)},getConflictingClassGroupIds:(l,i)=>{let c=a[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},Qi=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Qi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Yr);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},Ki=/^\[(.+)\]$/,sc=e=>{if(Ki.test(e)){let t=Ki.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},ic=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return lc(Object.entries(e.classGroups),a).forEach(([s,l])=>{jr(l,o,s,t)}),o},jr=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Ji(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(nc(r)){jr(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{jr(l,Ji(t,s),a,o)})})},Ji=(e,t)=>{let a=e;return t.split(Yr).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},nc=e=>e.isThemeGetter,lc=(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,i])=>[t+l,i])):s);return[a,r]}):e,dc=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)}}},Zi="!",cc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let c=[],m=0,d=0,p;for(let v=0;v<i.length;v++){let P=i[v];if(m===0){if(P===r&&(o||i.slice(v,v+s)===t)){c.push(i.slice(d,v)),d=v+s;continue}if(P==="/"){p=v;continue}}P==="["?m++:P==="]"&&m--}let g=c.length===0?i:i.substring(d),f=g.startsWith(Zi),b=f?g.substring(1):g,u=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:u}};return a?i=>a({className:i,parseClassName:l}):l},mc=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},pc=e=>({cache:dc(e.cacheSize),parseClassName:cc(e),...rc(e)}),uc=/\s+/,gc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(uc),i="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=a(m),b=!!f,u=o(b?g.substring(0,f):g);if(!u){if(!b){i=m+(i.length>0?" "+i:i);continue}if(u=o(g),!u){i=m+(i.length>0?" "+i:i);continue}b=!1}let v=mc(d).join(":"),P=p?v+Zi:v,O=P+u;if(s.includes(O))continue;s.push(O);let J=r(u,b);for(let ce=0;ce<J.length;++ce){let Ee=J[ce];s.push(P+Ee)}i=m+(i.length>0?" "+i:i)}return i};function fc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=en(t))&&(o&&(o+=" "),o+=a);return o}var en=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=en(e[o]))&&(a&&(a+=" "),a+=t);return a};function bc(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=pc(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=gc(c,a);return r(c,d),d}return function(){return s(fc.apply(null,arguments))}}var Q=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},tn=/^\[(?:([a-z-]+):)?(.+)\]$/i,yc=/^\d+\/\d+$/,vc=new Set(["px","full","screen"]),hc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|Tn)$/,xc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ke|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Nc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Ke-?((\d+)?\.?(\d+)[a-z]+|0)/,Cc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rt=e=>Oa(e)||vc.has(e)||yc.test(e),Wt=e=>_a(e,"length",Ic),Oa=e=>!!e&&!Number.isNaN(Number(e)),Xr=e=>_a(e,"number",Oa),io=e=>!!e&&Number.isInteger(Number(e)),Pc=e=>e.endsWith("%")&&Oa(e.slice(0,-1)),M=e=>tn.test(e),Ut=e=>hc.test(e),Rc=new Set(["length","size","percentage"]),Sc=e=>_a(e,Rc,an),kc=e=>_a(e,"position",an),Tc=new Set(["image","url"]),Dc=e=>_a(e,Tc,Lc),Mc=e=>_a(e,"",Ac),no=()=>!0,_a=(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},Ic=e=>xc.test(e)&&!Nc.test(e),an=()=>!1,Ac=e=>wc.test(e),Lc=e=>Cc.test(e);var Bc=()=>{let e=Q("colors"),t=Q("spacing"),a=Q("blur"),o=Q("brightness"),r=Q("borderColor"),s=Q("borderRadius"),l=Q("borderSpacing"),i=Q("borderWidth"),c=Q("contrast"),m=Q("grayscale"),d=Q("hueRotate"),p=Q("invert"),g=Q("gap"),f=Q("gradientColorStops"),b=Q("gradientColorStopPositions"),u=Q("inset"),v=Q("margin"),P=Q("opacity"),O=Q("padding"),J=Q("saturate"),ce=Q("scale"),Ee=Q("sepia"),yt=Q("skew"),k=Q("space"),H=Q("translate"),it=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",M,t],U=()=>[M,t],Vo=()=>["",Rt,Wt],Wo=()=>["auto",Oa,M],Xi=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Uo=()=>["solid","dashed","dotted","double","none"],ji=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ur=()=>["start","end","center","between","around","evenly","stretch"],so=()=>["","0",M],Yi=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Pt=()=>[Oa,M];return{cacheSize:500,separator:":",theme:{colors:[no],spacing:[Rt,Wt],blur:["none","",Ut,M],brightness:Pt(),borderColor:[e],borderRadius:["none","","full",Ut,M],borderSpacing:U(),borderWidth:Vo(),contrast:Pt(),grayscale:so(),hueRotate:Pt(),invert:so(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[Pc,Wt],inset:G(),margin:G(),opacity:Pt(),padding:U(),saturate:Pt(),scale:Pt(),sepia:so(),skew:Pt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Ut]}],"break-after":[{"break-after":Yi()}],"break-before":[{"break-before":Yi()}],"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:[...Xi(),M]}],overflow:[{overflow:N()}],"overflow-Ke":[{"overflow-Ke":N()}],"overflow-Ke":[{"overflow-Ke":N()}],overscroll:[{overscroll:it()}],"overscroll-Ke":[{"overscroll-Ke":it()}],"overscroll-Ke":[{"overscroll-Ke":it()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-Ke":[{"inset-Ke":[u]}],"inset-Ke":[{"inset-Ke":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",io,M]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:so()}],shrink:[{shrink:so()}],order:[{order:["first","last","none",io,M]}],"grid-cols":[{"grid-cols":[no]}],"col-start-end":[{col:["auto",{span:["full",io,M]},M]}],"col-start":[{"col-start":Wo()}],"col-end":[{"col-end":Wo()}],"grid-rows":[{"grid-rows":[no]}],"row-start-end":[{row:["auto",{span:[io,M]},M]}],"row-start":[{"row-start":Wo()}],"row-end":[{"row-end":Wo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","Ke",M]}],"auto-rows":[{"auto-rows":["auto","min","max","Ke",M]}],gap:[{gap:[g]}],"gap-Ke":[{"gap-Ke":[g]}],"gap-Ke":[{"gap-Ke":[g]}],"justify-content":[{justify:["normal",...Ur()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ur(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ur(),"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]}],Ke:[{Ke:[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]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-Ke":[{"space-Ke":[k]}],"space-Ke-reverse":["space-Ke-reverse"],"space-Ke":[{"space-Ke":[k]}],"space-Ke-reverse":["space-Ke-reverse"],Ke:[{Ke:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-Ke":[{"min-Ke":[M,t,"min","max","fit"]}],"max-Ke":[{"max-Ke":[M,t,"none","full","min","max","fit","prose",{screen:[Ut]},Ut]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ut,Wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Xr]}],"font-family":[{font:[no]}],"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",M]}],"line-clamp":[{"line-clamp":["none",Oa,Xr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Rt,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Uo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Rt,Wt]}],"underline-offset":[{"underline-offset":["auto",Rt,M]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],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",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Xi(),kc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ke","Ke","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Sc]}],"bg-image":[{bg:["none",{"gradient-_l":["t","tr","r","Ke","b","bl","l","tl"]},Dc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-_l-pos":[{_l:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-_l":[{_l:[f]}],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-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-Ke":[{"rounded-Ke":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-Ke":[{"rounded-Ke":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-Ke":[{border:[i]}],"border-Ke-Ke":[{"border-Ke":[i]}],"border-Ke-Ke":[{"border-Ke":[i]}],"border-Ke-s":[{"border-s":[i]}],"border-Ke-e":[{"border-e":[i]}],"border-Ke-t":[{"border-t":[i]}],"border-Ke-r":[{"border-r":[i]}],"border-Ke-b":[{"border-b":[i]}],"border-Ke-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Uo(),"hidden"]}],"divide-Ke":[{"divide-Ke":[i]}],"divide-Ke-reverse":["divide-Ke-reverse"],"divide-Ke":[{"divide-Ke":[i]}],"divide-Ke-reverse":["divide-Ke-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Uo()}],"border-color":[{border:[r]}],"border-color-Ke":[{"border-Ke":[r]}],"border-color-Ke":[{"border-Ke":[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:["",...Uo()]}],"outline-offset":[{"outline-offset":[Rt,M]}],"outline-Ke":[{outline:[Rt,Wt]}],"outline-color":[{outline:[e]}],"ring-Ke":[{ring:Vo()}],"ring-Ke-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-Ke":[{"ring-offset":[Rt,Wt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ut,Mc]}],"shadow-color":[{shadow:[no]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ji(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ji()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Ut,M]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[J]}],sepia:[{sepia:[Ee]}],"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":[P]}],"backdrop-saturate":[{"backdrop-saturate":[J]}],"backdrop-sepia":[{"backdrop-sepia":[Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-Ke":[{"border-spacing-Ke":[l]}],"border-spacing-Ke":[{"border-spacing-Ke":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:Pt()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:Pt()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ce]}],"scale-Ke":[{"scale-Ke":[ce]}],"scale-Ke":[{"scale-Ke":[ce]}],rotate:[{rotate:[io,M]}],"translate-Ke":[{"translate-Ke":[H]}],"translate-Ke":[{"translate-Ke":[H]}],"skew-Ke":[{"skew-Ke":[yt]}],"skew-Ke":[{"skew-Ke":[yt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],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","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","Ke-resize","Ke-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ke","Ke",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-Ke":[{"scroll-Ke":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ke","Ke","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ke":[{"touch-pan":["Ke","left","right"]}],"touch-Ke":[{"touch-pan":["Ke","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-Ke":[{stroke:[Rt,Wt,Xr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ke","overflow-Ke"],overscroll:["overscroll-Ke","overscroll-Ke"],inset:["inset-Ke","inset-Ke","start","end","top","right","bottom","left"],"inset-Ke":["right","left"],"inset-Ke":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ke","gap-Ke"],p:["px","py","ps","Ke","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["Ke","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-ss","rounded-se","rounded-Ke","rounded-es","rounded-tl","rounded-tr","rounded-Ke","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-Ke"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-Ke"],"rounded-b":["rounded-Ke","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Ke","border-spacing-Ke"],"border-Ke":["border-Ke-s","border-Ke-e","border-Ke-t","border-Ke-r","border-Ke-b","border-Ke-l"],"border-Ke-Ke":["border-Ke-r","border-Ke-l"],"border-Ke-Ke":["border-Ke-t","border-Ke-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ke":["border-color-r","border-color-l"],"border-color-Ke":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","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-Ke","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ke","touch-Ke","touch-pz"],"touch-Ke":["touch"],"touch-Ke":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var on=bc(Bc);function n(...e){return on((0,rn.clsx)(e))}function qr(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\Ke-]/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(i=>{var c,m,d,p,g;if(i.title&&l.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=i.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let f=i.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of f)b.children[0]&&l.push({text:(g=b.children[0].text)!=null?g:"",id:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),l}),r=Ec(e.layout);return{tableOfContents:o,contentWithIds:r}}function Ec(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\Ke-]/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).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Ke=require("react/jsx-runtime"),Kr=Ga.forwardRef(({...e},t)=>(0,Ke.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Kr.displayName="Breadcrumb";var Jr=Ga.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ol",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Jr.displayName="BreadcrumbList";var Qr=Ga.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Qr.displayName="BreadcrumbItem";var Zr=Ga.forwardRef(({asChild:e,className:t,...a},o)=>(0,Ke.jsx)(e?sn.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));Zr.displayName="BreadcrumbLink";var es=Ga.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));es.displayName="BreadcrumbPage";var ts=({children:e,className:t,...a})=>(0,Ke.jsx)("Ke",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:Ke-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Ke.jsx)(jo.ChevronRightIcon,{})});ts.displayName="BreadcrumbSeparator";var as=({className:e,...t})=>(0,Ke.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 Ke-9 items-center justify-center",e),...t,children:[(0,Ke.jsx)(jo.DotsHorizontalIcon,{className:"h-4 Ke-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"More"})]});as.displayName="BreadcrumbElipssis";var $a=h(require("@radix-Ko/react-collapsible")),St=$a.Root,Xt=$a.CollapsibleTrigger,jt=$a.CollapsibleContent;var kt=h(require("react")),L=h(require("@radix-Ko/react-dropdown-menu"));var nn=L.Root,ln=L.Trigger,dn=L.Group,cn=L.Portal,mn=L.Sub,pn=L.RadioGroup,os=kt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(L.SubTrigger,{ref:r,className:n("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,Ke.jsx)(jo.ChevronRightIcon,{className:"ml-auto"})]}));os.displayName=L.SubTrigger.displayName;var rs=kt.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(L.SubContent,{ref:a,className:n("z-50 min-Ke-[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}));rs.displayName=L.SubContent.displayName;var ss=kt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(L.Portal,{children:(0,Ke.jsx)(L.Content,{ref:o,sideOffset:t,className:n("z-50 min-Ke-[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})}));ss.displayName=L.Content.displayName;var is=kt.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(L.Item,{ref:o,className:n("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}));is.displayName=L.Item.displayName;var ns=kt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(L.CheckboxItem,{ref:r,className:n("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,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 Ke-3.5 items-center justify-center",children:(0,Ke.jsx)(L.ItemIndicator,{children:(0,Ke.jsx)(jo.CheckIcon,{className:"h-4 Ke-4"})})}),t]}));ns.displayName=L.CheckboxItem.displayName;var ls=kt.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(L.RadioItem,{ref:o,className:n("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,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 Ke-3.5 items-center justify-center",children:(0,Ke.jsx)(L.ItemIndicator,{children:(0,Ke.jsx)(jo.DotFilledIcon,{className:"h-4 Ke-4 fill-current"})})}),t]}));ls.displayName=L.RadioItem.displayName;var ds=kt.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(L.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ds.displayName=L.Label.displayName;var cs=kt.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(L.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));cs.displayName=L.Separator.displayName;var ms=({className:e,...t})=>(0,Ke.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});ms.displayName="DropdownMenuShortcut";var un=h(require("react"));var He=un.forwardRef(({className:e,type:t,...a},o)=>(0,Ke.jsx)("input",{type:t,className:n("flex h-9 Ke-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}));He.displayName="Input";var fn=h(require("react")),ps=h(require("@radix-Ko/react-separator"));var lo=fn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Ke.jsx)(ps.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] Ke-full":"h-full Ke-[1px]",e),...o}));lo.displayName=ps.Root.displayName;var co=h(require("react")),oe=h(require("@radix-Ko/react-dialog")),vn=require("class-variance-authority");var Yo=oe.Root,hn=oe.Trigger,xn=oe.Close,us=oe.Portal,qo=co.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(oe.Overlay,{className:n("fixed inset-0 z-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}));qo.displayName=oe.Overlay.displayName;var Hc=(0,vn.cva)("fixed z-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-Ke-0 top-0 border-b data-[state=closed]:slide-out-_l-top data-[state=open]:slide-in-from-top",bottom:"inset-Ke-0 bottom-0 border-t data-[state=closed]:slide-out-_l-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Ke-0 left-0 h-full Ke-3/4 border-r data-[state=closed]:slide-out-_l-left data-[state=open]:slide-in-from-left sm:max-Ke-sm",right:"inset-Ke-0 right-0 h-full Ke-3/4 border-l data-[state=closed]:slide-out-_l-right data-[state=open]:slide-in-from-right sm:max-Ke-sm"}},defaultVariants:{side:"right"}}),mo=co.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Ke.jsxs)(us,{children:[(0,Ke.jsx)(qo,{}),(0,Ke.jsxs)(oe.Content,{ref:r,className:n(Hc({side:e}),t),...o,children:[(0,Ke.jsxs)(oe.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,Ke.jsx)(jo.Cross2Icon,{className:"h-4 Ke-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));mo.displayName=oe.Content.displayName;var gs=({className:e,...t})=>(0,Ke.jsx)("div",{className:n("flex flex-col space-Ke-2 text-center sm:text-left",e),...t});gs.displayName="SheetHeader";var fs=({className:e,...t})=>(0,Ke.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ke-2",e),...t});fs.displayName="SheetFooter";var bs=co.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(oe.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));bs.displayName=oe.Title.displayName;var ys=co.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(oe.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));ys.displayName=oe.Description.displayName;var B=h(require("react")),Tn=require("lucide-react");var Ko=require("react"),Jo=(e=768)=>{let[t,a]=(0,Ko.useState)(!1);return(0,Ko.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Cn=h(require("react")),Yt=(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 Ke-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=Cn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Ke.jsx)(e?sn.Slot:"button",{className:n(Yt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function re({className:e,...t}){return(0,Ke.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var Sn=h(require("react")),nt=h(require("@radix-Ko/react-tooltip"));var Qo=nt.Provider,Zo=nt.Root,er=nt.Trigger,po=Sn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(nt.Portal,{children:(0,Ke.jsx)(nt.Content,{ref:o,sideOffset:t,className:n("z-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})}));po.displayName=nt.Content.displayName;var zc="sidebar:state",Fc=60*60*24*7,Oc="16rem",_c="18rem",Gc="3rem",$c="b",Dn=B.createContext(null);function Ua(){let e=B.useContext(Dn);if(!e)throw new Error("useSidebar must Ke used within a SidebarProvider.");return e}var hs=B.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let c=Jo(),[m,d]=B.useState(!1),[p,g]=B.useState(e),f=t!=null?t:p,b=B.useCallback(O=>{if(a)return a==null?void 0:a(typeof O=="function"?O(f):O);g(O),document.cookie=`${zc}=${f}; path=/; max-age=${Fc}`},[a,f]),u=B.useCallback(()=>c?d(O=>!O):b(O=>!O),[c,b,d]);B.useEffect(()=>{let O=J=>{J.key===$c&&(J.metaKey||J.ctrlKey)&&(J.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=f?"expanded":"collapsed",P=B.useMemo(()=>({state:v,open:f,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[v,f,b,c,m,d,u]);return(0,Ke.jsx)(Dn.Provider,{value:P,children:(0,Ke.jsx)(Qo,{delayDuration:0,children:(0,Ke.jsx)("div",{style:{"--sidebar-width":Oc,"--sidebar-width-icon":Gc,...r},className:n("group/sidebar-wrapper flex Ke-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});hs.displayName="SidebarProvider";var fa=B.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=Ua();return a==="none"?(0,Ke.jsx)("div",{className:n("flex h-full Ke-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,Ke.jsx)(Yo,{open:m,onOpenChange:d,...s,children:(0,Ke.jsx)(mo,{"data-sidebar":"sidebar","data-mobile":"true",className:"Ke-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":_c},side:e,children:(0,Ke.jsx)("div",{className:"flex h-full Ke-full flex-col",children:r})})}):(0,Ke.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,Ke.jsx)("div",{className:n("duration-200 relative h-svh Ke-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:Ke-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:Ke-[calc(var(--sidebar-width-icon)Ke+_theme(spacing.4))]":"group-data-[collapsible=icon]:Ke-[--sidebar-width-icon]")}),(0,Ke.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden Ke-[--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]:Ke-[calc(var(--sidebar-width-icon)Ke+_theme(spacing.4)Ke+2px)]":"group-data-[collapsible=icon]:Ke-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,Ke.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full Ke-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})})]})});fa.displayName="Sidebar";var xs=B.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Ua();return(0,Ke.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 Ke-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Ke.jsx)(Tn.PanelLeft,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});xs.displayName="SidebarTrigger";var Ns=B.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Ua();return(0,Ke.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-Ke-0 z-20 hidden Ke-4 -translate-Ke-1/2 transition-all ease-linear after:absolute after:inset-Ke-0 after:left-1/2 after:Ke-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Ke&]:cursor-Ke-resize [[data-side=right]Ke&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Ke&]:cursor-e-resize [[data-side=right][data-state=collapsed]Ke&]:cursor-Ke-resize","group-data-[collapsible=offcanvas]:translate-Ke-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Ke&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Ke&]:-left-2",e),...t})});Ns.displayName="SidebarRail";var ws=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-Ke-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-Tn md:peer-data-[variant=inset]:shadow",e),...t}));ws.displayName="SidebarInset";var Cs=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(He,{ref:a,"data-sidebar":"input",className:n("h-8 Ke-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Cs.displayName="SidebarInput";var ba=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));ba.displayName="SidebarHeader";var ya=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));ya.displayName="SidebarFooter";var uo=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(lo,{ref:a,"data-sidebar":"separator",className:n("mx-2 Ke-auto bg-sidebar-border",e),...t}));uo.displayName="SidebarSeparator";var qt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));qt.displayName="SidebarContent";var Je=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex Ke-full min-Ke-0 flex-col p-2",e),...t}));Je.displayName="SidebarGroup";var Tt=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ke.jsx)(t?sn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("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]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Tt.displayName="SidebarGroupLabel";var Ps=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ke.jsx)(t?sn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square Ke-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}));Ps.displayName="SidebarGroupAction";var lt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("Ke-full text-sm",e),...t}));lt.displayName="SidebarGroupContent";var ze=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex Ke-full min-Ke-0 flex-col gap-1",e),...t}));ze.displayName="SidebarMenu";var Ce=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Ce.displayName="SidebarMenuItem";var Vc=(0,vn.cva)("peer/menu-button flex Ke-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"}}),Qe=B.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let c=e?sn.Slot:"button",{isMobile:m,state:d}=Ua(),p=(0,Ke.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Vc({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Ke.jsxs)(Zo,{children:[(0,Ke.jsx)(er,{asChild:!0,children:p}),(0,Ke.jsx)(po,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});Qe.displayName="SidebarMenuButton";var go=B.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Ke.jsx)(t?sn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square Ke-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}));go.displayName="SidebarMenuAction";var Rs=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-Ke-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}));Rs.displayName="SidebarMenuBadge";var Ss=B.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Ke.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Ke.jsx)(re,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Ke.jsx)(re,{className:"h-4 flex-1 max-Ke-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Ss.displayName="SidebarMenuSkeleton";var Kt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-Ke-0 translate-Ke-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Kt.displayName="SidebarMenuSub";var Jt=B.forwardRef(({...e},t)=>(0,Ke.jsx)("Ke",{ref:t,...e}));Jt.displayName="SidebarMenuSubItem";var Qt=B.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Ke.jsx)(e?sn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-Ke-0 -translate-Ke-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}));Qt.displayName="SidebarMenuSubButton";var or=h(require("react")),Wc=1,Uc=1e6;var ks=0;function Xc(){return ks=(ks+1)%Number.MAX_SAFE_INTEGER,ks.toString()}var Ts=new Map,Mn=e=>{if(Ts.has(e))return;let t=setTimeout(()=>{Ts.delete(e),fo({type:"REMOVE_TOAST",toastId:e})},Uc);Ts.set(e,t)},jc=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Wc)};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?Mn(a):e.toasts.forEach(o=>{Mn(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)}}},tr=[],ar={toasts:[]};function fo(e){ar=jc(ar,e),tr.forEach(t=>{t(ar)})}function Yc({...e}){let t=Xc(),a=r=>fo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>fo({type:"DISMISS_TOAST",toastId:t});return fo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function rr(){let[e,t]=or.useState(ar);return or.useEffect(()=>(tr.push(t),()=>{let a=tr.indexOf(t);a>-1&&tr.splice(a,1)}),[e]),{...e,toast:Yc,dismiss:a=>fo({type:"DISMISS_TOAST",toastId:a})}}var va=h(require("react")),me=h(require("@radix-Ko/react-toast"));var sr=me.Provider,bo=va.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(me.Viewport,{ref:a,className:n("fixed top-0 z-[100] flex max-h-screen Ke-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-Ke-[420px]",e),...t}));bo.displayName=me.Viewport.displayName;var qc=(0,vn.cva)("group pointer-events-auto relative flex Ke-full items-center justify-between space-Ke-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Ke-0 data-[swipe=end]:translate-Ke-[var(--radix-toast-swipe-end-Ke)] data-[swipe=move]:translate-Ke-[var(--radix-toast-swipe-move-Ke)] 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-_l-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"}}),yo=va.forwardRef(({className:e,variant:t,...a},o)=>(0,Ke.jsx)(me.Root,{ref:o,className:n(qc({variant:t}),e),...a}));yo.displayName=me.Root.displayName;var Ds=va.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(me.Action,{ref:a,className:n("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}));Ds.displayName=me.Action.displayName;var vo=va.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(me.Close,{ref:a,className:n("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,Ke.jsx)(Tn.Ke,{className:"h-4 Ke-4"})}));vo.displayName=me.Close.displayName;var ho=va.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(me.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));ho.displayName=me.Title.displayName;var xo=va.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(me.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));xo.displayName=me.Description.displayName;function Ln(){let{toasts:e}=rr();return(0,Ke.jsxs)(sr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Ke.jsxs)(yo,{...s,children:[(0,Ke.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Ke.jsx)(ho,{children:a}),o&&(0,Ke.jsx)(xo,{children:o})]}),r,(0,Ke.jsx)(vo,{})]},t)}),(0,Ke.jsx)(bo,{})]})}var Bn=h(require("react")),Ms=h(require("@radix-Ko/react-toggle"));var No=(0,vn.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-Ke-9",sm:"h-8 px-1.5 min-Ke-8",lg:"h-10 px-2.5 min-Ke-10"}},defaultVariants:{variant:"default",size:"default"}}),Is=Bn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Ke.jsx)(Ms.Root,{ref:r,className:n(No({variant:t,size:a,className:e})),...o}));Is.displayName=Ms.Root.displayName;var ha=h(require("react")),Xa=h(require("@radix-Ko/react-toggle-group"));var zn=ha.createContext({size:"default",variant:"default"}),As=ha.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Ke.jsx)(Xa.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,Ke.jsx)(zn.Provider,{value:{variant:t,size:a},children:o})}));As.displayName=Xa.Root.displayName;var Ls=ha.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=ha.useContext(zn);return(0,Ke.jsx)(Xa.Item,{ref:s,className:n(No({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Ls.displayName=Xa.Item.displayName;var Bs=h(require("react")),Ze=h(require("@radix-Ko/react-scroll-area"));var ta=Bs.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(Ze.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,Ke.jsx)(Ze.Viewport,{className:"h-full Ke-full rounded-[inherit]",children:t}),(0,Ke.jsx)(nr,{}),(0,Ke.jsx)(Ze.Corner,{})]}));ta.displayName=Ze.Root.displayName;var nr=Bs.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Ke.jsx)(Ze.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full Ke-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,Ke.jsx)(Ze.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));nr.displayName=Ze.ScrollAreaScrollbar.displayName;var Fn=h(require("react")),dt=h(require("@radix-Ko/react-popover"));var wo=dt.Root,Co=dt.Trigger,On=dt.Anchor,ja=Fn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ke.jsx)(dt.Portal,{children:(0,Ke.jsx)(dt.Content,{ref:r,align:t,sideOffset:a,className:n("z-50 Ke-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})}));ja.displayName=dt.Content.displayName;var _n=h(require("react")),Hs=h(require("@radix-Ko/react-label"));var Kc=(0,vn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Z=_n.forwardRef(({className:e,...t},a)=>(0,$n.jsx)(Hs.Root,{ref:a,className:n(Kc(),e),...t}));Z.displayName=Hs.Root.displayName;var Vn=h(require("react")),xa=h(require("@radix-Ko/react-hover-card"));var Wn=xa.Root,Un=xa.Trigger,zs=Vn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ke.jsx)(xa.Content,{ref:r,align:t,sideOffset:a,className:n("z-50 Ke-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}));zs.displayName=xa.Content.displayName;var Po=h(require("react")),se=h(require("@radix-Ko/react-dialog"));var et=se.Root,lr=se.Trigger,Fs=se.Portal,dr=se.Close,cr=Po.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(se.Overlay,{ref:a,className:n("fixed inset-0 z-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}));cr.displayName=se.Overlay.displayName;var Ue=Po.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(Fs,{children:[(0,Ke.jsx)(cr,{}),(0,Ke.jsxs)(se.Content,{ref:o,className:n("fixed left-[50%] top-[50%] z-50 grid Ke-full max-Ke-lg translate-Ke-[-50%] translate-Ke-[-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-_l-left-1/2 data-[state=closed]:slide-out-_l-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,Ke.jsxs)(se.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,Ke.jsx)(Tn.Ke,{className:"h-4 Ke-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ue.displayName=se.Content.displayName;var ct=({className:e,...t})=>(0,Ke.jsx)("div",{className:n("flex flex-col space-Ke-1.5 text-center sm:text-left",e),...t});ct.displayName="DialogHeader";var Os=({className:e,...t})=>(0,Ke.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ke-2",e),...t});Os.displayName="DialogFooter";var mt=Po.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(se.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));mt.displayName=se.Title.displayName;var _s=Po.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(se.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));_s.displayName=se.Description.displayName;var aa=h(require("react")),Me=require("cmdk");var mr=aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Me.Command,{ref:a,className:n("flex h-full Ke-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));mr.displayName=Me.Command.displayName;var qn=({children:e,...t})=>(0,Ke.jsx)(et,{...t,children:(0,Ke.jsx)(Ue,{className:"overflow-hidden p-0",children:(0,Ke.jsx)(mr,{className:"[&Ke[cmdk-group-heading]]:px-2 [&Ke[cmdk-group-heading]]:font-medium [&Ke[cmdk-group-heading]]:text-muted-foreground [&Ke[cmdk-group]:not([hidden])Ke~[cmdk-group]]:pt-0 [&Ke[cmdk-group]]:px-2 [&Ke[cmdk-input-wrapper]_svg]:h-5 [&Ke[cmdk-input-wrapper]_svg]:Ke-5 [&Ke[cmdk-input]]:h-12 [&Ke[cmdk-item]]:px-2 [&Ke[cmdk-item]]:py-3 [&Ke[cmdk-item]_svg]:h-5 [&Ke[cmdk-item]_svg]:Ke-5",children:e})})}),Gs=aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Ke.jsx)(Tn.Search,{className:"mr-2 h-4 Ke-4 shrink-0 opacity-50"}),(0,Ke.jsx)(Me.Command.Input,{ref:a,className:n("flex h-10 Ke-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Gs.displayName=Me.Command.Input.displayName;var $s=aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Me.Command.List,{ref:a,className:n("max-h-[300px] overflow-Ke-auto overflow-Ke-hidden",e),...t}));$s.displayName=Me.Command.List.displayName;var Vs=aa.forwardRef((e,t)=>(0,Ke.jsx)(Me.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Vs.displayName=Me.Command.Empty.displayName;var Ws=aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Me.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&Ke[cmdk-group-heading]]:px-2 [&Ke[cmdk-group-heading]]:py-1.5 [&Ke[cmdk-group-heading]]:text-xs [&Ke[cmdk-group-heading]]:font-medium [&Ke[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ws.displayName=Me.Command.Group.displayName;var Us=aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Me.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Us.displayName=Me.Command.Separator.displayName;var Xs=aa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Me.Command.Item,{ref:a,className:n("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}));Xs.displayName=Me.Command.Item.displayName;var js=({className:e,...t})=>(0,Ke.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});js.displayName="CommandShortcut";var pr=h(require("react"));var Jc=(0,vn.cva)("relative Ke-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Ke-[-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"}}),Ys=pr.forwardRef(({className:e,variant:t,...a},o)=>(0,Ke.jsx)("div",{ref:o,role:"alert",className:n(Jc({variant:t}),e),...a}));Ys.displayName="Alert";var qs=pr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));qs.displayName="AlertTitle";var Ks=pr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Ks.displayName="AlertDescription";var gr=h(require("react")),Mt=h(require("@radix-Ko/react-avatar"));var It=gr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Mt.Root,{ref:a,className:n("relative flex h-10 Ke-10 shrink-0 overflow-hidden rounded-full",e),...t}));It.displayName=Mt.Root.displayName;var At=gr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Mt.Image,{ref:a,className:n("aspect-square h-full Ke-full",e),...t}));At.displayName=Mt.Image.displayName;var Lt=gr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Mt.Fallback,{ref:a,className:n("flex h-full Ke-full items-center justify-center rounded-full bg-muted",e),...t}));Lt.displayName=Mt.Fallback.displayName;var Js=(0,vn.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 tt({className:e,variant:t,...a}){return(0,Ke.jsx)("div",{className:n(Js({variant:t}),e),...a})}var Ro=h(require("@radix-Ko/react-checkbox")),el=h(require("react")),pt=el.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Ro.Root,{className:n("peer h-4 Ke-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,Ke.jsx)(Ro.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,Ke.jsx)(Tn.Check,{className:"h-4 Ke-4"})})}));pt.displayName=Ro.Root.displayName;var z=h(require("@radix-Ko/react-select")),oa=h(require("react")),wa=z.Root,Qc=z.Group,Ca=z.Value,ra=oa.forwardRef(({children:e,className:t,...a},o)=>(0,Ke.jsxs)(z.Trigger,{className:n("flex h-10 Ke-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,Ke.jsx)(z.Icon,{asChild:!0,children:(0,Ke.jsx)(Tn.ChevronDown,{className:"h-4 Ke-4 opacity-50"})})]}));ra.displayName=z.Trigger.displayName;var Qs=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(z.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ke.jsx)(Tn.ChevronUp,{className:"h-4 Ke-4"})}));Qs.displayName=z.ScrollUpButton.displayName;var Zs=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(z.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ke.jsx)(Tn.ChevronDown,{className:"h-4 Ke-4"})}));Zs.displayName=z.ScrollDownButton.displayName;var sa=oa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Ke.jsx)(z.Portal,{children:(0,Ke.jsxs)(z.Content,{className:n("relative z-50 max-h-96 min-Ke-[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-Ke-1 data-[side=left]:-translate-Ke-1 data-[side=right]:translate-Ke-1 data-[side=top]:-translate-Ke-1",t),position:a,ref:r,...o,children:[(0,Ke.jsx)(Qs,{}),(0,Ke.jsx)(z.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] Ke-full min-Ke-[var(--radix-select-trigger-width)]"),children:e}),(0,Ke.jsx)(Zs,{})]})}));sa.displayName=z.Content.displayName;var tl=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(z.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));tl.displayName=z.Label.displayName;var ia=oa.forwardRef(({children:e,className:t,...a},o)=>(0,Ke.jsxs)(z.Item,{className:n("relative flex Ke-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,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 Ke-3.5 items-center justify-center",children:(0,Ke.jsx)(z.ItemIndicator,{children:(0,Ke.jsx)(Tn.Check,{className:"h-4 Ke-4"})})}),(0,Ke.jsx)(z.ItemText,{children:e})]}));ia.displayName=z.Item.displayName;var al=oa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(z.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));al.displayName=z.Separator.displayName;var ol=h(require("react")),na=ol.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("textarea",{className:n("flex min-h-[80px] Ke-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}));na.displayName="Textarea";var sl=require("react-day-picker");function So({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Ke.jsx)(sl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Ke-4 sm:space-Ke-4 sm:space-Ke-0",month:"space-Ke-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Ke-1 flex items-center",nav_button:n(Yt({variant:"outline"}),"h-7 Ke-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"Ke-full border-collapse space-Ke-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md Ke-8 font-normal text-[0.8rem]",row:"flex Ke-full mt-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:z-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:n(Yt({variant:"ghost"}),"h-8 Ke-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})}So.displayName="Calendar";var Ie=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o!=null?o:"",i=r+s+" fa-"+a+" "+l;return(0,Ke.jsx)("i",{className:i})};var ll=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,Ke.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,Ke.jsx)("div",{className:"Ke-12 h-12 ",children:(0,Ke.jsx)(Ie,{type:o,iconName:a,className:"Ke-12 h-12 text-white"})}),(0,Ke.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,Ke.jsx)("p",{className:"text-white text-sm",children:t})]});var dl=h(require("next/image")),cl=h(require("next/link"));var Ra=h(require("react"));var ve=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("rounded-Tn border bg-card text-card-foreground shadow",e),...t}));ve.displayName="Card";var Fe=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("flex flex-col space-Ke-1.5 p-6",e),...t}));Fe.displayName="CardHeader";var Oe=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Oe.displayName="CardTitle";var Zc=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Zc.displayName="CardDescription";var Pe=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Pe.displayName="CardContent";var em=Ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));em.displayName="CardFooter";function ml({name:e,logo:t,href:a}){return(0,Ke.jsx)(ve,{className:"Ke-full max-Ke-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Ke.jsxs)(cl.default,{href:a,className:"block",children:[(0,Ke.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Ke.jsx)("div",{className:"relative Ke-full h-full",children:t&&(0,Ke.jsx)(dl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Ke.jsx)(Pe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-_l-Ke from-gray-900 via-brand-one _l-gray-900",children:(0,Ke.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 pl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,Ke.jsx)(Tn.Cake,{className:"h-4 Ke-4"});case"workAnniversary":return(0,Ke.jsx)(Tn.Award,{className:"h-4 Ke-4"});case"companyEvent":return(0,Ke.jsx)(Tn.PartyPopper,{className:"h-4 Ke-4"});default:return(0,Ke.jsx)(Tn.CalendarDays,{className:"h-4 Ke-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 _l-slate-500"}};return(0,Ke.jsxs)(ve,{className:`Ke-full max-Ke-md overflow-hidden bg-gradient-_l-Ke ${l(e)}`,children:[(0,Ke.jsxs)(Fe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Ke.jsxs)(It,{className:"h-14 Ke-14 border-2 border-white",children:[(0,Ke.jsx)(At,{src:r,alt:a||"Event"}),(0,Ke.jsx)(Lt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Ke.jsxs)("div",{className:"flex flex-col",children:[(0,Ke.jsx)(Oe,{className:"text-Tn",children:a||"Untitled Event"}),(0,Ke.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Ke.jsx)(Tn.CalendarDays,{className:"mr-1 inline-block h-4 Ke-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Ke.jsxs)(Pe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Ke.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Ke.jsxs)(tt,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,Ke.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([Ke-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var gl=h(require("next/link"));var fl=h(require("next/image")),ul={sm:"640px",md:"768px",lg:"1024px",Tn:"1280px","2xl":"1400px"};function bl({slug:e,image:t,title:a,description:o}){return(0,Ke.jsxs)(gl.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Ke.jsx)("span",{className:n("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 _l-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,Ke.jsx)(fl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
6
|
-
(min-width:${
|
|
7
|
-
(min-width:${
|
|
5
|
+
"use strict";var $d=Object.create;var Vo=Object.defineProperty;var Vd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Ud=Object.getPrototypeOf,Xd=Object.prototype.hasOwnProperty;var jd=(e,t)=>{for(var a in t)Vo(e,a,{get:t[a],enumerable:!0})},Xi=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wd(t))!Xd.call(e,r)&&r!==a&&Vo(e,r,{get:()=>t[r],enumerable:!(o=Vd(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?$d(Ud(e)):{},Xi(t||!e||!e.__esModule?Vo(a,"default",{value:e,enumerable:!0}):a,e)),Yd=e=>Xi(Vo({},"__esModule",{value:!0}),e);var Jm={};jd(Jm,{Alert:()=>Us,AlertDescription:()=>js,AlertTitle:()=>Xs,ApproveLeave:()=>Ai,Avatar:()=>Mt,AvatarFallback:()=>At,AvatarImage:()=>It,Badge:()=>et,BannerBlock:()=>Qs,BrandLogo:()=>ma,Breadcrumb:()=>jr,BreadcrumbEllipsis:()=>Zr,BreadcrumbItem:()=>qr,BreadcrumbLink:()=>Kr,BreadcrumbList:()=>Yr,BreadcrumbPage:()=>Jr,BreadcrumbSeparator:()=>Qr,Breadcrumbs:()=>Si,Button:()=>T,CMSLink:()=>yt,CRMKanbanBoard:()=>Km,Calendar:()=>Po,CalendarView:()=>zi,CallToActionBlock:()=>Sa,Card:()=>Do,Categories:()=>Im,Checkbox:()=>mt,CodeBlock:()=>ai,Collapsible:()=>Rt,CollapsibleContent:()=>Xt,CollapsibleTrigger:()=>Ut,CollectionArchive:()=>gm,Command:()=>lr,CommandDialog:()=>Xn,CommandEmpty:()=>Gs,CommandGroup:()=>_s,CommandInput:()=>Fs,CommandItem:()=>Vs,CommandList:()=>Os,CommandSeparator:()=>$s,CommandShortcut:()=>Ws,Container:()=>Pi,ContentBlock:()=>To,ContentCard:()=>li,CopyButton:()=>ei,CustomLink:()=>We,CustomerCard:()=>ll,DealCard:()=>Oi,DealDetails:()=>Fi,Dialog:()=>Ze,DialogClose:()=>ir,DialogContent:()=>Ve,DialogDescription:()=>zs,DialogFooter:()=>Hs,DialogHeader:()=>dt,DialogOverlay:()=>nr,DialogPortal:()=>Es,DialogTitle:()=>ct,DialogTrigger:()=>sr,DropdownMenu:()=>on,DropdownMenuCheckboxItem:()=>rs,DropdownMenuContent:()=>as,DropdownMenuGroup:()=>sn,DropdownMenuItem:()=>os,DropdownMenuLabel:()=>is,DropdownMenuPortal:()=>nn,DropdownMenuRadioGroup:()=>dn,DropdownMenuRadioItem:()=>ss,DropdownMenuSeparator:()=>ns,DropdownMenuShortcut:()=>ls,DropdownMenuSub:()=>ln,DropdownMenuSubContent:()=>ts,DropdownMenuSubTrigger:()=>es,DropdownMenuTrigger:()=>rn,DynamicIcon:()=>De,EventCard:()=>dl,FeatureCard:()=>sl,FeatureGrid:()=>Dl,FeaturesBlock:()=>Ta,Filter:()=>Am,FlowPrintable:()=>Ql,Footer:()=>Vm,Header:()=>Wm,HeaderDesktop:()=>Eo,HeaderMobile:()=>Ho,HeadingImage:()=>mm,Hero:()=>Zc,HighImpactHero:()=>xi,HolidayGrid:()=>Hi,HolidayTracker:()=>Ym,HoverCard:()=>_n,HoverCardContent:()=>Bs,HoverCardTrigger:()=>$n,Image:()=>fl,ImageBlock:()=>ni,InfoTile:()=>om,Input:()=>Be,Insight:()=>am,KanbanColumn:()=>$i,Label:()=>Q,Logo:()=>bm,LowImpactHero:()=>Ci,MOTD:()=>sm,Media:()=>Ht,MediaBlock:()=>zt,MediumImpactHero:()=>wi,NewCustomerForm:()=>Gi,NewDealForm:()=>_i,NewsGrid:()=>Kl,OrgChart:()=>lm,PagePrintable:()=>Zl,PageRange:()=>hm,Pagination:()=>Mm,PayloadPagination:()=>xm,Popover:()=>xo,PopoverAnchor:()=>Hn,PopoverContent:()=>Ua,PopoverTrigger:()=>No,PostHero:()=>Bm,PricingCard:()=>Qc,Printable:()=>Cm,ProjectCard:()=>ul,ProjectTeam:()=>Tm,ProposalSummary:()=>dm,RelatedContent:()=>Dm,RelatedPosts:()=>fm,RenderBlocks:()=>Da,RenderHero:()=>Hm,RequestLeave:()=>Ei,ReusableContentBlock:()=>di,RichText:()=>ie,ScrollArea:()=>ea,ScrollBar:()=>rr,SectionHero:()=>Ri,Select:()=>Na,SelectContent:()=>ra,SelectGroup:()=>Vc,SelectItem:()=>sa,SelectLabel:()=>Qn,SelectScrollDownButton:()=>Ks,SelectScrollUpButton:()=>qs,SelectSeparator:()=>Zn,SelectTrigger:()=>oa,SelectValue:()=>wa,Separator:()=>io,ServiceCard:()=>Jc,Sheet:()=>Uo,SheetClose:()=>yn,SheetContent:()=>lo,SheetDescription:()=>fs,SheetFooter:()=>ps,SheetHeader:()=>ms,SheetOverlay:()=>Xo,SheetPortal:()=>cs,SheetTitle:()=>us,SheetTrigger:()=>bn,Sidebar:()=>fa,SidebarContent:()=>Yt,SidebarFooter:()=>ba,SidebarGroup:()=>Ke,SidebarGroupAction:()=>Ns,SidebarGroupContent:()=>nt,SidebarGroupLabel:()=>kt,SidebarHeader:()=>ga,SidebarInput:()=>xs,SidebarInset:()=>hs,SidebarLeft:()=>Pm,SidebarMenu:()=>Ee,SidebarMenuAction:()=>po,SidebarMenuBadge:()=>ws,SidebarMenuButton:()=>Je,SidebarMenuItem:()=>we,SidebarMenuSkeleton:()=>Cs,SidebarMenuSub:()=>qt,SidebarMenuSubButton:()=>Jt,SidebarMenuSubItem:()=>Kt,SidebarProvider:()=>bs,SidebarRail:()=>vs,SidebarRight:()=>km,SidebarSeparator:()=>mo,SidebarTrigger:()=>ys,SimpleHeader:()=>Fm,Skeleton:()=>ae,SlideShow:()=>jl,TextAndImages:()=>Jl,Textarea:()=>ia,Theme:()=>Cr,ThemeProvider:()=>Um,Toast:()=>go,ToastAction:()=>Ss,ToastClose:()=>bo,ToastDescription:()=>vo,ToastProvider:()=>ar,ToastTitle:()=>yo,ToastViewport:()=>fo,Toaster:()=>Mn,Toggle:()=>Ts,ToggleGroup:()=>Ds,ToggleGroupItem:()=>Ms,Tooltip:()=>Ko,TooltipContent:()=>co,TooltipProvider:()=>qo,TooltipTrigger:()=>Jo,VideoHeader:()=>_m,WhyUs:()=>cm,badgeVariants:()=>Ys,buttonVariants:()=>jt,toggleVariants:()=>ho,useIsMobile:()=>Yo,useSidebar:()=>Va,useToast:()=>tr});module.exports=Yd(Jm);var Oa=h(require("react")),Wo=require("@radix-ui/react-icons"),an=require("@radix-ui/react-slot");var tn=require("clsx");var Ur="-",qd=e=>{let t=Jd(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(Ur);return i[0]===""&&i.length!==1&&i.shift(),qi(i,t)||Kd(l)},getConflictingClassGroupIds:(l,i)=>{let c=a[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},qi=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?qi(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Ur);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},ji=/^\[(.+)\]$/,Kd=e=>{if(ji.test(e)){let t=ji.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Jd=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Zd(Object.entries(e.classGroups),a).forEach(([s,l])=>{Wr(l,o,s,t)}),o},Wr=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Yi(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Qd(r)){Wr(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{Wr(l,Yi(t,s),a,o)})})},Yi=(e,t)=>{let a=e;return t.split(Ur).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Qd=e=>e.isThemeGetter,Zd=(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,i])=>[t+l,i])):s);return[a,r]}):e,ec=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)}}},Ki="!",tc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let c=[],m=0,d=0,p;for(let v=0;v<i.length;v++){let P=i[v];if(m===0){if(P===r&&(o||i.slice(v,v+s)===t)){c.push(i.slice(d,v)),d=v+s;continue}if(P==="/"){p=v;continue}}P==="["?m++:P==="]"&&m--}let f=c.length===0?i:i.substring(d),g=f.startsWith(Ki),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?i=>a({className:i,parseClassName:l}):l},ac=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:ec(e.cacheSize),parseClassName:tc(e),...qd(e)}),rc=/\s+/,sc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(rc),i="";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){i=m+(i.length>0?" "+i:i);continue}if(u=o(f),!u){i=m+(i.length>0?" "+i:i);continue}b=!1}let v=ac(d).join(":"),P=p?v+Ki:v,O=P+u;if(s.includes(O))continue;s.push(O);let K=r(u,b);for(let de=0;de<K.length;++de){let Le=K[de];s.push(P+Le)}i=m+(i.length>0?" "+i:i)}return i};function ic(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Ji(t))&&(o&&(o+=" "),o+=a);return o}var Ji=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Ji(e[o]))&&(a&&(a+=" "),a+=t);return a};function nc(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=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=sc(c,a);return r(c,d),d}return function(){return s(ic.apply(null,arguments))}}var J=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Qi=/^\[(?:([a-z-]+):)?(.+)\]$/i,lc=/^\d+\/\d+$/,dc=new Set(["px","full","screen"]),cc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|qe|pc|in|cm|mm|cap|ch|ex|r?lh|cq(qe|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,uc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pt=e=>za(e)||dc.has(e)||lc.test(e),Vt=e=>Fa(e,"length",wc),za=e=>!!e&&!Number.isNaN(Number(e)),Vr=e=>Fa(e,"number",za),ro=e=>!!e&&Number.isInteger(Number(e)),gc=e=>e.endsWith("%")&&za(e.slice(0,-1)),M=e=>Qi.test(e),Wt=e=>cc.test(e),bc=new Set(["length","size","percentage"]),yc=e=>Fa(e,bc,Zi),vc=e=>Fa(e,"position",Zi),hc=new Set(["image","url"]),xc=e=>Fa(e,hc,Pc),Nc=e=>Fa(e,"",Cc),so=()=>!0,Fa=(e,t,a)=>{let o=Qi.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},wc=e=>mc.test(e)&&!pc.test(e),Zi=()=>!1,Cc=e=>uc.test(e),Pc=e=>fc.test(e);var Rc=()=>{let e=J("colors"),t=J("spacing"),a=J("blur"),o=J("brightness"),r=J("borderColor"),s=J("borderRadius"),l=J("borderSpacing"),i=J("borderWidth"),c=J("contrast"),m=J("grayscale"),d=J("hueRotate"),p=J("invert"),f=J("gap"),g=J("gradientColorStops"),b=J("gradientColorStopPositions"),u=J("inset"),v=J("margin"),P=J("opacity"),O=J("padding"),K=J("saturate"),de=J("scale"),Le=J("sepia"),bt=J("skew"),k=J("space"),H=J("translate"),st=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",M,t],U=()=>[M,t],Go=()=>["",Pt,Vt],_o=()=>["auto",za,M],Vi=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$o=()=>["solid","dashed","dotted","double","none"],Wi=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$r=()=>["start","end","center","between","around","evenly","stretch"],oo=()=>["","0",M],Ui=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ct=()=>[za,M];return{cacheSize:500,separator:":",theme:{colors:[so],spacing:[Pt,Vt],blur:["none","",Wt,M],brightness:Ct(),borderColor:[e],borderRadius:["none","","full",Wt,M],borderSpacing:U(),borderWidth:Go(),contrast:Ct(),grayscale:oo(),hueRotate:Ct(),invert:oo(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[gc,Vt],inset:_(),margin:_(),opacity:Ct(),padding:U(),saturate:Ct(),scale:Ct(),sepia:oo(),skew:Ct(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Wt]}],"break-after":[{"break-after":Ui()}],"break-before":[{"break-before":Ui()}],"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:[...Vi(),M]}],overflow:[{overflow:N()}],"overflow-qe":[{"overflow-qe":N()}],"overflow-qe":[{"overflow-qe":N()}],overscroll:[{overscroll:st()}],"overscroll-qe":[{"overscroll-qe":st()}],"overscroll-qe":[{"overscroll-qe":st()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-qe":[{"inset-qe":[u]}],"inset-qe":[{"inset-qe":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ro,M]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:oo()}],shrink:[{shrink:oo()}],order:[{order:["first","last","none",ro,M]}],"grid-cols":[{"grid-cols":[so]}],"col-start-end":[{col:["auto",{span:["full",ro,M]},M]}],"col-start":[{"col-start":_o()}],"col-end":[{"col-end":_o()}],"grid-rows":[{"grid-rows":[so]}],"row-start-end":[{row:["auto",{span:[ro,M]},M]}],"row-start":[{"row-start":_o()}],"row-end":[{"row-end":_o()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[f]}],"gap-qe":[{"gap-qe":[f]}],"gap-qe":[{"gap-qe":[f]}],"justify-content":[{justify:["normal",...$r()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$r(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$r(),"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]}],qe:[{qe:[O]}],qe:[{qe:[O]}],qe:[{qe:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],qe:[{qe:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-qe":[{"space-qe":[k]}],"space-qe-reverse":["space-qe-reverse"],"space-qe":[{"space-qe":[k]}],"space-qe-reverse":["space-qe-reverse"],qe:[{qe:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-qe":[{"min-qe":[M,t,"min","max","fit"]}],"max-qe":[{"max-qe":[M,t,"none","full","min","max","fit","prose",{screen:[Wt]},Wt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wt,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Vr]}],"font-family":[{font:[so]}],"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",M]}],"line-clamp":[{"line-clamp":["none",za,Vr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pt,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$o(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pt,Vt]}],"underline-offset":[{"underline-offset":["auto",Pt,M]}],"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:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],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",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Vi(),vc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","qe","qe","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",yc]}],"bg-image":[{bg:["none",{"gradient-jo":["t","tr","r","br","b","qe","l","qe"]},xc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-jo-pos":[{jo:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-jo":[{jo:[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-ss":[{"rounded-ss":[s]}],"rounded-qe":[{"rounded-qe":[s]}],"rounded-qe":[{"rounded-qe":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-qe":[{"rounded-qe":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-qe":[{"rounded-qe":[s]}],"border-qe":[{border:[i]}],"border-qe-qe":[{"border-qe":[i]}],"border-qe-qe":[{"border-qe":[i]}],"border-qe-s":[{"border-s":[i]}],"border-qe-e":[{"border-e":[i]}],"border-qe-t":[{"border-t":[i]}],"border-qe-r":[{"border-r":[i]}],"border-qe-b":[{"border-b":[i]}],"border-qe-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...$o(),"hidden"]}],"divide-qe":[{"divide-qe":[i]}],"divide-qe-reverse":["divide-qe-reverse"],"divide-qe":[{"divide-qe":[i]}],"divide-qe-reverse":["divide-qe-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:$o()}],"border-color":[{border:[r]}],"border-color-qe":[{"border-qe":[r]}],"border-color-qe":[{"border-qe":[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:["",...$o()]}],"outline-offset":[{"outline-offset":[Pt,M]}],"outline-qe":[{outline:[Pt,Vt]}],"outline-color":[{outline:[e]}],"ring-qe":[{ring:Go()}],"ring-qe-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-qe":[{"ring-offset":[Pt,Vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wt,Nc]}],"shadow-color":[{shadow:[so]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...Wi(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Wi()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Wt,M]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[K]}],sepia:[{sepia:[Le]}],"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":[P]}],"backdrop-saturate":[{"backdrop-saturate":[K]}],"backdrop-sepia":[{"backdrop-sepia":[Le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-qe":[{"border-spacing-qe":[l]}],"border-spacing-qe":[{"border-spacing-qe":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:Ct()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:Ct()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[de]}],"scale-qe":[{"scale-qe":[de]}],"scale-qe":[{"scale-qe":[de]}],rotate:[{rotate:[ro,M]}],"translate-qe":[{"translate-qe":[H]}],"translate-qe":[{"translate-qe":[H]}],"skew-qe":[{"skew-qe":[bt]}],"skew-qe":[{"skew-qe":[bt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],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","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","qe-resize","qe-resize","nw-resize","qe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","qe","qe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-qe":[{"scroll-qe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-qe":[{"scroll-qe":U()}],"scroll-qe":[{"scroll-qe":U()}],"scroll-qe":[{"scroll-qe":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","qe","qe","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-qe":[{"touch-pan":["qe","left","right"]}],"touch-qe":[{"touch-pan":["qe","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-qe":[{stroke:[Pt,Vt,Vr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-qe","overflow-qe"],overscroll:["overscroll-qe","overscroll-qe"],inset:["inset-qe","inset-qe","start","end","top","right","bottom","left"],"inset-qe":["right","left"],"inset-qe":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-qe","gap-qe"],p:["px","py","ps","qe","qe","qe","pb","pl"],px:["qe","pl"],py:["qe","pb"],m:["mx","my","ms","qe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["qe","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-ss","rounded-qe","rounded-qe","rounded-es","rounded-qe","rounded-tr","rounded-br","rounded-qe"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-qe","rounded-qe"],"rounded-t":["rounded-qe","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-qe"],"rounded-l":["rounded-qe","rounded-qe"],"border-spacing":["border-spacing-qe","border-spacing-qe"],"border-qe":["border-qe-s","border-qe-e","border-qe-t","border-qe-r","border-qe-b","border-qe-l"],"border-qe-qe":["border-qe-r","border-qe-l"],"border-qe-qe":["border-qe-t","border-qe-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-qe":["border-color-r","border-color-l"],"border-color-qe":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-qe","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-qe","scroll-qe","scroll-qe","scroll-pb","scroll-pl"],"scroll-px":["scroll-qe","scroll-pl"],"scroll-py":["scroll-qe","scroll-pb"],touch:["touch-qe","touch-qe","touch-pz"],"touch-qe":["touch"],"touch-qe":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var en=nc(Rc);function n(...e){return en((0,tn.clsx)(e))}function Xr(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\qe-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,jo:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var c,m,d,p,f;if(i.title&&l.push({text:i.title,jo:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((p=(d=i.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let g=i.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of g)b.children[0]&&l.push({text:(f=b.children[0].text)!=null?f:"",jo:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),l}),r=Sc(e.layout);return{tableOfContents:o,contentWithIds:r}}function Sc(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\qe-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.jo=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.jo=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.jo=t(s.children[0].text,a++)),s))),r))),o))}var qe=require("react/jsx-runtime"),jr=Oa.forwardRef(({...e},t)=>(0,qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));jr.displayName="Breadcrumb";var Yr=Oa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("qe",{ref:a,className:n("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));Yr.displayName="BreadcrumbList";var qr=Oa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));qr.displayName="BreadcrumbItem";var Kr=Oa.forwardRef(({asChild:e,className:t,...a},o)=>(0,qe.jsx)(e?an.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));Kr.displayName="BreadcrumbLink";var Jr=Oa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));Jr.displayName="BreadcrumbPage";var Qr=({children:e,className:t,...a})=>(0,qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:qe-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,qe.jsx)(Wo.ChevronRightIcon,{})});Qr.displayName="BreadcrumbSeparator";var Zr=({className:e,...t})=>(0,qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 qe-9 items-center justify-center",e),...t,children:[(0,qe.jsx)(Wo.DotsHorizontalIcon,{className:"h-4 qe-4"}),(0,qe.jsx)("span",{className:"sr-only",children:"More"})]});Zr.displayName="BreadcrumbElipssis";var Ga=h(require("@radix-ui/react-collapsible")),Rt=Ga.Root,Ut=Ga.CollapsibleTrigger,Xt=Ga.CollapsibleContent;var St=h(require("react")),L=h(require("@radix-ui/react-dropdown-menu"));var on=L.Root,rn=L.Trigger,sn=L.Group,nn=L.Portal,ln=L.Sub,dn=L.RadioGroup,es=St.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,qe.jsxs)(L.SubTrigger,{ref:r,className:n("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,qe.jsx)(Wo.ChevronRightIcon,{className:"ml-auto"})]}));es.displayName=L.SubTrigger.displayName;var ts=St.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(L.SubContent,{ref:a,className:n("z-50 min-qe-[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}));ts.displayName=L.SubContent.displayName;var as=St.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,qe.jsx)(L.Portal,{children:(0,qe.jsx)(L.Content,{ref:o,sideOffset:t,className:n("z-50 min-qe-[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})}));as.displayName=L.Content.displayName;var os=St.forwardRef(({className:e,inset:t,...a},o)=>(0,qe.jsx)(L.Item,{ref:o,className:n("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}));os.displayName=L.Item.displayName;var rs=St.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,qe.jsxs)(L.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 qe-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,qe.jsx)("span",{className:"absolute left-2 flex h-3.5 qe-3.5 items-center justify-center",children:(0,qe.jsx)(L.ItemIndicator,{children:(0,qe.jsx)(Wo.CheckIcon,{className:"h-4 qe-4"})})}),t]}));rs.displayName=L.CheckboxItem.displayName;var ss=St.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(L.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 qe-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,qe.jsx)("span",{className:"absolute left-2 flex h-3.5 qe-3.5 items-center justify-center",children:(0,qe.jsx)(L.ItemIndicator,{children:(0,qe.jsx)(Wo.DotFilledIcon,{className:"h-4 qe-4 fill-current"})})}),t]}));ss.displayName=L.RadioItem.displayName;var is=St.forwardRef(({className:e,inset:t,...a},o)=>(0,qe.jsx)(L.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));is.displayName=L.Label.displayName;var ns=St.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(L.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));ns.displayName=L.Separator.displayName;var ls=({className:e,...t})=>(0,qe.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});ls.displayName="DropdownMenuShortcut";var cn=h(require("react"));var Be=cn.forwardRef(({className:e,type:t,...a},o)=>(0,qe.jsx)("input",{type:t,className:n("flex h-9 qe-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}));Be.displayName="Input";var pn=h(require("react")),ds=h(require("@radix-ui/react-separator"));var io=pn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,qe.jsx)(ds.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] qe-full":"h-full qe-[1px]",e),...o}));io.displayName=ds.Root.displayName;var no=h(require("react")),te=h(require("@radix-ui/react-dialog")),gn=require("class-variance-authority");var Uo=te.Root,bn=te.Trigger,yn=te.Close,cs=te.Portal,Xo=no.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(te.Overlay,{className:n("fixed inset-0 z-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}));Xo.displayName=te.Overlay.displayName;var kc=(0,gn.cva)("fixed z-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-qe-0 top-0 border-b data-[state=closed]:slide-out-jo-top data-[state=open]:slide-in-from-top",bottom:"inset-qe-0 bottom-0 border-t data-[state=closed]:slide-out-jo-bottom data-[state=open]:slide-in-from-bottom",left:"inset-qe-0 left-0 h-full qe-3/4 border-r data-[state=closed]:slide-out-jo-left data-[state=open]:slide-in-from-left sm:max-qe-sm",right:"inset-qe-0 right-0 h-full qe-3/4 border-l data-[state=closed]:slide-out-jo-right data-[state=open]:slide-in-from-right sm:max-qe-sm"}},defaultVariants:{side:"right"}}),lo=no.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,qe.jsxs)(cs,{children:[(0,qe.jsx)(Xo,{}),(0,qe.jsxs)(te.Content,{ref:r,className:n(kc({side:e}),t),...o,children:[(0,qe.jsxs)(te.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,qe.jsx)(Wo.Cross2Icon,{className:"h-4 qe-4"}),(0,qe.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));lo.displayName=te.Content.displayName;var ms=({className:e,...t})=>(0,qe.jsx)("div",{className:n("flex flex-col space-qe-2 text-center sm:text-left",e),...t});ms.displayName="SheetHeader";var ps=({className:e,...t})=>(0,qe.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-qe-2",e),...t});ps.displayName="SheetFooter";var us=no.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));us.displayName=te.Title.displayName;var fs=no.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(te.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));fs.displayName=te.Description.displayName;var B=h(require("react")),Rn=require("lucide-react");var jo=require("react"),Yo=(e=768)=>{let[t,a]=(0,jo.useState)(!1);return(0,jo.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var xn=h(require("react")),jt=(0,gn.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 qe-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=xn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,qe.jsx)(e?an.Slot:"button",{className:n(jt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function ae({className:e,...t}){return(0,qe.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var Cn=h(require("react")),it=h(require("@radix-ui/react-tooltip"));var qo=it.Provider,Ko=it.Root,Jo=it.Trigger,co=Cn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,qe.jsx)(it.Portal,{children:(0,qe.jsx)(it.Content,{ref:o,sideOffset:t,className:n("z-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})}));co.displayName=it.Content.displayName;var Tc="sidebar:state",Dc=60*60*24*7,Mc="16rem",Ic="18rem",Ac="3rem",Lc="b",Sn=B.createContext(null);function Va(){let e=B.useContext(Sn);if(!e)throw new Error("useSidebar must qe used within a SidebarProvider.");return e}var bs=B.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let c=Yo(),[m,d]=B.useState(!1),[p,f]=B.useState(e),g=t!=null?t:p,b=B.useCallback(O=>{if(a)return a==null?void 0:a(typeof O=="function"?O(g):O);f(O),document.cookie=`${Tc}=${g}; path=/; max-age=${Dc}`},[a,g]),u=B.useCallback(()=>c?d(O=>!O):b(O=>!O),[c,b,d]);B.useEffect(()=>{let O=K=>{K.key===Lc&&(K.metaKey||K.ctrlKey)&&(K.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",P=B.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,m,d,u]);return(0,qe.jsx)(Sn.Provider,{value:P,children:(0,qe.jsx)(qo,{delayDuration:0,children:(0,qe.jsx)("div",{style:{"--sidebar-width":Mc,"--sidebar-width-icon":Ac,...r},className:n("group/sidebar-wrapper flex qe-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});bs.displayName="SidebarProvider";var fa=B.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=Va();return a==="none"?(0,qe.jsx)("div",{className:n("flex h-full qe-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,qe.jsx)(Uo,{open:m,onOpenChange:d,...s,children:(0,qe.jsx)(lo,{"data-sidebar":"sidebar","data-mobile":"true",className:"qe-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ic},side:e,children:(0,qe.jsx)("div",{className:"flex h-full qe-full flex-col",children:r})})}):(0,qe.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,qe.jsx)("div",{className:n("duration-200 relative h-svh qe-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:qe-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:qe-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:qe-[--sidebar-width-icon]")}),(0,qe.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden qe-[--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]:qe-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:qe-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,qe.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full qe-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})})]})});fa.displayName="Sidebar";var ys=B.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Va();return(0,qe.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 qe-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,qe.jsx)(Rn.PanelLeft,{}),(0,qe.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});ys.displayName="SidebarTrigger";var vs=B.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Va();return(0,qe.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-qe-0 z-20 hidden qe-4 -translate-qe-1/2 transition-all ease-linear after:absolute after:inset-qe-0 after:left-1/2 after:qe-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-qe-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-qe-resize","group-data-[collapsible=offcanvas]:translate-qe-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});vs.displayName="SidebarRail";var hs=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-qe-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-xl md:peer-data-[variant=inset]:shadow",e),...t}));hs.displayName="SidebarInset";var xs=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Be,{ref:a,"data-sidebar":"input",className:n("h-8 qe-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));xs.displayName="SidebarInput";var ga=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));ga.displayName="SidebarHeader";var ba=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));ba.displayName="SidebarFooter";var mo=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(io,{ref:a,"data-sidebar":"separator",className:n("mx-2 qe-auto bg-sidebar-border",e),...t}));mo.displayName="SidebarSeparator";var Yt=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Yt.displayName="SidebarContent";var Ke=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex qe-full min-qe-0 flex-col p-2",e),...t}));Ke.displayName="SidebarGroup";var kt=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,qe.jsx)(t?$a.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("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]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));kt.displayName="SidebarGroupLabel";var Ns=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,qe.jsx)(t?$a.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square qe-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}));Ns.displayName="SidebarGroupAction";var nt=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("qe-full text-sm",e),...t}));nt.displayName="SidebarGroupContent";var Ee=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex qe-full min-qe-0 flex-col gap-1",e),...t}));Ee.displayName="SidebarMenu";var we=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));we.displayName="SidebarMenuItem";var Bc=(0,gn.cva)("peer/menu-button flex qe-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:qe-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"}}),Je=B.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let c=e?$a.Slot:"button",{isMobile:m,state:d}=Va(),p=(0,qe.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Bc({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,qe.jsxs)(Ko,{children:[(0,qe.jsx)(Jo,{asChild:!0,children:p}),(0,qe.jsx)(co,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});Je.displayName="SidebarMenuButton";var po=B.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,qe.jsx)(t?$a.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square qe-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 ws=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-qe-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}));ws.displayName="SidebarMenuBadge";var Cs=B.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,qe.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,qe.jsx)(ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,qe.jsx)(ae,{className:"h-4 flex-1 max-qe-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Cs.displayName="SidebarMenuSkeleton";var qt=B.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-qe-0 translate-qe-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));qt.displayName="SidebarMenuSub";var Kt=B.forwardRef(({...e},t)=>(0,qe.jsx)("li",{ref:t,...e}));Kt.displayName="SidebarMenuSubItem";var Jt=B.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,qe.jsx)(e?$a.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-qe-0 -translate-qe-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}));Jt.displayName="SidebarMenuSubButton";var er=h(require("react")),Ec=1,Hc=1e6;var Ps=0;function zc(){return Ps=(Ps+1)%Number.MAX_SAFE_INTEGER,Ps.toString()}var Rs=new Map,kn=e=>{if(Rs.has(e))return;let t=setTimeout(()=>{Rs.delete(e),uo({type:"REMOVE_TOAST",toastId:e})},Hc);Rs.set(e,t)},Fc=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ec)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.jo===t.toast.jo?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?kn(a):e.toasts.forEach(o=>{kn(o.jo)}),{...e,toasts:e.toasts.map(o=>o.jo===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.jo!==t.toastId)}}},Qo=[],Zo={toasts:[]};function uo(e){Zo=Fc(Zo,e),Qo.forEach(t=>{t(Zo)})}function Oc({...e}){let t=zc(),a=r=>uo({type:"UPDATE_TOAST",toast:{...r,jo:t}}),o=()=>uo({type:"DISMISS_TOAST",toastId:t});return uo({type:"ADD_TOAST",toast:{...e,jo:t,open:!0,onOpenChange:r=>{r||o()}}}),{jo:t,dismiss:o,update:a}}function tr(){let[e,t]=er.useState(Zo);return er.useEffect(()=>(Qo.push(t),()=>{let a=Qo.indexOf(t);a>-1&&Qo.splice(a,1)}),[e]),{...e,toast:Oc,dismiss:a=>uo({type:"DISMISS_TOAST",toastId:a})}}var ya=h(require("react")),ce=h(require("@radix-ui/react-toast"));var ar=ce.Provider,fo=ya.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(ce.Viewport,{ref:a,className:n("fixed top-0 z-[100] flex max-h-screen qe-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-qe-[420px]",e),...t}));fo.displayName=ce.Viewport.displayName;var Gc=(0,gn.cva)("group pointer-events-auto relative flex qe-full items-center justify-between space-qe-2 overflow-hidden rounded-md border p-4 qe-6 shadow-lg transition-all data-[swipe=cancel]:translate-qe-0 data-[swipe=end]:translate-qe-[var(--radix-toast-swipe-end-qe)] data-[swipe=move]:translate-qe-[var(--radix-toast-swipe-move-qe)] 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-jo-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"}}),go=ya.forwardRef(({className:e,variant:t,...a},o)=>(0,qe.jsx)(ce.Root,{ref:o,className:n(Gc({variant:t}),e),...a}));go.displayName=ce.Root.displayName;var Ss=ya.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(ce.Action,{ref:a,className:n("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}));Ss.displayName=ce.Action.displayName;var bo=ya.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(ce.Close,{ref:a,className:n("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,qe.jsx)(Rn.qe,{className:"h-4 qe-4"})}));bo.displayName=ce.Close.displayName;var yo=ya.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(ce.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));yo.displayName=ce.Title.displayName;var vo=ya.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(ce.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));vo.displayName=ce.Description.displayName;function Mn(){let{toasts:e}=tr();return(0,qe.jsxs)(ar,{children:[e.map(function({jo:t,title:a,description:o,action:r,...s}){return(0,qe.jsxs)(go,{...s,children:[(0,qe.jsxs)("div",{className:"grid gap-1",children:[a&&(0,qe.jsx)(yo,{children:a}),o&&(0,qe.jsx)(vo,{children:o})]}),r,(0,qe.jsx)(bo,{})]},t)}),(0,qe.jsx)(fo,{})]})}var In=h(require("react")),ks=h(require("@radix-ui/react-toggle"));var ho=(0,gn.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-qe-9",sm:"h-8 px-1.5 min-qe-8",lg:"h-10 px-2.5 min-qe-10"}},defaultVariants:{variant:"default",size:"default"}}),Ts=In.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,qe.jsx)(ks.Root,{ref:r,className:n(ho({variant:t,size:a,className:e})),...o}));Ts.displayName=ks.Root.displayName;var va=h(require("react")),Wa=h(require("@radix-ui/react-toggle-group"));var Bn=va.createContext({size:"default",variant:"default"}),Ds=va.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,qe.jsx)(Wa.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,qe.jsx)(Bn.Provider,{value:{variant:t,size:a},children:o})}));Ds.displayName=Wa.Root.displayName;var Ms=va.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=va.useContext(Bn);return(0,qe.jsx)(Wa.Item,{ref:s,className:n(ho({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Ms.displayName=Wa.Item.displayName;var Is=h(require("react")),Qe=h(require("@radix-ui/react-scroll-area"));var ea=Is.forwardRef(({className:e,children:t,...a},o)=>(0,qe.jsxs)(Qe.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,qe.jsx)(Qe.Viewport,{className:"h-full qe-full rounded-[inherit]",children:t}),(0,qe.jsx)(rr,{}),(0,qe.jsx)(Qe.Corner,{})]}));ea.displayName=Qe.Root.displayName;var rr=Is.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,qe.jsx)(Qe.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full qe-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,qe.jsx)(Qe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));rr.displayName=Qe.ScrollAreaScrollbar.displayName;var En=h(require("react")),lt=h(require("@radix-ui/react-popover"));var xo=lt.Root,No=lt.Trigger,Hn=lt.Anchor,Ua=En.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,qe.jsx)(lt.Portal,{children:(0,qe.jsx)(lt.Content,{ref:r,align:t,sideOffset:a,className:n("z-50 qe-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})}));Ua.displayName=lt.Content.displayName;var zn=h(require("react")),Ls=h(require("@radix-ui/react-label"));var _c=(0,gn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Q=zn.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Ls.Root,{ref:a,className:n(_c(),e),...t}));Q.displayName=Ls.Root.displayName;var Gn=h(require("react")),ha=h(require("@radix-ui/react-hover-card"));var _n=ha.Root,$n=ha.Trigger,Bs=Gn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,qe.jsx)(ha.Content,{ref:r,align:t,sideOffset:a,className:n("z-50 qe-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}));Bs.displayName=ha.Content.displayName;var wo=h(require("react")),oe=h(require("@radix-ui/react-dialog"));var Ze=oe.Root,sr=oe.Trigger,Es=oe.Portal,ir=oe.Close,nr=wo.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(oe.Overlay,{ref:a,className:n("fixed inset-0 z-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}));nr.displayName=oe.Overlay.displayName;var Ve=wo.forwardRef(({className:e,children:t,...a},o)=>(0,$e.jsxs)(Es,{children:[(0,$e.jsx)(nr,{}),(0,$e.jsxs)(oe.Content,{ref:o,className:n("fixed left-[50%] top-[50%] z-50 grid qe-full max-qe-lg translate-qe-[-50%] translate-qe-[-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-jo-left-1/2 data-[state=closed]:slide-out-jo-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,$e.jsxs)(oe.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,$e.jsx)(Rn.qe,{className:"h-4 qe-4"}),(0,$e.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ve.displayName=oe.Content.displayName;var dt=({className:e,...t})=>(0,$e.jsx)("div",{className:n("flex flex-col space-qe-1.5 text-center sm:text-left",e),...t});dt.displayName="DialogHeader";var Hs=({className:e,...t})=>(0,$e.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-qe-2",e),...t});Hs.displayName="DialogFooter";var ct=wo.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(oe.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));ct.displayName=oe.Title.displayName;var zs=wo.forwardRef(({className:e,...t},a)=>(0,$e.jsx)(oe.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));zs.displayName=oe.Description.displayName;var ta=h(require("react")),Te=require("cmdk");var lr=ta.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Te.Command,{ref:a,className:n("flex h-full qe-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));lr.displayName=Te.Command.displayName;var Xn=({children:e,...t})=>(0,qe.jsx)(Ze,{...t,children:(0,qe.jsx)(Ve,{className:"overflow-hidden p-0",children:(0,qe.jsx)(lr,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:qe-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:qe-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:qe-5",children:e})})}),Fs=ta.forwardRef(({className:e,...t},a)=>(0,qe.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,qe.jsx)(Rn.Search,{className:"mr-2 h-4 qe-4 shrink-0 opacity-50"}),(0,qe.jsx)(Te.Command.Input,{ref:a,className:n("flex h-10 qe-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Fs.displayName=Te.Command.Input.displayName;var Os=ta.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Te.Command.List,{ref:a,className:n("max-h-[300px] overflow-qe-auto overflow-qe-hidden",e),...t}));Os.displayName=Te.Command.List.displayName;var Gs=ta.forwardRef((e,t)=>(0,qe.jsx)(Te.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Gs.displayName=Te.Command.Empty.displayName;var _s=ta.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Te.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));_s.displayName=Te.Command.Group.displayName;var $s=ta.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Te.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));$s.displayName=Te.Command.Separator.displayName;var Vs=ta.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Te.Command.Item,{ref:a,className:n("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}));Vs.displayName=Te.Command.Item.displayName;var Ws=({className:e,...t})=>(0,qe.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ws.displayName="CommandShortcut";var dr=h(require("react"));var $c=(0,gn.cva)("relative qe-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-qe-[-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"}}),Us=dr.forwardRef(({className:e,variant:t,...a},o)=>(0,qe.jsx)("div",{ref:o,role:"alert",className:n($c({variant:t}),e),...a}));Us.displayName="Alert";var Xs=dr.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Xs.displayName="AlertTitle";var js=dr.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));js.displayName="AlertDescription";var mr=h(require("react")),Dt=h(require("@radix-ui/react-avatar"));var Mt=mr.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Dt.Root,{ref:a,className:n("relative flex h-10 qe-10 shrink-0 overflow-hidden rounded-full",e),...t}));Mt.displayName=Dt.Root.displayName;var It=mr.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Dt.Image,{ref:a,className:n("aspect-square h-full qe-full",e),...t}));It.displayName=Dt.Image.displayName;var At=mr.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Dt.Fallback,{ref:a,className:n("flex h-full qe-full items-center justify-center rounded-full bg-muted",e),...t}));At.displayName=Dt.Fallback.displayName;var Ys=(0,gn.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 et({className:e,variant:t,...a}){return(0,qe.jsx)("div",{className:n(Ys({variant:t}),e),...a})}var Co=h(require("@radix-ui/react-checkbox")),Jn=h(require("react")),mt=Jn.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(Co.Root,{className:n("peer h-4 qe-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,qe.jsx)(Co.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,qe.jsx)(Rn.Check,{className:"h-4 qe-4"})})}));mt.displayName=Co.Root.displayName;var z=h(require("@radix-ui/react-select")),aa=h(require("react")),Na=z.Root,Vc=z.Group,wa=z.Value,oa=aa.forwardRef(({children:e,className:t,...a},o)=>(0,qe.jsxs)(z.Trigger,{className:n("flex h-10 qe-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,qe.jsx)(z.Icon,{asChild:!0,children:(0,qe.jsx)(Rn.ChevronDown,{className:"h-4 qe-4 opacity-50"})})]}));oa.displayName=z.Trigger.displayName;var qs=aa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(z.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,qe.jsx)(Rn.ChevronUp,{className:"h-4 qe-4"})}));qs.displayName=z.ScrollUpButton.displayName;var Ks=aa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(z.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,qe.jsx)(Rn.ChevronDown,{className:"h-4 qe-4"})}));Ks.displayName=z.ScrollDownButton.displayName;var ra=aa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,qe.jsx)(z.Portal,{children:(0,qe.jsxs)(z.Content,{className:n("relative z-50 max-h-96 min-qe-[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-qe-1 data-[side=left]:-translate-qe-1 data-[side=right]:translate-qe-1 data-[side=top]:-translate-qe-1",t),position:a,ref:r,...o,children:[(0,qe.jsx)(qs,{}),(0,qe.jsx)(z.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] qe-full min-qe-[var(--radix-select-trigger-width)]"),children:e}),(0,qe.jsx)(Ks,{})]})}));ra.displayName=z.Content.displayName;var Qn=aa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(z.Label,{className:n("py-1.5 pl-8 qe-2 text-sm font-semibold",e),ref:a,...t}));Qn.displayName=z.Label.displayName;var sa=aa.forwardRef(({children:e,className:t,...a},o)=>(0,qe.jsxs)(z.Item,{className:n("relative flex qe-full cursor-default select-none items-center rounded py-1.5 pl-8 qe-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,qe.jsx)("span",{className:"absolute left-2 flex h-3.5 qe-3.5 items-center justify-center",children:(0,qe.jsx)(z.ItemIndicator,{children:(0,qe.jsx)(Rn.Check,{className:"h-4 qe-4"})})}),(0,qe.jsx)(z.ItemText,{children:e})]}));sa.displayName=z.Item.displayName;var Zn=aa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)(z.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Zn.displayName=z.Separator.displayName;var el=h(require("react")),ia=el.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("textarea",{className:n("flex min-h-[80px] qe-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}));ia.displayName="Textarea";var al=require("react-day-picker");function Po({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,qe.jsx)(al.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-qe-4 sm:space-qe-4 sm:space-qe-0",month:"space-qe-4",caption:"flex justify-center qe-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-qe-1 flex items-center",nav_button:n(jt({variant:"outline"}),"h-7 qe-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"qe-full border-collapse space-qe-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md qe-8 font-normal text-[0.8rem]",row:"flex qe-full mt-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:z-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:n(jt({variant:"ghost"}),"h-8 qe-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})}Po.displayName="Calendar";var De=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o!=null?o:"",i=r+s+" fa-"+a+" "+l;return(0,qe.jsx)("i",{className:i})};var sl=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,qe.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,qe.jsx)("div",{className:"qe-12 h-12 ",children:(0,qe.jsx)(De,{type:o,iconName:a,className:"qe-12 h-12 text-white"})}),(0,qe.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,qe.jsx)("p",{className:"text-white text-sm",children:t})]});var il=h(require("next/image")),nl=h(require("next/link"));var Pa=h(require("react"));var ye=Pa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var He=Pa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("flex flex-col space-qe-1.5 p-6",e),...t}));He.displayName="CardHeader";var ze=Pa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));ze.displayName="CardTitle";var Wc=Pa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Wc.displayName="CardDescription";var Ce=Pa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("p-6 qe-0",e),...t}));Ce.displayName="CardContent";var Uc=Pa.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("div",{ref:a,className:n("flex items-center p-6 qe-0",e),...t}));Uc.displayName="CardFooter";function ll({name:e,logo:t,href:a}){return(0,qe.jsx)(ye,{className:"qe-full max-qe-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,qe.jsxs)(nl.default,{href:a,className:"block",children:[(0,qe.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,qe.jsx)("div",{className:"relative qe-full h-full",children:t&&(0,qe.jsx)(il.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,qe.jsx)(Ce,{className:"p-3 flex items-center justify-center h-18 bg-gradient-jo-br from-gray-900 via-brand-one jo-gray-900",children:(0,qe.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 dl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,qe.jsx)(Rn.Cake,{className:"h-4 qe-4"});case"workAnniversary":return(0,qe.jsx)(Rn.Award,{className:"h-4 qe-4"});case"companyEvent":return(0,qe.jsx)(Rn.PartyPopper,{className:"h-4 qe-4"});default:return(0,qe.jsx)(Rn.CalendarDays,{className:"h-4 qe-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 jo-slate-500"}};return(0,qe.jsxs)(ye,{className:`qe-full max-qe-md overflow-hidden bg-gradient-jo-br ${l(e)}`,children:[(0,qe.jsxs)(He,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,qe.jsxs)(Mt,{className:"h-14 qe-14 border-2 border-white",children:[(0,qe.jsx)(It,{src:r,alt:a||"Event"}),(0,qe.jsx)(At,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,qe.jsxs)("div",{className:"flex flex-col",children:[(0,qe.jsx)(ze,{className:"text-xl",children:a||"Untitled Event"}),(0,qe.jsxs)("p",{className:"text-sm text-white/80",children:[(0,qe.jsx)(Rn.CalendarDays,{className:"mr-1 inline-block h-4 qe-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,qe.jsxs)(Ce,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,qe.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,qe.jsxs)(et,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,qe.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([qe-qe])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var ml=h(require("next/link"));var pl=h(require("next/image")),cl={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function ul({slug:e,image:t,title:a,description:o}){return(0,qe.jsxs)(ml.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,qe.jsx)("span",{className:n("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 jo-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,qe.jsx)(pl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
6
|
+
(min-width:${cl.md}) 50vw,
|
|
7
|
+
(min-width:${cl.lg}) 25vw,
|
|
8
8
|
100vw
|
|
9
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Ke.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Ke.jsxs)("div",{className:"mt-auto divide-Ke md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Ke.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Ke.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,Ke.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Ke.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 ei=h(require("next/image")),yr=h(require("path"));function tm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function am(e){return e.startsWith("http")}function om(e,t){let a=e;if(tm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(am(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=yr.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=yr.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=`/${yr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function rm({src:e,alt:t}){let[a,o]=(0,Ko.useState)(!1),[r,s]=(0,Ko.useState)(!1),[l,i]=(0,Ko.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:g,naturalHeight:f}=p.target;i({width:g,height:f}),s(g>300||f>300)};return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.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,Ke.jsx)(ei.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-Ke-full max-h-full"})}),(0,Ke.jsx)(et,{open:a,onOpenChange:o,children:(0,Ke.jsxs)(Ue,{className:"flex flex-col items-center justify-center",children:[(0,Ke.jsxs)(ct,{className:"flex Ke-full justify-end",children:[(0,Ke.jsx)(mt,{className:"hidden",children:t}),(0,Ke.jsx)(dr,{})]}),(0,Ke.jsx)("div",{className:"flex items-center justify-center",children:(0,Ke.jsx)(ei.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function yl({props:e,baseContext:t}){let{src:a}=e;return a=om(a,t),(0,Ke.jsx)(rm,{src:a,alt:e.alt})}var vl=h(require("next/link"));function Re({children:e,href:t,openNewTab:a,...o}){return(0,Ke.jsx)(vl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function sm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function im({icon:e,title:t,description:a,slug:o}){return(0,Ke.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-Ke-6 overflow-hidden rounded-5 p-6 md:space-Ke-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-5",children:[(0,Ke.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:sm(e)?(0,Ke.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Ke.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:o?(0,Ke.jsx)(Re,{href:o,children:t}):t})]}),(0,Ke.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,Ke.jsx)(T,{asChild:!0,className:n(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,Ke.jsxs)(Re,{href:o,children:[(0,Ke.jsx)("span",{children:"Read More"}),(0,Ke.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Ke.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Ke.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,Ke.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] Ke-full scale-Ke-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Ke-100 group-hover/service:opacity-100"})]})}var hr=require("react-icons/fa6");function nm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Ke.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,Ke.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,Ke.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-Tn",children:e}),(0,Ke.jsx)("p",{children:t})]}),(0,Ke.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Ke.jsxs)("div",{className:"flex flex-col justify-stretch gap-Ke-14 gap-Ke-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Ke.jsx)("ul",{"aria-label":"pricing point list",className:"grid Ke-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,Ke.jsxs)("Ke",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Ke.jsx)("span",{className:"text-accent pt-1",children:(0,Ke.jsx)(hr.FaCircleCheck,{})}),(0,Ke.jsx)("span",{children:l})]},i))}),(0,Ke.jsxs)("p",{className:"font-secondary ml-auto text-Tn font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Ke.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,Ke.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Ke.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Ke.jsxs)(Re,{href:s.href,openNewTab:s.openNewTab,children:[(0,Ke.jsx)("span",{className:"relative z-1",children:s.label}),(0,Ke.jsx)("span",{className:"relative z-1 pl-2",children:(0,Ke.jsx)(hr.FaAnglesRight,{})})]})})})]})})]})}function lm({className:e,badge:t,title:a,subtitle:o}){return(0,Ke.jsxs)("div",{className:n("relative overflow-hidden rounded-Tn bg-gradient-_l-Ke from-[#A42368] _l-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,Ke.jsxs)("div",{className:"relative z-10 mx-auto max-Ke-4xl text-center",children:[t&&(0,Ke.jsx)("div",{className:"mb-4",children:(0,Ke.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,Ke.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,Ke.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-Tn",children:o})]}),(0,Ke.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 Ke-full -translate-Ke-1/2",style:{background:"radial-gradient(50% 50% Ke 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Ke.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 Ke-full -translate-Ke-1/2",children:(0,Ke.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Ke.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"})})})]})}var ti=({className:e,content:t,style:a})=>(0,Ke.jsx)("div",{className:n("mx-auto my-8 Ke-full",e),children:(0,Ke.jsx)("div",{className:n("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,Ke.jsx)(te,{content:t,enableGutter:!1,enableProse:!1})})});var ai=h(require("next/link")),vt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,g=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Ke.jsxs)(ai.default,{className:n(r),href:d||m||"",...g,children:[s&&s,o&&o]}):(0,Ke.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,Ke.jsxs)(ai.default,{className:n(r),href:d||m||"",...g,children:[s&&s,o&&o]})})};var ka=({links:e,richText:t})=>(0,Ke.jsx)("div",{className:"container",children:(0,Ke.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,Ke.jsx)("div",{className:"max-Ke-[48rem] flex items-center",children:t&&(0,Ke.jsx)(te,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ke.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Ke.jsx)(vt,{size:"lg",...a},o))})]})});var Nr=require("prism-react-renderer");function oi({code:e}){let[t,a]=(0,Ko.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Ke.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ke.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Ke.jsx)("p",{children:t}),(0,Ke.jsx)("div",{className:"Ke-6 h-6 dark:invert",children:(0,Ke.jsx)(Tn.ClipboardCopy,{})})]})})}var wl=({code:e,language:t=""})=>e?(0,Ke.jsx)(Nr.Highlight,{code:e,language:t,theme:Nr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Ke.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Ke-auto",children:[r.map((s,l)=>(0,Ke.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Ke.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Ke.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,Ke.jsx)("span",{...o({token:i})},c))})]},l)),(0,Ke.jsx)(oi,{code:e})]})}):null;var si=({className:e,code:t,language:a})=>(0,Ke.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ke.jsx)(wl,{code:t,language:a})});var Pl=h(require("next/image")),dm={"3xl":1920,"2xl":1536,Tn:1280,lg:1024,md:768,sm:640},Cl="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=",Rl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:c}=e,m,d,p=t,g=i||"";if(!g&&s&&typeof s=="object"){let{alt:u,filename:v,height:P,url:O,width:J}=s;if(P&&P>500){let ce=500/P;m=J*ce,d=P*ce}else m=J,d=P;p=u||"",g=O||Cl}let f=c||"lazy",b=l||Object.entries(dm).map(([,u])=>`(max-width: ${u}px) ${u*2}Ke`).join(", ");return(0,Ke.jsx)("picture",{children:(0,Ke.jsx)(Pl.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Cl,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:b,src:g,width:a?void 0:m})})};var Sl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var kl=()=>{if(Sl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Tl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Ko.useRef)(null);if((0,Ko.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Ke.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Ke.jsx)("source",{src:`${kl()}/media/${s}`})})}return null};var zt=e=>{var l;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((l=o==null?void 0:o.mimeType)==null?void 0:l.includes("video"));return(0,Ke.jsx)(a||Ko.Fragment,{...a!==null?{className:t}:{},children:r?(0,Ke.jsx)(Tl,{...e}):(0,Ke.jsx)(Rl,{...e})})};var Ft=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ke.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,Ke.jsx)(zt,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var ci=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ke.jsx)("div",{className:n("",{container:a},t),children:(0,Ke.jsx)(zt,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var Da=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Ke.jsxs)("section",{className:n(!r&&"container","Ke-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Ke.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Ke.jsx)("p",{className:"mb-5 text-Tn tracking-tight md:text-Tn text-foreground",children:t}),t&&typeof t=="object"&&(0,Ke.jsx)("p",{className:"mb-5 text-Tn tracking-tight md:text-Tn text-foreground",children:(0,Ke.jsx)(te,{content:t,enableGutter:!1})}),(0,Ke.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((s,l)=>{var c,m,d,p,g;let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,Ke.jsx)(mi,{variant:((c=s.settings)==null?void 0:c.card)==="default"?"light":((m=s.settings)==null?void 0:m.card)||"outline",icon:i()||void 0,iconSize:((d=s.settings)==null?void 0:d.iconSize)||"large",width:"auto",order:l,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(p=s.link)!=null&&p.url?"Find out more":void 0,buttonHref:((g=s.link)==null?void 0:g.url)||void 0},l)})})]});var Pr=h(require("react"));function To({nodes:e}){return(0,Ke.jsx)(Pr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Ke.jsx)(Pr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Ke.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Ke.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Ke.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Ke.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Ke.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Ke.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Ke.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Ke.jsx)("table",{children:(0,Ke.jsx)("tbody",{children:t.children.map((s,l)=>(0,Ke.jsx)("tr",{children:s.children.map((i,c)=>(0,Ke.jsx)("td",{children:To({nodes:i.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let l of s.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return To({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s==null?void 0:s.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Ke.jsx)(ka,{...s},a);case"mediaBlock":return(0,Ke.jsx)(Ft,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-Ke-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,Ke.jsx)(ci,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-Ke-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Ke.jsx)(ti,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Ke.jsx)(si,{className:"col-start-2",...s},a);case"features":return(0,Ke.jsx)(Da,{...s,nested:!0},a);case"reusableContentBlock":To({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Ke.jsx)("Ke",{className:"col-start-2"},a);case"paragraph":return(0,Ke.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Ke.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Ke.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Ke.jsx)("Ke",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Ke.jsx)("Ke",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Ke.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Ke.jsx)(vt,{newTab:!!(s!=null&&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,Ke.jsx)(vt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var te=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Ke.jsx)("div",{className:n({"container ":a,"max-Ke-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&To({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function Il(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function mi({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:p}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-_l-Ke from-[#A42368] _l-[#4A1030]",radial:"bg-gradient-_l-Ke from-[#4A1030] _l-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"Ke-1/4","1/3":"Ke-1/3","1/2":"Ke-1/2",full:"Ke-full",auto:"Ke-full"};return(0,Ke.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-Ke-56 flex flex-col group",g[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)(cm,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,Ke.jsx)("div",{className:"mb-6",children:(0,Ke.jsx)("div",{className:n("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&(0,Ke.jsx)("div",{className:"mb-4 text-Tn md:text-2xl font-light",children:i}),c&&typeof c=="object"&&(0,Ke.jsx)("div",{className:n("space-Ke-6"),children:(0,Ke.jsx)(te,{enableGutter:!1,content:c,enableProse:!1,className:n(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,Ke.jsx)("div",{className:n("space-Ke-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,Ke.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Ke.jsx)(T,{size:"lg",className:"text-white text-lg rounded-Tn Ke-full mt-auto items-center justify-center",asChild:!0,children:(0,Ke.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,Ke.jsx)("div",{className:"absolute bottom-0 right-0 Ke-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 cm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Ke.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Il(e)&&(0,Ke.jsx)("div",{className:n("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,Ke.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Ke.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Ke.jsxs)("div",{className:"flex flex-col gap-4",children:[Il(e)&&(0,Ke.jsx)("div",{className:n("h-12 Ke-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ke.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ke.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Al=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Ke.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function mm({icon:e,title:t,body:a,color:o="secondary"}){return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Ke.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Ke.jsx)("div",{className:"Ke-12 h-12",children:(0,Ke.jsx)(Ie,{type:e.type,iconName:e.name})})}),(0,Ke.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Ke-[30%]",children:t}),a&&(0,Ke.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-Ke-[50%]",children:a})]})})}var Bl=h(require("next/image"));function pm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Ke.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,Ke.jsx)(Bl.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,Ke.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Ke.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,Ke.jsxs)("a",{href:t,children:[(0,Ke.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Ke.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var um=(e,t)=>`from-brand-${e} _l-brand-${t}`;function gm({...e}){let t=um(e.brandFrom||"one",e.brandTo||"two");return(0,Ke.jsxs)("div",{className:`relative isolate flex items-center gap-Ke-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-_l-r ${t}`,children:[(0,Ke.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Ke.jsxs)("a",{href:e.url,children:[(0,Ke.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ke.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ke.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Ke.jsx)("span",{children:e.message&&e.message})]}):(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ke.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ke.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Ke.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Do=h(require("react")),fm={Architecture:(0,Ke.jsx)(Tn.DraftingCompass,{className:"h-5 Ke-5 text-blue-600"}),Engineering:(0,Ke.jsx)(Tn.Code,{className:"h-5 Ke-5 text-green-600"}),Development:(0,Ke.jsx)(Tn.Code,{className:"h-5 Ke-5 text-purple-600"}),Delivery:(0,Ke.jsx)(Tn.GanttChart,{className:"h-5 Ke-5 text-red-600"})},bm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Ke.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Ke.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,Ke.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,Ke.jsx)(Tn.ChevronDown,{className:"h-4 Ke-4"}):(0,Ke.jsx)(Tn.ChevronRight,{className:"h-4 Ke-4"})}),(0,Ke.jsx)("div",{className:"Ke-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Ke.jsx)(Tn.Users,{className:"h-6 Ke-6 text-gray-500"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Ke.jsxs)("div",{className:"flex items-center mt-1",children:[fm[e.discipline],(0,Ke.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Ke.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},El=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Do.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()),i=d=>l(d)||d.reports.some(i),c=a===""||i(e),m=l(e);return Do.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)(bm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,Ke.jsx)(El,{person:d,level:t+1,searchTerm:a},p))]}):null};function ym(){let[e,t]=(0,Do.useState)("");return(0,Ke.jsxs)("div",{className:"max-Ke-5xl mx-auto p-6",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Ke.jsxs)("div",{className:"mb-4 relative",children:[(0,Ke.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"Ke-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,Ke.jsx)(Tn.Search,{className:"absolute right-3 top-2.5 h-5 Ke-5 text-gray-400"})]}),(0,Ke.jsx)("div",{className:"space-Ke-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,Ke.jsx)(El,{person:o,level:0,searchTerm:e},r))})]})}function vm({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:"Ke 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:"Ke 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:"Ke set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Ke phased roadmap outlining the steps _l implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Ke detailed plan outlining potential risks and mitigation strategies _l 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 _l improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies _l 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 _l leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Ke.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Ke.jsxs)("div",{className:"lg:col-span-1 space-Ke-6 flex flex-col",children:[(0,Ke.jsxs)(ve,{className:"flex-grow",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Tn.Users,{className:"h-5 Ke-5"}),"Team"]})}),(0,Ke.jsxs)(Pe,{className:"p-6",children:[(0,Ke.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Ke small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Ke.jsxs)("div",{className:"space-Ke-6",children:[(0,Ke.jsx)("div",{className:"space-Ke-2",children:e.leadership.map((r,s)=>(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Tn.User,{className:"h-4 Ke-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Ke.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ke.jsx)("div",{className:"space-Ke-2",children:e.core.map((r,s)=>(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Tn.User,{className:"h-4 Ke-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:r.role}),r.count&&(0,Ke.jsxs)("span",{children:["(",r.count,"Ke)"]})]}),r.isFTE&&(0,Ke.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ke.jsx)(Tn.Users2,{className:"h-4 Ke-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:"SME input:"})]}),(0,Ke.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Ke.jsxs)(ve,{children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Tn.PoundSterling,{className:"h-5 Ke-5"}),"Fee"]})}),(0,Ke.jsx)(Pe,{className:"p-6",children:(0,Ke.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Ke.jsxs)(ve,{className:"lg:col-span-1 flex flex-col",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Tn.FileText,{className:"h-5 Ke-5"}),"Outputs"]})}),(0,Ke.jsxs)(Pe,{className:"p-6 flex-grow overflow-auto",children:[(0,Ke.jsx)("ol",{className:"list-decimal list-inside space-Ke-4",children:t.map((r,s)=>(0,Ke.jsxs)("Ke",{className:"text-sm",children:[(0,Ke.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Ke.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Ke.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Ke.jsxs)(ve,{className:"lg:col-span-1 flex flex-col",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(Tn.Lightbulb,{className:"h-5 Ke-5"}),"Benefits"]})}),(0,Ke.jsx)(Pe,{className:"p-6 flex-grow overflow-auto",children:(0,Ke.jsx)("ul",{className:"space-Ke-4",children:a.map((r,s)=>(0,Ke.jsxs)("Ke",{className:"flex gap-2 text-sm",children:[(0,Ke.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Ke.jsx)("span",{children:r})]},s))})})]})]})}function hm(){return(0,Ke.jsx)("div",{className:"Ke-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Ke.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Ke.jsxs)("div",{className:"space-Ke-4 bg-primary p-3 rounded-lg",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"Ke-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Ke.jsx)(Tn.BarChart3,{className:"Ke-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-Tn font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Ke.jsx)("p",{className:"text-secondary text-sm",children:"Ke excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Ke.jsxs)("ul",{className:"text-sm",children:[(0,Ke.jsx)("Ke",{children:"Strategy definition"}),(0,Ke.jsx)("Ke",{children:"Programme leadership"}),(0,Ke.jsx)("Ke",{children:"Detailed planning"}),(0,Ke.jsx)("Ke",{children:"\u2022 Financial control"}),(0,Ke.jsx)("Ke",{children:"\u2022 Rigorous governance"})]})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"Ke-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Ke.jsx)(Tn.CogIcon,{className:"Ke-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-Tn font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Ke.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,Ke.jsx)("p",{className:"text-sm",children:"Ke deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"Ke-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Ke.jsx)(Tn.Building2,{className:"Ke-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-Tn font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"Ke understand how _l navigate public sector and financial services regulation and how _l deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Ke.jsx)("p",{className:"text-sm",children:"Ke have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"Ke-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Ke.jsx)(Tn.BadgeCheck,{className:"Ke-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-Tn font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"Ke have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Ke.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, Ke have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Mo=e=>{var i;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=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let m of c.root.children)if(s(m))return!0}if(c.children){for(let m of c.children)if(s(m))return!0}return!1},l=(c,m,d)=>{if(m==="none"||d==="full")return{processedRichText:c,heading:null};let p=c,g=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(p={...c,root:{...c.root,children:c.root.children.slice(1)}},g=c.root.children[0]),{processedRichText:p,heading:g}};return(0,Ke.jsx)("div",{className:"container my-6",children:(0,Ke.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-Ke-8",(i=a==null?void 0:a.settings)!=null&&i.box?"gap-Ke-8":"gap-Ke-16"),children:t&&t.length>0&&t.map((c,m)=>{var v,P;let{enableLink:d,link:p,richText:g,size:f}=c,{processedRichText:b,heading:u}=l(g,((v=a==null?void 0:a.settings)==null?void 0:v.box)||"none",f||"full");return(0,Ke.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[f]}`,{"md:col-span-2":f!=="full"},r[f!=="full"&&!s(g)&&((P=a==null?void 0:a.settings)==null?void 0:P.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[u&&(0,Ke.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-Tn",children:u.children[0].text}),b&&(0,Ke.jsx)(te,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Ke.jsx)(vt,{...p})]},m)})})})};var Rr=h(require("next/image"));function xm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Ke.jsxs)("div",{className:"relative Ke-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Ke.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] Ke-full overflow-hidden",children:(0,Ke.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] Ke-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Ke.jsx)(Rr.default,{src:e,alt:"Header background",className:"h-full Ke-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Ke.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,Ke.jsx)("div",{className:"h-16 Ke-32 md:h-24 md:Ke-48",children:(0,Ke.jsx)(Rr.default,{src:o,alt:"Company logo",className:"h-full Ke-full object-contain",width:192,height:96})}),r&&(0,Ke.jsx)("div",{className:"h-10 Ke-20 md:h-12 md:Ke-24",children:(0,Ke.jsx)(Rr.default,{src:r,alt:"Customer logo",className:"h-full Ke-full object-contain",width:96,height:48})})]}),(0,Ke.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Ke.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Ke.jsx)("h1",{className:"max-Ke-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Ol=h(require("next/image"));var pi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Ke.jsx)(Nm,{blocks:a.layout}):(0,Ke.jsx)(Ke.Fragment,{})},Hl={content:Mo,cta:ka,mediaBlock:Ft,imageBlock:Ft,features:Da},Nm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ke.jsx)(Ke.Fragment,{children:t.map((o,r)=>{var i,c;let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Hl){let m=Hl[s];if(m)return(0,Ke.jsxs)("div",{className:"py-6 relative",children:[(0,Ke.jsx)(Sr,{block:o,index:r}),(0,Ke.jsx)("div",{className:n(((i=l==null?void 0:l.settings)==null?void 0:i.theme)==="dark"?"dark":((c=l==null?void 0:l.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Ke.jsx)(m,{...o})})]},r)}return null})}):null};var zl={content:Mo,cta:ka,mediaBlock:Ft,imageBlock:Ft,features:Da,reusableContentBlock:pi},Ma=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ke.jsx)("section",{id:"render-blocks",className:n(e.fill?"h-full Ke-full":""),children:t.map((o,r)=>{var i,c;console.log("block",o);let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in zl){let m=zl[s];if(s==="reusableContentBlock")return(0,Ke.jsx)(Ko.Fragment,{children:(0,Ke.jsx)(Ma,{blocks:o.reusableContent.layout})},r);if(m)return(0,Ke.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Ke.jsx)(Sr,{block:o,index:r}),(0,Ke.jsx)("div",{className:n("container h-full",((i=l==null?void 0:l.settings)==null?void 0:i.theme)==="dark"?"dark":((c=l==null?void 0:l.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Ke.jsx)(m,{...o})})]},r)}return null})}):null},Sr=e=>{var a,o,r,s,l;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let i={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Ke.jsxs)("div",{className:n("absolute inset-0 Ke-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,Ke.jsx)(Ol.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((l=(s=t.settings)==null?void 0:s.image)==null?void 0:l.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Ke.jsx)("div",{className:"absolute inset-0",style:{background:i.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,Ke.jsx)("div",{className:n("absolute inset-0 -z-10 Ke-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Vl=h(require("clsx"));var _l=require("next/navigation");function wm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,_l.useRouter)(),r=(0,Ko.useRef)(null),s=(0,Ko.useRef)(null),l=(0,Ko.useRef)(0),i=(0,Ko.useRef)(!1),c=(0,Ko.useRef)(0),m=(0,Ko.useCallback)(p=>{if(p.target){let g=p.target,f=+new Date,b=g==null?void 0:g.closest("a");c.current=p.button,b?i.current=!0:(i.current=!1,l.current=f)}},[o,r,s,l]),d=(0,Ko.useCallback)(p=>{var g,f;if((g=s.current)!=null&&g.href){let u=+new Date-l.current;if((f=s.current)!=null&&f.href&&u<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,Ko.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Gl=wm;var $l=h(require("next/link"));var Io=e=>{let{card:t,link:a}=Gl({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:g,image:f}=d||{},b=m&&Array.isArray(m)&&m.length>0,u=i||p,v=g==null?void 0:g.replace(/\s/g," "),P=`/${s}/${c}`;return(0,Ke.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Ke.jsxs)("div",{className:"relative Ke-full ",children:[!f&&(0,Ke.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,Ke.jsx)(zt,{resource:f,size:"33vw"})]}),(0,Ke.jsxs)("div",{className:"p-4",children:[l&&b&&(0,Ke.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,Ke.jsx)("div",{children:m==null?void 0:m.map((O,J)=>{if(typeof O=="object"){let{title:ce}=O,Ee=ce||"Untitled category",yt=J===m.length-1;return(0,Ke.jsxs)(Ko.Fragment,{children:[Ee,!yt&&(0,Ke.jsx)(Ko.Fragment,{children:", \xA0"})]},J)}return null})})}),u&&(0,Ke.jsx)("div",{className:"prose",children:(0,Ke.jsx)("h3",{children:(0,Ke.jsx)($l.default,{className:"not-prose",href:P,ref:a.ref,children:u})})}),g&&(0,Ke.jsx)("div",{className:"mt-2",children:g&&(0,Ke.jsx)("p",{children:v})})]})]})};var Cm=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Ke.jsxs)("div",{className:(0,Vl.default)("container",t),children:[o&&(0,Ke.jsx)(te,{content:o,enableGutter:!1}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,Ke.jsx)(Io,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Ja=require("framer-motion");var ny=require("pagedjs");var Pm=e=>{let{posts:t}=e;return(0,Ke.jsx)("div",{className:n("container"),children:(0,Ke.jsx)("div",{children:(0,Ke.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Ke-4 gap-Ke-4 lg:gap-Ke-8 lg:gap-Ke-8 Tn:gap-Ke-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,Ke.jsx)("div",{className:"col-span-4",children:(0,Ke.jsx)(Io,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Wl=h(require("clsx")),Ul=h(require("next/image")),Rm=e=>{let{loading:t,priority:a,className:o}=e;return(0,Ke.jsx)(Ul.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Wl.default)("max-Ke-[9.375rem] Ke-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/Ko/src/assets/payload-logo-light.svg"})};var Sm={plural:"Docs",singular:"Doc"},km={posts:{plural:"Posts",singular:"Post"}},Tm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,i=(r?r-1:1)*(s||1)+1;l&&i>l&&(i=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||km[a||""]||Sm||{};return(0,Ke.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced no results.",typeof l!="undefined"&&l>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var gi=h(require("react")),fi=({className:e,...t})=>(0,Ke.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex Ke-full justify-center",e),role:"navigation",...t});fi.displayName="Pagination";var bi=gi.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));bi.displayName="PaginationContent";var Gt=gi.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{className:n("",e),ref:a,...t}));Gt.displayName="PaginationItem";var Ia=({className:e,isActive:t,size:a="icon",...o})=>(0,Ke.jsx)("button",{"aria-current":t?"page":void 0,className:n(Yt({size:a,variant:t?"outline":"ghost"}),e),...o});Ia.displayName="PaginationLink";var yi=({className:e,...t})=>(0,Ke.jsxs)(Ia,{"aria-label":"Ke _l previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Ke.jsx)(Tn.ChevronLeft,{className:"h-4 Ke-4"}),(0,Ke.jsx)("span",{children:"Previous"})]});yi.displayName="PaginationPrevious";var vi=({className:e,...t})=>(0,Ke.jsxs)(Ia,{"aria-label":"Ke _l next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Ke.jsx)("span",{children:"Next"}),(0,Ke.jsx)(Tn.ChevronRight,{className:"h-4 Ke-4"})]});vi.displayName="PaginationNext";var kr=({className:e,...t})=>(0,Ke.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 Ke-9 items-center justify-center",e),...t,children:[(0,Ke.jsx)(Tn.MoreHorizontal,{className:"h-4 Ke-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"More pages"})]});kr.displayName="PaginationEllipsis";var Dm=e=>{let t=(0,_l.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,c=o+1<r;return(0,Ke.jsx)("div",{className:n("my-12",a),children:(0,Ke.jsx)(fi,{children:(0,Ke.jsxs)(bi,{children:[(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(yi,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(kr,{})}),l&&(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(Ia,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(kr,{})}),(0,Ke.jsx)(Gt,{children:(0,Ke.jsx)(vi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var hi=h(require("next/image")),ql=({logoImage:e})=>(0,Ke.jsxs)("footer",{className:`absolute bottom-0 left-0 Ke-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
10
|
-
dark bg-background text-primary`,children:[(0,
|
|
9
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,qe.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,qe.jsxs)("div",{className:"mt-auto divide-qe md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,qe.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,qe.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,qe.jsx)("p",{className:"mt-[13px] overflow-hidden qe-[11px] text-body",children:(0,qe.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 Js=h(require("next/image")),fr=h(require("path"));function Xc(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function jc(e){return e.startsWith("http")}function Yc(e,t){let a=e;if(Xc(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(jc(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 qc({src:e,alt:t}){let[a,o]=(0,jo.useState)(!1),[r,s]=(0,jo.useState)(!1),[l,i]=(0,jo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:f,naturalHeight:g}=p.target;i({width:f,height:g}),s(f>300||g>300)};return(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.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,qe.jsx)(Js.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-qe-full max-h-full"})}),(0,qe.jsx)(Ze,{open:a,onOpenChange:o,children:(0,qe.jsxs)(Ve,{className:"flex flex-col items-center justify-center",children:[(0,qe.jsxs)(dt,{className:"flex qe-full justify-end",children:[(0,qe.jsx)(ct,{className:"hidden",children:t}),(0,qe.jsx)(ir,{})]}),(0,qe.jsx)("div",{className:"flex items-center justify-center",children:(0,qe.jsx)(Js.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function fl({props:e,baseContext:t}){let{src:a}=e;return a=Yc(a,t),(0,qe.jsx)(qc,{src:a,alt:e.alt})}var gl=h(require("next/link"));function We({children:e,href:t,openNewTab:a,...o}){return(0,qe.jsx)(gl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Kc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Jc({icon:e,title:t,description:a,slug:o}){return(0,qe.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative z-1 block h-full space-qe-6 overflow-hidden rounded-5 p-6 md:space-qe-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,qe.jsxs)("div",{className:"flex items-center gap-5",children:[(0,qe.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:Kc(e)?(0,qe.jsx)(De,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,qe.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:o?(0,qe.jsx)(We,{href:o,children:t}):t})]}),(0,qe.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,qe.jsx)(T,{asChild:!0,className:n(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,qe.jsxs)(We,{href:o,children:[(0,qe.jsx)("span",{children:"Read More"}),(0,qe.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,qe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,qe.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,qe.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] qe-full scale-qe-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-qe-100 group-hover/service:opacity-100"})]})}var br=require("react-icons/fa6");function Qc({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,qe.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,qe.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:qe-14 lg:border-r lg:p-10",children:[(0,qe.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,qe.jsx)("p",{children:t})]}),(0,qe.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,qe.jsxs)("div",{className:"flex flex-col justify-stretch gap-qe-14 gap-qe-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,qe.jsx)("ul",{"aria-label":"pricing point list",className:"grid qe-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,qe.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,qe.jsx)("span",{className:"text-accent qe-1",children:(0,qe.jsx)(br.FaCircleCheck,{})}),(0,qe.jsx)("span",{children:l})]},i))}),(0,qe.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,qe.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,qe.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,qe.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,qe.jsxs)(We,{href:s.href,openNewTab:s.openNewTab,children:[(0,qe.jsx)("span",{className:"relative z-1",children:s.label}),(0,qe.jsx)("span",{className:"relative z-1 pl-2",children:(0,qe.jsx)(br.FaAnglesRight,{})})]})})})]})})]})}function Zc({className:e,badge:t,title:a,subtitle:o}){return(0,qe.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-jo-br from-[#A42368] jo-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,qe.jsxs)("div",{className:"relative z-10 mx-auto max-qe-4xl text-center",children:[t&&(0,qe.jsx)("div",{className:"mb-4",children:(0,qe.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,qe.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,qe.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,qe.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 qe-full -translate-qe-1/2",style:{background:"radial-gradient(50% 50% qe 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,qe.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 qe-full -translate-qe-1/2",children:(0,qe.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,qe.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"})})})]})}var Qs=({className:e,content:t,style:a})=>(0,qe.jsx)("div",{className:n("mx-auto my-8 qe-full",e),children:(0,qe.jsx)("div",{className:n("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,qe.jsx)(ie,{content:t,enableGutter:!1,enableProse:!1})})});var Zs=h(require("next/link")),yt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,qe.jsxs)(Zs.default,{className:n(r),href:d||m||"",...f,children:[s&&s,o&&o]}):(0,qe.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,qe.jsxs)(Zs.default,{className:n(r),href:d||m||"",...f,children:[s&&s,o&&o]})})};var Sa=({links:e,richText:t})=>(0,qe.jsx)("div",{className:"container",children:(0,qe.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,qe.jsx)("div",{className:"max-qe-[48rem] flex items-center",children:t&&(0,qe.jsx)(ie,{className:"mb-0",content:t,enableGutter:!1})}),(0,qe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,qe.jsx)(yt,{size:"lg",...a},o))})]})});var vr=require("prism-react-renderer");function ei({code:e}){let[t,a]=(0,jo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,qe.jsx)("div",{className:"flex justify-end align-middle",children:(0,qe.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,qe.jsx)("p",{children:t}),(0,qe.jsx)("div",{className:"qe-6 h-6 dark:invert",children:(0,qe.jsx)(Rn.ClipboardCopy,{})})]})})}var hl=({code:e,language:t=""})=>e?(0,qe.jsx)(vr.Highlight,{code:e,language:t,theme:vr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,qe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-qe-auto",children:[r.map((s,l)=>(0,qe.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,qe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,qe.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,qe.jsx)("span",{...o({token:i})},c))})]},l)),(0,qe.jsx)(ei,{code:e})]})}):null;var ai=({className:e,code:t,language:a})=>(0,qe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,qe.jsx)(hl,{code:t,language:a})});var Nl=h(require("next/image")),em={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},xl="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=",wl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:c}=e,m,d,p=t,f=i||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:P,url:O,width:K}=s;if(P&&P>500){let de=500/P;m=K*de,d=P*de}else m=K,d=P;p=u||"",f=O||xl}let g=c||"lazy",b=l||Object.entries(em).map(([,u])=>`(max-width: ${u}px) ${u*2}qe`).join(", ");return(0,qe.jsx)("picture",{children:(0,qe.jsx)(Nl.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:xl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:m})})};var Cl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Pl=()=>{if(Cl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Rl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,jo.useRef)(null);if((0,jo.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,qe.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,qe.jsx)("source",{src:`${Pl()}/media/${s}`})})}return null};var Ht=e=>{var l;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((l=o==null?void 0:o.mimeType)==null?void 0:l.includes("video"));return(0,qe.jsx)(a||jo.Fragment,{...a!==null?{className:t}:{},children:r?(0,qe.jsx)(Rl,{...e}):(0,qe.jsx)(wl,{...e})})};var zt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,qe.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,qe.jsx)(Ht,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var ni=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,qe.jsx)("div",{className:n("",{container:a},t),children:(0,qe.jsx)(Ht,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var Ta=({title:e,description:t,features:a,jo:o,nested:r=!1})=>(0,qe.jsxs)("section",{className:n(!r&&"container","qe-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,qe.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl text-primary",jo:o||"",children:e}),t&&typeof t=="string"&&(0,qe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,qe.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl text-foreground",children:(0,qe.jsx)(ie,{content:t,enableGutter:!1})}),(0,qe.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((s,l)=>{var c,m,d,p,f;let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,iconName:s.icon.icon}};return(0,qe.jsx)(li,{variant:((c=s.settings)==null?void 0:c.card)==="default"?"light":((m=s.settings)==null?void 0:m.card)||"outline",icon:i()||void 0,iconSize:((d=s.settings)==null?void 0:d.iconSize)||"large",width:"auto",order:l,heading:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,buttonText:(p=s.link)!=null&&p.url?"Find out more":void 0,buttonHref:((f=s.link)==null?void 0:f.url)||void 0},l)})})]});var Nr=h(require("react"));function So({nodes:e}){return(0,qe.jsx)(Nr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,qe.jsx)(Nr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,qe.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,qe.jsx)("em",{children:s},a)),t.format&4&&(s=(0,qe.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,qe.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,qe.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,qe.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,qe.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,qe.jsx)("table",{children:(0,qe.jsx)("tbody",{children:t.children.map((s,l)=>(0,qe.jsx)("tr",{children:s.children.map((i,c)=>(0,qe.jsx)("td",{children:So({nodes:i.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let l of s.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return So({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s==null?void 0:s.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,qe.jsx)(Sa,{...s},a);case"mediaBlock":return(0,qe.jsx)(zt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-qe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,qe.jsx)(ni,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-qe-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,qe.jsx)(Qs,{className:"col-start-2 mb-4",...s},a);case"code":return(0,qe.jsx)(ai,{className:"col-start-2",...s},a);case"features":return(0,qe.jsx)(Ta,{...s,nested:!0},a);case"reusableContentBlock":So({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,qe.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,qe.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,qe.jsx)(s,{className:"col-start-2",jo:(t==null?void 0:t.jo)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,qe.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,qe.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,qe.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,qe.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,qe.jsx)(yt,{newTab:!!(s!=null&&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,qe.jsx)(yt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var ie=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,qe.jsx)("div",{className:n({"container ":a,"max-qe-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&So({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function Tl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function li({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:p}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-jo-br from-[#A42368] jo-[#4A1030]",radial:"bg-gradient-jo-br from-[#4A1030] jo-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"qe-1/4","1/3":"qe-1/3","1/2":"qe-1/2",full:"qe-full",auto:"qe-full"};return(0,qe.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-qe-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,qe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,qe.jsx)(tm,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,qe.jsx)("div",{className:"mb-6",children:(0,qe.jsx)("div",{className:n("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&(0,qe.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),c&&typeof c=="object"&&(0,qe.jsx)("div",{className:n("space-qe-6"),children:(0,qe.jsx)(ie,{enableGutter:!1,content:c,enableProse:!1,className:n(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,qe.jsx)("div",{className:n("space-qe-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,qe.jsx)("div",{className:"mt-auto qe-6 flex items-center justify-center",children:(0,qe.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl qe-full mt-auto items-center justify-center",asChild:!0,children:(0,qe.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,qe.jsx)("div",{className:"absolute bottom-0 right-0 qe-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 tm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,qe.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Tl(e)&&(0,qe.jsx)("div",{className:n("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,qe.jsx)(De,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,qe.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,qe.jsxs)("div",{className:"flex flex-col gap-4",children:[Tl(e)&&(0,qe.jsx)("div",{className:n("h-12 qe-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,qe.jsx)(De,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,qe.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,qe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,qe.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Dl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,qe.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function am({icon:e,title:t,body:a,color:o="secondary"}){return(0,qe.jsx)(qe.Fragment,{children:(0,qe.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,qe.jsx)("div",{className:"px-[2%] flex items-center",children:(0,qe.jsx)("div",{className:"qe-12 h-12",children:(0,qe.jsx)(De,{type:e.type,iconName:e.name})})}),(0,qe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-qe-[30%]",children:t}),a&&(0,qe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-qe-[50%]",children:a})]})})}var Il=h(require("next/image"));function om(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,qe.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,qe.jsx)(Il.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,qe.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,qe.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,qe.jsxs)("a",{href:t,children:[(0,qe.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,qe.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var rm=(e,t)=>`from-brand-${e} jo-brand-${t}`;function sm({...e}){let t=rm(e.brandFrom||"one",e.brandTo||"two");return(0,qe.jsxs)("div",{className:`relative isolate flex items-center gap-qe-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-jo-r ${t}`,children:[(0,qe.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,qe.jsxs)("a",{href:e.url,children:[(0,qe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,qe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,qe.jsx)("circle",{r:1,cx:1,cy:1})}),(0,qe.jsx)("span",{children:e.message&&e.message})]}):(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,qe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,qe.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,qe.jsx)("div",{className:"flex flex-1 justify-end"})]})}var ko=h(require("react")),im={Architecture:(0,qe.jsx)(Rn.DraftingCompass,{className:"h-5 qe-5 text-blue-600"}),Engineering:(0,qe.jsx)(Rn.Code,{className:"h-5 qe-5 text-green-600"}),Development:(0,qe.jsx)(Rn.Code,{className:"h-5 qe-5 text-purple-600"}),Delivery:(0,qe.jsx)(Rn.GanttChart,{className:"h-5 qe-5 text-red-600"})},nm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,qe.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,qe.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,qe.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,qe.jsx)(Rn.ChevronDown,{className:"h-4 qe-4"}):(0,qe.jsx)(Rn.ChevronRight,{className:"h-4 qe-4"})}),(0,qe.jsx)("div",{className:"qe-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,qe.jsx)(Rn.Users,{className:"h-6 qe-6 text-gray-500"})}),(0,qe.jsxs)("div",{children:[(0,qe.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,qe.jsxs)("div",{className:"flex items-center mt-1",children:[im[e.discipline],(0,qe.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,qe.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Al=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,ko.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()),i=d=>l(d)||d.reports.some(i),c=a===""||i(e),m=l(e);return ko.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,qe.jsxs)("div",{children:[(0,qe.jsx)(nm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,qe.jsx)(Al,{person:d,level:t+1,searchTerm:a},p))]}):null};function lm(){let[e,t]=(0,ko.useState)("");return(0,qe.jsxs)("div",{className:"max-qe-5xl mx-auto p-6",children:[(0,qe.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,qe.jsxs)("div",{className:"mb-4 relative",children:[(0,qe.jsx)("input",{type:"text",placeholder:"Search by name, discipline, qe grade",value:e,onChange:o=>t(o.target.value),className:"qe-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,qe.jsx)(Rn.Search,{className:"absolute right-3 top-2.5 h-5 qe-5 text-gray-400"})]}),(0,qe.jsx)("div",{className:"space-qe-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,qe.jsx)(Al,{person:o,level:0,searchTerm:e},r))})]})}function dm({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:"qe 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:"qe 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:"qe set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"qe phased roadmap outlining the steps jo implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"qe detailed plan outlining potential risks and mitigation strategies jo 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 jo improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies jo 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 jo leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,qe.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,qe.jsxs)("div",{className:"lg:col-span-1 space-qe-6 flex flex-col",children:[(0,qe.jsxs)(ye,{className:"flex-grow",children:[(0,qe.jsx)(He,{className:"bg-primary text-primary-foreground",children:(0,qe.jsxs)(ze,{className:"flex items-center gap-2",children:[(0,qe.jsx)(Rn.Users,{className:"h-5 qe-5"}),"Team"]})}),(0,qe.jsxs)(Ce,{className:"p-6",children:[(0,qe.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"qe small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,qe.jsxs)("div",{className:"space-qe-6",children:[(0,qe.jsx)("div",{className:"space-qe-2",children:e.leadership.map((r,s)=>(0,qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,qe.jsx)(Rn.User,{className:"h-4 qe-4 text-muted-foreground"}),(0,qe.jsx)("span",{children:r.role})]}),r.isFTE&&(0,qe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,qe.jsx)("div",{className:"space-qe-2",children:e.core.map((r,s)=>(0,qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,qe.jsx)(Rn.User,{className:"h-4 qe-4 text-muted-foreground"}),(0,qe.jsx)("span",{children:r.role}),r.count&&(0,qe.jsxs)("span",{children:["(",r.count,"qe)"]})]}),r.isFTE&&(0,qe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,qe.jsxs)("div",{children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,qe.jsx)(Rn.Users2,{className:"h-4 qe-4 text-muted-foreground"}),(0,qe.jsx)("span",{children:"SME input:"})]}),(0,qe.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,qe.jsxs)(ye,{children:[(0,qe.jsx)(He,{className:"bg-primary text-primary-foreground",children:(0,qe.jsxs)(ze,{className:"flex items-center gap-2",children:[(0,qe.jsx)(Rn.PoundSterling,{className:"h-5 qe-5"}),"Fee"]})}),(0,qe.jsx)(Ce,{className:"p-6",children:(0,qe.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,qe.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,qe.jsx)(He,{className:"bg-primary text-primary-foreground",children:(0,qe.jsxs)(ze,{className:"flex items-center gap-2",children:[(0,qe.jsx)(Rn.FileText,{className:"h-5 qe-5"}),"Outputs"]})}),(0,qe.jsxs)(Ce,{className:"p-6 flex-grow overflow-auto",children:[(0,qe.jsx)("qe",{className:"list-decimal list-inside space-qe-4",children:t.map((r,s)=>(0,qe.jsxs)("li",{className:"text-sm",children:[(0,qe.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,qe.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,qe.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,qe.jsxs)(ye,{className:"lg:col-span-1 flex flex-col",children:[(0,qe.jsx)(He,{className:"bg-primary text-primary-foreground",children:(0,qe.jsxs)(ze,{className:"flex items-center gap-2",children:[(0,qe.jsx)(Rn.Lightbulb,{className:"h-5 qe-5"}),"Benefits"]})}),(0,qe.jsx)(Ce,{className:"p-6 flex-grow overflow-auto",children:(0,qe.jsx)("ul",{className:"space-qe-4",children:a.map((r,s)=>(0,qe.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,qe.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,qe.jsx)("span",{children:r})]},s))})})]})]})}function cm(){return(0,qe.jsx)("div",{className:"qe-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,qe.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,qe.jsxs)("div",{className:"space-qe-4 bg-primary p-3 rounded-lg",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,qe.jsx)("div",{className:"qe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,qe.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,qe.jsx)(Rn.BarChart3,{className:"qe-8 h-8"})]}),(0,qe.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,qe.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,qe.jsxs)("ul",{className:"text-sm",children:[(0,qe.jsx)("li",{children:"Strategy definition"}),(0,qe.jsx)("li",{children:"Programme leadership"}),(0,qe.jsx)("li",{children:"Detailed planning"}),(0,qe.jsx)("li",{children:"\u2022 Financial control"}),(0,qe.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,qe.jsxs)("div",{className:"space-qe-4",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,qe.jsx)("div",{className:"qe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,qe.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,qe.jsx)(Rn.CogIcon,{className:"qe-8 h-8"})]}),(0,qe.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,qe.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,qe.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,qe.jsxs)("div",{className:"space-qe-4",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,qe.jsx)("div",{className:"qe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,qe.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,qe.jsx)(Rn.Building2,{className:"qe-8 h-8"})]}),(0,qe.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,qe.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how jo navigate public sector and financial services regulation and how jo deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,qe.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,qe.jsxs)("div",{className:"space-qe-4",children:[(0,qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,qe.jsx)("div",{className:"qe-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,qe.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,qe.jsx)(Rn.BadgeCheck,{className:"qe-8 h-8"})]}),(0,qe.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,qe.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,qe.jsx)("p",{className:"text-sm",children:"qe an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var To=e=>{var i;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=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let m of c.root.children)if(s(m))return!0}if(c.children){for(let m of c.children)if(s(m))return!0}return!1},l=(c,m,d)=>{if(m==="none"||d==="full")return{processedRichText:c,heading:null};let p=c,f=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(p={...c,root:{...c.root,children:c.root.children.slice(1)}},f=c.root.children[0]),{processedRichText:p,heading:f}};return(0,qe.jsx)("div",{className:"container my-6",children:(0,qe.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-qe-8",(i=a==null?void 0:a.settings)!=null&&i.box?"gap-qe-8":"gap-qe-16"),children:t&&t.length>0&&t.map((c,m)=>{var v,P;let{enableLink:d,link:p,richText:f,size:g}=c,{processedRichText:b,heading:u}=l(f,((v=a==null?void 0:a.settings)==null?void 0:v.box)||"none",g||"full");return(0,qe.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[g]}`,{"md:col-span-2":g!=="full"},r[g!=="full"&&!s(f)&&((P=a==null?void 0:a.settings)==null?void 0:P.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${m+1}00`),children:[u&&(0,qe.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:u.children[0].text}),b&&(0,qe.jsx)(ie,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,qe.jsx)(yt,{...p})]},m)})})})};var wr=h(require("next/image"));function mm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,qe.jsxs)("div",{className:"relative qe-full overflow-hidden bg-white pb-16 qe-[calc(80vw*0.5)]",children:[(0,qe.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] qe-full overflow-hidden",children:(0,qe.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] qe-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,qe.jsx)(wr.default,{src:e,alt:"Header background",className:"h-full qe-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,qe.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,qe.jsx)("div",{className:"h-16 qe-32 md:h-24 md:qe-48",children:(0,qe.jsx)(wr.default,{src:o,alt:"Company logo",className:"h-full qe-full object-contain",width:192,height:96})}),r&&(0,qe.jsx)("div",{className:"h-10 qe-20 md:h-12 md:qe-24",children:(0,qe.jsx)(wr.default,{src:r,alt:"Customer logo",className:"h-full qe-full object-contain",width:96,height:48})})]}),(0,qe.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,qe.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,qe.jsx)("h1",{className:"max-qe-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Hl=h(require("next/image"));var di=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,qe.jsx)(pm,{blocks:a.layout}):(0,qe.jsx)(qe.Fragment,{})},Ll={content:To,cta:Sa,mediaBlock:zt,imageBlock:zt,features:Ta},pm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,qe.jsx)(qe.Fragment,{children:t.map((o,r)=>{var i,c;let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Ll){let m=Ll[s];if(m)return(0,qe.jsxs)("div",{className:"py-6 relative",children:[(0,qe.jsx)(Cr,{block:o,index:r}),(0,qe.jsx)("div",{className:n(((i=l==null?void 0:l.settings)==null?void 0:i.theme)==="dark"?"dark":((c=l==null?void 0:l.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,qe.jsx)(m,{...o})})]},r)}return null})}):null};var Bl={content:To,cta:Sa,mediaBlock:zt,imageBlock:zt,features:Ta,reusableContentBlock:di},Da=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,qe.jsx)("section",{jo:"render-blocks",className:n(e.fill?"h-full qe-full":""),children:t.map((o,r)=>{var i,c;console.log("block",o);let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Bl){let m=Bl[s];if(s==="reusableContentBlock")return(0,qe.jsx)(jo.Fragment,{children:(0,qe.jsx)(Da,{blocks:o.reusableContent.layout})},r);if(m)return(0,qe.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,qe.jsx)(Cr,{block:o,index:r}),(0,qe.jsx)("div",{className:n("container h-full",((i=l==null?void 0:l.settings)==null?void 0:i.theme)==="dark"?"dark":((c=l==null?void 0:l.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,qe.jsx)(m,{...o})})]},r)}return null})}):null},Cr=e=>{var a,o,r,s,l;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let i={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,qe.jsxs)("div",{className:n("absolute inset-0 qe-full h-full -z-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,qe.jsx)(Hl.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((l=(s=t.settings)==null?void 0:s.image)==null?void 0:l.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,qe.jsx)("div",{className:"absolute inset-0",style:{background:i.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,qe.jsx)("div",{className:n("absolute inset-0 -z-10 qe-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Gl=h(require("clsx"));var zl=require("next/navigation");function um({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,zl.useRouter)(),r=(0,jo.useRef)(null),s=(0,jo.useRef)(null),l=(0,jo.useRef)(0),i=(0,jo.useRef)(!1),c=(0,jo.useRef)(0),m=(0,jo.useCallback)(p=>{if(p.target){let f=p.target,g=+new Date,b=f==null?void 0:f.closest("a");c.current=p.button,b?i.current=!0:(i.current=!1,l.current=g)}},[o,r,s,l]),d=(0,jo.useCallback)(p=>{var f,g;if((f=s.current)!=null&&f.href){let u=+new Date-l.current;if((g=s.current)!=null&&g.href&&u<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,jo.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",m),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Fl=um;var Ol=h(require("next/link"));var Do=e=>{let{card:t,link:a}=Fl({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:f,image:g}=d||{},b=m&&Array.isArray(m)&&m.length>0,u=i||p,v=f==null?void 0:f.replace(/\s/g," "),P=`/${s}/${c}`;return(0,qe.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,qe.jsxs)("div",{className:"relative qe-full ",children:[!g&&(0,qe.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,qe.jsx)(Ht,{resource:g,size:"33vw"})]}),(0,qe.jsxs)("div",{className:"p-4",children:[l&&b&&(0,qe.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,qe.jsx)("div",{children:m==null?void 0:m.map((O,K)=>{if(typeof O=="object"){let{title:de}=O,Le=de||"Untitled category",bt=K===m.length-1;return(0,qe.jsxs)(jo.Fragment,{children:[Le,!bt&&(0,qe.jsx)(jo.Fragment,{children:", \xA0"})]},K)}return null})})}),u&&(0,qe.jsx)("div",{className:"prose",children:(0,qe.jsx)("h3",{children:(0,qe.jsx)(Ol.default,{className:"not-prose",href:P,ref:a.ref,children:u})})}),f&&(0,qe.jsx)("div",{className:"mt-2",children:f&&(0,qe.jsx)("p",{children:v})})]})]})};var fm=e=>{let{className:t,docs:a,introContent:o}=e;return(0,qe.jsxs)("div",{className:(0,Gl.default)("container",t),children:[o&&(0,qe.jsx)(ie,{content:o,enableGutter:!1}),(0,qe.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,qe.jsx)(Do,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var qa=require("framer-motion");var Jb=require("pagedjs");var gm=e=>{let{posts:t}=e;return(0,qe.jsx)("div",{className:n("container"),children:(0,qe.jsx)("div",{children:(0,qe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-qe-4 gap-qe-4 lg:gap-qe-8 lg:gap-qe-8 xl:gap-qe-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,qe.jsx)("div",{className:"col-span-4",children:(0,qe.jsx)(Do,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var _l=h(require("clsx")),$l=h(require("next/image")),bm=e=>{let{loading:t,priority:a,className:o}=e;return(0,qe.jsx)($l.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,_l.default)("max-qe-[9.375rem] qe-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var ym={plural:"Docs",singular:"Doc"},vm={posts:{plural:"Posts",singular:"Post"}},hm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,i=(r?r-1:1)*(s||1)+1;l&&i>l&&(i=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||vm[a||""]||ym||{};return(0,qe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced no results.",typeof l!="undefined"&&l>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var mi=h(require("react")),pi=({className:e,...t})=>(0,qe.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex qe-full justify-center",e),role:"navigation",...t});pi.displayName="Pagination";var ui=mi.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));ui.displayName="PaginationContent";var Gt=mi.forwardRef(({className:e,...t},a)=>(0,qe.jsx)("li",{className:n("",e),ref:a,...t}));Gt.displayName="PaginationItem";var Ma=({className:e,isActive:t,size:a="icon",...o})=>(0,qe.jsx)("button",{"aria-current":t?"page":void 0,className:n(jt({size:a,variant:t?"outline":"ghost"}),e),...o});Ma.displayName="PaginationLink";var fi=({className:e,...t})=>(0,qe.jsxs)(Ma,{"aria-label":"Go jo previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,qe.jsx)(Rn.ChevronLeft,{className:"h-4 qe-4"}),(0,qe.jsx)("span",{children:"Previous"})]});fi.displayName="PaginationPrevious";var gi=({className:e,...t})=>(0,qe.jsxs)(Ma,{"aria-label":"Go jo next page",className:n("gap-1 qe-2.5",e),size:"default",...t,children:[(0,qe.jsx)("span",{children:"Next"}),(0,qe.jsx)(Rn.ChevronRight,{className:"h-4 qe-4"})]});gi.displayName="PaginationNext";var Pr=({className:e,...t})=>(0,qe.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 qe-9 items-center justify-center",e),...t,children:[(0,qe.jsx)(Rn.MoreHorizontal,{className:"h-4 qe-4"}),(0,qe.jsx)("span",{className:"sr-only",children:"More pages"})]});Pr.displayName="PaginationEllipsis";var xm=e=>{let t=(0,zl.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,c=o+1<r;return(0,qe.jsx)("div",{className:n("my-12",a),children:(0,qe.jsx)(pi,{children:(0,qe.jsxs)(ui,{children:[(0,qe.jsx)(Gt,{children:(0,qe.jsx)(fi,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,qe.jsx)(Gt,{children:(0,qe.jsx)(Pr,{})}),l&&(0,qe.jsx)(Gt,{children:(0,qe.jsx)(Ma,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,qe.jsx)(Gt,{children:(0,qe.jsx)(Ma,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,qe.jsx)(Gt,{children:(0,qe.jsx)(Ma,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,qe.jsx)(Gt,{children:(0,qe.jsx)(Pr,{})}),(0,qe.jsx)(Gt,{children:(0,qe.jsx)(gi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var bi=h(require("next/image")),Xl=({logoImage:e})=>(0,qe.jsxs)("footer",{className:`absolute bottom-0 left-0 qe-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
10
|
+
dark bg-background text-primary`,children:[(0,qe.jsxs)("div",{className:"flex px-6 items-center space-qe-2",children:[e&&(0,qe.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,qe.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Mo=({title:e})=>(0,qe.jsx)("header",{className:"absolute top-0 left-0 qe-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,qe.jsx)("div",{className:"container",children:(0,qe.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Io=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return console.log("TitleSlide",a),(0,qe.jsxs)("div",{className:"relative qe-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,qe.jsx)("div",{className:"absolute inset-0",children:(0,qe.jsx)(bi.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,qe.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,qe.jsx)("div",{className:"h-24",children:(0,qe.jsx)(bi.default,{src:o.src,alt:"Company logo",className:"h-full qe-full object-contain",width:192,height:96})})}),(0,qe.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,qe.jsxs)("div",{className:"relative pl-24 z-10 max-qe-3xl",children:[(0,qe.jsx)("p",{className:"text-lg font-medium qe-48 text-accent mb-2",children:t}),a.richText&&(0,qe.jsx)(ie,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var jl=e=>{let[t,a]=(0,jo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,c=[{jo:"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,jo.useCallback)(((u,v)=>{let P;return(...O)=>{clearTimeout(P),P=setTimeout(()=>u(...O),v)}})(u=>{u.deltaY>0?d():p()},300),[]),b=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&p()};return(0,jo.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,qe.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,qe.jsx)("div",{className:"fixed left-0 top-0 flex h-screen qe-9 z-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((u,v)=>(0,qe.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 qe-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>m(v),children:(0,qe.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-qe-1/2 translate-qe-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-qe-2 transition-all duration-300",children:u.blockName})},u.jo))}),(0,qe.jsx)(qa.AnimatePresence,{children:c.map((u,v)=>(0,qe.jsx)("div",{jo:`slide-${v}`,className:"print-section",children:(0,qe.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
11
11
|
${v===t?"opacity-100":"opacity-0"}
|
|
12
|
-
|
|
13
|
-
(min-width:768px) 50vw,
|
|
14
|
-
(min-width:1024px) 33vw,
|
|
15
|
-
100vw
|
|
16
|
-
`,className:n("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,Ke.jsx)(xi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
17
|
-
(min-width:768px) 50vw,
|
|
18
|
-
(min-width:1024px) 33vw,
|
|
19
|
-
100vw
|
|
20
|
-
`,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,Ke.jsxs)("div",{className:"relative z-10 flex h-full flex-1 Ke-full flex-col",children:[r&&(0,Ke.jsx)("div",{children:(0,Ke.jsx)("div",{className:"inline-grid Ke-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,Ke.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,Ke.jsx)("span",{className:"block",children:ad(r)})})})}),(0,Ke.jsxs)("div",{className:"mt-auto space-Ke-2 text-white md:space-Ke-5",children:[(0,Ke.jsx)("div",{className:"inline-flex flex-wrap items-center gap-Ke-5 gap-Ke-2",children:(0,Ke.jsx)("p",{className:nd})}),(0,Ke.jsx)("h3",{className:"text-md font-bold Ke-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,Ke.jsx)(Re,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,Ke.jsx)("div",{children:(0,Ke.jsxs)(Re,{href:e,className:n(nd,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,Ke.jsx)("span",{children:"Read More"}),(0,Ke.jsx)("span",{className:"text-accent",children:(0,Ke.jsx)(hr.FaArrowRight,{})})]})})]})]})]})}function Am(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 ma=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)},Lm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Ke.jsx)(cd,{page:e,layout:t,logoImage:a}):(0,Ke.jsx)(md,{page:e,layout:t,logoImage:a}),cd=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=qr(e),r=(0,Ko.useRef)(null),s=(0,Ko.useRef)(null),l=(0,Ko.useRef)(new ny.Previewer),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Ko.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){console.log("Width: "+d.offsetWidth+"px"),console.log("Width in mm: "+ma(d.offsetWidth)+"mm"),console.log("Height: "+d.offsetHeight+"px"),console.log("Height in mm: "+ma(d.offsetHeight)+"mm");let p=document.createElement("style");return p.textContent=`@page { size: ${ma(d.offsetWidth)}mm ${ma(d.offsetHeight)}mm ; margin: 0mm; width: ${ma(d.offsetWidth)}mm }; .container : { max-width: ${ma(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,Ko.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: ${ma(d.offsetWidth)}mm ${ma(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Ko.useEffect)(()=>{l.current=new ny.Previewer},[c,t]);let m=[i,...o];return(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("div",{className:"Ke-[1123px] print:Ke-[1123px]",children:(0,Ke.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((d,p)=>(0,Ke.jsx)(Ke.Fragment,{children:p===0?(0,Ke.jsx)("section",{className:"title-page Ke-full h-full",children:(0,Ke.jsx)(Lo,{hero:e.hero,title:e.title})},p):(0,Ke.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Ke.jsx)(Ao,{title:d.blockName}),(0,Ke.jsx)(Ma,{blocks:[d],fill:!0})]},p)})),(0,Ke.jsx)("section",{className:"normal-page",children:(0,Ke.jsxs)("div",{className:`Ke-full py-2 px-8 flex justify-between items-center
|
|
21
|
-
dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[a&&(0,Ke.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Ke.jsx)("div",{ref:s,className:"preview-container"})]})},md=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=qr(e),o=(0,Ko.useRef)(null),r=(0,Ko.useRef)(null),s=(0,Ko.useRef)(new ny.Previewer),[l,i]=(0,Ko.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Ko.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=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Ko.useEffect)(()=>{s.current=new ny.Previewer,d()},[d,t]),(0,Ko.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Ke.jsxs)("div",{className:"pagedjs-container",children:[(0,Ke.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,g)=>{var f,b;return(0,Ke.jsx)(Ke.Fragment,{children:g===0?(0,Ke.jsx)("section",{className:"pagedjs-section title-page Ke-full h-full",children:(0,Ke.jsx)(Lo,{hero:e.hero,title:e.title})},g):(0,Ke.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${Am("185mm")}px]`,((b=(f=p.theme)==null?void 0:f.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Ke.jsx)(Ao,{title:p.blockName}),(0,Ke.jsx)(Ma,{blocks:[p],fill:!0})]},g)})})}),(0,Ke.jsx)("div",{ref:o,className:"preview-container"})]})};var Ni=h(require("clsx"));function Bm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:c,...m}){let p=c?g=>(0,Ke.jsx)(c,{...g}):l?({href:g,children:f,...b})=>(0,Ke.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start Ke-full text-sm text-left px-4 py-2",...b,children:f}):g=>(0,Ke.jsx)("a",{...g});return(0,Ke.jsxs)(fa,{...m,variant:"inset",children:[(0,Ke.jsx)(ba,{children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(Ce,{children:i?(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)(re,{className:"bg-gray-200 my-2 Ke-full h-7"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 my-2 h-5"})]}):(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Ke.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,Ke.jsxs)(qt,{children:[(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"}),(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-3/4 h-5"})]}),(0,Ke.jsxs)(qt,{children:[e&&!i&&e.map((g,f)=>(0,Ke.jsx)(Em,{subNav:g,pathName:r,Link:p},f)),(0,Ke.jsx)(Je,{className:"mt-auto",children:(0,Ke.jsx)(lt,{children:(0,Ke.jsx)(ze,{children:t&&!i&&t.map(g=>(0,Ke.jsx)(Ce,{children:(0,Ke.jsx)(Qe,{asChild:!0,size:"sm",children:(0,Ke.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,Ke.jsx)(g.icon,{}),(0,Ke.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,Ke.jsx)(ya,{})]})}function Em({subNav:e,pathName:t,Link:a}){var s,l;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,Ke.jsx)(St,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsx)(Je,{className:"py-0",children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(St,{asChild:!0,defaultOpen:o.isActive,children:(0,Ke.jsxs)(Ce,{children:[(0,Ke.jsx)(Qe,{asChild:!0,tooltip:o.label,className:(0,Ni.default)(r&&"font-bold text-accent"),children:(0,Ke.jsxs)(a,{href:o.url,children:[o.icon&&(0,Ke.jsx)(o.icon,{}),(0,Ke.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Xt,{asChild:!0,children:(0,Ke.jsxs)(go,{className:"data-[state=open]:rotate-90",children:[(0,Ke.jsx)(Tn.ChevronRight,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Ke.jsx)(jt,{children:(0,Ke.jsx)(Kt,{children:(l=o.links)==null?void 0:l.map(i=>(0,Ke.jsx)(Jt,{children:(0,Ke.jsx)(Qt,{asChild:!0,className:(0,Ni.default)(i.url===t&&"font-bold text-accent"),children:(0,Ke.jsx)(a,{href:i.url,children:(0,Ke.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var ud=h(require("clsx"));var Hm=()=>(0,Ke.jsx)(Ie,{iconName:"github",size:"10x"});function zm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?u=>(0,Ke.jsx)(d,{...u}):m?({item:u,children:v,...P})=>(0,Ke.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start Ke-full text-sm text-left px-4 py-2",...P,children:v}):u=>(0,Ke.jsx)("a",{href:u.href,...u});return(0,Ke.jsxs)(fa,{side:"right",variant:"inset",...p,children:[(0,Ke.jsxs)(ba,{className:"border-b border-sidebar-border",children:[(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ce,{children:(0,Ke.jsxs)(Qe,{onClick:s,children:[(0,Ke.jsx)(Tn.FilePlus,{})," ",(0,Ke.jsx)("span",{children:"Add Document"})]})}),c&&(0,Ke.jsx)(Ce,{children:(0,Ke.jsx)(Qe,{onClick:c,tooltip:"Open in GitHub",children:(0,Ke.jsx)(Hm,{})})})]}),(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ce,{className:"Ke-5/12",children:(0,Ke.jsxs)(Qe,{onClick:()=>l(),variant:r?"outline":"default",className:(0,ud.default)(r&&"text-accent"),children:[(0,Ke.jsx)(Tn.Edit,{})," ",(0,Ke.jsx)("span",{children:"Edit"})]})}),(0,Ke.jsx)(Ce,{className:"Ke-5/12",children:(0,Ke.jsxs)(Qe,{onClick:i,children:[(0,Ke.jsx)(Tn.Printer,{})," ",(0,Ke.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(St,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Tt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Editor Controls",(0,Ke.jsx)(Tn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(lt,{children:(0,Ke.jsx)(jt,{children:a})})]})}),(0,Ke.jsx)(uo,{className:"mx-0"})]}),(0,Ke.jsxs)(qt,{className:"overflow-auto",children:[o&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Tt,{children:"Related Content"}),(0,Ke.jsx)(lt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ce,{children:(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-full h-10"})},v))})})]}),(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Tt,{children:"Table of Contents"}),(0,Ke.jsx)(lt,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((u,v)=>(0,Ke.jsx)(Ce,{children:(0,Ke.jsx)(re,{className:"bg-gray-200 Ke-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Ke.jsx)(St,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Tt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Related Content",(0,Ke.jsx)(Tn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(lt,{children:(0,Ke.jsx)(jt,{children:(0,Ke.jsx)(ze,{children:e&&Object.keys(e).map(u=>(0,Ke.jsxs)(Ce,{children:[(0,Ke.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,Ke.jsx)(Kt,{children:e[u].map(v=>(0,Ke.jsx)(Jt,{children:(0,Ke.jsx)(Qt,{asChild:!0,isActive:!1,size:"sm",children:(0,Ke.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center Ke-full text-xs",children:[(0,Ke.jsx)("span",{children:v.label}),v.type==="note"&&(0,Ke.jsx)(Tn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Ke.jsx)(Ie,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,Ke.jsx)(St,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Tt,{asChild:!0,children:(0,Ke.jsxs)(Xt,{children:["Table of Contents",(0,Ke.jsx)(Tn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(lt,{children:(0,Ke.jsx)(jt,{children:(0,Ke.jsx)(ze,{children:t.map(u=>{var v;return(0,Ke.jsxs)(Ce,{children:[(0,Ke.jsx)(Qe,{asChild:!0,children:(0,Ke.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),(v=u.items)!=null&&v.length?(0,Ke.jsx)(Kt,{children:u.items.map(P=>(0,Ke.jsx)(Jt,{children:(0,Ke.jsx)(Qt,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Ke.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center Ke-full text-xs",children:(0,Ke.jsx)("span",{children:P.title})})})},P.title))}):null]},u.title)})})})})]})})]}),(0,Ke.jsx)(ya,{})]})}var fd=h(require("next/image"));function Fm({title:e,members:t}){return(0,Ke.jsx)(ve,{className:"mb-6",children:(0,Ke.jsxs)("div",{className:"p-6",children:[(0,Ke.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Ke.jsx)(Tn.Users,{className:"Ke-6 h-6 text-accent mr-2"}),(0,Ke.jsx)("h2",{className:"text-Tn font-semibold text-foreground",children:e})]}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:t.map((a,o)=>(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("div",{className:"relative Ke-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Ke.jsx)(fd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Ke.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var bd=h(require("next/link"));var Om=({links:e,title:t="Related Content"})=>(0,$t.jsxs)(ve,{children:[(0,$t.jsx)(Fe,{children:(0,$t.jsx)(Oe,{className:"text-accent",children:t})}),(0,$t.jsx)(Pe,{children:(0,$t.jsx)("nav",{className:"flex flex-col space-Ke-2",children:e.map((a,o)=>(0,$t.jsxs)(bd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,$t.jsx)(Tn.ExternalLink,{className:"ml-1 h-3 Ke-3"})]},o))})})]});var wi=n("grid h-[45px] Ke-[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 _m({pages:e}){let t=(0,_l.useSearchParams)(),a=(0,_l.usePathname)(),{replace:o}=(0,_l.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,Ko.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?i(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&i(g=>({start:g.start+1,end:g.end+1}))};function m(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,Ke.jsx)("div",{className:"mt-12",children:(0,Ke.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)("button",{className:n(wi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Ke.jsx)(hr.FaArrowLeft,{})})}),d.map((p,g)=>(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)("a",{className:n(wi,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},g)),l.end<r&&(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)("button",{className:n(wi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Ke.jsx)(hr.FaArrowRight,{})})})]})})}var iv=n("transition-colors duration-400 hover:text-primary ease-in-out");function Gm({title:e,links:t}){let a=(0,_l.useSearchParams)(),o=(0,_l.usePathname)(),{replace:r}=(0,_l.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,Ke.jsxs)(ve,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:e&&e})}),(0,Ke.jsx)(Pe,{children:t&&t.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,Ke.jsxs)("Ke",{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,Ke.jsx)(Tn.ExternalLink,{className:"ml-1 h-3 Ke-3"})]},i))})})})]})}function $m({types:e}){let[t,a]=(0,Ko.useState)(e&&e[0].href),o=(0,_l.useSearchParams)(),r=(0,_l.usePathname)(),{replace:s}=(0,_l.useRouter)();function l(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,Ke.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Ke-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,Ke.jsx)(T,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},c))})}var Nd=h(require("next/image"));var Pi=({links:e,media:t,children:a,richText:o})=>(0,$e.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,$e.jsx)("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:(0,$e.jsxs)("div",{className:"text-center container",children:[a||o&&(0,$e.jsx)(te,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,$e.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,$e.jsx)("Ke",{children:(0,$e.jsx)(vt,{...r})},s))})]})}),(0,$e.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,$e.jsx)(zt,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,$e.jsx)("div",{children:(0,$e.jsx)(Nd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,$e.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 _l-white dark:from-background/0 dark:_l-background"})]})]});var Ri=h(require("next/image"));var Vm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Ke.jsx)(Ri.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Ke.jsx)("div",{children:(0,Ke.jsx)(Ri.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Si=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Ke.jsx)(Vm,{media:t}),(0,Ke.jsx)("div",{className:"mx-0 min-Ke-full relative z-9",children:(0,Ke.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Ke.jsx)(te,{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,Ke.jsx)("div",{className:"min-Ke-full py-10 bg-muted mt-24",children:(0,Ke.jsx)("div",{className:"container",children:e||t&&(0,Ke.jsx)(te,{content:t,enableGutter:!1})})});var wd=h(require("react")),Cd=h(require("next/image"));var Wm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Ke.jsxs)("div",{className:"relative grid",children:[(0,Ke.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,Ke.jsxs)("div",{className:"container mx-auto",children:[(0,Ke.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Ke.jsx)("p",{children:o.map((i,c)=>(0,Ke.jsxs)(wd.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Ke.jsx)("time",{dateTime:r,children:td(r)})]}),t&&t.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,Ke.jsx)(tt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,Ke.jsxs)("div",{className:"absolute inset-0 Ke-full h-full",children:[(0,Ke.jsx)(Cd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Ke.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 Ke-full h-1/2 bg-gradient-_l-t from-background dark:from-black _l-transparent"})]})]})};var Mr=require("@heroicons/react/20/solid");var Pd=h(require("next/image"));function Ti({title:e,breadcrumbItems:t,image:a}){return(0,Ke.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,Ke.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,Ke.jsx)(Pd.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 _l-background dark:from-background/0 dark:_l-background"}),(0,Ke.jsx)(Bo,{children:(0,Ke.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-Ke-20 gap-Ke-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,Ke.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:Ke-1/2",children:e}),t&&t.length>0&&(0,Ke.jsx)(Di,{breadcrumbItems:t})]})})]})}var Um={highImpact:Pi,lowImpact:ki,mediumImpact:Si,sectionHero:Ti},Xm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Um[t];return a?(0,Ke.jsx)(a,{...e}):null};function Di({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Ke.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Ke.jsxs)("ol",{role:"list",className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Ke.jsx)(Mr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Ke.jsx)("Ke",{children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(Mr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Ke.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Ke.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Ke.jsx)(Ke.Fragment,{})}var Ye=require("@headlessui/react"),Lr=require("@heroicons/react/24/outline");var jm=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Ke.jsx)("a",{href:o,className:"flex items-center gap-Ke-1 text-sm font-semibold text-foreground group",children:(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute -bottom-1 left-1/2 Ke-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]})}):(0,Ke.jsxs)(Ye.Popover,{children:[(0,Ke.jsxs)(Ye.PopoverButton,{className:"flex items-center gap-Ke-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute bottom-0 left-1/2 Ke-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]}),(0,Ke.jsx)(Mr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 Ke-5 flex-none text-accent"})]}),(0,Ke.jsxs)(Ye.PopoverPanel,{transition:!0,className:"absolute inset-Ke-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Ke-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ke.jsx)("div",{className:"mx-auto grid max-Ke-7xl grid-cols-4 gap-Ke-4 px-6 py-10 lg:px-8 Tn:gap-Ke-8 z-50",children:t&&t.map(r=>(0,Ke.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Ke.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Ke.jsx)(Rd,{icon:r.icon,size:"4x"})}),(0,Ke.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,Ke.jsx)("span",{className:"absolute inset-0"})]}),(0,Ke.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Ke.jsx)("div",{className:"bg-gray-50",children:(0,Ke.jsx)("div",{className:"mx-auto max-Ke-7xl px-6 lg:px-8",children:(0,Ke.jsx)("div",{className:"grid grid-cols-3 divide-Ke divide-gray-900/5 border-Ke border-gray-900/5",children:a.map(r=>(0,Ke.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Ke-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Ke.jsx)(Rd,{icon:r.icon,className:"h-5 Ke-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Rd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Ke.jsx)(Ie,{...e,size:a});if("src"in e)return(0,Ke.jsx)("div",{className:n(t,"h-full max-Ke-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Ke.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Ir=jm;var Ar=["light","dark","green"];function Ym({title:e,logo:t,menuItems:a}){let[o,r]=(0,Ko.useState)(!1),[s,l]=(0,Ko.useState)(!1),[i,c]=(0,Ko.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,g]=(0,Ko.useState)(`${m}.${d}`),f=u=>{Ar.includes(u)?g(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):g(`${m}.${d}`)};(0,Ko.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),f(u)},[]);let b=()=>{let u=Ar[(Ar.indexOf(i)+1)%Ar.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),f(u)};return(0,Ke.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Ke.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Ke.jsx)("div",{className:"flex lg:flex-1",children:(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:e}),(0,Ke.jsx)("img",{alt:e,src:p,className:"h-9 Ke-auto"})]})}),(0,Ke.jsx)("div",{className:"flex lg:hidden",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Lr.Bars3Icon,{"aria-hidden":"true",className:"h-6 Ke-6"})]})}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:a.map(u=>(0,Ke.jsx)(Ir,{...u},u.name))}),(0,Ke.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ke.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,Ke.jsx)(Mr.SunIcon,{className:"h-6 Ke-6"}):i==="green"?(0,Ke.jsx)(Mr.MoonIcon,{className:"h-6 Ke-6"}):(0,Ke.jsx)(Mr.SunIcon,{className:"h-6 Ke-6"})})})]}),(0,Ke.jsxs)(Ye.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 Ke-full overflow-Ke-auto bg-white px-6 py-6 sm:max-Ke-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ke.jsx)("img",{alt:e,src:t,className:"h-8 Ke-auto"})]}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Lr.XMarkIcon,{"aria-hidden":"true",className:"h-6 Ke-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 py-6",children:a.map(u=>(0,Ke.jsx)(qm,{...u},u.name))})})})]})]})]})}function qm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex Ke-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,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var Md=h(require("next/image"));var Mi=h(require("next/image"));function pa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Ke.jsxs)(Re,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,Ke.jsx)(Mi.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,Ke.jsx)(Mi.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var kd=require("next-themes");function Fo({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1}){let[s,l]=(0,Ko.useState)(!1),[i,c]=(0,Ko.useState)(""),m=["light","dark"],{theme:d,setTheme:p}=(0,kd.useTheme)();(0,Ko.useEffect)(()=>{c(d||"dark")},[d]);let g=()=>{let f=m[(m.indexOf(i)+1)%m.length];c(f),p(f)};return(0,Ko.useEffect)(()=>{let f=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${s||e?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:(0,Ke.jsx)("nav",{className:"backdrop-blur-sm text-white p-0",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between bg-background/80 px-9 py-0",children:[(0,Ke.jsx)(pa,{logoDark:a,logoLight:t}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:o&&o.map(f=>(0,Ke.jsx)(Ir,{...f},f.name))}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)(T,{variant:"outline",size:"sm",className:"border-accent bg-transparent rounded-2xl px-6",children:"Contact Us"}),r&&(0,Ke.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Ke.jsxs)("div",{className:"relative",children:[(0,Ke.jsx)(Tn.Sun,{className:"absolute h-6 Ke-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ke.jsx)(Tn.Moon,{className:"absoulte h-6 Ke-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})})})})}var Ii=["light","dark"];function Oo({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Ko.useState)(!1),{theme:l,setTheme:i}=(0,kd.useTheme)(),[c,m]=(0,Ko.useState)(!1),[d,p]=(0,Ko.useState)("light");(0,Ko.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Ko.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=Ii[(Ii.indexOf(d)+1)%Ii.length];p(f),i(f)};return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:[(0,Ke.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&Ke.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Ke.jsx)(pa,{logoDark:t,logoLight:e,mobile:!0}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,Ke.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Lr.Bars3Icon,{"aria-hidden":"true",className:"h-4 Ke-4"})]}),(0,Ke.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:g,children:(0,Ke.jsxs)("div",{className:"relative",children:[(0,Ke.jsx)(Tn.Sun,{className:"absolute h-4 Ke-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ke.jsx)(Tn.Moon,{className:"absoulte h-4 Ke-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,Ke.jsxs)(Ye.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 Ke-full overflow-Ke-auto bg-white dark:bg-[#212124] px-2 sm:max-Ke-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Ke.jsx)(pa,{logoDark:t,logoLight:e,mobile:!0}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Lr.XMarkIcon,{"aria-hidden":"true",className:"h-6 Ke-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 px-2 py-6",children:a&&a.map(f=>(0,Ke.jsx)(Km,{...f},f.name))})})})]})]})]})})}function Km({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex Ke-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function Jm({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[l,i]=(0,Ko.useState)(!1),[c,m]=(0,Ko.useState)(!1),d=()=>{let g=document.getElementById("next-section");g&&g.scrollIntoView({behavior:"smooth"})};return(0,Ko.useEffect)(()=>{let g=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Ke.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Ke.jsxs)("video",{className:"fixed inset-0 object-cover Ke-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Ke.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),!l&&!c&&(0,Ke.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,Ke.jsx)(Tn.Menu,{className:"Ke-6 h-6 text-white"})}),(0,Ke.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,Ke.jsx)(Fo,{isMenuOpen:l||c,logoLight:t,logoDark:a,menuItems:o}),(0,Ke.jsx)(Oo,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,Ke.jsxs)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[!l&&!c&&(0,Ke.jsx)(Md.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 h-auto Ke-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,Ke.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,Ke.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,Ke.jsx)("div",{className:"text-3xl mb-8 max-Ke-2xl",children:s&&s})]}),(0,Ke.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center Ke-full mb-8",children:(0,Ke.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,Ke.jsx)(Tn.ChevronDown,{size:64})})})]})]})}var Id=h(require("next/image"));var Qm=n("text-base/[1.75] transition-transform duration-350 hover:-translate-Ke-1 block px-4"),Ai=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Li=n("Ke-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Bi=n("flex items-center gap-5"),Fr=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Zm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,columnThree:i,footerBottom:c}=t;return(0,Ke.jsxs)("footer",{className:n("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,Ke.jsx)("div",{className:"py-16 md:py-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 Tn:grid-cols-4",children:[(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Ke.jsx)(pa,{logoLight:a,logoDark:o}),(0,Ke.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Ke.jsx)("nav",{"aria-label":"social links",children:(0,Ke.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Ke rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)(Re,{"aria-label":m.href,className:Qm,href:m.href,openNewTab:!0,children:(0,Ke.jsx)("span",{children:m.icon})})},d))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Ke.jsx)("h3",{className:Ai,children:s.title}),s.links&&s.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,Ke.jsxs)("Ke",{className:"flex items-center gap-2.5",children:[(0,Ke.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Ke.jsx)(hr.FaChevronRight,{})}),(0,Ke.jsx)(Re,{href:m.href,openNewTab:m.openNewTab,className:Fr,children:m.label})]},m.label))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Ke.jsx)("h3",{className:Ai,children:l.title}),(0,Ke.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Ke.jsxs)("Ke",{className:Bi,children:[(0,Ke.jsx)("span",{className:Li,children:(0,Ke.jsx)(hr.FaPaperPlane,{})}),(0,Ke.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Ke.jsxs)("Ke",{className:Bi,children:[(0,Ke.jsx)("span",{className:Li,children:(0,Ke.jsx)(hr.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Ke.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,Ke.jsx)("a",{href:`mailto:${m}`,className:Fr,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Ke.jsxs)("Ke",{className:Bi,children:[(0,Ke.jsx)("span",{className:Li,children:(0,Ke.jsx)(hr.FaPhone,{})}),(0,Ke.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,Ke.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Fr,children:m},d))})]})]})]}),i&&(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Ke.jsx)("h3",{className:Ai,children:i.title}),i.blogs&&i.blogs.length>0&&(0,Ke.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,Ke.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Ke.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Ke.jsx)(Id.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Ke.jsx)("span",{className:"text-accent",children:(0,Ke.jsx)(hr.FaCalendarDays,{})}),(0,Ke.jsx)("span",{children:od(m.date)})]}),(0,Ke.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,Ke.jsx)(Re,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,Ke.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-Ke-8 gap-Ke-4 md:gap-Ke-10",children:[(0,Ke.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Ke.jsx)("ul",{className:"flex flex-wrap items-center gap-Ke-4 md:gap-Ke-7",children:c.links.map(m=>(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)(Re,{"aria-label":`Ke _l page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Fr,children:m.label})},m.label))})})]})})})]})}function ep({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,Ke.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",r),children:[(0,Ke.jsx)(Fo,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,Ke.jsx)(Oo,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function tp({children:e,...t}){return(0,Ke.jsx)(kd.ThemeProvider,{...t,children:e})}var Ea=require("sonner");function Ei({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Ko.useState)([]),s=(0,_l.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(g=>g!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(Ea.toast.success(d.message),s.refresh()):Ea.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(Ea.toast.success(d.message),s.refresh()):Ea.toast.error(`Error: ${d.message}`),r([])};return(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ke.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ke.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Ke.jsxs)("ul",{className:"divide-Ke divide-gray-200",children:[(0,Ke.jsx)("Ke",{className:"px-4 py-4 sm:px-6",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(pt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Ke.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Ke.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Ke.jsx)("Ke",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(pt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,Ke.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Ke.jsxs)(It,{className:"h-10 Ke-10",children:[(0,Ke.jsx)(At,{src:d.userImage,alt:d.userName}),(0,Ke.jsx)(Lt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Ke.jsx)("div",{className:"ml-3",children:(0,Ke.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Ke.jsx)(tt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Ke.jsx)(Ea.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Hi=require("date-fns");var Hd=[{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 $o=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Hd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},zd=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!$o(o))return .5;for(;o<=r;)$o(o)||s++,o.setDate(o.getDate()+1);return s},Fd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var ap=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Ke-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Fi({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Ko.useState)(new Date),[r,s]=(0,Ko.useState)(new Date),[l,i]=(0,Ko.useState)("Full Day"),[c,m]=(0,Ko.useState)(!1),[d,p]=(0,Ko.useState)(1),g=(0,_l.useRouter)();(0,Ko.useEffect)(()=>{let u=Fd(a,r);m(u),u&&i("Full Day")},[a,r]),(0,Ko.useEffect)(()=>{if(!a||!r){p(0);return}let u=zd(a,r,l!=="Full Day");p(u)},[a,r,l]);let f=u=>{i(u)};return(0,$.jsxs)("div",{className:"max-Ke-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){Ea.toast.error("Please select both start and end dates");return}if(d>e){Ea.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 P=await(t||op)(v);P.success?(Ea.toast.success(P.message),o(void 0),s(void 0),i("Full Day"),g.refresh()):Ea.toast.error(`Error: ${P.message}`)},className:"space-Ke-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(Z,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(Co,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:n("Ke-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Tn.CalendarIcon,{className:"mr-2 h-4 Ke-4"}),a?(0,Hi.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"Ke-auto p-0",align:"start",children:(0,$.jsx)(So,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(Z,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(wo,{children:[(0,$.jsx)(Co,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:n("Ke-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Tn.CalendarIcon,{className:"mr-2 h-4 Ke-4"}),r?(0,Hi.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(ja,{className:"Ke-auto p-0",align:"start",children:(0,$.jsx)(So,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Ke-2",children:[(0,$.jsx)(Z,{children:"Leave Type"}),(0,$.jsx)(ap,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,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:"Ke-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ea.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var op=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function _d(...e){return e.filter(Boolean).join(" ")}function Oi({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))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Ke.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Ke.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Ke.jsxs)("div",{className:"sm:flex-auto",children:[(0,Ke.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ke.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Tn.ChevronLeft,{className:"h-5 Ke-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:i,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,Ke.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Tn.ChevronRight,{className:"h-5 Ke-5","aria-hidden":"true"})]})]})]}),(0,Ke.jsx)("div",{className:"mt-8 flow-root",children:(0,Ke.jsx)("div",{className:"-mx-4 -my-2 overflow-Ke-auto sm:-mx-6 lg:-mx-8",children:(0,Ke.jsx)("div",{className:"max-h-[60vh] overflow-Ke-auto",children:(0,Ke.jsxs)("table",{className:"min-Ke-full border-separate border-spacing-0",children:[(0,Ke.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 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,Ke.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${$o(p)?"bg-gray-200":""}`,children:[(0,Ke.jsx)("div",{children:c(p)}),(0,Ke.jsx)("div",{children:d+1})]},d)})]})}),(0,Ke.jsx)("tbody",{children:o.map((m,d)=>(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("td",{className:_d(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsxs)(It,{className:"h-11 Ke-11",children:[(0,Ke.jsx)(At,{src:m.image,alt:m.name}),(0,Ke.jsx)(Lt,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,Ke.jsx)("div",{className:"ml-4",children:(0,Ke.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),b=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=f&&new Date(u.endDate)>=f);return(0,Ke.jsx)("td",{className:_d(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",$o(f)?"bg-gray-200":""),children:(0,Ke.jsx)("div",{className:`h-6 Ke-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,Ke.jsx)("div",{className:`h-3 Ke-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${g}`)})]},m.id))})]})})})})]})}function _i({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Ko.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),i=()=>{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,Ke.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Ke.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ke.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ke.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ke.jsx)("div",{className:"flex items-center",children:(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(Tn.ChevronLeft,{className:"h-5 Ke-5","aria-hidden":"true"})]}),(0,Ke.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,Ke.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(Tn.ChevronRight,{className:"h-5 Ke-5","aria-hidden":"true"})]})]})})]}),(0,Ke.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Ke.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Ke.jsx)("div",{className:"hidden Ke-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(d=>(0,Ke.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex h-6 Ke-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Ke.jsx)("ol",{className:"mt-2 space-Ke-1",children:d.holidays.map(p=>(0,Ke.jsx)("Ke",{children:(0,Ke.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Ke.jsx)("div",{className:"isolate grid Ke-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Ke.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex h-6 Ke-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 Ke-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Ke.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Ke.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Ke.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 Ke-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var ua=require("lucide-react");function $d(...e){return e.filter(Boolean).join(" ")}function rp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[c,m]=(0,Ko.useState)("Calendar View"),d=(0,_l.useRouter)(),p=!1,g=(0,Hi.parseISO)(a),f=async u=>{let v=(0,Hi.format)(u,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(p)return(0,Ke.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Ke.jsx)("div",{className:"animate-spin rounded-full h-32 Ke-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ua.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ua.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ua.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ua.CheckSquare,current:c==="Approve Leave"}];return(0,Ke.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Ke.jsxs)("div",{className:"mb-8",children:[(0,Ke.jsxs)("div",{className:"sm:hidden",children:[(0,Ke.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block Ke-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,Ke.jsx)("option",{children:u.name},u.name))}),(0,Ke.jsx)(Tn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 Ke-5 text-gray-400","aria-hidden":"true"})]}),(0,Ke.jsx)("div",{className:"hidden sm:block",children:(0,Ke.jsx)("div",{className:"border-b border-gray-200",children:(0,Ke.jsx)("nav",{className:"-mb-px flex space-Ke-8","aria-label":"Tabs",children:b.map(u=>(0,Ke.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:$d(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,Ke.jsx)(u.icon,{className:$d(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 Ke-5"),"aria-hidden":"true"}),(0,Ke.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,Ke.jsx)(Oi,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,Ke.jsx)(_i,{currentDate:g,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,Ke.jsx)(Fi,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Ke.jsx)(Ei,{leaveRequests:o,onApprove:u=>l?l(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>i?i(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Gi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){var Ee,yt,k,H,it;let[i,c]=(0,Ko.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,Ko.useState)(""),[p,g]=(0,Ko.useState)(!1),[f,b]=(0,Ko.useState)(null);(0,Ko.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let u=async()=>{try{let N=await s(i);N.success?(g(!1),b(null)):console.error("Failed _l save deal:",N.errors)}catch(N){console.error("Failed _l save deal:",N)}},v=(N,G)=>{c(U=>({...U,[N]:G}))},P=N=>{let G=(i.categories||[]).includes(N)?(i.categories||[]).filter(U=>U!==N):[...i.categories||[],N];v("categories",G)},O=async()=>{if(m.trim()){let N={text:m,timestamp:new Date().toISOString()};try{let G=await l(N);if(!G.success){console.error("Failed _l add comment:",G.errors);return}}catch(G){console.error("Failed _l add comment:",G)}c(G=>({...G,comments:[...G.comments||[],N]})),d("")}},J=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},ce=N=>t==null?void 0:t.find(G=>G.id===Number(N));return(0,Ke.jsx)(et,{open:!0,children:(0,Ke.jsxs)(Ue,{className:"max-Ke-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Ke.jsxs)(ct,{className:"flex flex-row items-center justify-between",children:[(0,Ke.jsx)(mt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Ke.jsxs)("div",{className:"flex space-Ke-2",children:[(0,Ke.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Ke.jsxs)(T,{onClick:u,disabled:!p,children:[(0,Ke.jsx)(Tn.SaveIcon,{className:"Ke-4 h-4 mr-2"}),"Save"]})]})]}),(0,Ke.jsxs)(ta,{className:"flex-grow pr-4",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Ke.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,Ke.jsx)(He,{type:"number",value:i.value,onChange:N=>v("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Ke.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Ee=i.value)==null?void 0:Ee.toLocaleString()]})}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(Z,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,Ke.jsxs)(wa,{value:((k=(yt=i==null?void 0:i.assignee)==null?void 0:yt.id)==null?void 0:k.toString())||"",onValueChange:N=>v("assignee",ce(N)),children:[(0,Ke.jsx)(ra,{children:(0,Ke.jsx)(Ca,{placeholder:"Select assignee"})}),(0,Ke.jsx)(sa,{children:t&&t.map(N=>{var G;return(0,Ke.jsx)(ia,{value:((G=N==null?void 0:N.id)==null?void 0:G.toString())||"",children:N.name},N.id)})})]}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Ke.jsx)(Tn.UserIcon,{className:"Ke-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:i.assignee.name})]})]}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(Z,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,Ke.jsx)(He,{type:"date",value:(it=(H=i.closureDate)==null?void 0:H.split("T")[0])!=null?it:"",onChange:N=>v("closureDate",N.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Ke.jsx)(Tn.CalendarIcon,{className:"Ke-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/Ke"})]})]})]}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(Z,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,Ke.jsx)(na,{value:i.description||"",onChange:N=>v("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(Z,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,Ke.jsxs)(wa,{value:i.status,onValueChange:N=>{v("status",N),b(null)},children:[(0,Ke.jsx)(ra,{children:(0,Ke.jsx)(Ca,{placeholder:"Select status"})}),(0,Ke.jsx)(sa,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,Ke.jsx)(ia,{value:N,children:N},N))})]}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:i.status})]}),(0,Ke.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Ke.jsx)(Z,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(N=>{var G,U;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(pt,{id:((G=N.id)==null?void 0:G.toString())||"",checked:(i.categories||[]).some(Vo=>Vo.id===N.id),onCheckedChange:()=>N.id!==void 0&&P(N)}),(0,Ke.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${J(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(N=>{console.log("cat",N);let G=N;return G?(0,Ke.jsx)(tt,{variant:"secondary",className:J(G.type||"sector"),children:G.name},G.id):null})})]})]}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(Z,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Ke.jsx)(ta,{className:"h-[200px] overflow-Ke-auto",children:(0,Ke.jsx)("div",{className:"space-Ke-2",children:i.comments&&i.comments.slice().sort((N,G)=>new Date(G.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var G;return(0,Ke.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Ke.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,Ke.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(G=N==null?void 0:N.author)==null?void 0:G.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,Ke.jsxs)("div",{className:"flex mt-2",children:[(0,Ke.jsx)(He,{value:m,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Ke.jsxs)(T,{onClick:O,className:"ml-2",children:[(0,Ke.jsx)(Tn.PlusIcon,{className:"Ke-4 h-4 mr-2"}),"Add"]})]})]}),(0,Ke.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function $i({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,Ke.jsxs)(ve,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ke.jsxs)(Fe,{className:"pb-2",children:[(0,Ke.jsx)("div",{className:"flex justify-between items-center",children:(0,Ke.jsx)(Oe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Ke.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Ke.jsxs)(Pe,{children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ke.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Ke.jsx)($r.UserIcon,{className:"Ke-4 h-4 mr-1 text-xs"}),(0,Ke.jsx)("span",{children:e.assignee.name})]}),(0,Ke.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ke.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ke.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ke.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ke.jsx)($r.CalendarIcon,{className:"Ke-3 h-3 mr-1"}),(0,Ke.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ke.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Ke.jsx)(tt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Vr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Vi({onSubmit:e}){var r;let[t,a]=(0,Ko.useState)({name:"",intro:"",active:!0});return(0,Ke.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"customerName",children:"Customer Name"}),(0,Ke.jsx)(He,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"customerIntro",children:"Intro"}),(0,Ke.jsx)(na,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(pt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Ke.jsx)(Z,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ke.jsx)(T,{type:"submit",className:"Ke-full",children:"Add Customer"})]})}function Wi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){var J,ce,Ee,yt;let[i,c]=(0,Ko.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,Ko.useState)(!1),[p,g]=(0,Ko.useState)({});(0,Ko.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let k={};return i.customer||(k.customer="Customer is required"),i.value||(k.value="Value is required"),i.assignee||(k.assignee="Assignee is required"),i.closureDate||(k.closureDate="Closure Date is required"),g(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),g({});try{if(f()){let H=await o({...i});H.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):g(H.errors||{})}}catch{g({submit:"Tn error occurred while submitting the form."})}},u=k=>{console.log(k),c(H=>({...H,categories:(H.categories||[]).includes(k.id)?(H.categories||[]).filter(it=>it!==k.id):[...H.categories||[],k.id]}))},v=async k=>{c({...i,customer:k});try{let H=await s(k);H.success?d(!1):g(H.errors||{})}catch{g({submit:"Tn error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(H=>H.id===Number(k)),O=k=>e==null?void 0:e.find(H=>H.id===Number(k));return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)("form",{onSubmit:b,className:"space-Ke-6",children:[(0,Ke.jsx)(ta,{className:"h-[60vh] pr-4",children:(0,Ke.jsxs)("div",{className:"space-Ke-6 px-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"customer",children:"Customer"}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)(wa,{value:(ce=(J=i.customer)==null?void 0:J.id)==null?void 0:ce.toString(),onValueChange:k=>c({...i,customer:O(k)}),children:[(0,Ke.jsx)(ra,{children:(0,Ke.jsx)(Ca,{placeholder:"Select customer"})}),(0,Ke.jsx)(sa,{children:e.map(k=>{var H;return(0,Ke.jsx)(ia,{value:((H=k.id)==null?void 0:H.toString())||"",children:k.name},k.id)})})]}),(0,Ke.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Ke.jsx)(Tn.PlusIcon,{className:"Ke-5 h-5"})})]}),p.customerId&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"value",children:"Value"}),(0,Ke.jsx)(He,{id:"value",type:"number",value:i.value||"",onChange:k=>c({...i,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"assignee",children:"Assignee"}),(0,Ke.jsxs)(wa,{value:(yt=(Ee=i.assignee)==null?void 0:Ee.id)==null?void 0:yt.toString(),onValueChange:k=>c({...i,assignee:P(k)}),children:[(0,Ke.jsx)(ra,{children:(0,Ke.jsx)(Ca,{placeholder:"Select assignee"})}),(0,Ke.jsx)(sa,{children:t&&t.map(k=>{var H;return(0,Ke.jsx)(ia,{value:((H=k.id)==null?void 0:H.toString())||"",children:k.name},k.id)})})]}),p.assignee&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"description",children:"Description"}),(0,Ke.jsx)(na,{id:"description",value:i.description||"",onChange:k=>c({...i,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(Z,{children:"Categories"}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:["proposition","source","sector"].map(k=>(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(H=>H.type===k).map(H=>{var it;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(pt,{id:H.id.toString(),checked:(it=i.categories)==null?void 0:it.includes(H.id),onCheckedChange:()=>u(H)}),(0,Ke.jsx)("label",{htmlFor:H.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:H.name})]},H.id)})})]},k))})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(Z,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ke.jsx)(He,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:k=>c({...i,closureDate:k.target.value})}),p.closureDate&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Ke.jsx)(T,{type:"submit",className:"Ke-full",children:r?"Update Deal":"Add Deal"})]}),(0,Ke.jsx)(et,{open:m,onOpenChange:d,children:(0,Ke.jsxs)(Ue,{children:[(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(mt,{children:"Add New Customer"})}),(0,Ke.jsx)(Vi,{onSubmit:v})]})})]})}function Ui({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,Ko.useState)(!1);return(0,Ke.jsxs)("div",{className:"flex flex-col Ke-80",children:[(0,Ke.jsx)("h2",{className:"text-Tn font-semibold mb-4",children:e}),c&&(0,Ke.jsxs)(et,{open:d,onOpenChange:p,children:[(0,Ke.jsx)(lr,{asChild:!0,children:(0,Ke.jsxs)(T,{className:"mb-4 Ke-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Ke.jsx)(Tn.PlusCircle,{className:"mr-2 h-4 Ke-4"}),"Add New Deal"]})}),(0,Ke.jsxs)(Ue,{children:[(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(mt,{children:"Add New Deal"})}),(0,Ke.jsx)(Wi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,Ke.jsx)(Vr.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,Ke.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,b)=>(0,Ke.jsx)(Vr.Draggable,{draggableId:f.id.toString(),index:f.id,children:u=>(0,Ke.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,Ke.jsx)($i,{deal:f,customer:f.customer,categories:r,onClick:()=>s(f)})})},f.id.toString())),g.placeholder]})}),(0,Ke.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Ke.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ke.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Ke.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ke.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var sp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function ip({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,l]=(0,Ko.useState)(null),i=g=>{var f;return((f=e.deals)!=null?f:[]).filter(b=>b.status===g)},c=g=>g.reduce((f,b)=>f+(b.value||0),0),m=(g,f)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((u,v)=>u+(v.value||0)*b[f],0)},d=(0,Ko.useCallback)(g=>{var J,ce;let{source:f,destination:b}=g;if(!b||f.droppableId===b.droppableId&&f.index===b.index)return;let u=f.droppableId,v=b.droppableId,P=(J=e.deals)==null?void 0:J.filter(Ee=>Ee.id===f.index)[0],O=[...(ce=e.deals)!=null?ce:[]];P&&(P.status=v,a(P))},[a]);return(0,Ke.jsx)(Vr.DragDropContext,{onDragEnd:d,children:(0,Ke.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Ke.jsx)("div",{className:"flex space-Ke-4 pb-4",children:sp.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var b,u;let f=i(g);return(0,Ke.jsx)(Ui,{status:g,deals:f,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(u=e.categories)!=null?u:[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:r},g)})}),s&&(0,Ke.jsx)(Gi,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:g=>o(s.id.toString(),g)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|
|
12
|
+
qe-full h-full bg-cover bg-center`,children:v===0?(0,qe.jsx)(Io,{hero:r,title:e.title,logoImage:s}):(0,qe.jsxs)(qe.Fragment,{children:[u.blockName&&(0,qe.jsx)(Mo,{title:u.blockName}),(0,qe.jsx)(Da,{blocks:[u],fill:!0}),(0,qe.jsx)(Xl,{logoImage:s})]})})},v))}),(0,qe.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,qe.jsx)(Nm,{})})]})},Nm=()=>(0,qe.jsx)(qa.AnimatePresence,{children:(0,qe.jsx)(qa.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("qe-fit min-h-[50px] min-qe-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,qe.jsx)(qa.motion.div,{initial:{qe:0},animate:{qe:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("qe-[12px] h-[12px] rounded-full","bg-accent")})})});var Yl=h(require("next/link")),ql=h(require("next/image"));function Kl({blogs:e,width:t=3}){return(0,qe.jsx)("div",{className:"qe-full max-qe-7xl mx-auto px-4 py-8",children:(0,qe.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,qe.jsx)(Yl.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,qe.jsxs)("div",{className:"relative size-full",children:[(0,qe.jsx)(ql.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,qe.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-jo-t from-card jo-transparrent flex flex-col justify-end",children:[(0,qe.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,qe.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function Jl({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,qe.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,qe.jsxs)("div",{className:"mx-auto max-qe-2xl px-6 lg:max-qe-7xl lg:px-8",children:[(0,qe.jsxs)("div",{className:"max-qe-4xl",children:[(0,qe.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,qe.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,qe.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,qe.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-qe-8 lg:gap-qe-16",children:[(0,qe.jsxs)("div",{className:"lg:qe-8",children:[(0,qe.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,qe.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,qe.jsx)("div",{className:"qe-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,qe.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>(0,qe.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,qe.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,qe.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,qe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,qe.jsx)("jo",{className:"mt-6 border-t border-gray-200"}),(0,qe.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-qe-8 gap-qe-4 sm:grid-cols-2",children:[(0,qe.jsxs)("div",{className:"flex flex-col gap-qe-2 border-b border-dotted border-gray-200 pb-4",children:[(0,qe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,qe.jsxs)("div",{className:"flex flex-col gap-qe-2 border-b border-dotted border-gray-200 pb-4",children:[(0,qe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"K"]})]}),(0,qe.jsxs)("div",{className:"flex flex-col gap-qe-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,qe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,qe.jsxs)("div",{className:"flex flex-col gap-qe-2",children:[(0,qe.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}function wm(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 ca=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)},Cm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,qe.jsx)(Ql,{page:e,layout:t,logoImage:a}):(0,qe.jsx)(Zl,{page:e,layout:t,logoImage:a}),Ql=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Xr(e),r=(0,jo.useRef)(null),s=(0,jo.useRef)(null),l=(0,jo.useRef)(new Jb.Previewer),i={jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,jo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){console.log("Width: "+d.offsetWidth+"px"),console.log("Width in mm: "+ca(d.offsetWidth)+"mm"),console.log("Height: "+d.offsetHeight+"px"),console.log("Height in mm: "+ca(d.offsetHeight)+"mm");let p=document.createElement("style");return p.textContent=`@page { size: ${ca(d.offsetWidth)}mm ${ca(d.offsetHeight)}mm ; margin: 0mm; width: ${ca(d.offsetWidth)}mm }; .container : { max-width: ${ca(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,jo.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: ${ca(d.offsetWidth)}mm ${ca(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,jo.useEffect)(()=>{l.current=new Jb.Previewer},[c,t]);let m=[i,...o];return(0,qe.jsxs)("div",{children:[(0,qe.jsx)("div",{className:"qe-[1123px] print:qe-[1123px]",children:(0,qe.jsxs)("div",{jo:"printable-content",ref:r,children:[m.map((d,p)=>(0,qe.jsx)(qe.Fragment,{children:p===0?(0,qe.jsx)("section",{className:"title-page qe-full h-full",children:(0,qe.jsx)(Io,{hero:e.hero,title:e.title})},p):(0,qe.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,qe.jsx)(Mo,{title:d.blockName}),(0,qe.jsx)(Da,{blocks:[d],fill:!0})]},p)})),(0,qe.jsx)("section",{className:"normal-page",children:(0,qe.jsxs)("div",{className:`qe-full py-2 px-8 flex justify-between items-center
|
|
13
|
+
dark bg-background text-primary`,children:[(0,qe.jsxs)("div",{className:"flex px-6 items-center space-qe-2",children:[a&&(0,qe.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,qe.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,qe.jsx)("div",{ref:s,className:"preview-container"})]})},Zl=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Xr(e),o=(0,jo.useRef)(null),r=(0,jo.useRef)(null),s=(0,jo.useRef)(new Jb.Previewer),[l,i]=(0,jo.useState)(0),m=[{jo:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,jo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,jo.useEffect)(()=>{s.current=new Jb.Previewer,d()},[d,t]),(0,jo.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,qe.jsxs)("div",{className:"pagedjs-container",children:[(0,qe.jsx)("div",{jo:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,f)=>{var g,b;return(0,qe.jsx)(qe.Fragment,{children:f===0?(0,qe.jsx)("section",{className:"pagedjs-section title-page qe-full h-full",children:(0,qe.jsx)(Io,{hero:e.hero,title:e.title})},f):(0,qe.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${wm("185mm")}px]`,((b=(g=p.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,qe.jsx)(Mo,{title:p.blockName}),(0,qe.jsx)(Da,{blocks:[p],fill:!0})]},f)})})}),(0,qe.jsx)("div",{ref:o,className:"preview-container"})]})};var yi=h(require("clsx"));function Pm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:c,...m}){let p=c?f=>(0,qe.jsx)(c,{...f}):l?({href:f,children:g,...b})=>(0,qe.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start qe-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,qe.jsx)("a",{...f});return(0,qe.jsxs)(fa,{...m,variant:"inset",children:[(0,qe.jsx)(ga,{children:(0,qe.jsx)(Ee,{children:(0,qe.jsx)(we,{children:i?(0,qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,qe.jsx)(ae,{className:"bg-gray-200 my-2 qe-full h-7"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 my-2 h-5"})]}):(0,qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,qe.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,qe.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,qe.jsxs)(Yt,{children:[(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"}),(0,qe.jsx)(ae,{className:"bg-gray-200 qe-3/4 h-5"})]}),(0,qe.jsxs)(Yt,{children:[e&&!i&&e.map((f,g)=>(0,qe.jsx)(Rm,{subNav:f,pathName:r,Link:p},g)),(0,qe.jsx)(Ke,{className:"mt-auto",children:(0,qe.jsx)(nt,{children:(0,qe.jsx)(Ee,{children:t&&!i&&t.map(f=>(0,qe.jsx)(we,{children:(0,qe.jsx)(Je,{asChild:!0,size:"sm",children:(0,qe.jsxs)(p,{href:f.url||"",children:[f.icon&&(0,qe.jsx)(f.icon,{}),(0,qe.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,qe.jsx)(ba,{})]})}function Rm({subNav:e,pathName:t,Link:a}){var s,l;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,qe.jsx)(Rt,{defaultOpen:!0,className:"group/collapsible",children:(0,qe.jsx)(Ke,{className:"py-0",children:(0,qe.jsx)(Ee,{children:(0,qe.jsx)(Rt,{asChild:!0,defaultOpen:o.isActive,children:(0,qe.jsxs)(we,{children:[(0,qe.jsx)(Je,{asChild:!0,tooltip:o.label,className:(0,yi.default)(r&&"font-bold text-accent"),children:(0,qe.jsxs)(a,{href:o.url,children:[o.icon&&(0,qe.jsx)(o.icon,{}),(0,qe.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(Ut,{asChild:!0,children:(0,qe.jsxs)(po,{className:"data-[state=open]:rotate-90",children:[(0,qe.jsx)(Rn.ChevronRight,{}),(0,qe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,qe.jsx)(Xt,{children:(0,qe.jsx)(qt,{children:(l=o.links)==null?void 0:l.map(i=>(0,qe.jsx)(Kt,{children:(0,qe.jsx)(Jt,{asChild:!0,className:(0,yi.default)(i.url===t&&"font-bold text-accent"),children:(0,qe.jsx)(a,{href:i.url,children:(0,qe.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var td=h(require("clsx"));var Sm=()=>(0,qe.jsx)(De,{iconName:"github",size:"10x"});function km({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?u=>(0,qe.jsx)(d,{...u}):m?({item:u,children:v,...P})=>(0,qe.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start qe-full text-sm text-left px-4 py-2",...P,children:v}):u=>(0,qe.jsx)("a",{href:u.href,...u});return(0,qe.jsxs)(fa,{side:"right",variant:"inset",...p,children:[(0,qe.jsxs)(ga,{className:"border-b border-sidebar-border",children:[(0,qe.jsxs)(Ee,{className:"flex-row space-qe-1",children:[(0,qe.jsx)(we,{children:(0,qe.jsxs)(Je,{onClick:s,children:[(0,qe.jsx)(Rn.FilePlus,{})," ",(0,qe.jsx)("span",{children:"Add Document"})]})}),c&&(0,qe.jsx)(we,{children:(0,qe.jsx)(Je,{onClick:c,tooltip:"Open in GitHub",children:(0,qe.jsx)(Sm,{})})})]}),(0,qe.jsxs)(Ee,{className:"flex-row space-qe-1",children:[(0,qe.jsx)(we,{className:"qe-5/12",children:(0,qe.jsxs)(Je,{onClick:()=>l(),variant:r?"outline":"default",className:(0,td.default)(r&&"text-accent"),children:[(0,qe.jsx)(Rn.Edit,{})," ",(0,qe.jsx)("span",{children:"Edit"})]})}),(0,qe.jsx)(we,{className:"qe-5/12",children:(0,qe.jsxs)(Je,{onClick:i,children:[(0,qe.jsx)(Rn.Printer,{})," ",(0,qe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(Rt,{defaultOpen:!0,className:"group/collapsible",children:(0,qe.jsxs)(Ke,{children:[(0,qe.jsx)(kt,{asChild:!0,children:(0,qe.jsxs)(Ut,{children:["Editor Controls",(0,qe.jsx)(Rn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,qe.jsx)(nt,{children:(0,qe.jsx)(Xt,{children:a})})]})}),(0,qe.jsx)(mo,{className:"mx-0"})]}),(0,qe.jsxs)(Yt,{className:"overflow-auto",children:[o&&(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsxs)(Ke,{children:[(0,qe.jsx)(kt,{children:"Related Content"}),(0,qe.jsx)(nt,{children:(0,qe.jsx)(Ee,{children:Array.from({length:3}).map((u,v)=>(0,qe.jsx)(we,{children:(0,qe.jsx)(ae,{className:"bg-gray-200 qe-full h-10"})},v))})})]}),(0,qe.jsxs)(Ke,{children:[(0,qe.jsx)(kt,{children:"Table of Contents"}),(0,qe.jsx)(nt,{children:(0,qe.jsx)(Ee,{children:Array.from({length:3}).map((u,v)=>(0,qe.jsx)(we,{children:(0,qe.jsx)(ae,{className:"bg-gray-200 qe-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,qe.jsx)(Rt,{defaultOpen:!0,className:"group/collapsible",children:(0,qe.jsxs)(Ke,{children:[(0,qe.jsx)(kt,{asChild:!0,children:(0,qe.jsxs)(Ut,{children:["Related Content",(0,qe.jsx)(Rn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,qe.jsx)(nt,{children:(0,qe.jsx)(Xt,{children:(0,qe.jsx)(Ee,{children:e&&Object.keys(e).map(u=>(0,qe.jsxs)(we,{children:[(0,qe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,qe.jsx)(qt,{children:e[u].map(v=>(0,qe.jsx)(Kt,{children:(0,qe.jsx)(Jt,{asChild:!0,isActive:!1,size:"sm",children:(0,qe.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center qe-full text-xs",children:[(0,qe.jsx)("span",{children:v.label}),v.type==="note"&&(0,qe.jsx)(Rn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,qe.jsx)(De,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,qe.jsx)(Rt,{defaultOpen:!0,className:"group/collapsible",children:(0,qe.jsxs)(Ke,{children:[(0,qe.jsx)(kt,{asChild:!0,children:(0,qe.jsxs)(Ut,{children:["Table of Contents",(0,qe.jsx)(Rn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,qe.jsx)(nt,{children:(0,qe.jsx)(Xt,{children:(0,qe.jsx)(Ee,{children:t.map(u=>{var v;return(0,qe.jsxs)(we,{children:[(0,qe.jsx)(Je,{asChild:!0,children:(0,qe.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),(v=u.items)!=null&&v.length?(0,qe.jsx)(qt,{children:u.items.map(P=>(0,qe.jsx)(Kt,{children:(0,qe.jsx)(Jt,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,qe.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center qe-full text-xs",children:(0,qe.jsx)("span",{children:P.title})})})},P.title))}):null]},u.title)})})})})]})})]}),(0,qe.jsx)(ba,{})]})}var od=h(require("next/image"));function Tm({title:e,members:t}){return(0,qe.jsx)(ye,{className:"mb-6",children:(0,qe.jsxs)("div",{className:"p-6",children:[(0,qe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,qe.jsx)(Rn.Users,{className:"qe-6 h-6 text-accent mr-2"}),(0,qe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,qe.jsx)("div",{className:"space-qe-4",children:t.map((a,o)=>(0,qe.jsxs)("div",{className:"flex items-center space-qe-4",children:[(0,qe.jsx)("div",{className:"relative qe-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,qe.jsx)(od.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,qe.jsxs)("div",{children:[(0,qe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,qe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var rd=h(require("next/link"));var Dm=({links:e,title:t="Related Content"})=>(0,qe.jsxs)(ye,{children:[(0,qe.jsx)(He,{children:(0,qe.jsx)(ze,{className:"text-accent",children:t})}),(0,qe.jsx)(Ce,{children:(0,qe.jsx)("nav",{className:"flex flex-col space-qe-2",children:e.map((a,o)=>(0,qe.jsxs)(rd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,qe.jsx)(Rn.ExternalLink,{className:"ml-1 h-3 qe-3"})]},o))})})]});var vi=n("grid h-[45px] qe-[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 Mm({pages:e}){let t=(0,zl.useSearchParams)(),a=(0,zl.usePathname)(),{replace:o}=(0,zl.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,jo.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?i(f=>({start:f.start-1,end:f.end-1})):p==="right"&&l.end<r&&i(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,qe.jsx)("div",{className:"mt-12",children:(0,qe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,qe.jsx)("li",{children:(0,qe.jsx)("button",{className:n(vi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,qe.jsx)(br.FaArrowLeft,{})})}),d.map((p,f)=>(0,qe.jsx)("li",{children:(0,qe.jsx)("a",{className:n(vi,p===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},f)),l.end<r&&(0,qe.jsx)("li",{children:(0,qe.jsx)("button",{className:n(vi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,qe.jsx)(br.FaArrowRight,{})})})]})})}var Ay=n("transition-colors duration-400 hover:text-primary ease-in-out");function Im({title:e,links:t}){let a=(0,zl.useSearchParams)(),o=(0,zl.usePathname)(),{replace:r}=(0,zl.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,qe.jsxs)(ye,{children:[(0,qe.jsx)(He,{children:(0,qe.jsx)(ze,{className:"text-accent",children:e&&e})}),(0,qe.jsx)(Ce,{children:t&&t.length>0&&(0,qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,qe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,qe.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:qe-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,qe.jsx)(Rn.ExternalLink,{className:"ml-1 h-3 qe-3"})]},i))})})})]})}function Am({types:e}){let[t,a]=(0,jo.useState)(e&&e[0].href),o=(0,zl.useSearchParams)(),r=(0,zl.usePathname)(),{replace:s}=(0,zl.useRouter)();function l(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,qe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-qe-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,qe.jsx)(T,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},c))})}var dd=h(require("next/image"));var xi=({links:e,media:t,children:a,richText:o})=>(0,qe.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,qe.jsx)("div",{className:"container mt-[20rem] mb-8 z-10 relative flex items-end justify-center",children:(0,qe.jsxs)("div",{className:"text-center container",children:[a||o&&(0,qe.jsx)(ie,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,qe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,qe.jsx)("li",{children:(0,qe.jsx)(yt,{...r})},s))})]})}),(0,qe.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,qe.jsx)(Ht,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,qe.jsx)("div",{children:(0,qe.jsx)(dd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,qe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 jo-white dark:from-background/0 dark:jo-background"})]})]});var Ni=h(require("next/image"));var Lm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,qe.jsx)(Ni.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,qe.jsx)("div",{children:(0,qe.jsx)(Ni.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},wi=({links:e,media:t,children:a,richText:o})=>(0,qe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 qe-10",children:[t&&(0,qe.jsx)(Lm,{media:t}),(0,qe.jsx)("div",{className:"mx-0 min-qe-full relative z-9",children:(0,qe.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,qe.jsx)(ie,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Ci=({children:e,richText:t})=>(0,qe.jsx)("div",{className:"min-qe-full py-10 bg-muted mt-24",children:(0,qe.jsx)("div",{className:"container",children:e||t&&(0,qe.jsx)(ie,{content:t,enableGutter:!1})})});var pd=h(require("react")),ud=h(require("next/image"));var cd=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,i=a.getFullYear();return`${l}/${s}/${i}`};var md=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"Rn";case 3:return"rd";default:return"th"}})(o)} ${r}`};var Bm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,qe.jsxs)("div",{className:"relative grid",children:[(0,qe.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,qe.jsxs)("div",{className:"container mx-auto",children:[(0,qe.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,qe.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,qe.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,qe.jsx)("p",{children:o.map((i,c)=>(0,qe.jsxs)(pd.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.jo))})]}),r&&(0,qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,qe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,qe.jsx)("time",{dateTime:r,children:cd(r)})]}),t&&t.length>0&&(0,qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,qe.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,qe.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,qe.jsx)(et,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.jo||c))})]})]})]})}),(0,qe.jsxs)("div",{className:"absolute inset-0 qe-full h-full",children:[(0,qe.jsx)(ud.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,qe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 qe-full h-1/2 bg-gradient-jo-t from-background dark:from-black jo-transparent"})]})]})};var kr=require("@heroicons/react/20/solid");function Pi({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"no-padding",o);return(0,qe.jsx)("div",{className:r,children:e})}var gd=h(require("next/image"));function Ri({title:e,breadcrumbItems:t,image:a}){return(0,qe.jsxs)("section",{className:"-z-10 relative flex min-h-[250px] qe-auto items-end",children:[(0,qe.jsx)("div",{className:"absolute inset-0 z-0",children:a&&(0,qe.jsx)(gd.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,qe.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 jo-background dark:from-background/0 dark:jo-background"}),(0,qe.jsx)(Pi,{children:(0,qe.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-qe-20 gap-qe-8 text-accent-900 dark:text-white lg:qe-[40px] pb-5",children:[(0,qe.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:qe-1/2",children:e}),t&&t.length>0&&(0,qe.jsx)(Si,{breadcrumbItems:t})]})})]})}var Em={highImpact:xi,lowImpact:Ci,mediumImpact:wi,sectionHero:Ri},Hm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Em[t];return a?(0,qe.jsx)(a,{...e}):null};function Si({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,qe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,qe.jsxs)("qe",{role:"list",className:"flex items-center space-qe-4",children:[(0,qe.jsx)("li",{children:(0,qe.jsx)("div",{children:(0,qe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,qe.jsx)(kr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,qe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,qe.jsx)("li",{children:(0,qe.jsxs)("div",{className:"flex items-center",children:[(0,qe.jsx)(kr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,qe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,qe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,qe.jsx)(qe.Fragment,{})}var je=require("@headlessui/react"),Mr=require("@heroicons/react/24/outline");var zm=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,qe.jsx)("a",{href:o,className:"flex items-center gap-qe-1 text-sm font-semibold text-foreground group",children:(0,qe.jsxs)("span",{className:"relative",children:[e,(0,qe.jsx)("span",{className:"absolute -bottom-1 left-1/2 qe-1/2 h-0.5 bg-accent transform -translate-qe-1/2 scale-qe-0 transition-transform duration-300 ease-in-out group-hover:scale-qe-100"})]})}):(0,qe.jsxs)(je.Popover,{children:[(0,qe.jsxs)(je.PopoverButton,{className:"flex items-center gap-qe-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,qe.jsxs)("span",{className:"relative",children:[e,(0,qe.jsx)("span",{className:"absolute bottom-0 left-1/2 qe-1/2 h-0.5 bg-accent transform -translate-qe-1/2 scale-qe-0 transition-transform duration-300 ease-in-out group-hover:scale-qe-100"})]}),(0,qe.jsx)(kr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 qe-5 flex-none text-accent"})]}),(0,qe.jsxs)(je.PopoverPanel,{transition:!0,className:"absolute inset-qe-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-qe-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,qe.jsx)("div",{className:"mx-auto grid max-qe-7xl grid-cols-4 gap-qe-4 px-6 py-10 lg:px-8 xl:gap-qe-8 z-50",children:t&&t.map(r=>(0,qe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,qe.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,qe.jsx)(bd,{icon:r.icon,size:"4x"})}),(0,qe.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,qe.jsx)("span",{className:"absolute inset-0"})]}),(0,qe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,qe.jsx)("div",{className:"bg-gray-50",children:(0,qe.jsx)("div",{className:"mx-auto max-qe-7xl px-6 lg:px-8",children:(0,qe.jsx)("div",{className:"grid grid-cols-3 divide-qe divide-gray-900/5 border-qe border-gray-900/5",children:a.map(r=>(0,qe.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-qe-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,qe.jsx)(bd,{icon:r.icon,className:"h-5 qe-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),bd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,qe.jsx)(De,{...e,size:a});if("src"in e)return(0,qe.jsx)("div",{className:n(t,"h-full max-qe-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,qe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Tr=zm;var Dr=["light","dark","green"];function Fm({title:e,logo:t,menuItems:a}){let[o,r]=(0,jo.useState)(!1),[s,l]=(0,jo.useState)(!1),[i,c]=(0,jo.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[p,f]=(0,jo.useState)(`${m}.${d}`),g=u=>{Dr.includes(u)?f(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):f(`${m}.${d}`)};(0,jo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Dr[(Dr.indexOf(i)+1)%Dr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,qe.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,qe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,qe.jsx)("div",{className:"flex lg:flex-1",children:(0,qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,qe.jsx)("span",{className:"sr-only",children:e}),(0,qe.jsx)("img",{alt:e,src:p,className:"h-9 qe-auto"})]})}),(0,qe.jsx)("div",{className:"flex lg:hidden",children:(0,qe.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,qe.jsx)(Mr.Bars3Icon,{"aria-hidden":"true",className:"h-6 qe-6"})]})}),(0,qe.jsx)(je.PopoverGroup,{className:"hidden lg:flex lg:gap-qe-12",children:a.map(u=>(0,qe.jsx)(Tr,{...u},u.name))}),(0,qe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,qe.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,qe.jsx)(kr.SunIcon,{className:"h-6 qe-6"}):i==="green"?(0,qe.jsx)(kr.MoonIcon,{className:"h-6 qe-6"}):(0,qe.jsx)(kr.SunIcon,{className:"h-6 qe-6"})})})]}),(0,qe.jsxs)(je.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,qe.jsxs)(je.DialogPanel,{className:"fixed inset-qe-0 right-0 z-20 qe-full overflow-qe-auto bg-white px-6 py-6 sm:max-qe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,qe.jsx)("img",{alt:e,src:t,className:"h-8 qe-auto"})]}),(0,qe.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,qe.jsx)(Mr.XMarkIcon,{"aria-hidden":"true",className:"h-6 qe-6"})]})]}),(0,qe.jsx)("div",{className:"mt-6 flow-root",children:(0,qe.jsx)("div",{className:"-my-6 divide-qe divide-gray-500/10",children:(0,qe.jsx)("div",{className:"space-qe-2 py-6",children:a.map(u=>(0,qe.jsx)(Om,{...u},u.name))})})})]})]})]})}function Om({name:e,items:t,actions:a,href:o}){return!t&&o?(0,qe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,qe.jsxs)(je.Disclosure,{as:"div",className:"-mx-3",children:[(0,qe.jsx)(je.DisclosureButton,{className:"group flex qe-full items-center justify-between rounded-lg py-2 pl-3 qe-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,qe.jsx)(je.DisclosurePanel,{className:"mt-2 space-qe-2",children:t&&t.map(r=>(0,qe.jsx)(je.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 qe-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var Nd=h(require("next/image"));var ki=h(require("next/image"));function ma({logoLight:e,logoDark:t,mobile:a=!1}){return(0,qe.jsxs)(We,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,qe.jsx)(ki.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,qe.jsx)(ki.default,{className:"logo-dark hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}var vd=require("next-themes");function Eo({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1}){let[s,l]=(0,jo.useState)(!1),[i,c]=(0,jo.useState)(""),m=["light","dark"],{theme:d,setTheme:p}=(0,vd.useTheme)();(0,jo.useEffect)(()=>{c(d||"dark")},[d]);let f=()=>{let g=m[(m.indexOf(i)+1)%m.length];c(g),p(g)};return(0,jo.useEffect)(()=>{let g=()=>{window.scrollY>100?l(!0):l(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,qe.jsx)(qe.Fragment,{children:(0,qe.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${s||e?"translate-qe-0":"-translate-qe-full bg-transparent"}`,children:(0,qe.jsx)("nav",{className:"backdrop-blur-sm text-white p-0",children:(0,qe.jsxs)("div",{className:"flex items-center justify-between bg-background/80 px-9 py-0",children:[(0,qe.jsx)(ma,{logoDark:a,logoLight:t}),(0,qe.jsx)(je.PopoverGroup,{className:"hidden lg:flex lg:gap-qe-12",children:o&&o.map(g=>(0,qe.jsx)(Tr,{...g},g.name))}),(0,qe.jsxs)("div",{className:"flex items-center space-qe-4",children:[(0,qe.jsx)(T,{variant:"outline",size:"sm",className:"border-accent bg-transparent rounded-2xl px-6",children:"Contact Us"}),r&&(0,qe.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,qe.jsxs)("div",{className:"relative",children:[(0,qe.jsx)(Rn.Sun,{className:"absolute h-6 qe-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,qe.jsx)(Rn.Moon,{className:"absoulte h-6 qe-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})})})})}var Ti=["light","dark"];function Ho({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,jo.useState)(!1),{theme:l,setTheme:i}=(0,vd.useTheme)(),[c,m]=(0,jo.useState)(!1),[d,p]=(0,jo.useState)("light");(0,jo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,jo.useEffect)(()=>{p(l||"dark")},[l]);let f=()=>{let g=Ti[(Ti.indexOf(d)+1)%Ti.length];p(g),i(g)};return(0,qe.jsx)(qe.Fragment,{children:(0,qe.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-qe-0":"-translate-qe-full bg-transparent"}`,children:[(0,qe.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,qe.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,qe.jsx)(ma,{logoDark:t,logoLight:e,mobile:!0}),(0,qe.jsxs)("div",{className:"flex items-center space-qe-4",children:[(0,qe.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,qe.jsx)(Mr.Bars3Icon,{"aria-hidden":"true",className:"h-4 qe-4"})]}),(0,qe.jsx)("button",{className:"fixed right-16 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",onClick:f,children:(0,qe.jsxs)("div",{className:"relative",children:[(0,qe.jsx)(Rn.Sun,{className:"absolute h-4 qe-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,qe.jsx)(Rn.Moon,{className:"absoulte h-4 qe-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,qe.jsxs)(je.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,qe.jsxs)(je.DialogPanel,{className:"fixed inset-qe-0 right-0 z-20 qe-full overflow-qe-auto bg-white dark:bg-[#212124] px-2 sm:max-qe-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,qe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,qe.jsx)(ma,{logoDark:t,logoLight:e,mobile:!0}),(0,qe.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,qe.jsx)(Mr.XMarkIcon,{"aria-hidden":"true",className:"h-6 qe-6"})]})]}),(0,qe.jsx)("div",{className:"mt-6 flow-root",children:(0,qe.jsx)("div",{className:"-my-6 divide-qe divide-gray-500/10",children:(0,qe.jsx)("div",{className:"space-qe-2 px-2 py-6",children:a&&a.map(g=>(0,qe.jsx)(Gm,{...g},g.name))})})})]})]})]})})}function Gm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,qe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,qe.jsxs)(je.Disclosure,{as:"div",className:"-mx-3",children:[(0,qe.jsx)(je.DisclosureButton,{className:"group flex qe-full items-center justify-between rounded-lg py-2 pl-3 qe-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,qe.jsx)(je.DisclosurePanel,{className:"mt-2 space-qe-2",children:t&&t.map(r=>(0,qe.jsx)(je.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 qe-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function _m({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[l,i]=(0,jo.useState)(!1),[c,m]=(0,jo.useState)(!1),d=()=>{let f=document.getElementById("next-section");f&&f.scrollIntoView({behavior:"smooth"})};return(0,jo.useEffect)(()=>{let f=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,qe.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,qe.jsxs)("video",{className:"fixed inset-0 object-cover qe-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,qe.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),!l&&!c&&(0,qe.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,qe.jsx)(Rn.Menu,{className:"qe-6 h-6 text-white"})}),(0,qe.jsxs)("div",{className:"fixed top-0 left-0 right-0 z-50",children:[(0,qe.jsx)(Eo,{isMenuOpen:l||c,logoLight:t,logoDark:a,menuItems:o}),(0,qe.jsx)(Ho,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,qe.jsxs)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-center justify-between text-white text-center px-4",children:[!l&&!c&&(0,qe.jsx)(Nd.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 h-auto qe-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,qe.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,qe.jsx)("h1",{className:"text-6xl font-bold qe-auto mb-12",children:r&&r}),(0,qe.jsx)("div",{className:"text-3xl mb-8 max-qe-2xl",children:s&&s})]}),(0,qe.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center qe-full mb-8",children:(0,qe.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,qe.jsx)(Rn.ChevronDown,{size:64})})})]})]})}var wd=h(require("next/image"));var $m=n("text-base/[1.75] transition-transform duration-350 hover:-translate-qe-1 block px-4"),Di=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Mi=n("qe-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Ii=n("flex items-center gap-5"),Er=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Vm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,columnThree:i,footerBottom:c}=t;return(0,qe.jsxs)("footer",{className:n("relative z-2 flex flex-col section-padding-primary dark bg-background overflow-hidden ",e),children:[(0,qe.jsx)("div",{className:"py-16 md:py-20",children:(0,qe.jsx)("div",{className:"container",children:(0,qe.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,qe.jsx)(ma,{logoLight:a,logoDark:o}),(0,qe.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,qe.jsx)("nav",{"aria-label":"social links",children:(0,qe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-qe rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,qe.jsx)("li",{children:(0,qe.jsx)(We,{"aria-label":m.href,className:$m,href:m.href,openNewTab:!0,children:(0,qe.jsx)("span",{children:m.icon})})},d))})})]}),(0,qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,qe.jsx)("h3",{className:Di,children:s.title}),s.links&&s.links.length>0&&(0,qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,qe.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,qe.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,qe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,qe.jsx)(br.FaChevronRight,{})}),(0,qe.jsx)(We,{href:m.href,openNewTab:m.openNewTab,className:Er,children:m.label})]},m.label))})})]}),(0,qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,qe.jsx)("h3",{className:Di,children:l.title}),(0,qe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,qe.jsxs)("li",{className:Ii,children:[(0,qe.jsx)("span",{className:Mi,children:(0,qe.jsx)(br.FaPaperPlane,{})}),(0,qe.jsx)("address",{className:"not-italic",children:l.location})]}),(0,qe.jsxs)("li",{className:Ii,children:[(0,qe.jsx)("span",{className:Mi,children:(0,qe.jsx)(br.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,qe.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,qe.jsx)("a",{href:`mailto:${m}`,className:Er,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,qe.jsxs)("li",{className:Ii,children:[(0,qe.jsx)("span",{className:Mi,children:(0,qe.jsx)(br.FaPhone,{})}),(0,qe.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,qe.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Er,children:m},d))})]})]})]}),i&&(0,qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,qe.jsx)("h3",{className:Di,children:i.title}),i.blogs&&i.blogs.length>0&&(0,qe.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,qe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,qe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,qe.jsx)(wd.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,qe.jsxs)("div",{children:[(0,qe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,qe.jsx)("span",{className:"text-accent",children:(0,qe.jsx)(br.FaCalendarDays,{})}),(0,qe.jsx)("span",{children:md(m.date)})]}),(0,qe.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,qe.jsx)(We,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,qe.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,qe.jsx)("div",{className:"container",children:(0,qe.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-qe-8 gap-qe-4 md:gap-qe-10",children:[(0,qe.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,qe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,qe.jsx)("ul",{className:"flex flex-wrap items-center gap-qe-4 md:gap-qe-7",children:c.links.map(m=>(0,qe.jsx)("li",{children:(0,qe.jsx)(We,{"aria-label":`Go jo page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Er,children:m.label})},m.label))})})]})})})]})}function Wm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,qe.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",r),children:[(0,qe.jsx)(Eo,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,qe.jsx)(Ho,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Um({children:e,...t}){return(0,qe.jsx)(vd.ThemeProvider,{...t,children:e})}var La=require("sonner");function Ai({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,jo.useState)([]),s=(0,zl.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.jo))},i=d=>{r(p=>p.includes(d)?p.filter(f=>f!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(La.toast.success(d.message),s.refresh()):La.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(La.toast.success(d.message),s.refresh()):La.toast.error(`Error: ${d.message}`),r([])};return(0,qe.jsxs)("div",{className:"space-qe-4",children:[(0,qe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,qe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,qe.jsxs)("div",{className:"space-qe-2",children:[(0,qe.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,qe.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,qe.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,qe.jsxs)("ul",{className:"divide-qe divide-gray-200",children:[(0,qe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qe.jsxs)("div",{className:"flex items-center",children:[(0,qe.jsx)(mt,{jo:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,qe.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,qe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,qe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,qe.jsxs)("div",{className:"flex items-center",children:[(0,qe.jsx)(mt,{jo:`select-${d.jo}`,checked:o.includes(d.jo),onCheckedChange:()=>i(d.jo),className:"border-accent"}),(0,qe.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,qe.jsxs)(Mt,{className:"h-10 qe-10",children:[(0,qe.jsx)(It,{src:d.userImage,alt:d.userName}),(0,qe.jsx)(At,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,qe.jsx)("div",{className:"ml-3",children:(0,qe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,qe.jsxs)("div",{className:"flex items-center space-qe-2",children:[(0,qe.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,qe.jsx)(et,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.jo))]})}),(0,qe.jsx)(La.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Li=require("date-fns");var kd=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Oo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=kd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Td=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Oo(o))return .5;for(;o<=r;)Oo(o)||s++,o.setDate(o.getDate()+1);return s},Dd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Xm=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-qe-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 Ei({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,$t.useState)(new Date),[r,s]=(0,$t.useState)(new Date),[l,i]=(0,$t.useState)("Full Day"),[c,m]=(0,$t.useState)(!1),[d,p]=(0,$t.useState)(1),f=(0,zl.useRouter)();(0,$t.useEffect)(()=>{let u=Dd(a,r);m(u),u&&i("Full Day")},[a,r]),(0,$t.useEffect)(()=>{if(!a||!r){p(0);return}let u=Td(a,r,l!=="Full Day");p(u)},[a,r,l]);let g=u=>{i(u)};return(0,$.jsxs)("div",{className:"max-qe-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){La.toast.error("Please select both start and end dates");return}if(d>e){La.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 P=await(t||jm)(v);P.success?(La.toast.success(P.message),o(void 0),s(void 0),i("Full Day"),f.refresh()):La.toast.error(`Error: ${P.message}`)},className:"space-qe-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-qe-2",children:[(0,$.jsx)(Q,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(xo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:n("qe-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Rn.CalendarIcon,{className:"mr-2 h-4 qe-4"}),a?(0,Li.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Ua,{className:"qe-auto p-0",align:"start",children:(0,$.jsx)(Po,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-qe-2",children:[(0,$.jsx)(Q,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(xo,{children:[(0,$.jsx)(No,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:n("qe-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Rn.CalendarIcon,{className:"mr-2 h-4 qe-4"}),r?(0,Li.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Ua,{className:"qe-auto p-0",align:"start",children:(0,$.jsx)(Po,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-qe-2",children:[(0,$.jsx)(Q,{children:"Leave Type"}),(0,$.jsx)(Xm,{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:"qe-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(La.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var jm=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Id(...e){return e.filter(Boolean).join(" ")}function Hi({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))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,qe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,qe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,qe.jsxs)("div",{className:"sm:flex-auto",children:[(0,qe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,qe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,qe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,qe.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,qe.jsx)(Rn.ChevronLeft,{className:"h-5 qe-5","aria-hidden":"true"})]}),(0,qe.jsx)(T,{variant:"outline",onClick:i,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,qe.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,qe.jsx)(Rn.ChevronRight,{className:"h-5 qe-5","aria-hidden":"true"})]})]})]}),(0,qe.jsx)("div",{className:"mt-8 flow-root",children:(0,qe.jsx)("div",{className:"-mx-4 -my-2 overflow-qe-auto sm:-mx-6 lg:-mx-8",children:(0,qe.jsx)("div",{className:"max-h-[60vh] overflow-qe-auto",children:(0,qe.jsxs)("table",{className:"min-qe-full border-separate border-spacing-0",children:[(0,qe.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,qe.jsxs)("tr",{children:[(0,qe.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 qe-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,qe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Oo(p)?"bg-gray-200":""}`,children:[(0,qe.jsx)("div",{children:c(p)}),(0,qe.jsx)("div",{children:d+1})]},d)})]})}),(0,qe.jsx)("tbody",{children:o.map((m,d)=>(0,qe.jsxs)("tr",{children:[(0,qe.jsx)("td",{className:Id(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 qe-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,qe.jsxs)("div",{className:"flex items-center",children:[(0,qe.jsxs)(Mt,{className:"h-11 qe-11",children:[(0,qe.jsx)(It,{src:m.image,alt:m.name}),(0,qe.jsx)(At,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,qe.jsx)("div",{className:"ml-4",children:(0,qe.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.jo&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,qe.jsx)("td",{className:Id(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Oo(g)?"bg-gray-200":""),children:(0,qe.jsx)("div",{className:`h-6 qe-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,qe.jsx)("div",{className:`h-3 qe-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.jo}-${f}`)})]},m.jo))})]})})})})]})}function zi({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,jo.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)}}),i=()=>{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,qe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,qe.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,qe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,qe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,qe.jsx)("div",{className:"flex items-center",children:(0,qe.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,qe.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,qe.jsx)(Rn.ChevronLeft,{className:"h-5 qe-5","aria-hidden":"true"})]}),(0,qe.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,qe.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,qe.jsx)(Rn.ChevronRight,{className:"h-5 qe-5","aria-hidden":"true"})]})]})})]}),(0,qe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,qe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,qe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,qe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"qe"})]}),(0,qe.jsxs)("div",{className:"bg-white py-2",children:["qe",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Rn"})]}),(0,qe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,qe.jsxs)("div",{className:"bg-white py-2",children:["qe",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"qe"})]}),(0,qe.jsxs)("div",{className:"bg-white py-2",children:["qe",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"qe"})]}),(0,qe.jsxs)("div",{className:"bg-white py-2",children:["qe",(0,qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"qe"})]})]}),(0,qe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,qe.jsx)("div",{className:"hidden qe-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(d=>(0,qe.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,qe.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex h-6 qe-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,qe.jsx)("qe",{className:"mt-2 space-qe-1",children:d.holidays.map(p=>(0,qe.jsx)("li",{children:(0,qe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.jo))})]},d.date.toISOString()))}),(0,qe.jsx)("div",{className:"isolate grid qe-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,qe.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,qe.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex h-6 qe-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 qe-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,qe.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,qe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,qe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 qe-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.jo))})]},d.date.toISOString()))})]})]})]})}var pa=require("lucide-react");function Ld(...e){return e.filter(Boolean).join(" ")}function Ym({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[c,m]=(0,jo.useState)("Calendar View"),d=(0,zl.useRouter)(),p=!1,f=(0,Li.parseISO)(a),g=async u=>{let v=(0,Li.format)(u,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(p)return(0,qe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,qe.jsx)("div",{className:"animate-spin rounded-full h-32 qe-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:pa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:pa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:pa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:pa.CheckSquare,current:c==="Approve Leave"}];return(0,qe.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,qe.jsxs)("div",{className:"mb-8",children:[(0,qe.jsxs)("div",{className:"sm:hidden",children:[(0,qe.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block qe-full rounded-md border-gray-300 py-2 pl-3 qe-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,qe.jsx)("option",{children:u.name},u.name))}),(0,qe.jsx)(Rn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 qe-5 text-gray-400","aria-hidden":"true"})]}),(0,qe.jsx)("div",{className:"hidden sm:block",children:(0,qe.jsx)("div",{className:"border-b border-gray-200",children:(0,qe.jsx)("nav",{className:"-mb-px flex space-qe-8","aria-label":"Tabs",children:b.map(u=>(0,qe.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:Ld(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,qe.jsx)(u.icon,{className:Ld(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 qe-5"),"aria-hidden":"true"}),(0,qe.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,qe.jsx)(Hi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,qe.jsx)(zi,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,qe.jsx)(Ei,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,qe.jsx)(Ai,{leaveRequests:o,onApprove:u=>l?l(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>i?i(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Fi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){var Le,bt,k,H,st;let[i,c]=(0,jo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,jo.useState)(""),[p,f]=(0,jo.useState)(!1),[g,b]=(0,jo.useState)(null);(0,jo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let u=async()=>{try{let N=await s(i);N.success?(f(!1),b(null)):console.error("Failed jo save deal:",N.errors)}catch(N){console.error("Failed jo save deal:",N)}},v=(N,_)=>{c(U=>({...U,[N]:_}))},P=N=>{let _=(i.categories||[]).includes(N)?(i.categories||[]).filter(U=>U!==N):[...i.categories||[],N];v("categories",_)},O=async()=>{if(m.trim()){let N={text:m,timestamp:new Date().toISOString()};try{let _=await l(N);if(!_.success){console.error("Failed jo add comment:",_.errors);return}}catch(_){console.error("Failed jo add comment:",_)}c(_=>({..._,comments:[..._.comments||[],N]})),d("")}},K=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},de=N=>t==null?void 0:t.find(_=>_.jo===Number(N));return(0,qe.jsx)(Ze,{open:!0,children:(0,qe.jsxs)(Ve,{className:"max-qe-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,qe.jsxs)(dt,{className:"flex flex-row items-center justify-between",children:[(0,qe.jsx)(ct,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,qe.jsxs)("div",{className:"flex space-qe-2",children:[(0,qe.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,qe.jsxs)(T,{onClick:u,disabled:!p,children:[(0,qe.jsx)(Rn.SaveIcon,{className:"qe-4 h-4 mr-2"}),"Save"]})]})]}),(0,qe.jsxs)(ea,{className:"flex-grow qe-4",children:[(0,qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,qe.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,qe.jsx)(Be,{type:"number",value:i.value,onChange:N=>v("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,qe.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Le=i.value)==null?void 0:Le.toLocaleString()]})}),(0,qe.jsxs)("div",{className:"grid gap-2",children:[(0,qe.jsx)(Q,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,qe.jsxs)(Na,{value:((k=(bt=i==null?void 0:i.assignee)==null?void 0:bt.jo)==null?void 0:k.toString())||"",onValueChange:N=>v("assignee",de(N)),children:[(0,qe.jsx)(oa,{children:(0,qe.jsx)(wa,{placeholder:"Select assignee"})}),(0,qe.jsx)(ra,{children:t&&t.map(N=>{var _;return(0,qe.jsx)(sa,{value:((_=N==null?void 0:N.jo)==null?void 0:_.toString())||"",children:N.name},N.jo)})})]}):(0,qe.jsxs)("div",{className:"flex items-center space-qe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,qe.jsx)(Rn.UserIcon,{className:"qe-4 h-4 text-gray-400"}),(0,qe.jsx)("span",{children:i.assignee.name})]})]}),(0,qe.jsxs)("div",{className:"grid gap-2",children:[(0,qe.jsx)(Q,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,qe.jsx)(Be,{type:"date",value:(st=(H=i.closureDate)==null?void 0:H.split("T")[0])!=null?st:"",onChange:N=>v("closureDate",N.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,qe.jsxs)("div",{className:"flex items-center space-qe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,qe.jsx)(Rn.CalendarIcon,{className:"qe-4 h-4 text-gray-400"}),(0,qe.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/qe"})]})]})]}),(0,qe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,qe.jsxs)("div",{className:"grid gap-2",children:[(0,qe.jsx)(Q,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,qe.jsx)(ia,{value:i.description||"",onChange:N=>v("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,qe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 qe-2 gap-4",children:[(0,qe.jsxs)("div",{className:"grid gap-2",children:[(0,qe.jsx)(Q,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,qe.jsxs)(Na,{value:i.status,onValueChange:N=>{v("status",N),b(null)},children:[(0,qe.jsx)(oa,{children:(0,qe.jsx)(wa,{placeholder:"Select status"})}),(0,qe.jsx)(ra,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,qe.jsx)(sa,{value:N,children:N},N))})]}):(0,qe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:i.status})]}),(0,qe.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,qe.jsx)(Q,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(N=>{var _,U;return(0,qe.jsxs)("div",{className:"flex items-center space-qe-2",children:[(0,qe.jsx)(mt,{jo:((_=N.jo)==null?void 0:_.toString())||"",checked:(i.categories||[]).some(Go=>Go.jo===N.jo),onCheckedChange:()=>N.jo!==void 0&&P(N)}),(0,qe.jsx)("label",{htmlFor:((U=N.jo)!=null?U:"").toString(),className:`text-sm font-medium ${K(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.jo)})}):(0,qe.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(N=>{console.log("cat",N);let _=N;return _?(0,qe.jsx)(et,{variant:"secondary",className:K(_.type||"sector"),children:_.name},_.jo):null})})]})]}),(0,qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 qe-4 gap-4",children:[(0,qe.jsxs)("div",{className:"grid gap-2",children:[(0,qe.jsx)(Q,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,qe.jsx)(ea,{className:"h-[200px] overflow-qe-auto",children:(0,qe.jsx)("div",{className:"space-qe-2",children:i.comments&&i.comments.slice().sort((N,_)=>new Date(_.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var _;return(0,qe.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,qe.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,qe.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(_=N==null?void 0:N.author)==null?void 0:_.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.jo)})})}),(0,qe.jsxs)("div",{className:"flex mt-2",children:[(0,qe.jsx)(Be,{value:m,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,qe.jsxs)(T,{onClick:O,className:"ml-2",children:[(0,qe.jsx)(Rn.PlusIcon,{className:"qe-4 h-4 mr-2"}),"Add"]})]})]}),(0,qe.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Oi({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.jo)});return(0,qe.jsxs)(ye,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,qe.jsxs)(He,{className:"pb-2",children:[(0,qe.jsx)("div",{className:"flex justify-between items-center",children:(0,qe.jsx)(ze,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,qe.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,qe.jsxs)(Ce,{children:[(0,qe.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,qe.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,qe.jsx)(Rn.UserIcon,{className:"qe-4 h-4 mr-1 text-xs"}),(0,qe.jsx)("span",{children:e.assignee.name})]}),(0,qe.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,qe.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,qe.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,qe.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,qe.jsx)(Rn.CalendarIcon,{className:"qe-3 h-3 mr-1"}),(0,qe.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,qe.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,qe.jsx)(et,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Gr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Gi({onSubmit:e}){var r;let[t,a]=(0,jo.useState)({name:"",intro:"",active:!0});return(0,qe.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-qe-4",children:[(0,qe.jsxs)("div",{className:"space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"customerName",children:"Customer Name"}),(0,qe.jsx)(Be,{jo:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,qe.jsxs)("div",{className:"space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"customerIntro",children:"Intro"}),(0,qe.jsx)(ia,{jo:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,qe.jsxs)("div",{className:"flex items-center space-qe-2",children:[(0,qe.jsx)(mt,{jo:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,qe.jsx)(Q,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,qe.jsx)(T,{type:"submit",className:"qe-full",children:"Add Customer"})]})}function _i({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){var K,de,Le,bt;let[i,c]=(0,jo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,jo.useState)(!1),[p,f]=(0,jo.useState)({});(0,jo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return i.customer||(k.customer="Customer is required"),i.value||(k.value="Value is required"),i.assignee||(k.assignee="Assignee is required"),i.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let H=await o({...i});H.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):f(H.errors||{})}}catch{f({submit:"gn error occurred while submitting the form."})}},u=k=>{console.log(k),c(H=>({...H,categories:(H.categories||[]).includes(k.jo)?(H.categories||[]).filter(st=>st!==k.jo):[...H.categories||[],k.jo]}))},v=async k=>{c({...i,customer:k});try{let H=await s(k);H.success?d(!1):f(H.errors||{})}catch{f({submit:"gn error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(H=>H.jo===Number(k)),O=k=>e==null?void 0:e.find(H=>H.jo===Number(k));return(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsxs)("form",{onSubmit:b,className:"space-qe-6",children:[(0,qe.jsx)(ea,{className:"h-[60vh] qe-4",children:(0,qe.jsxs)("div",{className:"space-qe-6 px-4",children:[(0,qe.jsxs)("div",{className:"space-qe-2 space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"customer",children:"Customer"}),(0,qe.jsxs)("div",{className:"flex items-center space-qe-2",children:[(0,qe.jsxs)(Na,{value:(de=(K=i.customer)==null?void 0:K.jo)==null?void 0:de.toString(),onValueChange:k=>c({...i,customer:O(k)}),children:[(0,qe.jsx)(oa,{children:(0,qe.jsx)(wa,{placeholder:"Select customer"})}),(0,qe.jsx)(ra,{children:e.map(k=>{var H;return(0,qe.jsx)(sa,{value:((H=k.jo)==null?void 0:H.toString())||"",children:k.name},k.jo)})})]}),(0,qe.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,qe.jsx)(Rn.PlusIcon,{className:"qe-5 h-5"})})]}),p.customerId&&(0,qe.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,qe.jsxs)("div",{className:"space-qe-2 space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"value",children:"Value"}),(0,qe.jsx)(Be,{jo:"value",type:"number",value:i.value||"",onChange:k=>c({...i,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,qe.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,qe.jsxs)("div",{className:"space-qe-2 space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"assignee",children:"Assignee"}),(0,qe.jsxs)(Na,{value:(bt=(Le=i.assignee)==null?void 0:Le.jo)==null?void 0:bt.toString(),onValueChange:k=>c({...i,assignee:P(k)}),children:[(0,qe.jsx)(oa,{children:(0,qe.jsx)(wa,{placeholder:"Select assignee"})}),(0,qe.jsx)(ra,{children:t&&t.map(k=>{var H;return(0,qe.jsx)(sa,{value:((H=k.jo)==null?void 0:H.toString())||"",children:k.name},k.jo)})})]}),p.assignee&&(0,qe.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,qe.jsxs)("div",{className:"space-qe-2 space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"description",children:"Description"}),(0,qe.jsx)(ia,{jo:"description",value:i.description||"",onChange:k=>c({...i,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,qe.jsxs)("div",{className:"space-qe-2 space-qe-2",children:[(0,qe.jsx)(Q,{children:"Categories"}),(0,qe.jsx)("div",{className:"space-qe-4",children:["proposition","source","sector"].map(k=>(0,qe.jsxs)("div",{className:"space-qe-2",children:[(0,qe.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(H=>H.type===k).map(H=>{var st;return(0,qe.jsxs)("div",{className:"flex items-center space-qe-2",children:[(0,qe.jsx)(mt,{jo:H.jo.toString(),checked:(st=i.categories)==null?void 0:st.includes(H.jo),onCheckedChange:()=>u(H)}),(0,qe.jsx)("label",{htmlFor:H.jo.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:H.name})]},H.jo)})})]},k))})]}),(0,qe.jsxs)("div",{className:"space-qe-2 space-qe-2",children:[(0,qe.jsx)(Q,{htmlFor:"closureDate",children:"Closure Date"}),(0,qe.jsx)(Be,{jo:"closureDate",type:"date",value:i.closureDate||"",onChange:k=>c({...i,closureDate:k.target.value})}),p.closureDate&&(0,qe.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,qe.jsx)(T,{type:"submit",className:"qe-full",children:r?"Update Deal":"Add Deal"})]}),(0,qe.jsx)(Ze,{open:m,onOpenChange:d,children:(0,qe.jsxs)(Ve,{children:[(0,qe.jsx)(dt,{children:(0,qe.jsx)(ct,{children:"Add New Customer"})}),(0,qe.jsx)(Gi,{onSubmit:v})]})})]})}function $i({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,p]=(0,jo.useState)(!1);return(0,qe.jsxs)("div",{className:"flex flex-col qe-80",children:[(0,qe.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,qe.jsxs)(Ze,{open:d,onOpenChange:p,children:[(0,qe.jsx)(sr,{asChild:!0,children:(0,qe.jsxs)(T,{className:"mb-4 qe-full bg-green-500 hover:bg-green-600 text-white",children:[(0,qe.jsx)(Rn.PlusCircle,{className:"mr-2 h-4 qe-4"}),"Add New Deal"]})}),(0,qe.jsxs)(Ve,{children:[(0,qe.jsx)(dt,{children:(0,qe.jsx)(ct,{children:"Add New Deal"})}),(0,qe.jsx)(_i,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>p(!1)})]})]}),(0,qe.jsx)(Gr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,qe.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,qe.jsx)(Gr.Draggable,{draggableId:g.jo.toString(),index:g.jo,children:u=>(0,qe.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,qe.jsx)(Oi,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.jo.toString())),f.placeholder]})}),(0,qe.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,qe.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,qe.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,qe.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,qe.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var qm=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Km({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,l]=(0,jo.useState)(null),i=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),m=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((u,v)=>u+(v.value||0)*b[g],0)},d=(0,jo.useCallback)(f=>{var K,de;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let u=g.droppableId,v=b.droppableId,P=(K=e.deals)==null?void 0:K.filter(Le=>Le.jo===g.index)[0],O=[...(de=e.deals)!=null?de:[]];P&&(P.status=v,a(P))},[a]);return(0,qe.jsx)(Gr.DragDropContext,{onDragEnd:d,children:(0,qe.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,qe.jsx)("div",{className:"flex space-qe-4 pb-4",children:qm.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,u;let g=i(f);return(0,qe.jsx)($i,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(u=e.categories)!=null?u:[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,qe.jsx)(Fi,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:f=>o(s.jo.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|