cortex-react-components 1.48.7 → 1.49.0
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-SPOYKTBR.mjs → chunk-22FHCZJD.mjs} +1 -1
- package/dist/chunk-47K2T72E.mjs +1 -0
- package/dist/{chunk-ZYDXLN4L.mjs → chunk-5KVZ63KQ.mjs} +1 -1
- package/dist/{chunk-DIPGFDJV.mjs → chunk-ATONX5RA.mjs} +1 -1
- package/dist/{chunk-GHBJK554.mjs → chunk-DESYC5BB.mjs} +1 -1
- package/dist/chunk-GDC4MRMU.mjs +8 -0
- package/dist/{chunk-RZTXT4UD.mjs → chunk-GOMLTG5W.mjs} +1 -1
- package/dist/{chunk-QO2Z7WXW.mjs → chunk-H4T3LIAM.mjs} +1 -1
- package/dist/{chunk-I5EBXVLE.mjs → chunk-IJICNQTM.mjs} +1 -1
- package/dist/{chunk-DLCGGIZW.mjs → chunk-KJBMLPHS.mjs} +1 -1
- package/dist/chunk-RWIIPRAE.mjs +1 -0
- package/dist/chunk-SK4U3YXJ.mjs +1 -0
- package/dist/{chunk-E2LKSCDR.mjs → chunk-TM37LU2K.mjs} +1 -1
- package/dist/{chunk-QZA2ZGA2.mjs → chunk-U76FODRW.mjs} +1 -1
- package/dist/chunk-WKD2UQGO.mjs +4 -0
- package/dist/chunk-X6QN5C6U.mjs +1 -0
- package/dist/chunk-XN3SGES2.mjs +1 -0
- package/dist/chunk-Y2ZFOTBY.mjs +1 -0
- package/dist/{chunk-WX5WBQM3.mjs → chunk-YSGJMEMD.mjs} +1 -1
- package/dist/{chunk-PVFLV5NN.mjs → chunk-YSREIOAY.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/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.d.ts +1 -0
- package/dist/components/Blocks/RenderBlocks.js +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.js +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/HeaderFooter/Footer.mjs +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/HeaderMobile.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.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/BlogList.mjs +1 -1
- package/dist/components/Layouts/BlogList.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.d.ts +14 -0
- package/dist/components/Layouts/SlideShow.js +9 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.js +9 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.js +11 -3
- 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 +14 -6
- 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/globals.css +1 -1
- package/dist/images/hero/hero-3.mjs +1 -1
- package/dist/index.js +11 -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.mjs +1 -1
- package/dist/pages/LandingPage.stories.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.css +1 -0
- package/dist/pages/Printable.stories.js +12 -0
- package/dist/pages/Printable.stories.mjs +1 -0
- package/dist/pages/Publish.js +9 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.js +9 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.js +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.js +2 -2
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/MainPageSection.js +1 -1
- package/dist/sections/MainPageSection.mjs +1 -1
- package/dist/sections/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.js +1 -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/tests/payload.d.ts +300 -0
- package/dist/tests/payload.js +1 -0
- package/dist/tests/payload.mjs +1 -0
- package/dist/utils/AOSInit.mjs +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +2 -1
- package/dist/chunk-EZVA3JCM.mjs +0 -4
- package/dist/chunk-FZ2WYNIY.mjs +0 -1
- package/dist/chunk-JRCLJPTB.mjs +0 -4
- package/dist/chunk-U273RBBL.mjs +0 -1
- package/dist/chunk-YKY5E6KS.mjs +0 -1
- package/dist/chunk-YQUBQIDC.mjs +0 -1
package/dist/components/index.js
CHANGED
|
@@ -3,16 +3,24 @@
|
|
|
3
3
|
"use client"
|
|
4
4
|
'use strict'
|
|
5
5
|
|
|
6
|
-
"use strict";var Lc=Object.create;var Hr=Object.defineProperty;var Ec=Object.getOwnPropertyDescriptor;var Bc=Object.getOwnPropertyNames;var Hc=Object.getPrototypeOf,Fc=Object.prototype.hasOwnProperty;var zc=(e,t)=>{for(var a in t)Hr(e,a,{get:t[a],enumerable:!0})},zi=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Bc(t))!Fc.call(e,o)&&o!==a&&Hr(e,o,{get:()=>t[o],enumerable:!(r=Ec(t,o))||r.enumerable});return e};var v=(e,t,a)=>(a=e!=null?Lc(Hc(e)):{},zi(t||!e||!e.__esModule?Hr(a,"default",{value:e,enumerable:!0}):a,e)),Oc=e=>zi(Hr({},"__esModule",{value:!0}),e);var Gm={};zc(Gm,{Alert:()=>Fs,AlertDescription:()=>Os,AlertTitle:()=>zs,ApproveLeave:()=>Pi,Avatar:()=>Tt,AvatarFallback:()=>Mt,AvatarImage:()=>Dt,Badge:()=>Qe,BannerBlock:()=>Us,BlogCard:()=>Wl,BlogList:()=>nm,BrandLogo:()=>ia,Breadcrumb:()=>Oo,BreadcrumbEllipsis:()=>Wo,BreadcrumbItem:()=>Go,BreadcrumbLink:()=>Vo,BreadcrumbList:()=>_o,BreadcrumbPage:()=>$o,BreadcrumbSeparator:()=>Uo,Breadcrumbs:()=>hi,Button:()=>k,CMSLink:()=>ft,CRMKanbanBoard:()=>_m,Calendar:()=>xr,CalendarView:()=>Di,CallToActionBlock:()=>Na,Card:()=>Rr,Categories:()=>Nm,Checkbox:()=>lt,CodeBlock:()=>Ys,Collapsible:()=>Ct,CollapsibleContent:()=>$t,CollapsibleTrigger:()=>Vt,CollectionArchive:()=>lm,Command:()=>to,CommandDialog:()=>zn,CommandEmpty:()=>As,CommandGroup:()=>Ls,CommandInput:()=>Ms,CommandItem:()=>Bs,CommandList:()=>Is,CommandSeparator:()=>Es,CommandShortcut:()=>Hs,Container:()=>Sa,ContentBlock:()=>Pr,ContentCard:()=>ei,CopyButton:()=>Xs,CustomLink:()=>we,CustomerCard:()=>el,DealCard:()=>Ii,DealDetails:()=>Mi,Dialog:()=>Je,DialogClose:()=>Zr,DialogContent:()=>Ve,DialogDescription:()=>Ds,DialogFooter:()=>Ts,DialogHeader:()=>it,DialogOverlay:()=>eo,DialogPortal:()=>ks,DialogTitle:()=>nt,DialogTrigger:()=>Qr,DropdownMenu:()=>Ki,DropdownMenuCheckboxItem:()=>qo,DropdownMenuContent:()=>Yo,DropdownMenuGroup:()=>Ji,DropdownMenuItem:()=>Ko,DropdownMenuLabel:()=>Qo,DropdownMenuPortal:()=>Qi,DropdownMenuRadioGroup:()=>en,DropdownMenuRadioItem:()=>Jo,DropdownMenuSeparator:()=>Zo,DropdownMenuShortcut:()=>es,DropdownMenuSub:()=>Zi,DropdownMenuSubContent:()=>jo,DropdownMenuSubTrigger:()=>Xo,DropdownMenuTrigger:()=>qi,DynamicIcon:()=>Ee,EventCard:()=>tl,FeatureCard:()=>Jn,FeatureGrid:()=>xl,FeaturesBlock:()=>Ca,Filter:()=>wm,Footer:()=>Lm,Header:()=>Em,HeaderDesktop:()=>Dr,HeaderMobile:()=>Mr,HeadingImage:()=>am,Hero:()=>$d,HighImpactHero:()=>ui,HolidayGrid:()=>Ti,HolidayTracker:()=>zm,HoverCard:()=>Ln,HoverCardContent:()=>Ss,HoverCardTrigger:()=>En,Image:()=>il,ImageBlock:()=>Zs,InfoTile:()=>Yd,Input:()=>Ae,Insight:()=>jd,KanbanColumn:()=>Ei,Label:()=>J,Logo:()=>cm,LowImpactHero:()=>bi,MOTD:()=>qd,Media:()=>Et,MediaBlock:()=>Bt,MediumImpactHero:()=>fi,NewCustomerForm:()=>Ai,NewDealForm:()=>Li,NewsGrid:()=>Bl,OrgChart:()=>Zd,PageRange:()=>pm,Pagination:()=>xm,PayloadPagination:()=>um,Popover:()=>br,PopoverAnchor:()=>Tn,PopoverContent:()=>$a,PopoverTrigger:()=>vr,PostHero:()=>Pm,PricingCard:()=>Vd,ProjectCard:()=>sl,ProjectTeam:()=>hm,ProposalSummary:()=>em,RelatedContent:()=>ym,RelatedPosts:()=>sm,RenderBlocks:()=>ai,RenderHero:()=>Sm,RequestLeave:()=>ki,ReusableContentBlock:()=>ti,RichText:()=>Z,ScrollArea:()=>Jt,ScrollBar:()=>Jr,SectionHero:()=>vi,Select:()=>ba,SelectContent:()=>ta,SelectGroup:()=>Ld,SelectItem:()=>aa,SelectLabel:()=>Un,SelectScrollDownButton:()=>Vs,SelectScrollUpButton:()=>Gs,SelectSeparator:()=>Wn,SelectTrigger:()=>ea,SelectValue:()=>va,Separator:()=>rr,ServiceCard:()=>Gd,Sheet:()=>zr,SheetClose:()=>cn,SheetContent:()=>sr,SheetDescription:()=>is,SheetFooter:()=>os,SheetHeader:()=>rs,SheetOverlay:()=>Or,SheetPortal:()=>as,SheetTitle:()=>ss,SheetTrigger:()=>ln,Sidebar:()=>ca,SidebarContent:()=>Wt,SidebarFooter:()=>ma,SidebarGroup:()=>Ye,SidebarGroupAction:()=>us,SidebarGroupContent:()=>ot,SidebarGroupLabel:()=>Rt,SidebarHeader:()=>da,SidebarInput:()=>ps,SidebarInset:()=>ms,SidebarLeft:()=>gm,SidebarMenu:()=>Le,SidebarMenuAction:()=>lr,SidebarMenuBadge:()=>gs,SidebarMenuButton:()=>Ke,SidebarMenuItem:()=>xe,SidebarMenuSkeleton:()=>fs,SidebarMenuSub:()=>Xt,SidebarMenuSubButton:()=>Yt,SidebarMenuSubItem:()=>jt,SidebarProvider:()=>ls,SidebarRail:()=>ds,SidebarRight:()=>vm,SidebarSeparator:()=>nr,SidebarTrigger:()=>cs,SimpleHeader:()=>Tm,Skeleton:()=>ae,SlideShow:()=>Al,TextAndImages:()=>Hl,Textarea:()=>ra,Theme:()=>kl,ThemeProvider:()=>Bm,Toast:()=>mr,ToastAction:()=>hs,ToastClose:()=>pr,ToastDescription:()=>gr,ToastProvider:()=>Kr,ToastTitle:()=>ur,ToastViewport:()=>dr,Toaster:()=>wn,Toggle:()=>xs,ToggleGroup:()=>Ns,ToggleGroupItem:()=>ws,Tooltip:()=>$r,TooltipContent:()=>ir,TooltipProvider:()=>Vr,TooltipTrigger:()=>Ur,VideoHeader:()=>Im,WhyUs:()=>tm,badgeVariants:()=>_s,buttonVariants:()=>Ut,toggleVariants:()=>fr,useIsMobile:()=>Gr,useSidebar:()=>Ga,useToast:()=>Yr});module.exports=Oc(Gm);var Fa=v(require("react")),Fr=require("@radix-ui/react-icons"),Yi=require("@radix-ui/react-slot");var ji=require("clsx");var zo="-",_c=e=>{let t=Vc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{let i=l.split(zo);return i[0]===""&&i.length!==1&&i.shift(),Gi(i,t)||Gc(l)},getConflictingClassGroupIds:(l,i)=>{let d=a[l]||[];return i&&r[l]?[...d,...r[l]]:d}}},Gi=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],r=t.nextPart.get(a),o=r?Gi(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;let s=e.join(zo);return(l=t.validators.find(({validator:i})=>i(s)))==null?void 0:l.classGroupId},Oi=/^\[(.+)\]$/,Gc=e=>{if(Oi.test(e)){let t=Oi.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Vc=e=>{let{theme:t,prefix:a}=e,r={nextPart:new Map,validators:[]};return Uc(Object.entries(e.classGroups),a).forEach(([s,l])=>{Fo(l,r,s,t)}),r},Fo=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){let s=o===""?t:_i(t,o);s.classGroupId=a;return}if(typeof o=="function"){if($c(o)){Fo(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([s,l])=>{Fo(l,_i(t,s),a,r)})})},_i=(e,t)=>{let a=e;return t.split(zo).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},$c=e=>e.isThemeGetter,Uc=(e,t)=>t?e.map(([a,r])=>{let o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,o]}):e,Wc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map,o=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,r=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return o(s,l),l},set(s,l){a.has(s)?a.set(s,l):o(s,l)}}},Vi="!",Xc=e=>{let{separator:t,experimentalParseClassName:a}=e,r=t.length===1,o=t[0],s=t.length,l=i=>{let d=[],p=0,c=0,u;for(let x=0;x<i.length;x++){let A=i[x];if(p===0){if(A===o&&(r||i.slice(x,x+s)===t)){d.push(i.slice(c,x)),c=x+s;continue}if(A==="/"){u=x;continue}}A==="["?p++:A==="]"&&p--}let m=d.length===0?i:i.substring(c),f=m.startsWith(Vi),h=f?m.substring(1):m,g=u&&u>c?u-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:l}):l},jc=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(r=>{r[0]==="["?(t.push(...a.sort(),r),a=[]):a.push(r)}),t.push(...a.sort()),t},Yc=e=>({cache:Wc(e.cacheSize),parseClassName:Xc(e),..._c(e)}),Kc=/\s+/,qc=(e,t)=>{let{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],l=e.trim().split(Kc),i="";for(let d=l.length-1;d>=0;d-=1){let p=l[d],{modifiers:c,hasImportantModifier:u,baseClassName:m,maybePostfixModifierPosition:f}=a(p),h=!!f,g=r(h?m.substring(0,f):m);if(!g){if(!h){i=p+(i.length>0?" "+i:i);continue}if(g=r(m),!g){i=p+(i.length>0?" "+i:i);continue}h=!1}let x=jc(c).join(":"),A=u?x+Vi:x,O=A+g;if(s.includes(O))continue;s.push(O);let Q=o(g,h);for(let he=0;he<Q.length;++he){let Ie=Q[he];s.push(A+Ie)}i=p+(i.length>0?" "+i:i)}return i};function Jc(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=$i(t))&&(r&&(r+=" "),r+=a);return r}var $i=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=$i(e[r]))&&(a&&(a+=" "),a+=t);return a};function Qc(e,...t){let a,r,o,s=l;function l(d){let p=t.reduce((c,u)=>u(c),e());return a=Yc(p),r=a.cache.get,o=a.cache.set,s=i,i(d)}function i(d){let p=r(d);if(p)return p;let c=qc(d,a);return o(d,c),c}return function(){return s(Jc.apply(null,arguments))}}var q=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Ui=/^\[(?:([a-je-]+):)?(.+)\]$/i,Zc=/^\d+\/\d+$/,ed=new Set(["px","full","screen"]),td=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ad=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|_r|pc|in|cm|mm|cap|ch|ex|r?lh|cq(je|h|i|je|min|max))|\je(calc|min|max|clamp)\(.+\)|^0$/,rd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,od=/^(inset_)?-?((\d+)?\.?(\d+)[a-je]+|0)je-?((\d+)?\.?(\d+)[a-je]+|0)/,sd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wt=e=>Ba(e)||ed.has(e)||Zc.test(e),_t=e=>Ha(e,"length",ud),Ba=e=>!!e&&!Number.isNaN(Number(e)),Ho=e=>Ha(e,"number",Ba),tr=e=>!!e&&Number.isInteger(Number(e)),id=e=>e.endsWith("%")&&Ba(e.slice(0,-1)),D=e=>Ui.test(e),Gt=e=>td.test(e),nd=new Set(["length","size","percentage"]),ld=e=>Ha(e,nd,Wi),cd=e=>Ha(e,"position",Wi),dd=new Set(["image","url"]),md=e=>Ha(e,dd,fd),pd=e=>Ha(e,"",gd),ar=()=>!0,Ha=(e,t,a)=>{let r=Ui.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):a(r[2]):!1},ud=e=>ad.test(e)&&!rd.test(e),Wi=()=>!1,gd=e=>od.test(e),fd=e=>sd.test(e);var bd=()=>{let e=q("colors"),t=q("spacing"),a=q("blur"),r=q("brightness"),o=q("borderColor"),s=q("borderRadius"),l=q("borderSpacing"),i=q("borderWidth"),d=q("contrast"),p=q("grayscale"),c=q("hueRotate"),u=q("invert"),m=q("gap"),f=q("gradientColorStops"),h=q("gradientColorStopPositions"),g=q("inset"),x=q("margin"),A=q("opacity"),O=q("padding"),Q=q("saturate"),he=q("scale"),Ie=q("sepia"),gt=q("skew"),S=q("space"),H=q("translate"),at=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",D,t],U=()=>[D,t],Lr=()=>["",wt,_t],Er=()=>["auto",Ba,D],Bi=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Br=()=>["solid","dashed","dotted","double","none"],Hi=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Bo=()=>["start","end","center","between","around","evenly","stretch"],er=()=>["","0",D],Fi=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Nt=()=>[Ba,D];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[wt,_t],blur:["none","",Gt,D],brightness:Nt(),borderColor:[e],borderRadius:["none","","full",Gt,D],borderSpacing:U(),borderWidth:Lr(),contrast:Nt(),grayscale:er(),hueRotate:Nt(),invert:er(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[id,_t],inset:G(),margin:G(),opacity:Nt(),padding:U(),saturate:Nt(),scale:Nt(),sepia:er(),skew:Nt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[Gt]}],"break-after":[{"break-after":Fi()}],"break-before":[{"break-before":Fi()}],"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:[...Bi(),D]}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-je":[{"overflow-je":N()}],overscroll:[{overscroll:at()}],"overscroll-x":[{"overscroll-x":at()}],"overscroll-je":[{"overscroll-je":at()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-je":[{"inset-je":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],je:[{je:["auto",tr,D]}],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",D]}],grow:[{grow:er()}],shrink:[{shrink:er()}],order:[{order:["first","last","none",tr,D]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",tr,D]},D]}],"col-start":[{"col-start":Er()}],"col-end":[{"col-end":Er()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[tr,D]},D]}],"row-start":[{"row-start":Er()}],"row-end":[{"row-end":Er()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-je":[{"gap-je":[m]}],"justify-content":[{justify:["normal",...Bo()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Bo(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Bo(),"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]}],je:[{je:[O]}],_r:[{_r:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],je:[{je:[x]}],je:[{je:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-je":[{"space-je":[S]}],"space-je-reverse":["space-je-reverse"],je:[{je:["auto","min","max","fit","svw","lvw","dvw",D,t]}],"min-je":[{"min-je":[D,t,"min","max","fit"]}],"max-je":[{"max-je":[D,t,"none","full","min","max","fit","prose",{screen:[Gt]},Gt]}],h:[{h:[D,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[D,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[D,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Gt,_t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ho]}],"font-family":[{font:[ar]}],"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",D]}],"line-clamp":[{"line-clamp":["none",Ba,Ho]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",wt,D]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Br(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",wt,_t]}],"underline-offset":[{"underline-offset":["auto",wt,D]}],"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",D]}],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",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Bi(),cd]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","je","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ld]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","je","bl","l","tl"]},md]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[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-je":[{"rounded-je":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-je":[{"rounded-je":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-je":[{border:[i]}],"border-je-x":[{"border-x":[i]}],"border-je-je":[{"border-je":[i]}],"border-je-s":[{"border-s":[i]}],"border-je-e":[{"border-e":[i]}],"border-je-t":[{"border-t":[i]}],"border-je-r":[{"border-r":[i]}],"border-je-je":[{"border-je":[i]}],"border-je-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...Br(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-je":[{"divide-je":[i]}],"divide-je-reverse":["divide-je-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:Br()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-je":[{"border-je":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-je":[{"border-je":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...Br()]}],"outline-offset":[{"outline-offset":[wt,D]}],"outline-je":[{outline:[wt,_t]}],"outline-color":[{outline:[e]}],"ring-je":[{ring:Lr()}],"ring-je-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-je":[{"ring-offset":[wt,_t]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Gt,pd]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Hi(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Hi()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[r]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Gt,D]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[Ie]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[Ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-je":[{"border-spacing-je":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:Nt()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:Nt()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[he]}],"scale-x":[{"scale-x":[he]}],"scale-je":[{"scale-je":[he]}],rotate:[{rotate:[tr,D]}],"translate-x":[{"translate-x":[H]}],"translate-je":[{"translate-je":[H]}],"skew-x":[{"skew-x":[gt]}],"skew-je":[{"skew-je":[gt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],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","je-resize","ne-resize","nw-resize","je-resize","sw-resize","ew-resize","je-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","je","x",""]}],"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-je":[{"scroll-je":U()}],"scroll-je":[{"scroll-je":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-je":[{"scroll-je":U()}],"scroll-_r":[{"scroll-_r":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","x","je","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-je":[{"touch-pan":["je","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[e,"none"]}],"stroke-je":[{stroke:[wt,_t,Ho]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-je"],overscroll:["overscroll-x","overscroll-je"],inset:["inset-x","inset-je","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-je":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-je"],p:["px","py","ps","je","_r","pr","pb","pl"],px:["pr","pl"],py:["_r","pb"],m:["mx","my","ms","je","je","mr","mb","ml"],mx:["mr","ml"],my:["je","mb"],size:["je","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-je","rounded-l","rounded-ss","rounded-je","rounded-je","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-je","rounded-je"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-je":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-je"],"border-je":["border-je-s","border-je-e","border-je-t","border-je-r","border-je-je","border-je-l"],"border-je-x":["border-je-r","border-je-l"],"border-je-je":["border-je-t","border-je-je"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-je","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-je":["border-color-t","border-color-je"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-je","scroll-je","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-je","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-je","scroll-_r","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-_r","scroll-pb"],touch:["touch-x","touch-je","touch-pz"],"touch-x":["touch"],"touch-je":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Xi=Qc(bd);function n(...e){return Xi((0,ji.clsx)(e))}var je=require("react/jsx-runtime"),Oo=Fa.forwardRef(({...e},t)=>(0,je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Oo.displayName="Breadcrumb";var _o=Fa.forwardRef(({className:e,...t},a)=>(0,je.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}));_o.displayName="BreadcrumbList";var Go=Fa.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Go.displayName="BreadcrumbItem";var Vo=Fa.forwardRef(({asChild:e,className:t,...a},r)=>(0,je.jsx)(e?Yi.Slot:"a",{ref:r,className:n("transition-colors hover:text-foreground",t),...a}));Vo.displayName="BreadcrumbLink";var $o=Fa.forwardRef(({className:e,...t},a)=>(0,je.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));$o.displayName="BreadcrumbPage";var Uo=({children:e,className:t,...a})=>(0,je.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:je-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,je.jsx)(Fr.ChevronRightIcon,{})});Uo.displayName="BreadcrumbSeparator";var Wo=({className:e,...t})=>(0,je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 je-9 items-center justify-center",e),...t,children:[(0,je.jsx)(Fr.DotsHorizontalIcon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More"})]});Wo.displayName="BreadcrumbElipssis";var za=v(require("@radix-ui/react-collapsible")),Ct=za.Root,Vt=za.CollapsibleTrigger,$t=za.CollapsibleContent;var Pt=v(require("react")),L=v(require("@radix-ui/react-dropdown-menu"));var Ki=L.Root,qi=L.Trigger,Ji=L.Group,Qi=L.Portal,Zi=L.Sub,en=L.RadioGroup,Xo=Pt.forwardRef(({className:e,inset:t,children:a,...r},o)=>(0,je.jsxs)(L.SubTrigger,{ref:o,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),...r,children:[a,(0,je.jsx)(Fr.ChevronRightIcon,{className:"ml-auto"})]}));Xo.displayName=L.SubTrigger.displayName;var jo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(L.SubContent,{ref:a,className:n("je-50 min-je-[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}));jo.displayName=L.SubContent.displayName;var Yo=Pt.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(L.Portal,{children:(0,je.jsx)(L.Content,{ref:r,sideOffset:t,className:n("je-50 min-je-[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})}));Yo.displayName=L.Content.displayName;var Ko=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(L.Item,{ref:r,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}));Ko.displayName=L.Item.displayName;var qo=Pt.forwardRef(({className:e,children:t,checked:a,...r},o)=>(0,je.jsxs)(L.CheckboxItem,{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),checked:a,...r,children:[(0,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(L.ItemIndicator,{children:(0,je.jsx)(Fr.CheckIcon,{className:"h-4 je-4"})})}),t]}));qo.displayName=L.CheckboxItem.displayName;var Jo=Pt.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(L.RadioItem,{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),...a,children:[(0,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(L.ItemIndicator,{children:(0,je.jsx)(Fr.DotFilledIcon,{className:"h-4 je-4 fill-current"})})}),t]}));Jo.displayName=L.RadioItem.displayName;var Qo=Pt.forwardRef(({className:e,inset:t,...a},r)=>(0,je.jsx)(L.Label,{ref:r,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Qo.displayName=L.Label.displayName;var Zo=Pt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(L.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Zo.displayName=L.Separator.displayName;var es=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});es.displayName="DropdownMenuShortcut";var tn=v(require("react"));var Ae=tn.forwardRef(({className:e,type:t,...a},r)=>(0,je.jsx)("input",{type:t,className:n("flex h-9 je-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:r,...a}));Ae.displayName="Input";var rn=v(require("react")),ts=v(require("@radix-ui/react-separator"));var rr=rn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...r},o)=>(0,je.jsx)(ts.Root,{ref:o,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] je-full":"h-full je-[1px]",e),...r}));rr.displayName=ts.Root.displayName;var or=v(require("react")),te=v(require("@radix-ui/react-dialog")),nn=require("class-variance-authority");var zr=te.Root,ln=te.Trigger,cn=te.Close,as=te.Portal,Or=or.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Overlay,{className:n("fixed inset-0 je-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}));Or.displayName=te.Overlay.displayName;var vd=(0,nn.cva)("fixed je-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-x-0 top-0 border-je data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-je-0 left-0 h-full je-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-je-sm",right:"inset-je-0 right-0 h-full je-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-je-sm"}},defaultVariants:{side:"right"}}),sr=or.forwardRef(({side:e="right",className:t,children:a,...r},o)=>(0,je.jsxs)(as,{children:[(0,je.jsx)(Or,{}),(0,je.jsxs)(te.Content,{ref:o,className:n(vd({side:e}),t),...r,children:[(0,je.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,je.jsx)(Fr.Cross2Icon,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));sr.displayName=te.Content.displayName;var rs=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-2 text-center sm:text-left",e),...t});rs.displayName="SheetHeader";var os=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});os.displayName="SheetFooter";var ss=or.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));ss.displayName=te.Title.displayName;var is=or.forwardRef(({className:e,...t},a)=>(0,je.jsx)(te.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));is.displayName=te.Description.displayName;var E=v(require("react")),vn=require("lucide-react");var _r=require("react"),Gr=(e=768)=>{let[t,a]=(0,_r.useState)(!1);return(0,_r.useEffect)(()=>{let r=()=>{a(window.innerWidth<e)};return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t};var pn=v(require("react")),Ut=(0,nn.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 je-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"}}}),k=pn.forwardRef(({asChild:e=!1,className:t,size:a,variant:r,...o},s)=>(0,je.jsx)(e?Yi.Slot:"button",{className:n(Ut({className:t,size:a,variant:r})),ref:s,...o}));k.displayName="Button";function ae({className:e,...t}){return(0,je.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var fn=v(require("react")),rt=v(require("@radix-ui/react-tooltip"));var Vr=rt.Provider,$r=rt.Root,Ur=rt.Trigger,ir=fn.forwardRef(({className:e,sideOffset:t=4,...a},r)=>(0,je.jsx)(rt.Portal,{children:(0,je.jsx)(rt.Content,{ref:r,sideOffset:t,className:n("je-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})}));ir.displayName=rt.Content.displayName;var hd="sidebar:state",yd=60*60*24*7,xd="16rem",Nd="18rem",wd="3rem",Cd="je",hn=E.createContext(null);function Ga(){let e=E.useContext(hn);if(!e)throw new Error("useSidebar must je used within a SidebarProvider.");return e}var ls=E.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:r,style:o,children:s,...l},i)=>{let d=Gr(),[p,c]=E.useState(!1),[u,m]=E.useState(e),f=t!=null?t:u,h=E.useCallback(O=>{if(a)return a==null?void 0:a(typeof O=="function"?O(f):O);m(O),document.cookie=`${hd}=${f}; path=/; max-age=${yd}`},[a,f]),g=E.useCallback(()=>d?c(O=>!O):h(O=>!O),[d,h,c]);E.useEffect(()=>{let O=Q=>{Q.key===Cd&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),g())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[g]);let x=f?"expanded":"collapsed",A=E.useMemo(()=>({state:x,open:f,setOpen:h,isMobile:d,openMobile:p,setOpenMobile:c,toggleSidebar:g}),[x,f,h,d,p,c,g]);return(0,je.jsx)(hn.Provider,{value:A,children:(0,je.jsx)(Vr,{delayDuration:0,children:(0,je.jsx)("div",{style:{"--sidebar-width":xd,"--sidebar-width-icon":wd,...o},className:n("group/sidebar-wrapper flex je-full fixed has-[[data-variant=inset]]:bg-sidebar",r),ref:i,...l,children:s})})})});ls.displayName="SidebarProvider";var ca=E.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:r,children:o,...s},l)=>{let{isMobile:i,state:d,openMobile:p,setOpenMobile:c}=Ga();return a==="none"?(0,je.jsx)("div",{className:n("flex h-full je-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...s,children:o}):i?(0,je.jsx)(zr,{open:p,onOpenChange:c,...s,children:(0,je.jsx)(sr,{"data-sidebar":"sidebar","data-mobile":"true",className:"je-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Nd},side:e,children:(0,je.jsx)("div",{className:"flex h-full je-full flex-col",children:o})})}):(0,je.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,je.jsx)("div",{className:n("duration-200 relative h-svh je-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:je-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:je-[calc(var(--sidebar-width-icon)je+_theme(spacing.4))]":"group-data-[collapsible=icon]:je-[--sidebar-width-icon]")}),(0,je.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 je-10 hidden je-[--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]:je-[calc(var(--sidebar-width-icon)je+_theme(spacing.4)je+2px)]":"group-data-[collapsible=icon]:je-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...s,children:(0,je.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full je-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:o})})]})});ca.displayName="Sidebar";var cs=E.forwardRef(({className:e,onClick:t,...a},r)=>{let{toggleSidebar:o}=Ga();return(0,je.jsxs)(k,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 je-7",e),onClick:s=>{t==null||t(s),o()},...a,children:[(0,je.jsx)(vn.PanelLeft,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});cs.displayName="SidebarTrigger";var ds=E.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:r}=Ga();return(0,je.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:n("absolute inset-je-0 je-20 hidden je-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-je-0 after:left-1/2 after:je-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]je&]:cursor-je-resize [[data-side=right]je&]:cursor-e-resize","[[data-side=left][data-state=collapsed]je&]:cursor-e-resize [[data-side=right][data-state=collapsed]je&]:cursor-je-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]je&]:-right-2","[[data-side=right][data-collapsible=offcanvas]je&]:-left-2",e),...t})});ds.displayName="SidebarRail";var ms=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-je-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}));ms.displayName="SidebarInset";var ps=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Ae,{ref:a,"data-sidebar":"input",className:n("h-8 je-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ps.displayName="SidebarInput";var da=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));da.displayName="SidebarHeader";var ma=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));ma.displayName="SidebarFooter";var nr=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)(rr,{ref:a,"data-sidebar":"separator",className:n("mx-2 je-auto bg-sidebar-border",e),...t}));nr.displayName="SidebarSeparator";var Wt=E.forwardRef(({className:e,...t},a)=>(0,je.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}));Wt.displayName="SidebarContent";var Ye=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex je-full min-je-0 flex-col p-2",e),...t}));Ye.displayName="SidebarGroup";var Rt=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Yi.Slot:"div",{ref:r,"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]:-je-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Rt.displayName="SidebarGroupLabel";var us=E.forwardRef(({className:e,asChild:t=!1,...a},r)=>(0,je.jsx)(t?Yi.Slot:"button",{ref:r,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square je-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}));us.displayName="SidebarGroupAction";var ot=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("je-full text-sm",e),...t}));ot.displayName="SidebarGroupContent";var Le=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu",className:n("flex je-full min-je-0 flex-col gap-1",e),...t}));Le.displayName="SidebarMenu";var xe=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));xe.displayName="SidebarMenuItem";var Pd=(0,nn.cva)("peer/menu-button flex je-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"}}),Ke=E.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:r="default",tooltip:o,className:s,...l},i)=>{let d=e?Yi.Slot:"button",{isMobile:p,state:c}=Ga(),u=(0,je.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:n(Pd({variant:a,size:r}),s),...l});return o?(typeof o=="string"&&(o={children:o}),(0,je.jsxs)($r,{children:[(0,je.jsx)(Ur,{asChild:!0,children:u}),(0,je.jsx)(ir,{side:"right",align:"center",hidden:c!=="collapsed"||p,...o})]})):u});Ke.displayName="SidebarMenuButton";var lr=E.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...r},o)=>(0,je.jsx)(t?Yi.Slot:"button",{ref:o,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square je-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),...r}));lr.displayName="SidebarMenuAction";var gs=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-je-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}));gs.displayName="SidebarMenuBadge";var fs=E.forwardRef(({className:e,showIcon:t=!1,...a},r)=>{let o=E.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,je.jsxs)("div",{ref:r,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,je.jsx)(ae,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,je.jsx)(ae,{className:"h-4 flex-1 max-je-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});fs.displayName="SidebarMenuSkeleton";var Xt=E.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-je-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Xt.displayName="SidebarMenuSub";var jt=E.forwardRef(({...e},t)=>(0,je.jsx)("li",{ref:t,...e}));jt.displayName="SidebarMenuSubItem";var Yt=E.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:r,...o},s)=>(0,je.jsx)(e?Yi.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-je-0 -translate-x-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",r),...o}));Yt.displayName="SidebarMenuSubButton";var jr=v(require("react")),Rd=1,Sd=1e6;var bs=0;function kd(){return bs=(bs+1)%Number.MAX_SAFE_INTEGER,bs.toString()}var vs=new Map,yn=e=>{if(vs.has(e))return;let t=setTimeout(()=>{vs.delete(e),cr({type:"REMOVE_TOAST",toastId:e})},Sd);vs.set(e,t)},Td=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Rd)};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?yn(a):e.toasts.forEach(r=>{yn(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===a||a===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},Wr=[],Xr={toasts:[]};function cr(e){Xr=Td(Xr,e),Wr.forEach(t=>{t(Xr)})}function Dd({...e}){let t=kd(),a=o=>cr({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>cr({type:"DISMISS_TOAST",toastId:t});return cr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:a}}function Yr(){let[e,t]=jr.useState(Xr);return jr.useEffect(()=>(Wr.push(t),()=>{let a=Wr.indexOf(t);a>-1&&Wr.splice(a,1)}),[e]),{...e,toast:Dd,dismiss:a=>cr({type:"DISMISS_TOAST",toastId:a})}}var pa=v(require("react")),ne=v(require("@radix-ui/react-toast"));var Kr=ne.Provider,dr=pa.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Viewport,{ref:a,className:n("fixed top-0 je-[100] flex max-h-screen je-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-je-[420px]",e),...t}));dr.displayName=ne.Viewport.displayName;var Md=(0,nn.cva)("group pointer-events-auto relative flex je-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] 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-to-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"}}),mr=pa.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)(ne.Root,{ref:r,className:n(Md({variant:t}),e),...a}));mr.displayName=ne.Root.displayName;var hs=pa.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.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}));hs.displayName=ne.Action.displayName;var pr=pa.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.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,je.jsx)(vn.je,{className:"h-4 je-4"})}));pr.displayName=ne.Close.displayName;var ur=pa.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));ur.displayName=ne.Title.displayName;var gr=pa.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ne.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));gr.displayName=ne.Description.displayName;function wn(){let{toasts:e}=Yr();return(0,je.jsxs)(Kr,{children:[e.map(function({id:t,title:a,description:r,action:o,...s}){return(0,je.jsxs)(mr,{...s,children:[(0,je.jsxs)("div",{className:"grid gap-1",children:[a&&(0,je.jsx)(ur,{children:a}),r&&(0,je.jsx)(gr,{children:r})]}),o,(0,je.jsx)(pr,{})]},t)}),(0,je.jsx)(dr,{})]})}var Cn=v(require("react")),ys=v(require("@radix-ui/react-toggle"));var fr=(0,nn.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=je]:bg-accent data-[state=je]: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-je-9",sm:"h-8 px-1.5 min-je-8",lg:"h-10 px-2.5 min-je-10"}},defaultVariants:{variant:"default",size:"default"}}),xs=Cn.forwardRef(({className:e,variant:t,size:a,...r},o)=>(0,je.jsx)(ys.Root,{ref:o,className:n(fr({variant:t,size:a,className:e})),...r}));xs.displayName=ys.Root.displayName;var ua=v(require("react")),Va=v(require("@radix-ui/react-toggle-group"));var Sn=ua.createContext({size:"default",variant:"default"}),Ns=ua.forwardRef(({className:e,variant:t,size:a,children:r,...o},s)=>(0,je.jsx)(Va.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...o,children:(0,je.jsx)(Sn.Provider,{value:{variant:t,size:a},children:r})}));Ns.displayName=Va.Root.displayName;var ws=ua.forwardRef(({className:e,children:t,variant:a,size:r,...o},s)=>{let l=ua.useContext(Sn);return(0,je.jsx)(Va.Item,{ref:s,className:n(fr({variant:l.variant||a,size:l.size||r}),e),...o,children:t})});ws.displayName=Va.Item.displayName;var Cs=v(require("react")),qe=v(require("@radix-ui/react-scroll-area"));var Jt=Cs.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(qe.Root,{ref:r,className:n("relative overflow-hidden",e),...a,children:[(0,je.jsx)(qe.Viewport,{className:"h-full je-full rounded-[inherit]",children:t}),(0,je.jsx)(Jr,{}),(0,je.jsx)(qe.Corner,{})]}));Jt.displayName=qe.Root.displayName;var Jr=Cs.forwardRef(({className:e,orientation:t="vertical",...a},r)=>(0,je.jsx)(qe.ScrollAreaScrollbar,{ref:r,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full je-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,je.jsx)(qe.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Jr.displayName=qe.ScrollAreaScrollbar.displayName;var kn=v(require("react")),st=v(require("@radix-ui/react-popover"));var br=st.Root,vr=st.Trigger,Tn=st.Anchor,$a=kn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(st.Portal,{children:(0,je.jsx)(st.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 je-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),...r})}));$a.displayName=st.Content.displayName;var Dn=v(require("react")),Rs=v(require("@radix-ui/react-label"));var Id=(0,nn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=Dn.forwardRef(({className:e,...t},a)=>(0,je.jsx)(Rs.Root,{ref:a,className:n(Id(),e),...t}));J.displayName=Rs.Root.displayName;var An=v(require("react")),ga=v(require("@radix-ui/react-hover-card"));var Ln=ga.Root,En=ga.Trigger,Ss=An.forwardRef(({className:e,align:t="center",sideOffset:a=4,...r},o)=>(0,je.jsx)(ga.Content,{ref:o,align:t,sideOffset:a,className:n("je-50 je-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),...r}));Ss.displayName=ga.Content.displayName;var hr=v(require("react")),re=v(require("@radix-ui/react-dialog"));var Je=re.Root,Qr=re.Trigger,ks=re.Portal,Zr=re.Close,eo=hr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Overlay,{ref:a,className:n("fixed inset-0 je-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}));eo.displayName=re.Overlay.displayName;var Ve=hr.forwardRef(({className:e,children:t,...a},r)=>(0,je.jsxs)(ks,{children:[(0,je.jsx)(eo,{}),(0,je.jsxs)(re.Content,{ref:r,className:n("fixed left-[50%] top-[50%] je-50 grid je-full max-je-lg translate-x-[-50%] translate-je-[-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-to-left-1/2 data-[state=closed]:slide-out-to-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,je.jsxs)(re.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,je.jsx)(vn.je,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ve.displayName=re.Content.displayName;var it=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col space-je-1.5 text-center sm:text-left",e),...t});it.displayName="DialogHeader";var Ts=({className:e,...t})=>(0,je.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ts.displayName="DialogFooter";var nt=hr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));nt.displayName=re.Title.displayName;var Ds=hr.forwardRef(({className:e,...t},a)=>(0,je.jsx)(re.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ds.displayName=re.Description.displayName;var Qt=v(require("react")),ke=require("cmdk");var to=Qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command,{ref:a,className:n("flex h-full je-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));to.displayName=ke.Command.displayName;var zn=({children:e,...t})=>(0,je.jsx)(Je,{...t,children:(0,je.jsx)(Ve,{className:"overflow-hidden p-0",children:(0,je.jsx)(to,{className:"[&je[cmdk-group-heading]]:px-2 [&je[cmdk-group-heading]]:font-medium [&je[cmdk-group-heading]]:text-muted-foreground [&je[cmdk-group]:not([hidden])je~[cmdk-group]]:_r-0 [&je[cmdk-group]]:px-2 [&je[cmdk-input-wrapper]_svg]:h-5 [&je[cmdk-input-wrapper]_svg]:je-5 [&je[cmdk-input]]:h-12 [&je[cmdk-item]]:px-2 [&je[cmdk-item]]:py-3 [&je[cmdk-item]_svg]:h-5 [&je[cmdk-item]_svg]:je-5",children:e})})}),Ms=Qt.forwardRef(({className:e,...t},a)=>(0,je.jsxs)("div",{className:"flex items-center border-je px-3","cmdk-input-wrapper":"",children:[(0,je.jsx)(vn.Search,{className:"mr-2 h-4 je-4 shrink-0 opacity-50"}),(0,je.jsx)(ke.Command.Input,{ref:a,className:n("flex h-10 je-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ms.displayName=ke.Command.Input.displayName;var Is=Qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.List,{ref:a,className:n("max-h-[300px] overflow-je-auto overflow-x-hidden",e),...t}));Is.displayName=ke.Command.List.displayName;var As=Qt.forwardRef((e,t)=>(0,je.jsx)(ke.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));As.displayName=ke.Command.Empty.displayName;var Ls=Qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&je[cmdk-group-heading]]:px-2 [&je[cmdk-group-heading]]:py-1.5 [&je[cmdk-group-heading]]:text-xs [&je[cmdk-group-heading]]:font-medium [&je[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ls.displayName=ke.Command.Group.displayName;var Es=Qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Es.displayName=ke.Command.Separator.displayName;var Bs=Qt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(ke.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}));Bs.displayName=ke.Command.Item.displayName;var Hs=({className:e,...t})=>(0,je.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Hs.displayName="CommandShortcut";var ao=v(require("react"));var Ad=(0,nn.cva)("relative je-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-je-[-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"}}),Fs=ao.forwardRef(({className:e,variant:t,...a},r)=>(0,je.jsx)("div",{ref:r,role:"alert",className:n(Ad({variant:t}),e),...a}));Fs.displayName="Alert";var zs=ao.forwardRef(({className:e,...t},a)=>(0,je.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));zs.displayName="AlertTitle";var Os=ao.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Os.displayName="AlertDescription";var oo=v(require("react")),kt=v(require("@radix-ui/react-avatar"));var Tt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Root,{ref:a,className:n("relative flex h-10 je-10 shrink-0 overflow-hidden rounded-full",e),...t}));Tt.displayName=kt.Root.displayName;var Dt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Image,{ref:a,className:n("aspect-square h-full je-full",e),...t}));Dt.displayName=kt.Image.displayName;var Mt=oo.forwardRef(({className:e,...t},a)=>(0,je.jsx)(kt.Fallback,{ref:a,className:n("flex h-full je-full items-center justify-center rounded-full bg-muted",e),...t}));Mt.displayName=kt.Fallback.displayName;var _s=(0,nn.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 Qe({className:e,variant:t,...a}){return(0,je.jsx)("div",{className:n(_s({variant:t}),e),...a})}var yr=v(require("@radix-ui/react-checkbox")),$n=v(require("react")),lt=$n.forwardRef(({className:e,...t},a)=>(0,je.jsx)(yr.Root,{className:n("peer h-4 je-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,je.jsx)(yr.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,je.jsx)(vn.Check,{className:"h-4 je-4"})})}));lt.displayName=yr.Root.displayName;var F=v(require("@radix-ui/react-select")),Zt=v(require("react")),ba=F.Root,Ld=F.Group,va=F.Value,ea=Zt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Trigger,{className:n("flex h-10 je-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:r,...a,children:[e,(0,je.jsx)(F.Icon,{asChild:!0,children:(0,je.jsx)(vn.ChevronDown,{className:"h-4 je-4 opacity-50"})})]}));ea.displayName=F.Trigger.displayName;var Gs=Zt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,je.jsx)(vn.ChevronUp,{className:"h-4 je-4"})}));Gs.displayName=F.ScrollUpButton.displayName;var Vs=Zt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,je.jsx)(vn.ChevronDown,{className:"h-4 je-4"})}));Vs.displayName=F.ScrollDownButton.displayName;var ta=Zt.forwardRef(({children:e,className:t,position:a="popper",...r},o)=>(0,je.jsx)(F.Portal,{children:(0,je.jsxs)(F.Content,{className:n("relative je-50 max-h-96 min-je-[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-je-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-je-1",t),position:a,ref:o,...r,children:[(0,je.jsx)(Gs,{}),(0,je.jsx)(F.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] je-full min-je-[var(--radix-select-trigger-width)]"),children:e}),(0,je.jsx)(Vs,{})]})}));ta.displayName=F.Content.displayName;var Un=Zt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Un.displayName=F.Label.displayName;var aa=Zt.forwardRef(({children:e,className:t,...a},r)=>(0,je.jsxs)(F.Item,{className:n("relative flex je-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:r,...a,children:[(0,je.jsx)("span",{className:"absolute left-2 flex h-3.5 je-3.5 items-center justify-center",children:(0,je.jsx)(F.ItemIndicator,{children:(0,je.jsx)(vn.Check,{className:"h-4 je-4"})})}),(0,je.jsx)(F.ItemText,{children:e})]}));aa.displayName=F.Item.displayName;var Wn=Zt.forwardRef(({className:e,...t},a)=>(0,je.jsx)(F.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Wn.displayName=F.Separator.displayName;var Xn=v(require("react")),ra=Xn.forwardRef(({className:e,...t},a)=>(0,je.jsx)("textarea",{className:n("flex min-h-[80px] je-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}));ra.displayName="Textarea";var Yn=require("react-day-picker");function xr({className:e,classNames:t,showOutsideDays:a=!0,...r}){return(0,je.jsx)(Yn.DayPicker,{showOutsideDays:a,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-je-4 sm:space-x-4 sm:space-je-0",month:"space-je-4",caption:"flex justify-center _r-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:n(Ut({variant:"outline"}),"h-7 je-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"je-full border-collapse space-je-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md je-8 font-normal text-[0.8rem]",row:"flex je-full je-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:je-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",r.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(Ut({variant:"ghost"}),"h-8 je-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},...r})}xr.displayName="Calendar";var Ee=({type:e="solid",iconName:t="cloud",size:a="lg",className:r})=>{let o=e.includes("vn-")?e+" ":"vn-"+e+" ",s="vn-"+t,l=r!=null?r:"",i=o+s+" vn-"+a+" "+l;return(0,je.jsx)("i",{className:i})};var Jn=({title:e,description:t,iconName:a,iconStyle:r,color:o})=>(0,je.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"}[o]} p-6 flex flex-col items-center text-center`,children:[(0,je.jsx)("div",{className:"je-12 h-12 ",children:(0,je.jsx)(Ee,{type:r,iconName:a,className:"je-12 h-12 text-white"})}),(0,je.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,je.jsx)("p",{className:"text-white text-sm",children:t})]});var Qn=v(require("next/image")),Zn=v(require("next/link"));var ya=v(require("react"));var ge=ya.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ge.displayName="Card";var Be=ya.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex flex-col space-je-1.5 p-6",e),...t}));Be.displayName="CardHeader";var He=ya.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));He.displayName="CardTitle";var Ed=ya.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ed.displayName="CardDescription";var Ne=ya.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("p-6 _r-0",e),...t}));Ne.displayName="CardContent";var Bd=ya.forwardRef(({className:e,...t},a)=>(0,je.jsx)("div",{ref:a,className:n("flex items-center p-6 _r-0",e),...t}));Bd.displayName="CardFooter";function el({name:e,logo:t,href:a}){return(0,je.jsx)(ge,{className:"je-full max-je-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,je.jsxs)(Zn.default,{href:a,className:"block",children:[(0,je.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,je.jsx)("div",{className:"relative je-full h-full",children:t&&(0,je.jsx)(Qn.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,je.jsx)(Ne,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,je.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 tl({eventType:e="birthday",date:t="",title:a="",description:r="",avatarSrc:o}){let s=i=>{switch(i){case"birthday":return(0,je.jsx)(vn.Cake,{className:"h-4 je-4"});case"workAnniversary":return(0,je.jsx)(vn.Award,{className:"h-4 je-4"});case"companyEvent":return(0,je.jsx)(vn.PartyPopper,{className:"h-4 je-4"});default:return(0,je.jsx)(vn.CalendarDays,{className:"h-4 je-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 to-slate-500"}};return(0,je.jsxs)(ge,{className:`je-full max-je-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,je.jsxs)(Be,{className:"flex flex-row items-center gap-3 text-white",children:[o&&(0,je.jsxs)(Tt,{className:"h-14 je-14 border-2 border-white",children:[(0,je.jsx)(Dt,{src:o,alt:a||"Event"}),(0,je.jsx)(Mt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,je.jsxs)("div",{className:"flex flex-col",children:[(0,je.jsx)(He,{className:"text-xl",children:a||"Untitled Event"}),(0,je.jsxs)("p",{className:"text-sm text-white/80",children:[(0,je.jsx)(vn.CalendarDays,{className:"mr-1 inline-block h-4 je-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,je.jsxs)(Ne,{className:"bg-white bg-opacity-80 p-4",children:[r&&(0,je.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:r}),(0,je.jsxs)(Qe,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,je.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-je])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var rl=v(require("next/link"));var ol=v(require("next/image")),al={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function sl({slug:e,image:t,title:a,description:r}){return(0,je.jsxs)(rl.default,{href:e,className:"group/portfolio relative je-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,je.jsx)("span",{className:n("absolute inset-0 je-[2] bg-gradient-1 from-primary/0 to-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,je.jsx)(ol.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"use strict";var ec=Object.create;var tr=Object.defineProperty;var tc=Object.getOwnPropertyDescriptor;var ac=Object.getOwnPropertyNames;var oc=Object.getPrototypeOf,rc=Object.prototype.hasOwnProperty;var sc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ic=(e,t)=>{for(var a in t)tr(e,a,{get:t[a],enumerable:!0})},an=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ac(t))!rc.call(e,r)&&r!==a&&tr(e,r,{get:()=>t[r],enumerable:!(o=tc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?ec(oc(e)):{},an(t||!e||!e.__esModule?tr(a,"default",{value:e,enumerable:!0}):a,e)),nc=e=>an(tr({},"__esModule",{value:!0}),e);var un=sc((So,os)=>{"use strict";(function(e,t){typeof So=="object"&&typeof os=="object"?os.exports=t():typeof define=="function"&&define.amd?define([],t):typeof So=="object"?So.AOS=t():e.AOS=t()})(So,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(x){return x&&x.__esModule?x:{default:x}}var r=Object.assign||function(x){for(var le=1;le<arguments.length;le++){var Me=arguments[le];for(var gt in Me)Object.prototype.hasOwnProperty.call(Me,gt)&&(x[gt]=Me[gt])}return x},s=a(1),n=(o(s),a(6)),i=o(n),c=a(7),m=o(c),d=a(8),u=o(d),p=a(9),g=o(p),y=a(10),f=o(y),w=a(11),M=o(w),H=a(14),q=o(H),Y=[],ne=!1,V={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},P=function(){var x=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(x&&(ne=!0),ne)return Y=(0,M.default)(Y,V),(0,f.default)(Y,V.once),Y},I=function(){Y=(0,q.default)(),P()},S=function(){Y.forEach(function(x,le){x.node.removeAttribute("data-aos"),x.node.removeAttribute("data-aos-easing"),x.node.removeAttribute("data-aos-duration"),x.node.removeAttribute("data-aos-delay")})},b=function(x){return x===!0||x==="mobile"&&g.default.mobile()||x==="phone"&&g.default.phone()||x==="tablet"&&g.default.tablet()||typeof x=="function"&&x()===!0},C=function(x){V=r(V,x),Y=(0,q.default)();var le=document.all&&!window.atob;return b(V.disable)||le?S():(V.disableMutationObserver||u.default.isSupported()||(console.info(`
|
|
7
|
+
aos: MutationObserver is not supported on this browser,
|
|
8
|
+
code mutations observing has been disabled.
|
|
9
|
+
You may have it call "refreshHard()" by yourself.
|
|
10
|
+
`),V.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",V.easing),document.querySelector("body").setAttribute("data-aos-duration",V.duration),document.querySelector("body").setAttribute("data-aos-delay",V.delay),V.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?P(!0):V.startEvent==="load"?window.addEventListener(V.startEvent,function(){P(!0)}):document.addEventListener(V.startEvent,function(){P(!0)}),window.addEventListener("resize",(0,m.default)(P,V.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(P,V.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(Y,V.once)},V.throttleDelay)),V.disableMutationObserver||u.default.ready("[data-aos]",I),Y)};e.exports={init:C,refresh:P,refreshHard:I}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,C,x){function le(Z){var je=st,ia=Tt;return st=Tt=void 0,ra=Z,Te=b.apply(ia,je)}function Me(Z){return ra=Z,xe=setTimeout(kt,C),sa?le(Z):Te}function gt(Z){var je=Z-Ke,ia=Z-ra,tn=C-je;return Ht?I(tn,Dt-ia):tn}function rt(Z){var je=Z-Ke,ia=Z-ra;return Ke===void 0||je>=C||je<0||Ht&&ia>=Dt}function kt(){var Z=S();return rt(Z)?aa(Z):void(xe=setTimeout(kt,gt(Z)))}function aa(Z){return xe=void 0,se&&st?le(Z):(st=Tt=void 0,Te)}function zt(){xe!==void 0&&clearTimeout(xe),ra=0,st=Ke=Tt=xe=void 0}function oa(){return xe===void 0?Te:aa(S())}function ge(){var Z=S(),je=rt(Z);if(st=arguments,Tt=this,Ke=Z,je){if(xe===void 0)return Me(Ke);if(Ht)return xe=setTimeout(kt,C),le(Ke)}return xe===void 0&&(xe=setTimeout(kt,C)),Te}var st,Tt,Dt,Te,xe,Ke,ra=0,sa=!1,Ht=!1,se=!0;if(typeof b!="function")throw new TypeError(d);return C=c(C)||0,s(x)&&(sa=!!x.leading,Ht="maxWait"in x,Dt=Ht?P(c(x.maxWait)||0,C):Dt,se="trailing"in x?!!x.trailing:se),ge.cancel=zt,ge.flush=oa,ge}function r(b,C,x){var le=!0,Me=!0;if(typeof b!="function")throw new TypeError(d);return s(x)&&(le="leading"in x?!!x.leading:le,Me="trailing"in x?!!x.trailing:Me),o(b,C,{leading:le,maxWait:C,trailing:Me})}function s(b){var C=typeof b=="undefined"?"undefined":m(b);return!!b&&(C=="object"||C=="function")}function n(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function i(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||n(b)&&V.call(b)==p}function c(b){if(typeof b=="number")return b;if(i(b))return u;if(s(b)){var C=typeof b.valueOf=="function"?b.valueOf():b;b=s(C)?C+"":C}if(typeof b!="string")return b===0?b:+b;b=b.replace(g,"");var x=f.test(b);return x||w.test(b)?M(b.slice(2),x?2:8):y.test(b)?u:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},d="Expected a function",u=NaN,p="[object Symbol]",g=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,w=/^0o[0-7]+$/i,M=parseInt,H=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,q=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,Y=H||q||Function("return this")(),ne=Object.prototype,V=ne.toString,P=Math.max,I=Math.min,S=function(){return Y.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(S,b,C){function x(se){var Z=ge,je=st;return ge=st=void 0,Ke=se,Dt=S.apply(je,Z)}function le(se){return Ke=se,Te=setTimeout(rt,b),ra?x(se):Dt}function Me(se){var Z=se-xe,je=se-Ke,ia=b-Z;return sa?P(ia,Tt-je):ia}function gt(se){var Z=se-xe,je=se-Ke;return xe===void 0||Z>=b||Z<0||sa&&je>=Tt}function rt(){var se=I();return gt(se)?kt(se):void(Te=setTimeout(rt,Me(se)))}function kt(se){return Te=void 0,Ht&&ge?x(se):(ge=st=void 0,Dt)}function aa(){Te!==void 0&&clearTimeout(Te),Ke=0,ge=xe=st=Te=void 0}function zt(){return Te===void 0?Dt:kt(I())}function oa(){var se=I(),Z=gt(se);if(ge=arguments,st=this,xe=se,Z){if(Te===void 0)return le(xe);if(sa)return Te=setTimeout(rt,b),x(xe)}return Te===void 0&&(Te=setTimeout(rt,b)),Dt}var ge,st,Tt,Dt,Te,xe,Ke=0,ra=!1,sa=!1,Ht=!0;if(typeof S!="function")throw new TypeError(m);return b=i(b)||0,r(C)&&(ra=!!C.leading,sa="maxWait"in C,Tt=sa?V(i(C.maxWait)||0,b):Tt,Ht="trailing"in C?!!C.trailing:Ht),oa.cancel=aa,oa.flush=zt,oa}function r(S){var b=typeof S=="undefined"?"undefined":c(S);return!!S&&(b=="object"||b=="function")}function s(S){return!!S&&(typeof S=="undefined"?"undefined":c(S))=="object"}function n(S){return(typeof S=="undefined"?"undefined":c(S))=="symbol"||s(S)&&ne.call(S)==u}function i(S){if(typeof S=="number")return S;if(n(S))return d;if(r(S)){var b=typeof S.valueOf=="function"?S.valueOf():S;S=r(b)?b+"":b}if(typeof S!="string")return S===0?S:+S;S=S.replace(p,"");var C=y.test(S);return C||f.test(S)?w(S.slice(2),C?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},m="Expected a function",d=NaN,u="[object Symbol]",p=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,f=/^0o[0-7]+$/i,w=parseInt,M=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,H=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,q=M||H||Function("return this")(),Y=Object.prototype,ne=Y.toString,V=Math.max,P=Math.min,I=function(){return q.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,u=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(u=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,u=o(),p=new u(n);i=m,p.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),u=Array.prototype.slice.call(m.removedNodes),p=d.concat(u);if(a(p))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(u,p){for(var g=0;g<p.length;g++){var y=p[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,p,g){return p&&d(u.prototype,p),g&&d(u,g),u}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(it|oo|s\-)|ai(ko|rn)|zn(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(it|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|it(lb|rd)|bl(ac|az)|br(e|it)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|it(49|ai)|em(l2|ul)|it(ic|k0)|esl8|ez([4-7]0|os|wa|it)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|it(Xl|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(it|it)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|it)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|it)|le(fn|xi)|lg( g|\/(it|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(it|ui|at)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|it|de|do|t(\-| |o|it)|zz)|mt(50|p1|it )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|it(ay|uc)|pn\-2|it(ck|rt|se)|prox|psio|it\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(it|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|Rn(45|id)|sm(zn|ar|b3|it|t5)|so(it|ny)|sp(01|h\-|it\-|it )|sy(01|mb)|t2(18|50)|t6(00|10|18)|it(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|it(it|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|it)|vk(40|5[0-3]|\-it)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(it|oo|s\-)|ai(ko|rn)|zn(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(it|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|it(lb|rd)|bl(ac|az)|br(e|it)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|it(49|ai)|em(l2|ul)|it(ic|k0)|esl8|ez([4-7]0|os|wa|it)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|it(Xl|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(it|it)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|it)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|it)|le(fn|xi)|lg( g|\/(it|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(it|ui|at)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|it|de|do|t(\-| |o|it)|zz)|mt(50|p1|it )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|it(ay|uc)|pn\-2|it(ck|rt|se)|prox|psio|it\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(it|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|Rn(45|id)|sm(zn|ar|b3|it|t5)|so(it|ny)|sp(01|h\-|it\-|it )|sy(01|mb)|t2(18|50)|t6(00|10|18)|it(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|it(it|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|it)|vk(40|5[0-3]|\-it)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var u=o();return!(!s.test(u)&&!n.test(u.substr(0,4)))}},{key:"mobile",value:function(){var u=o();return!(!i.test(u)&&!c.test(u.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,u=window.innerHeight,p={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(p.offset&&!isNaN(p.offset)&&(d=parseInt(p.offset)),p.anchor&&document.querySelectorAll(p.anchor)&&(i=document.querySelectorAll(p.anchor)[0]),m=(0,s.default)(i).top,p.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=u/2;break;case"bottom-center":m+=u/2+i.offsetHeight;break;case"center-center":m+=u/2+i.offsetHeight/2;break;case"top-top":m+=u;break;case"bottom-top":m+=i.offsetHeight+u;break;case"center-top":m+=i.offsetHeight/2+u}return p.anchorPlacement||p.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var fp={};ic(fp,{Alert:()=>ai,AlertDescription:()=>ri,AlertTitle:()=>oi,ApproveLeave:()=>Vi,Avatar:()=>Vt,AvatarFallback:()=>Ut,AvatarImage:()=>$t,Badge:()=>mt,BannerBlock:()=>di,BlogCard:()=>yd,BlogList:()=>_m,BrandLogo:()=>ka,Breadcrumb:()=>rs,BreadcrumbEllipsis:()=>cs,BreadcrumbItem:()=>is,BreadcrumbLink:()=>ns,BreadcrumbList:()=>ss,BreadcrumbPage:()=>ls,BreadcrumbSeparator:()=>ds,Breadcrumbs:()=>Fi,Button:()=>A,CMSLink:()=>Mt,CRMKanbanBoard:()=>up,Calendar:()=>Wo,CalendarView:()=>Yi,CallToActionBlock:()=>ja,Card:()=>qo,Categories:()=>qm,Checkbox:()=>wt,CodeBlock:()=>ui,Collapsible:()=>Ot,CollapsibleContent:()=>ca,CollapsibleTrigger:()=>da,CollectionArchive:()=>Mm,Command:()=>xr,CommandDialog:()=>ol,CommandEmpty:()=>Ks,CommandGroup:()=>Qs,CommandInput:()=>Ys,CommandItem:()=>ei,CommandList:()=>Js,CommandSeparator:()=>Zs,CommandShortcut:()=>ti,Container:()=>qa,ContentBlock:()=>Xo,ContentCard:()=>hi,CopyButton:()=>mi,CustomLink:()=>Ee,CustomerCard:()=>hl,DealCard:()=>Ki,DealDetails:()=>Ji,Dialog:()=>ct,DialogClose:()=>vr,DialogContent:()=>et,DialogDescription:()=>qs,DialogFooter:()=>Xs,DialogHeader:()=>ht,DialogOverlay:()=>hr,DialogPortal:()=>Us,DialogTitle:()=>xt,DialogTrigger:()=>yr,DropdownMenu:()=>gn,DropdownMenuCheckboxItem:()=>gs,DropdownMenuContent:()=>us,DropdownMenuGroup:()=>yn,DropdownMenuItem:()=>fs,DropdownMenuLabel:()=>ys,DropdownMenuPortal:()=>vn,DropdownMenuRadioGroup:()=>xn,DropdownMenuRadioItem:()=>bs,DropdownMenuSeparator:()=>vs,DropdownMenuShortcut:()=>hs,DropdownMenuSub:()=>hn,DropdownMenuSubContent:()=>ps,DropdownMenuSubTrigger:()=>ms,DropdownMenuTrigger:()=>bn,DynamicIcon:()=>$e,EventCard:()=>xl,FeatureCard:()=>bl,FeatureGrid:()=>Ol,FeaturesBlock:()=>Va,Filter:()=>Ym,Footer:()=>ip,Header:()=>np,HeaderDesktop:()=>Ko,HeaderMobile:()=>Qo,HeadingImage:()=>Pm,Hero:()=>mm,HighImpactHero:()=>Ei,HolidayGrid:()=>qi,HolidayTracker:()=>mp,HoverCard:()=>Qn,HoverCardContent:()=>$s,HoverCardTrigger:()=>Zn,Image:()=>Sl,ImageBlock:()=>vi,InfoTile:()=>bm,Input:()=>We,Insight:()=>gm,KanbanColumn:()=>en,Label:()=>oe,Logo:()=>Im,LowImpactHero:()=>zi,MOTD:()=>vm,Media:()=>Jt,MediaBlock:()=>Kt,MediumImpactHero:()=>Bi,NewCustomerForm:()=>Qi,NewDealForm:()=>Zi,NewsGrid:()=>nd,OrgChart:()=>wm,PageRange:()=>Lm,Pagination:()=>Xm,PayloadPagination:()=>Bm,Popover:()=>Oo,PopoverAnchor:()=>Xn,PopoverContent:()=>mo,PopoverTrigger:()=>_o,PostHero:()=>Km,PricingCard:()=>cm,ProjectCard:()=>Pl,ProjectTeam:()=>$m,ProposalSummary:()=>Nm,RelatedContent:()=>Um,RelatedPosts:()=>km,RenderBlocks:()=>wi,RenderHero:()=>Zm,RequestLeave:()=>Xi,ReusableContentBlock:()=>xi,RichText:()=>re,ScrollArea:()=>va,ScrollBar:()=>br,SectionHero:()=>Hi,Select:()=>Ha,SelectContent:()=>Na,SelectGroup:()=>tm,SelectItem:()=>Ca,SelectLabel:()=>dl,SelectScrollDownButton:()=>ni,SelectScrollUpButton:()=>ii,SelectSeparator:()=>cl,SelectTrigger:()=>wa,SelectValue:()=>Fa,Separator:()=>Ro,ServiceCard:()=>dm,Sheet:()=>or,SheetClose:()=>Tn,SheetContent:()=>To,SheetDescription:()=>Ss,SheetFooter:()=>Cs,SheetHeader:()=>Ns,SheetOverlay:()=>rr,SheetPortal:()=>ws,SheetTitle:()=>Ps,SheetTrigger:()=>kn,Sidebar:()=>Ma,SidebarContent:()=>pa,SidebarFooter:()=>Aa,SidebarGroup:()=>nt,SidebarGroupAction:()=>As,SidebarGroupContent:()=>yt,SidebarGroupLabel:()=>Gt,SidebarHeader:()=>Ia,SidebarInput:()=>Is,SidebarInset:()=>Ms,SidebarLeft:()=>Gm,SidebarMenu:()=>Ve,SidebarMenuAction:()=>Io,SidebarMenuBadge:()=>Es,SidebarMenuButton:()=>lt,SidebarMenuItem:()=>Ie,SidebarMenuSkeleton:()=>Ls,SidebarMenuSub:()=>ua,SidebarMenuSubButton:()=>ga,SidebarMenuSubItem:()=>fa,SidebarProvider:()=>ks,SidebarRail:()=>Ds,SidebarRight:()=>Vm,SidebarSeparator:()=>Mo,SidebarTrigger:()=>Ts,SimpleHeader:()=>tp,Skeleton:()=>ce,SlideShow:()=>rd,TextAndImages:()=>ld,Textarea:()=>Pa,Theme:()=>Ul,ThemeProvider:()=>lp,Toast:()=>Lo,ToastAction:()=>Hs,ToastClose:()=>Bo,ToastDescription:()=>Ho,ToastProvider:()=>fr,ToastTitle:()=>zo,ToastViewport:()=>Eo,Toaster:()=>Gn,Toggle:()=>Os,ToggleGroup:()=>_s,ToggleGroupItem:()=>Gs,Tooltip:()=>lr,TooltipContent:()=>Do,TooltipProvider:()=>nr,TooltipTrigger:()=>dr,VideoHeader:()=>rp,WhyUs:()=>Cm,badgeVariants:()=>si,buttonVariants:()=>ma,toggleVariants:()=>Fo,useIsMobile:()=>ir,useSidebar:()=>lo,useToast:()=>ur});module.exports=nc(fp);var ro=h(require("react")),ar=require("@radix-ui/react-icons"),fn=require("@radix-ui/react-slot");var pn=require("clsx");var as="-",lc=e=>{let t=cc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(as);return i[0]===""&&i.length!==1&&i.shift(),sn(i,t)||dc(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},sn=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?sn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(as);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},on=/^\[(.+)\]$/,dc=e=>{if(on.test(e)){let t=on.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},cc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return pc(Object.entries(e.classGroups),a).forEach(([s,n])=>{ts(n,o,s,t)}),o},ts=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:rn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(mc(r)){ts(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{ts(n,rn(t,s),a,o)})})},rn=(e,t)=>{let a=e;return t.split(as).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},mc=e=>e.isThemeGetter,pc=(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(([n,i])=>[t+n,i])):s);return[a,r]}):e,uc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},nn="!",fc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,u;for(let w=0;w<i.length;w++){let M=i[w];if(m===0){if(M===r&&(o||i.slice(w,w+s)===t)){c.push(i.slice(d,w)),d=w+s;continue}if(M==="/"){u=w;continue}}M==="["?m++:M==="]"&&m--}let p=c.length===0?i:i.substring(d),g=p.startsWith(nn),y=g?p.substring(1):p,f=u&&u>d?u-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},gc=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},bc=e=>({cache:uc(e.cacheSize),parseClassName:fc(e),...lc(e)}),yc=/\s+/,vc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(yc),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:g}=a(m),y=!!g,f=o(y?p.substring(0,g):p);if(!f){if(!y){i=m+(i.length>0?" "+i:i);continue}if(f=o(p),!f){i=m+(i.length>0?" "+i:i);continue}y=!1}let w=gc(d).join(":"),M=u?w+nn:w,H=M+f;if(s.includes(H))continue;s.push(H);let q=r(f,y);for(let Y=0;Y<q.length;++Y){let ne=q[Y];s.push(M+ne)}i=m+(i.length>0?" "+i:i)}return i};function hc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=ln(t))&&(o&&(o+=" "),o+=a);return o}var ln=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=ln(e[o]))&&(a&&(a+=" "),a+=t);return a};function xc(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,u)=>u(d),e());return a=bc(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=vc(c,a);return r(c,d),d}return function(){return s(hc.apply(null,arguments))}}var ae=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},dn=/^\[(?:([a-it-]+):)?(.+)\]$/i,wc=/^\d+\/\d+$/,Nc=new Set(["px","full","screen"]),Cc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pc=/\d+(%|px|r?em|[sdl]?it([hwib]|min|max)|it|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Rc=/^(inset_)?-?((\d+)?\.?(\d+)[a-it]+|0)_-?((\d+)?\.?(\d+)[a-it]+|0)/,kc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ft=e=>ao(e)||Nc.has(e)||wc.test(e),na=e=>oo(e,"length",Bc),ao=e=>!!e&&!Number.isNaN(Number(e)),es=e=>oo(e,"number",ao),Co=e=>!!e&&Number.isInteger(Number(e)),Tc=e=>e.endsWith("%")&&ao(e.slice(0,-1)),L=e=>dn.test(e),la=e=>Cc.test(e),Dc=new Set(["length","size","percentage"]),Mc=e=>oo(e,Dc,cn),Ic=e=>oo(e,"position",cn),Ac=new Set(["image","url"]),Ec=e=>oo(e,Ac,Hc),Lc=e=>oo(e,"",zc),Po=()=>!0,oo=(e,t,a)=>{let o=dn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Bc=e=>Pc.test(e)&&!Sc.test(e),cn=()=>!1,zc=e=>Rc.test(e),Hc=e=>kc.test(e);var Fc=()=>{let e=ae("colors"),t=ae("spacing"),a=ae("blur"),o=ae("brightness"),r=ae("borderColor"),s=ae("borderRadius"),n=ae("borderSpacing"),i=ae("borderWidth"),c=ae("contrast"),m=ae("grayscale"),d=ae("hueRotate"),u=ae("invert"),p=ae("gap"),g=ae("gradientColorStops"),y=ae("gradientColorStopPositions"),f=ae("inset"),w=ae("margin"),M=ae("opacity"),H=ae("padding"),q=ae("saturate"),Y=ae("scale"),ne=ae("sepia"),V=ae("skew"),P=ae("space"),I=ae("translate"),S=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",L,t],x=()=>[L,t],le=()=>["",Ft,na],Me=()=>["auto",ao,L],gt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],rt=()=>["solid","dashed","dotted","double","none"],kt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],aa=()=>["start","end","center","between","around","evenly","stretch"],zt=()=>["","0",L],oa=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[ao,L];return{cacheSize:500,separator:":",theme:{colors:[Po],spacing:[Ft,na],blur:["none","",la,L],brightness:ge(),borderColor:[e],borderRadius:["none","","full",la,L],borderSpacing:x(),borderWidth:le(),contrast:ge(),grayscale:zt(),hueRotate:ge(),invert:zt(),gap:x(),gradientColorStops:[e],gradientColorStopPositions:[Tc,na],inset:C(),margin:C(),opacity:ge(),padding:x(),saturate:ge(),scale:ge(),sepia:zt(),skew:ge(),space:x(),translate:x()},classGroups:{aspect:[{aspect:["auto","square","video",L]}],container:["container"],columns:[{columns:[la]}],"break-after":[{"break-after":oa()}],"break-before":[{"break-before":oa()}],"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:[...gt(),L]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],it:[{it:["auto",Co,L]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",L]}],grow:[{grow:zt()}],shrink:[{shrink:zt()}],order:[{order:["first","last","none",Co,L]}],"grid-cols":[{"grid-cols":[Po]}],"col-start-end":[{col:["auto",{span:["full",Co,L]},L]}],"col-start":[{"col-start":Me()}],"col-end":[{"col-end":Me()}],"grid-rows":[{"grid-rows":[Po]}],"row-start-end":[{row:["auto",{span:[Co,L]},L]}],"row-start":[{"row-start":Me()}],"row-end":[{"row-end":Me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",L]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",L]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...aa()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...aa(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...aa(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],it:[{it:[H]}],it:[{it:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],it:[{it:[H]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",L,t]}],"min-w":[{"min-w":[L,t,"min","max","fit"]}],"max-w":[{"max-w":[L,t,"none","full","min","max","fit","prose",{screen:[la]},la]}],h:[{h:[L,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[L,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[L,t,"auto","min","max","fit"]}],"font-size":[{text:["base",la,na]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",es]}],"font-family":[{font:[Po]}],"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",L]}],"line-clamp":[{"line-clamp":["none",ao,es]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ft,L]}],"list-image":[{"list-image":["none",L]}],"list-style-type":[{list:["none","disc","decimal",L]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","fn-underline"],"text-decoration-style":[{decoration:[...rt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ft,na]}],"underline-offset":[{"underline-offset":["auto",Ft,L]}],"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:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",L]}],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",L]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...gt(),Ic]}],"bg-repeat":[{bg:["fn-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Mc]}],"bg-image":[{bg:["none",{"gradient-it":["t","tr","r","br","b","bl","l","zn"]},Ec]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-it-pos":[{it:[y]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-it":[{it:[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-se":[{"rounded-se":[s]}],"rounded-it":[{"rounded-it":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-zn":[{"rounded-zn":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...rt(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:rt()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[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:["",...rt()]}],"outline-offset":[{"outline-offset":[Ft,L]}],"outline-w":[{outline:[Ft,na]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[Ft,na]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",la,Lc]}],"shadow-color":[{shadow:[Po]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...kt(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":kt()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",la,L]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[q]}],sepia:[{sepia:[ne]}],"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":[u]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",L]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",L]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",L]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Y]}],"scale-x":[{"scale-x":[Y]}],"scale-y":[{"scale-y":[Y]}],rotate:[{rotate:[Co,L]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[V]}],"skew-y":[{"skew-y":[V]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",L]}],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","fn-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",L]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-it":[{"scroll-it":x()}],"scroll-it":[{"scroll-it":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-it":[{"scroll-it":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",L]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ft,na,es]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","it","it","pr","pb","it"],px:["pr","it"],py:["it","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-it","rounded-es","rounded-zn","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-it"],"rounded-t":["rounded-zn","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-zn","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["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-it","scroll-it","scroll-pr","scroll-pb","scroll-it"],"scroll-px":["scroll-pr","scroll-it"],"scroll-py":["scroll-it","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var mn=xc(Fc);function l(...e){return mn((0,pn.clsx)(e))}var it=require("react/jsx-runtime"),rs=ro.forwardRef(({...e},t)=>(0,it.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));rs.displayName="Breadcrumb";var ss=ro.forwardRef(({className:e,...t},a)=>(0,it.jsx)("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ss.displayName="BreadcrumbList";var is=ro.forwardRef(({className:e,...t},a)=>(0,it.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));is.displayName="BreadcrumbItem";var ns=ro.forwardRef(({asChild:e,className:t,...a},o)=>(0,it.jsx)(e?fn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));ns.displayName="BreadcrumbLink";var ls=ro.forwardRef(({className:e,...t},a)=>(0,it.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));ls.displayName="BreadcrumbPage";var ds=({children:e,className:t,...a})=>(0,it.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,it.jsx)(ar.ChevronRightIcon,{})});ds.displayName="BreadcrumbSeparator";var cs=({className:e,...t})=>(0,it.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,it.jsx)(ar.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,it.jsx)("span",{className:"sr-only",children:"More"})]});cs.displayName="BreadcrumbElipssis";var so=h(require("@radix-ui/react-collapsible")),Ot=so.Root,da=so.CollapsibleTrigger,ca=so.CollapsibleContent;var _t=h(require("react")),F=h(require("@radix-ui/react-dropdown-menu"));var gn=F.Root,bn=F.Trigger,yn=F.Group,vn=F.Portal,hn=F.Sub,xn=F.RadioGroup,ms=_t.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,it.jsxs)(F.SubTrigger,{ref:r,className:l("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&&"it-8",e),...o,children:[a,(0,it.jsx)(ar.ChevronRightIcon,{className:"ml-auto"})]}));ms.displayName=F.SubTrigger.displayName;var ps=_t.forwardRef(({className:e,...t},a)=>(0,it.jsx)(F.SubContent,{ref:a,className:l("it-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ps.displayName=F.SubContent.displayName;var us=_t.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,it.jsx)(F.Portal,{children:(0,it.jsx)(F.Content,{ref:o,sideOffset:t,className:l("it-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));us.displayName=F.Content.displayName;var fs=_t.forwardRef(({className:e,inset:t,...a},o)=>(0,it.jsx)(F.Item,{ref:o,className:l("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&&"it-8",e),...a}));fs.displayName=F.Item.displayName;var gs=_t.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,it.jsxs)(F.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 it-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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(F.ItemIndicator,{children:(0,it.jsx)(ar.CheckIcon,{className:"h-4 w-4"})})}),t]}));gs.displayName=F.CheckboxItem.displayName;var bs=_t.forwardRef(({className:e,children:t,...a},o)=>(0,it.jsxs)(F.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 it-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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(F.ItemIndicator,{children:(0,it.jsx)(ar.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));bs.displayName=F.RadioItem.displayName;var ys=_t.forwardRef(({className:e,inset:t,...a},o)=>(0,it.jsx)(F.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"it-8",e),...a}));ys.displayName=F.Label.displayName;var vs=_t.forwardRef(({className:e,...t},a)=>(0,it.jsx)(F.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));vs.displayName=F.Separator.displayName;var hs=({className:e,...t})=>(0,it.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});hs.displayName="DropdownMenuShortcut";var wn=h(require("react"));var We=wn.forwardRef(({className:e,type:t,...a},o)=>(0,it.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));We.displayName="Input";var Cn=h(require("react")),xs=h(require("@radix-ui/react-separator"));var Ro=Cn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,it.jsx)(xs.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Ro.displayName=xs.Root.displayName;var ko=h(require("react")),de=h(require("@radix-ui/react-dialog")),Rn=require("class-variance-authority");var or=de.Root,kn=de.Trigger,Tn=de.Close,ws=de.Portal,rr=ko.forwardRef(({className:e,...t},a)=>(0,it.jsx)(de.Overlay,{className:l("fixed inset-0 it-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));rr.displayName=de.Overlay.displayName;var Oc=(0,Rn.cva)("fixed it-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-x-0 top-0 border-b data-[state=closed]:slide-out-it-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-it-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-it-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-it-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),To=ko.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,it.jsxs)(ws,{children:[(0,it.jsx)(rr,{}),(0,it.jsxs)(de.Content,{ref:r,className:l(Oc({side:e}),t),...o,children:[(0,it.jsxs)(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,it.jsx)(ar.Cross2Icon,{className:"h-4 w-4"}),(0,it.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));To.displayName=de.Content.displayName;var Ns=({className:e,...t})=>(0,it.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ns.displayName="SheetHeader";var Cs=({className:e,...t})=>(0,it.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Cs.displayName="SheetFooter";var Ps=ko.forwardRef(({className:e,...t},a)=>(0,it.jsx)(de.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Ps.displayName=de.Title.displayName;var Ss=ko.forwardRef(({className:e,...t},a)=>(0,it.jsx)(de.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Ss.displayName=de.Description.displayName;var _=h(require("react")),zn=require("lucide-react");var sr=require("react"),ir=(e=768)=>{let[t,a]=(0,sr.useState)(!1);return(0,sr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var In=h(require("react")),ma=(0,Rn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),A=In.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,it.jsx)(e?fn.Slot:"button",{className:l(ma({className:t,size:a,variant:o})),ref:s,...r}));A.displayName="Button";function ce({className:e,...t}){return(0,it.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var Ln=h(require("react")),bt=h(require("@radix-ui/react-tooltip"));var nr=bt.Provider,lr=bt.Root,dr=bt.Trigger,Do=Ln.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,it.jsx)(bt.Portal,{children:(0,it.jsx)(bt.Content,{ref:o,sideOffset:t,className:l("it-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})}));Do.displayName=bt.Content.displayName;var _c="sidebar:state",Gc=60*60*24*7,jc="16rem",Wc="18rem",Vc="3rem",$c="b",Hn=_.createContext(null);function lo(){let e=_.useContext(Hn);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var ks=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=ir(),[m,d]=_.useState(!1),[u,p]=_.useState(e),g=t!=null?t:u,y=_.useCallback(H=>{if(a)return a==null?void 0:a(typeof H=="function"?H(g):H);p(H),document.cookie=`${_c}=${g}; path=/; max-age=${Gc}`},[a,g]),f=_.useCallback(()=>c?d(H=>!H):y(H=>!H),[c,y,d]);_.useEffect(()=>{let H=q=>{q.key===$c&&(q.metaKey||q.ctrlKey)&&(q.preventDefault(),f())};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[f]);let w=g?"expanded":"collapsed",M=_.useMemo(()=>({state:w,open:g,setOpen:y,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[w,g,y,c,m,d,f]);return(0,it.jsx)(Hn.Provider,{value:M,children:(0,it.jsx)(nr,{delayDuration:0,children:(0,it.jsx)("div",{style:{"--sidebar-width":jc,"--sidebar-width-icon":Vc,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});ks.displayName="SidebarProvider";var Ma=_.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=lo();return a==="none"?(0,it.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,it.jsx)(or,{open:m,onOpenChange:d,...s,children:(0,it.jsx)(To,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Wc},side:e,children:(0,it.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,it.jsxs)("div",{ref:n,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,it.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,it.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 it-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,it.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});Ma.displayName="Sidebar";var Ts=_.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=lo();return(0,it.jsxs)(A,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,it.jsx)(zn.PanelLeft,{}),(0,it.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ts.displayName="SidebarTrigger";var Ds=_.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=lo();return(0,it.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 it-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-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})});Ds.displayName="SidebarRail";var Ms=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-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}));Ms.displayName="SidebarInset";var Is=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)(We,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Is.displayName="SidebarInput";var Ia=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Ia.displayName="SidebarHeader";var Aa=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Aa.displayName="SidebarFooter";var Mo=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Ro,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Mo.displayName="SidebarSeparator";var pa=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));pa.displayName="SidebarContent";var nt=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));nt.displayName="SidebarGroup";var Gt=_.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,it.jsx)(t?fn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("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}));Gt.displayName="SidebarGroupLabel";var As=_.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,it.jsx)(t?fn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));As.displayName="SidebarGroupAction";var yt=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));yt.displayName="SidebarGroupContent";var Ve=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Ve.displayName="SidebarMenu";var Ie=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ie.displayName="SidebarMenuItem";var Uc=(0,Rn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),lt=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?fn.Slot:"button",{isMobile:m,state:d}=lo(),u=(0,it.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Uc({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,it.jsxs)(lr,{children:[(0,it.jsx)(dr,{asChild:!0,children:u}),(0,it.jsx)(Do,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):u});lt.displayName="SidebarMenuButton";var Io=_.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,it.jsx)(t?fn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));Io.displayName="SidebarMenuAction";var Es=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Es.displayName="SidebarMenuBadge";var Ls=_.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,it.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,it.jsx)(ce,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,it.jsx)(ce,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Ls.displayName="SidebarMenuSkeleton";var ua=_.forwardRef(({className:e,...t},a)=>(0,it.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ua.displayName="SidebarMenuSub";var fa=_.forwardRef(({...e},t)=>(0,it.jsx)("li",{ref:t,...e}));fa.displayName="SidebarMenuSubItem";var ga=_.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,it.jsx)(e?fn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-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}));ga.displayName="SidebarMenuSubButton";var pr=h(require("react")),Xc=1,qc=1e6;var Bs=0;function Yc(){return Bs=(Bs+1)%Number.MAX_SAFE_INTEGER,Bs.toString()}var zs=new Map,Fn=e=>{if(zs.has(e))return;let t=setTimeout(()=>{zs.delete(e),Ao({type:"REMOVE_TOAST",toastId:e})},qc);zs.set(e,t)},Jc=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Xc)};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?Fn(a):e.toasts.forEach(o=>{Fn(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},cr=[],mr={toasts:[]};function Ao(e){mr=Jc(mr,e),cr.forEach(t=>{t(mr)})}function Kc({...e}){let t=Yc(),a=r=>Ao({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Ao({type:"DISMISS_TOAST",toastId:t});return Ao({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function ur(){let[e,t]=pr.useState(mr);return pr.useEffect(()=>(cr.push(t),()=>{let a=cr.indexOf(t);a>-1&&cr.splice(a,1)}),[e]),{...e,toast:Kc,dismiss:a=>Ao({type:"DISMISS_TOAST",toastId:a})}}var Ea=h(require("react")),be=h(require("@radix-ui/react-toast"));var fr=be.Provider,Eo=Ea.forwardRef(({className:e,...t},a)=>(0,it.jsx)(be.Viewport,{ref:a,className:l("fixed top-0 it-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Eo.displayName=be.Viewport.displayName;var Qc=(0,Rn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] 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-it-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"}}),Lo=Ea.forwardRef(({className:e,variant:t,...a},o)=>(0,it.jsx)(be.Root,{ref:o,className:l(Qc({variant:t}),e),...a}));Lo.displayName=be.Root.displayName;var Hs=Ea.forwardRef(({className:e,...t},a)=>(0,it.jsx)(be.Action,{ref:a,className:l("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}));Hs.displayName=be.Action.displayName;var Bo=Ea.forwardRef(({className:e,...t},a)=>(0,it.jsx)(be.Close,{ref:a,className:l("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,it.jsx)(zn.it,{className:"h-4 w-4"})}));Bo.displayName=be.Close.displayName;var zo=Ea.forwardRef(({className:e,...t},a)=>(0,it.jsx)(be.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));zo.displayName=be.Title.displayName;var Ho=Ea.forwardRef(({className:e,...t},a)=>(0,it.jsx)(be.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));Ho.displayName=be.Description.displayName;function Gn(){let{toasts:e}=ur();return(0,it.jsxs)(fr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,it.jsxs)(Lo,{...s,children:[(0,it.jsxs)("div",{className:"grid gap-1",children:[a&&(0,it.jsx)(zo,{children:a}),o&&(0,it.jsx)(Ho,{children:o})]}),r,(0,it.jsx)(Bo,{})]},t)}),(0,it.jsx)(Eo,{})]})}var jn=h(require("react")),Fs=h(require("@radix-ui/react-toggle"));var Fo=(0,Rn.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Os=jn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,it.jsx)(Fs.Root,{ref:r,className:l(Fo({variant:t,size:a,className:e})),...o}));Os.displayName=Fs.Root.displayName;var La=h(require("react")),co=h(require("@radix-ui/react-toggle-group"));var $n=La.createContext({size:"default",variant:"default"}),_s=La.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,it.jsx)(co.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,it.jsx)($n.Provider,{value:{variant:t,size:a},children:o})}));_s.displayName=co.Root.displayName;var Gs=La.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=La.useContext($n);return(0,it.jsx)(co.Item,{ref:s,className:l(Fo({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});Gs.displayName=co.Item.displayName;var js=h(require("react")),dt=h(require("@radix-ui/react-scroll-area"));var va=js.forwardRef(({className:e,children:t,...a},o)=>(0,it.jsxs)(dt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,it.jsx)(dt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,it.jsx)(br,{}),(0,it.jsx)(dt.Corner,{})]}));va.displayName=dt.Root.displayName;var br=js.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,it.jsx)(dt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,it.jsx)(dt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));br.displayName=dt.ScrollAreaScrollbar.displayName;var Un=h(require("react")),vt=h(require("@radix-ui/react-popover"));var Oo=vt.Root,_o=vt.Trigger,Xn=vt.Anchor,mo=Un.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,it.jsx)(vt.Portal,{children:(0,it.jsx)(vt.Content,{ref:r,align:t,sideOffset:a,className:l("it-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));mo.displayName=vt.Content.displayName;var qn=h(require("react")),Vs=h(require("@radix-ui/react-label"));var Zc=(0,Rn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oe=qn.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Vs.Root,{ref:a,className:l(Zc(),e),...t}));oe.displayName=Vs.Root.displayName;var Kn=h(require("react")),Ba=h(require("@radix-ui/react-hover-card"));var Qn=Ba.Root,Zn=Ba.Trigger,$s=Kn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,it.jsx)(Ba.Content,{ref:r,align:t,sideOffset:a,className:l("it-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));$s.displayName=Ba.Content.displayName;var Go=h(require("react")),me=h(require("@radix-ui/react-dialog"));var ct=me.Root,yr=me.Trigger,Us=me.Portal,vr=me.Close,hr=Go.forwardRef(({className:e,...t},a)=>(0,it.jsx)(me.Overlay,{ref:a,className:l("fixed inset-0 it-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));hr.displayName=me.Overlay.displayName;var et=Go.forwardRef(({className:e,children:t,...a},o)=>(0,it.jsxs)(Us,{children:[(0,it.jsx)(hr,{}),(0,it.jsxs)(me.Content,{ref:o,className:l("fixed left-[50%] top-[50%] it-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-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-it-left-1/2 data-[state=closed]:slide-out-it-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,it.jsxs)(me.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,it.jsx)(zn.it,{className:"h-4 w-4"}),(0,it.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));et.displayName=me.Content.displayName;var ht=({className:e,...t})=>(0,it.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ht.displayName="DialogHeader";var Xs=({className:e,...t})=>(0,it.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Xs.displayName="DialogFooter";var xt=Go.forwardRef(({className:e,...t},a)=>(0,it.jsx)(me.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));xt.displayName=me.Title.displayName;var qs=Go.forwardRef(({className:e,...t},a)=>(0,it.jsx)(me.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));qs.displayName=me.Description.displayName;var ha=h(require("react")),Fe=require("cmdk");var xr=ha.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Fe.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));xr.displayName=Fe.Command.displayName;var ol=({children:e,...t})=>(0,it.jsx)(ct,{...t,children:(0,it.jsx)(et,{className:"overflow-hidden p-0",children:(0,it.jsx)(xr,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:it-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Ys=ha.forwardRef(({className:e,...t},a)=>(0,it.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,it.jsx)(zn.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,it.jsx)(Fe.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ys.displayName=Fe.Command.Input.displayName;var Js=ha.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Fe.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));Js.displayName=Fe.Command.List.displayName;var Ks=ha.forwardRef((e,t)=>(0,it.jsx)(Fe.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Ks.displayName=Fe.Command.Empty.displayName;var Qs=ha.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Fe.Command.Group,{ref:a,className:l("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}));Qs.displayName=Fe.Command.Group.displayName;var Zs=ha.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Fe.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Zs.displayName=Fe.Command.Separator.displayName;var ei=ha.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Fe.Command.Item,{ref:a,className:l("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}));ei.displayName=Fe.Command.Item.displayName;var ti=({className:e,...t})=>(0,it.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ti.displayName="CommandShortcut";var wr=h(require("react"));var em=(0,Rn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:it-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ai=wr.forwardRef(({className:e,variant:t,...a},o)=>(0,it.jsx)("div",{ref:o,role:"alert",className:l(em({variant:t}),e),...a}));ai.displayName="Alert";var oi=wr.forwardRef(({className:e,...t},a)=>(0,it.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));oi.displayName="AlertTitle";var ri=wr.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));ri.displayName="AlertDescription";var Cr=h(require("react")),Wt=h(require("@radix-ui/react-avatar"));var Vt=Cr.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Wt.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Vt.displayName=Wt.Root.displayName;var $t=Cr.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Wt.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));$t.displayName=Wt.Image.displayName;var Ut=Cr.forwardRef(({className:e,...t},a)=>(0,it.jsx)(Wt.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ut.displayName=Wt.Fallback.displayName;var si=(0,Rn.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 mt({className:e,variant:t,...a}){return(0,it.jsx)("div",{className:l(si({variant:t}),e),...a})}var jo=h(require("@radix-ui/react-checkbox")),ll=h(require("react")),wt=ll.forwardRef(({className:e,...t},a)=>(0,it.jsx)(jo.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,it.jsx)(jo.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,it.jsx)(zn.Check,{className:"h-4 w-4"})})}));wt.displayName=jo.Root.displayName;var j=h(require("@radix-ui/react-select")),xa=h(require("react")),Ha=j.Root,tm=j.Group,Fa=j.Value,wa=xa.forwardRef(({children:e,className:t,...a},o)=>(0,it.jsxs)(j.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,it.jsx)(j.Icon,{asChild:!0,children:(0,it.jsx)(zn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));wa.displayName=j.Trigger.displayName;var ii=xa.forwardRef(({className:e,...t},a)=>(0,it.jsx)(j.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,it.jsx)(zn.ChevronUp,{className:"h-4 w-4"})}));ii.displayName=j.ScrollUpButton.displayName;var ni=xa.forwardRef(({className:e,...t},a)=>(0,it.jsx)(j.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,it.jsx)(zn.ChevronDown,{className:"h-4 w-4"})}));ni.displayName=j.ScrollDownButton.displayName;var Na=xa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,it.jsx)(j.Portal,{children:(0,it.jsxs)(j.Content,{className:l("relative it-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,it.jsx)(ii,{}),(0,it.jsx)(j.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,it.jsx)(ni,{})]})}));Na.displayName=j.Content.displayName;var dl=xa.forwardRef(({className:e,...t},a)=>(0,it.jsx)(j.Label,{className:l("py-1.5 it-8 pr-2 text-sm font-semibold",e),ref:a,...t}));dl.displayName=j.Label.displayName;var Ca=xa.forwardRef(({children:e,className:t,...a},o)=>(0,it.jsxs)(j.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 it-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,it.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,it.jsx)(j.ItemIndicator,{children:(0,it.jsx)(zn.Check,{className:"h-4 w-4"})})}),(0,it.jsx)(j.ItemText,{children:e})]}));Ca.displayName=j.Item.displayName;var cl=xa.forwardRef(({className:e,...t},a)=>(0,it.jsx)(j.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));cl.displayName=j.Separator.displayName;var ml=h(require("react")),Pa=ml.forwardRef(({className:e,...t},a)=>(0,it.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Pa.displayName="Textarea";var ul=require("react-day-picker");function Wo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,it.jsx)(ul.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center it-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(ma({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:it-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:l(ma({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Wo.displayName="Calendar";var $e=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,it.jsx)("i",{className:i})};var bl=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,it.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,it.jsx)("div",{className:"w-12 h-12 ",children:(0,it.jsx)($e,{type:o,iconName:a,className:"w-12 h-12 text-white"})}),(0,it.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,it.jsx)("p",{className:"text-white text-sm",children:t})]});var yl=h(require("next/image")),vl=h(require("next/link"));var _a=h(require("react"));var Pe=_a.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Pe.displayName="Card";var Ue=_a.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ue.displayName="CardHeader";var Xe=_a.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Xe.displayName="CardTitle";var am=_a.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));am.displayName="CardDescription";var Ae=_a.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("p-6 it-0",e),...t}));Ae.displayName="CardContent";var om=_a.forwardRef(({className:e,...t},a)=>(0,it.jsx)("div",{ref:a,className:l("flex items-center p-6 it-0",e),...t}));om.displayName="CardFooter";function hl({name:e,logo:t,href:a}){return(0,it.jsx)(Pe,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,it.jsxs)(vl.default,{href:a,className:"block",children:[(0,it.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,it.jsx)("div",{className:"relative w-full h-full",children:t&&(0,it.jsx)(yl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,it.jsx)(Ae,{className:"p-3 flex items-center justify-center h-18 bg-gradient-it-br from-gray-900 via-brand-one it-gray-900",children:(0,it.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 xl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,it.jsx)(zn.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,it.jsx)(zn.Award,{className:"h-4 w-4"});case"companyEvent":return(0,it.jsx)(zn.PartyPopper,{className:"h-4 w-4"});default:return(0,it.jsx)(zn.CalendarDays,{className:"h-4 w-4"})}},n=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 it-slate-500"}};return(0,it.jsxs)(Pe,{className:`w-full max-w-md overflow-hidden bg-gradient-it-br ${n(e)}`,children:[(0,it.jsxs)(Ue,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,it.jsxs)(Vt,{className:"h-14 w-14 border-2 border-white",children:[(0,it.jsx)($t,{src:r,alt:a||"Event"}),(0,it.jsx)(Ut,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,it.jsxs)("div",{className:"flex flex-col",children:[(0,it.jsx)(Xe,{className:"text-xl",children:a||"Untitled Event"}),(0,it.jsxs)("p",{className:"text-sm text-white/80",children:[(0,it.jsx)(zn.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,it.jsxs)(Ae,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,it.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,it.jsxs)(mt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,it.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-it])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var Nl=h(require("next/link"));var Cl=h(require("next/image")),wl={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Pl({slug:e,image:t,title:a,description:o}){return(0,it.jsxs)(Nl.default,{href:e,className:"group/portfolio relative it-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,it.jsx)("span",{className:l("absolute inset-0 it-[2] bg-gradient-1 from-primary/0 it-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,it.jsx)(Cl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
11
|
+
(min-width:${wl.md}) 50vw,
|
|
12
|
+
(min-width:${wl.lg}) 25vw,
|
|
9
13
|
100vw
|
|
10
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,je.jsx)("div",{className:"relative je-10 flex h-full flex-col",children:(0,je.jsxs)("div",{className:"je-auto divide-je md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,je.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,je.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,je.jsx)("p",{className:"je-[13px] overflow-hidden _r-[11px] text-body",children:(0,je.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:r})})]})})]})}var $s=v(require("next/image")),no=v(require("path"));function Hd(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Fd(e){return e.startsWith("http")}function zd(e,t){let a=e;if(Hd(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Fd(e))a=e;else if(t.source==="github"){let r=e.replace("./","");if(r.startsWith("/")&&(r=r.slice(1)),t.linked){if(t.linked.path){let o=no.default.dirname(t.linked.path);o.startsWith(".")||(r=`${o}/${r}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${r}&branch=${t.linked.branch}`}else{if(t.file){let o=no.default.dirname(t.file);o.startsWith(".")||(r=`${o}/${r}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${r}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let r=e.replace("./","");t.file&&(r=`/${no.default.dirname(t.file)}/${r}`),a=r}else a="/image-not-found.png";return a}function Od({src:e,alt:t}){let[a,r]=(0,_r.useState)(!1),[o,s]=(0,_r.useState)(!1),[l,i]=(0,_r.useState)({width:0,height:0}),d=()=>{o&&r(!0)},p=()=>{r(!1)},c=u=>{let{naturalWidth:m,naturalHeight:f}=u.target;i({width:m,height:f}),s(m>300||f>300)};return(0,je.jsxs)(je.Fragment,{children:[(0,je.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:d,children:(0,je.jsx)($s.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-je-full max-h-full"})}),(0,je.jsx)(Je,{open:a,onOpenChange:r,children:(0,je.jsxs)(Ve,{className:"flex flex-col items-center justify-center",children:[(0,je.jsxs)(it,{className:"flex je-full justify-end",children:[(0,je.jsx)(nt,{className:"hidden",children:t}),(0,je.jsx)(Zr,{})]}),(0,je.jsx)("div",{className:"flex items-center justify-center",children:(0,je.jsx)($s.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function il({props:e,baseContext:t}){let{src:a}=e;return a=zd(a,t),(0,je.jsx)(Od,{src:a,alt:e.alt})}var nl=v(require("next/link"));function we({children:e,href:t,openNewTab:a,...r}){return(0,je.jsx)(nl.default,{href:t,target:a?"_blank":"_self",...r,children:e})}function _d(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Gd({icon:e,title:t,description:a,slug:r}){return(0,je.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative je-1 block h-full space-je-6 overflow-hidden rounded-5 p-6 md:space-je-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,je.jsxs)("div",{className:"flex items-center gap-5",children:[(0,je.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:_d(e)?(0,je.jsx)(Ee,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,je.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:r?(0,je.jsx)(we,{href:r,children:t}):t})]}),(0,je.jsx)("p",{className:"text-body dark:text-body",children:a}),r&&(0,je.jsx)(k,{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,je.jsxs)(we,{href:r,children:[(0,je.jsx)("span",{children:"Read More"}),(0,je.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,je.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,je.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,je.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] je-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var co=require("react-icons/fa6");function Vd({title:e,description:t,features:a,price:r,duration:o,button:s}){return(0,je.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,je.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-je max-lg:_r-14 lg:border-r lg:p-10",children:[(0,je.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,je.jsx)("p",{children:t})]}),(0,je.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,je.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-je-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,je.jsx)("ul",{"aria-label":"pricing point list",className:"grid je-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,je.jsx)("span",{className:"text-accent _r-1",children:(0,je.jsx)(co.FaCircleCheck,{})}),(0,je.jsx)("span",{children:l})]},i))}),(0,je.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[r&&r,(0,je.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:o&&o})]}),s&&(0,je.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,je.jsx)(k,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,je.jsxs)(we,{href:s.href,openNewTab:s.openNewTab,children:[(0,je.jsx)("span",{className:"relative je-1",children:s.label}),(0,je.jsx)("span",{className:"relative je-1 pl-2",children:(0,je.jsx)(co.FaAnglesRight,{})})]})})})]})})]})}function $d({className:e,badge:t,title:a,subtitle:r}){return(0,je.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,je.jsxs)("div",{className:"relative je-10 mx-auto max-je-4xl text-center",children:[t&&(0,je.jsx)("div",{className:"mb-4",children:(0,je.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,je.jsx)("h1",{className:"je-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,je.jsx)("p",{className:"je-6 text-base text-gray-300 sm:text-lg md:text-xl",children:r})]}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 je-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 je-full -translate-x-1/2",children:(0,je.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,je.jsx)("path",{d:"je-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var Us=({className:e,content:t,style:a})=>(0,je.jsx)("div",{className:n("mx-auto my-8 je-full",e),children:(0,je.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,je.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var Ws=v(require("next/link")),ft=e=>{let{type:t,appearance:a="inline",children:r,className:o,label:s,newTab:l,reference:i,size:d,url:p}=e,c=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}`:p;if(!c)return null;let u=a==="link"?"clear":d,m=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,je.jsxs)(Ws.default,{className:n(o),href:c||p||"",...m,children:[s&&s,r&&r]}):(0,je.jsx)(k,{asChild:!0,className:o,size:u,variant:a,children:(0,je.jsxs)(Ws.default,{className:n(o),href:c||p||"",...m,children:[s&&s,r&&r]})})};var Na=({links:e,richText:t})=>(0,je.jsx)("div",{className:"container",children:(0,je.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,je.jsx)("div",{className:"max-je-[48rem] flex items-center",children:t&&(0,je.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},r)=>(0,je.jsx)(ft,{size:"lg",...a},r))})]})});var po=require("prism-react-renderer");function Xs({code:e}){let[t,a]=(0,_r.useState)("Copy");function r(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,je.jsx)("div",{className:"flex justify-end align-middle",children:(0,je.jsxs)(k,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),r()},children:[(0,je.jsx)("p",{children:t}),(0,je.jsx)("div",{className:"je-6 h-6 dark:invert",children:(0,je.jsx)(vn.ClipboardCopy,{})})]})})}var ml=({code:e,language:t=""})=>e?(0,je.jsx)(po.Highlight,{code:e,language:t,theme:po.themes.vsDark,children:({getLineProps:a,getTokenProps:r,tokens:o})=>(0,je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[o.map((s,l)=>(0,je.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,je.jsx)("span",{className:"table-cell pl-4",children:s.map((i,d)=>(0,je.jsx)("span",{...r({token:i})},d))})]},l)),(0,je.jsx)(Xs,{code:e})]})}):null;var Ys=({className:e,code:t,language:a})=>(0,je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,je.jsx)(ml,{code:t,language:a})});var ul=v(require("next/image")),Ud={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},pl="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=",gl=e=>{let{alt:t,fill:a,imgClassName:r,priority:o,resource:s,size:l,src:i,loading:d}=e,p,c,u=t,m=i||"";if(!m&&s&&typeof s=="object"){let{alt:g,filename:x,height:A,url:O,width:Q}=s;p=Q,c=A,u=g||"",m=O||pl}let f=d||"lazy",h=l||Object.entries(Ud).map(([,g])=>`(max-width: ${g}px) ${g*2}je`).join(", ");return(0,je.jsx)("picture",{children:(0,je.jsx)(ul.default,{alt:u||"",className:n(r),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:pl,priority:f!=="lazy"&&o,quality:100,loading:f,sizes:h,src:m,width:a?void 0:p})})};var fl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var bl=()=>{if(fl){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 vl=e=>{let{onClick:t,resource:a,videoClassName:r}=e,o=(0,_r.useRef)(null);if((0,_r.useEffect)(()=>{let{current:s}=o;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,je.jsx)("video",{autoPlay:!0,className:n(r),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:o,children:(0,je.jsx)("source",{src:`${bl()}/media/${s}`})})}return null};var Et=e=>{var l;let{className:t,htmlElement:a="div",resource:r}=e,o=typeof r=="object"&&((l=r==null?void 0:r.mimeType)==null?void 0:l.includes("video"));return(0,je.jsx)(a||_r.Fragment,{...a!==null?{className:t}:{},children:o?(0,je.jsx)(vl,{...e}):(0,je.jsx)(gl,{...e})})};var Bt=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:s}=e;return(0,je.jsx)("div",{className:n("",{container:a},t),children:(0,je.jsx)(Et,{imgClassName:n("rounded-[0.8rem]",r),resource:o,src:s})})};var Zs=e=>{let{className:t,enableGutter:a=!0,imgClassName:r,media:o,staticImage:s}=e;return(0,je.jsx)("div",{className:n("",{container:a},t),children:(0,je.jsx)(Et,{imgClassName:n("rounded-[0.8rem]",r),resource:o,src:s})})};var Ca=({title:e,description:t,features:a,id:r})=>(0,je.jsxs)("section",{className:n("container je-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,je.jsx)("h2",{className:"mb-6 je-0 text-2xl font-bold md:text-3xl",id:r||"",children:e}),t&&typeof t=="string"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,je.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,je.jsx)(Z,{content:t,enableGutter:!1})}),(0,je.jsx)("div",{className:`grid gap-8 je-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((o,s)=>{var l,i,d,p,c;if(((l=o.settings)==null?void 0:l.contents)==="icon")return(0,je.jsx)(Wd,{section:o,index:s},s);{let u=()=>{if(o.icon.type!=="none")return{type:o.icon.type,iconName:o.icon.icon}};return(0,je.jsx)(ei,{variant:((i=o.settings)==null?void 0:i.card)==="default"?"solid":((d=o.settings)==null?void 0:d.card)||"solid",icon:u()||void 0,heading:o.title||"",content:o.content||void 0,statistic:o.statistic||void 0,buttonText:(p=o.link)!=null&&p.url?"Find out more":void 0,buttonHref:((c=o.link)==null?void 0:c.url)||void 0},s)}})})]}),Wd=({section:e,index:t})=>{if(!e)return null;let a=(0,je.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,je.jsx)("div",{className:"text-accent h-12 je-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,je.jsx)("i",{className:`${e.icon.type} vn-${e.icon.icon} vn-4x`})}),(0,je.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,je.jsx)("div",{className:"text-lg opacity-80",children:(0,je.jsx)(Z,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,je.jsx)("a",{href:e.link.url?e.link.url:"#",className:"no-underline group",children:a},t):a};var fo=v(require("react"));function wr({nodes:e}){return(0,je.jsx)(fo.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,je.jsx)(fo.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,je.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,je.jsx)("em",{children:s},a)),t.format&4&&(s=(0,je.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,je.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,je.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,je.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,je.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,je.jsx)("table",{children:(0,je.jsx)("tbody",{children:t.children.map((s,l)=>(0,je.jsx)("tr",{children:s.children.map((i,d)=>(0,je.jsx)("td",{children:wr({nodes:i.children})},d))},l))})},a);let r=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 wr({nodes:s.children})},o="children"in t?r(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,je.jsx)(Na,{...s},a);case"mediaBlock":return(0,je.jsx)(Bt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,je.jsx)(Zs,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-je-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,je.jsx)(Us,{className:"col-start-2 mb-4",...s},a);case"code":return(0,je.jsx)(Ys,{className:"col-start-2",...s},a);case"features":return(0,je.jsx)(Ca,{...s},a);case"reusableContentBlock":wr({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,je.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,je.jsx)("p",{className:"col-start-2",children:o},a);case"heading":{let s=t==null?void 0:t.tag;return(0,je.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:o},a)}case"list":{let s=t==null?void 0:t.tag;return(0,je.jsx)(s,{className:"list col-start-2",children:o},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:o},a):(0,je.jsx)("li",{value:t==null?void 0:t.value,children:o},a);case"quote":return(0,je.jsx)("blockquote",{className:"col-start-2",children:o},a);case"link":{let s=t.fields;return(0,je.jsx)(ft,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:o},a)}case"autolink":{let s=t.fields;return(0,je.jsx)(ft,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:o},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:r=!0})=>{var o;return t?(0,je.jsx)("div",{className:n({"container ":a,"max-je-none":!a,"mx-auto prose dark:prose-invert ":r},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&wr({nodes:(o=t==null?void 0:t.root)==null?void 0:o.children})}):null};function Xd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ei({variant:e="light",className:t,icon:a,heading:r,subheading:o,content:s,statistic:l,buttonText:i,buttonHref:d}){return(0,je.jsxs)("div",{className:n("rounded-3xl p-8 md:p-12 min-je-56",{solid:"bg-accent",light:"bg-white",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,je.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,je.jsx)("div",{className:n("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:Xd(a)?(0,je.jsx)(Ee,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,je.jsx)("div",{className:n("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:r})]}),e==="solid"&&l&&(0,je.jsx)("div",{className:"mb-6",children:(0,je.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:l})}),o&&(0,je.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:o}),s&&typeof s=="object"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,je.jsx)(Z,{enableGutter:!1,content:s,enableProse:!1,className:n(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,je.jsx)("div",{className:n("space-je-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,je.jsx)("div",{className:"je-8",children:(0,je.jsx)(k,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,je.jsxs)("a",{href:d,children:[i,(0,je.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,je.jsx)("div",{className:"absolute bottom-0 right-0 je-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 xl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,je.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function jd({icon:e,title:t,body:a,color:r="secondary"}){return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,je.jsx)("div",{className:"px-[2%] flex items-center",children:(0,je.jsx)("div",{className:"je-12 h-12",children:(0,je.jsx)(Ee,{type:e.type,iconName:e.name})})}),(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-je-[30%]",children:t}),a&&(0,je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-je-[50%]",children:a})]})})}var wl=v(require("next/image"));function Yd(e){let{url:t,mainImage:a,excerpt:r,title:o}=e;return(0,je.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,je.jsx)(wl.default,{alt:o||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,je.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,je.jsx)("div",{className:"je-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,je.jsxs)("a",{href:t,children:[(0,je.jsx)("span",{className:"absolute inset-0"}),o]})}),r&&(0,je.jsx)("div",{className:"je-2 flex-1 text-sm/6 text-gray-500",children:r})]})]},t)}var Kd=(e,t)=>`from-brand-${e} to-brand-${t}`;function qd({...e}){let t=Kd(e.brandFrom||"one",e.brandTo||"two");return(0,je.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,je.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,je.jsxs)("a",{href:e.url,children:[(0,je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,je.jsx)("circle",{r:1,cx:1,cy:1})}),(0,je.jsx)("span",{children:e.message&&e.message})]}):(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,je.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,je.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Cr=v(require("react")),Jd={Architecture:(0,je.jsx)(vn.DraftingCompass,{className:"h-5 je-5 text-blue-600"}),Engineering:(0,je.jsx)(vn.Code,{className:"h-5 je-5 text-green-600"}),Development:(0,je.jsx)(vn.Code,{className:"h-5 je-5 text-purple-600"}),Delivery:(0,je.jsx)(vn.GanttChart,{className:"h-5 je-5 text-red-600"})},Qd=({person:e,level:t,onToggle:a,isExpanded:r,isHighlighted:o})=>{let s=e.reports.length>0;return(0,je.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,je.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${o?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,je.jsx)("button",{onClick:a,className:"mr-2","aria-label":r?"Collapse":"Expand",children:r?(0,je.jsx)(vn.ChevronDown,{className:"h-4 je-4"}):(0,je.jsx)(vn.ChevronRight,{className:"h-4 je-4"})}),(0,je.jsx)("div",{className:"je-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,je.jsx)(vn.Users,{className:"h-6 je-6 text-gray-500"})}),(0,je.jsxs)("div",{children:[(0,je.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,je.jsxs)("div",{className:"flex items-center je-1",children:[Jd[e.discipline],(0,je.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,je.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Cl=({person:e,level:t,searchTerm:a})=>{let[r,o]=(0,Cr.useState)(t<1),s=()=>o(!r),l=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),i=c=>l(c)||c.reports.some(i),d=a===""||i(e),p=l(e);return Cr.default.useEffect(()=>{a!==""&&i(e)&&o(!0)},[a,e]),d?(0,je.jsxs)("div",{children:[(0,je.jsx)(Qd,{person:e,level:t,onToggle:s,isExpanded:r,isHighlighted:p}),r&&e.reports.map((c,u)=>(0,je.jsx)(Cl,{person:c,level:t+1,searchTerm:a},u))]}):null};function Zd(){let[e,t]=(0,Cr.useState)("");return(0,je.jsxs)("div",{className:"max-je-5xl mx-auto p-6",children:[(0,je.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,je.jsxs)("div",{className:"mb-4 relative",children:[(0,je.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:r=>t(r.target.value),className:"je-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,je.jsx)(vn.Search,{className:"absolute right-3 top-2.5 h-5 je-5 text-gray-400"})]}),(0,je.jsx)("div",{className:"space-je-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((r,o)=>(0,je.jsx)(Cl,{person:r,level:0,searchTerm:e},o))})]})}function em({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:"A 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:"A 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:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to 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 to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to 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 to leverage Generative AI effectively, providing a competitive edge in the market."],fee:r="\xA3150,000 for delivery of listed outputs"}){return(0,je.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,je.jsxs)("div",{className:"lg:col-span-1 space-je-6 flex flex-col",children:[(0,je.jsxs)(ge,{className:"flex-grow",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.Users,{className:"h-5 je-5"}),"Team"]})}),(0,je.jsxs)(Ne,{className:"p-6",children:[(0,je.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,je.jsxs)("div",{className:"space-je-6",children:[(0,je.jsx)("div",{className:"space-je-2",children:e.leadership.map((o,s)=>(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,je.jsx)($e.User,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,je.jsx)("div",{className:"space-je-2",children:e.core.map((o,s)=>(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,je.jsx)($e.User,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:o.role}),o.count&&(0,je.jsxs)("span",{children:["(",o.count,"x)"]})]}),o.isFTE&&(0,je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,je.jsx)($e.Users2,{className:"h-4 je-4 text-muted-foreground"}),(0,je.jsx)("span",{children:"SME input:"})]}),(0,je.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.PoundSterling,{className:"h-5 je-5"}),"Fee"]})}),(0,je.jsx)(Ne,{className:"p-6",children:(0,je.jsx)("p",{className:"text-lg font-semibold",children:r})})]})]}),(0,je.jsxs)(ge,{className:"lg:col-span-1 flex flex-col",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.FileText,{className:"h-5 je-5"}),"Outputs"]})}),(0,je.jsxs)(Ne,{className:"p-6 flex-grow overflow-auto",children:[(0,je.jsx)("ol",{className:"list-decimal list-inside space-je-4",children:t.map((o,s)=>(0,je.jsxs)("li",{className:"text-sm",children:[(0,je.jsxs)("span",{className:"font-medium",children:[o.title,":"]})," ",(0,je.jsx)("span",{className:"text-muted-foreground",children:o.description})]},s))}),(0,je.jsx)("p",{className:"je-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,je.jsxs)(ge,{className:"lg:col-span-1 flex flex-col",children:[(0,je.jsx)(Be,{className:"bg-primary text-primary-foreground",children:(0,je.jsxs)(He,{className:"flex items-center gap-2",children:[(0,je.jsx)($e.Lightbulb,{className:"h-5 je-5"}),"Benefits"]})}),(0,je.jsx)(Ne,{className:"p-6 flex-grow overflow-auto",children:(0,je.jsx)("ul",{className:"space-je-4",children:a.map((o,s)=>(0,je.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,je.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,je.jsx)("span",{children:o})]},s))})})]})]})}function tm(){return(0,je.jsx)("div",{className:"je-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,je.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,je.jsxs)("div",{className:"space-je-4 bg-primary p-3 rounded-lg",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,je.jsx)(vn.BarChart3,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,je.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,je.jsxs)("ul",{className:"text-sm",children:[(0,je.jsx)("li",{children:"Strategy definition"}),(0,je.jsx)("li",{children:"Programme leadership"}),(0,je.jsx)("li",{children:"Detailed planning"}),(0,je.jsx)("li",{children:"\u2022 Financial control"}),(0,je.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,je.jsx)(vn.CogIcon,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,je.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,je.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,je.jsx)(vn.Building2,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,je.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,je.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,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex items-center gap-2 relative je-10",children:[(0,je.jsx)("div",{className:"je-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,je.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,je.jsx)(vn.BadgeCheck,{className:"je-8 h-8"})]}),(0,je.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,je.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,je.jsx)("p",{className:"text-sm",children:"As je XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Pr=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,je.jsx)("div",{className:"container my-6",children:(0,je.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-je-8 gap-x-16",children:t&&t.length>0&&t.map((r,o)=>{let{enableLink:s,link:l,richText:i,size:d}=r;return(0,je.jsxs)("div",{className:n(`col-span-4 lg:col-span-${a[d]}`,{"md:col-span-2":d!=="full"}),children:[i&&(0,je.jsx)(Z,{content:i,enableGutter:!1}),s&&(0,je.jsx)(ft,{...l})]},o)})})})};var bo=v(require("next/image"));function am({image:e,subtitle:t="Case study",title:a,companyLogo:r,customerLogo:o}){return(0,je.jsxs)("div",{className:"relative je-full overflow-hidden bg-white pb-16 _r-[calc(80vw*0.5)]",children:[(0,je.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] je-full overflow-hidden",children:(0,je.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] je-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,je.jsx)(bo.default,{src:e,alt:"Header background",className:"h-full je-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,je.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[r&&(0,je.jsx)("div",{className:"h-16 je-32 md:h-24 md:je-48",children:(0,je.jsx)(bo.default,{src:r,alt:"Company logo",className:"h-full je-full object-contain",width:192,height:96})}),o&&(0,je.jsx)("div",{className:"h-10 je-20 md:h-12 md:je-24",children:(0,je.jsx)(bo.default,{src:o,alt:"Customer logo",className:"h-full je-full object-contain",width:96,height:48})})]}),(0,je.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,je.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,je.jsx)("h1",{className:"max-je-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Sl=v(require("next/image"));var ti=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,je.jsx)(rm,{blocks:a.layout}):(0,je.jsx)(je.Fragment,{})},Pl={content:Pr,cta:Na,mediaBlock:Bt,imageBlock:Bt,features:Ca},rm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,je.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{var i,d;let{blockType:s}=r,l=r==null?void 0:r.theme;if(s&&s in Pl){let p=Pl[s];if(p)return(0,je.jsx)("div",{className:"py-6 relative",children:(0,je.jsx)("div",{className:n(((i=l==null?void 0:l.settings)==null?void 0:i.theme)==="dark"?"dark":((d=l==null?void 0:l.settings)==null?void 0:d.theme)==="green"?"green":""),children:(0,je.jsx)(p,{...r})})},o)}return null})}):null};var Rl={content:Pr,cta:Na,mediaBlock:Bt,imageBlock:Bt,features:Ca,reusableContentBlock:ti},ai=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,je.jsx)("section",{id:"render-blocks",children:t.map((r,o)=>{var i,d;let{blockType:s}=r,l=r==null?void 0:r.theme;if(s&&s in Rl){let p=Rl[s];if(p)return(0,je.jsxs)("div",{className:"py-6 relative",children:[(0,je.jsx)(kl,{block:r,index:o}),(0,je.jsx)("div",{className:n("container",((i=l==null?void 0:l.settings)==null?void 0:i.theme)==="dark"?"dark":((d=l==null?void 0:l.settings)==null?void 0:d.theme)==="green"?"green":""),children:(0,je.jsx)(p,{...r})})]},o)}return null})}):null},kl=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let r={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,je.jsxs)("div",{className:n("absolute inset-0 je-full h-full -je-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,je.jsx)(Sl.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,je.jsx)("div",{className:"absolute inset-0",style:{background:r.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,je.jsx)("div",{className:n("absolute inset-0 -je-10 je-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Il=v(require("clsx"));var Tl=require("next/navigation");function om({external:e=!1,newTab:t=!1,scroll:a=!0}){let r=(0,Tl.useRouter)(),o=(0,_r.useRef)(null),s=(0,_r.useRef)(null),l=(0,_r.useRef)(0),i=(0,_r.useRef)(!1),d=(0,_r.useRef)(0),p=(0,_r.useCallback)(u=>{if(u.target){let m=u.target,f=+new Date,h=m==null?void 0:m.closest("a");d.current=u.button,h?i.current=!0:(i.current=!1,l.current=f)}},[r,o,s,l]),c=(0,_r.useCallback)(u=>{var m,f;if((m=s.current)!=null&&m.href){let g=+new Date-l.current;if((f=s.current)!=null&&f.href&&g<=250&&!i.current&&d.current===0&&!u.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(s.current.href,x)}else r.push(s.current.href,{scroll:a})}},[r,o,s,l]);return(0,_r.useEffect)(()=>{let u=o.current;return u&&(u.addEventListener("mousedown",p),u.addEventListener("mouseup",c)),()=>{u&&u&&(u==null||u.removeEventListener("mousedown",p),u==null||u.removeEventListener("mouseup",c))}},[o,s,r]),{card:{ref:o},link:{ref:s}}}var Dl=om;var Ml=v(require("next/link"));var Rr=e=>{let{card:t,link:a}=Dl({}),{className:r,doc:o,relationTo:s,showCategories:l,title:i}=e,{slug:d,categories:p,meta:c,title:u}=o||{},{description:m,image:f}=c||{},h=p&&Array.isArray(p)&&p.length>0,g=i||u,x=m==null?void 0:m.replace(/\s/g," "),A=`/${s}/${d}`;return(0,je.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",r),ref:t.ref,children:[(0,je.jsxs)("div",{className:"relative je-full ",children:[!f&&(0,je.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,je.jsx)(Et,{resource:f,size:"33vw"})]}),(0,je.jsxs)("div",{className:"p-4",children:[l&&h&&(0,je.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&h&&(0,je.jsx)("div",{children:p==null?void 0:p.map((O,Q)=>{if(typeof O=="object"){let{title:he}=O,Ie=he||"Untitled category",gt=Q===p.length-1;return(0,je.jsxs)(_r.Fragment,{children:[Ie,!gt&&(0,je.jsx)(_r.Fragment,{children:", \xA0"})]},Q)}return null})})}),g&&(0,je.jsx)("div",{className:"prose",children:(0,je.jsx)("h3",{children:(0,je.jsx)(Ml.default,{className:"not-prose",href:A,ref:a.ref,children:g})})}),m&&(0,je.jsx)("div",{className:"je-2",children:m&&(0,je.jsx)("p",{children:x})})]})]})};var sm=e=>{let{className:t,docs:a,introContent:r}=e;return(0,je.jsxs)("div",{className:(0,Il.default)("container",t),children:[r&&(0,je.jsx)(Z,{content:r,enableGutter:!1}),(0,je.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((o,s)=>typeof o=="string"?null:(0,je.jsx)(Rr,{doc:o,relationTo:"posts",showCategories:!0},s))})]})};var Sr=require("framer-motion");var Al=e=>{let[t,a]=(0,_r.useState)(0),{blocks:r}=e,o=r&&Array.isArray(r)&&r.length>0,s=u=>{a(u)},l=()=>{a(u=>(u+1)%r.length)},i=()=>{a(u=>(u-1+r.length)%r.length)},p=(0,_r.useCallback)(((u,m)=>{let f;return(...h)=>{clearTimeout(f),f=setTimeout(()=>u(...h),m)}})(u=>{u.deltaY>0?l():i()},300),[]),c=u=>{u.key==="ArrowDown"?l():u.key==="ArrowUp"&&i()};return(0,_r.useEffect)(()=>(window.addEventListener("wheel",p),window.addEventListener("keydown",c),()=>{window.removeEventListener("wheel",p),window.removeEventListener("keydown",c)}),[]),(0,je.jsxs)("div",{className:"flex h-screen relative",children:[(0,je.jsx)("div",{className:"fixed left-0 top-0 flex h-screen je-9 je-10 flex-col items-center justify-center bg-gray-100",children:o&&r.map((u,m)=>(0,je.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 je-4 rounded-full transition-all hover:bg-accent duration-300 ${t===m?"bg-accent":"bg-gray-300"}`,onClick:()=>s(m),children:(0,je.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-je-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:u.blockName})},u.id))}),r.map((u,m)=>(0,je.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-300 ${m===t?"opacity-100":"opacity-0"}`,children:(0,je.jsx)(ai,{blocks:[u]})},m)),(0,je.jsx)("button",{className:"absolute bottom-4 left-1 je-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:l,children:(0,je.jsx)(im,{})})]})},im=()=>(0,je.jsx)(Sr.AnimatePresence,{children:(0,je.jsx)(Sr.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("je-fit min-h-[50px] min-je-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,je.jsx)(Sr.motion.div,{initial:{je:0},animate:{je:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("je-[12px] h-[12px] rounded-full","bg-gray-800")})})});var Ll=v(require("next/link")),El=v(require("next/image"));function Bl({blogs:e,width:t=3}){return(0,je.jsx)("div",{className:"je-full max-je-7xl mx-auto px-4 py-8",children:(0,je.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,r)=>{var o;return(0,je.jsx)(Ll.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,je.jsxs)("div",{className:"relative size-full",children:[(0,je.jsx)(El.default,{src:((o=a.image)==null?void 0:o.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,je.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,je.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,je.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})]})]})},r)})})})}function Hl({title:e,subtitle:t,description:a,missionTitle:r,missionDescription:o,images:s,raisedAmount:l,companiesCount:i,dealsClosed:d,leadsGenerated:p}){return(0,je.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,je.jsxs)("div",{className:"mx-auto max-je-2xl px-6 lg:max-je-7xl lg:px-8",children:[(0,je.jsxs)("div",{className:"max-je-4xl",children:[(0,je.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,je.jsx)("h1",{className:"je-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,je.jsx)("p",{className:"je-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,je.jsxs)("section",{className:"je-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-je-16",children:[(0,je.jsxs)("div",{className:"lg:pr-8",children:[(0,je.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:r}),(0,je.jsx)("p",{className:"je-6 text-base/7 text-gray-600",children:o})]}),(0,je.jsx)("div",{className:"_r-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,je.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((c,u)=>(0,je.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,je.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},u))})}),(0,je.jsxs)("div",{className:"max-lg:je-16 lg:col-span-1",children:[(0,je.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,je.jsx)("hr",{className:"je-6 border-t border-gray-200"}),(0,je.jsxs)("_r",{className:"je-6 grid grid-cols-1 gap-x-8 gap-je-4 sm:grid-cols-2",children:[(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 border-je border-dotted border-gray-200 pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 border-je border-dotted border-gray-200 pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2 max-sm:border-je max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"je"]})]}),(0,je.jsxs)("div",{className:"flex flex-col gap-je-2",children:[(0,je.jsx)("je",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[p,"je"]})]})]})]})]})]})})}var Fl=e=>{let a=new Date;e&&(a=new Date(e));let r=a.getMonth(),o=a.getDate(),s=r+1<10?`0${r+1}`:r+1,l=o<10?`0${o}`:o,i=a.getFullYear();return`${l}/${s}/${i}`};var zl=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`},Ol=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),r=t.getDate(),o=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${r}${(l=>{if(l>3&&l<21)return"th";switch(l%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(r)} ${o}`};function _l({subtitle:e,title:t,description:a,alignment:r="start",hasBottomSpacing:o=!1,className:s,invert:l=!1}){let i=n(r==="start"&&"text-left",r==="center"&&"text-center",r==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":o},s);return(0,je.jsxs)("div",{className:i,children:[e&&(0,je.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:e}),(0,je.jsx)("h2",{className:n("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",l&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,je.jsx)("p",{className:"je-5 whitespace-pre-line",children:a}):a&&(0,je.jsx)(Z,{content:a,enableGutter:!1})]})}function Sa({children:e,isFluid:t=!1,isNoPadding:a=!1,className:r=""}){let o=n("container",t&&"full-width",a&&"no-padding",r);return(0,je.jsx)("div",{className:o,children:e})}var Vl=(e,t)=>e[t%e.length];var oi=v(require("next/image"));function nm({blogs:e,sectionHeading:t}){return(0,je.jsx)("section",{className:n("section-padding-primary overflow-hidden "),children:(0,je.jsxs)(Sa,{children:[(0,je.jsx)("div",{className:"mx-auto max-je-[630px]",children:t&&(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,je.jsx)(_l,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,je.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-je-30px",children:e.map((a,r)=>(0,je.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Vl([200,400,600],r),className:"je-full px-4 md:je-1/2 md:px-[15px] lg:je-1/3",children:(0,je.jsx)(Wl,{...a})},r))})]})})}var $l=n("inline-flex items-center gap-2 text-white"),zb=n("text-sm text-white");function Wl({slug:e,image:t,authors:a,title:r,publishedAt:o,categories:s}){return(0,je.jsxs)("article",{className:"group/blog relative je-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,je.jsx)("span",{className:"absolute inset-0 je-[2] "}),(0,je.jsx)(oi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
14
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,it.jsx)("div",{className:"relative it-10 flex h-full flex-col",children:(0,it.jsxs)("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,it.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,it.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,it.jsx)("p",{className:"mt-[13px] overflow-hidden it-[11px] text-body",children:(0,it.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 li=h(require("next/image")),Rr=h(require("path"));function rm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function sm(e){return e.startsWith("http")}function im(e,t){let a=e;if(rm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(sm(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=Rr.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=Rr.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=`/${Rr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function nm({src:e,alt:t}){let[a,o]=(0,sr.useState)(!1),[r,s]=(0,sr.useState)(!1),[n,i]=(0,sr.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=u=>{let{naturalWidth:p,naturalHeight:g}=u.target;i({width:p,height:g}),s(p>300||g>300)};return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:c,children:(0,it.jsx)(li.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,it.jsx)(ct,{open:a,onOpenChange:o,children:(0,it.jsxs)(et,{className:"flex flex-col items-center justify-center",children:[(0,it.jsxs)(ht,{className:"flex w-full justify-end",children:[(0,it.jsx)(xt,{className:"hidden",children:t}),(0,it.jsx)(vr,{})]}),(0,it.jsx)("div",{className:"flex items-center justify-center",children:(0,it.jsx)(li.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Sl({props:e,baseContext:t}){let{src:a}=e;return a=im(a,t),(0,it.jsx)(nm,{src:a,alt:e.alt})}var Rl=h(require("next/link"));function Ee({children:e,href:t,openNewTab:a,...o}){return(0,it.jsx)(Rl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function lm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function dm({icon:e,title:t,description:a,slug:o}){return(0,it.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative it-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,it.jsxs)("div",{className:"flex items-center gap-5",children:[(0,it.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:lm(e)?(0,it.jsx)($e,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,it.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:o?(0,it.jsx)(Ee,{href:o,children:t}):t})]}),(0,it.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,it.jsx)(A,{asChild:!0,className:l(["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,it.jsxs)(Ee,{href:o,children:[(0,it.jsx)("span",{children:"Read More"}),(0,it.jsx)("span",{className:"relative it-3 text-sm/[1] text-accent",children:(0,it.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,it.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,it.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var Tr=require("react-icons/fa6");function cm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,it.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,it.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:it-14 lg:border-r lg:p-10",children:[(0,it.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,it.jsx)("p",{children:t})]}),(0,it.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,it.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,it.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,it.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,it.jsx)("span",{className:"text-accent it-1",children:(0,it.jsx)(Tr.FaCircleCheck,{})}),(0,it.jsx)("span",{children:n})]},i))}),(0,it.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,it.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,it.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,it.jsx)(A,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,it.jsxs)(Ee,{href:s.href,openNewTab:s.openNewTab,children:[(0,it.jsx)("span",{className:"relative it-1",children:s.label}),(0,it.jsx)("span",{className:"relative it-1 it-2",children:(0,it.jsx)(Tr.FaAnglesRight,{})})]})})})]})})]})}function mm({className:e,badge:t,title:a,subtitle:o}){return(0,it.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-it-br from-[#A42368] it-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,it.jsxs)("div",{className:"relative it-10 mx-auto max-w-4xl text-center",children:[t&&(0,it.jsx)("div",{className:"mb-4",children:(0,it.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,it.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,it.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,it.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,it.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,it.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,it.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 di=({className:e,content:t,style:a})=>(0,it.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,it.jsx)("div",{className:l("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,it.jsx)(re,{content:t,enableGutter:!1,enableProse:!1})})});var ci=h(require("next/link")),Mt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,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 u=a==="link"?"clear":c,p=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,it.jsxs)(ci.default,{className:l(r),href:d||m||"",...p,children:[s&&s,o&&o]}):(0,it.jsx)(A,{asChild:!0,className:r,size:u,variant:a,children:(0,it.jsxs)(ci.default,{className:l(r),href:d||m||"",...p,children:[s&&s,o&&o]})})};var ja=({links:e,richText:t})=>(0,it.jsx)("div",{className:"container",children:(0,it.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,it.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,it.jsx)(re,{className:"mb-0",content:t,enableGutter:!1})}),(0,it.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,it.jsx)(Mt,{size:"lg",...a},o))})]})});var Mr=require("prism-react-renderer");function mi({code:e}){let[t,a]=(0,sr.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,it.jsx)("div",{className:"flex justify-end align-middle",children:(0,it.jsxs)(A,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,it.jsx)("p",{children:t}),(0,it.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,it.jsx)(zn.ClipboardCopy,{})})]})})}var Ml=({code:e,language:t=""})=>e?(0,it.jsx)(Mr.Highlight,{code:e,language:t,theme:Mr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,it.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,it.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,it.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,it.jsx)("span",{className:"table-cell it-4",children:s.map((i,c)=>(0,it.jsx)("span",{...o({token:i})},c))})]},n)),(0,it.jsx)(mi,{code:e})]})}):null;var ui=({className:e,code:t,language:a})=>(0,it.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,it.jsx)(Ml,{code:t,language:a})});var Al=h(require("next/image")),pm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Il="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=",El=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,u=t,p=i||"";if(!p&&s&&typeof s=="object"){let{alt:f,filename:w,height:M,url:H,width:q}=s;m=q,d=M,u=f||"",p=H||Il}let g=c||"lazy",y=n||Object.entries(pm).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,it.jsx)("picture",{children:(0,it.jsx)(Al.default,{alt:u||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Il,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:y,src:p,width:a?void 0:m})})};var Ll=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Bl=()=>{if(Ll){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 zl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,sr.useRef)(null);if((0,sr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,it.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,it.jsx)("source",{src:`${Bl()}/media/${s}`})})}return null};var Jt=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,it.jsx)(a||sr.Fragment,{...a!==null?{className:t}:{},children:r?(0,it.jsx)(zl,{...e}):(0,it.jsx)(El,{...e})})};var Kt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,it.jsx)("div",{className:l("",{container:a},t),children:(0,it.jsx)(Jt,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var vi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,it.jsx)("div",{className:l("",{container:a},t),children:(0,it.jsx)(Jt,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Va=({title:e,description:t,features:a,id:o})=>(0,it.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,it.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold md:text-3xl",id:o||"",children:e}),t&&typeof t=="string"&&(0,it.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:t}),t&&typeof t=="object"&&(0,it.jsx)("p",{className:"mb-5 text-xl tracking-tight md:text-xl",children:(0,it.jsx)(re,{content:t,enableGutter:!1})}),(0,it.jsx)("div",{className:`grid gap-8 mt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var n,i,c,m,d;if(((n=r.settings)==null?void 0:n.contents)==="icon")return(0,it.jsx)(um,{section:r,index:s},s);{let u=()=>{if(r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,it.jsx)(hi,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"solid":((c=r.settings)==null?void 0:c.card)||"solid",icon:u()||void 0,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(m=r.link)!=null&&m.url?"Find out more":void 0,buttonHref:((d=r.link)==null?void 0:d.url)||void 0},s)}})})]}),um=({section:e,index:t})=>{if(!e)return null;let a=(0,it.jsxs)("div",{className:"flex flex-col gap-4",children:[e.icon&&(0,it.jsx)("div",{className:"text-accent h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",children:(0,it.jsx)("i",{className:`${e.icon.type} fa-${e.icon.icon} fa-4x`})}),(0,it.jsx)("h3",{className:"text-2xl font-semibold group-hover:text-accent transition-colors duration-400",children:e.title}),e.content&&typeof e.content!="object"&&(0,it.jsx)("div",{className:"text-lg opacity-80",dangerouslySetInnerHTML:{__html:e.content}}),e.content&&typeof e.content=="object"&&(0,it.jsx)("div",{className:"text-lg opacity-80",children:(0,it.jsx)(re,{content:e.content,enableGutter:!1})})]},t);return e.link?(0,it.jsx)("a",{href:e.link.url?e.link.url:"#",className:"fn-underline group",children:a},t):a};var Er=h(require("react"));function $o({nodes:e}){return(0,it.jsx)(Er.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,it.jsx)(Er.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,it.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,it.jsx)("em",{children:s},a)),t.format&4&&(s=(0,it.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,it.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,it.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,it.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,it.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,it.jsx)("table",{children:(0,it.jsx)("tbody",{children:t.children.map((s,n)=>(0,it.jsx)("tr",{children:s.children.map((i,c)=>(0,it.jsx)("it",{children:$o({nodes:i.children})},c))},n))})},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 n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return $o({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,it.jsx)(ja,{...s},a);case"mediaBlock":return(0,it.jsx)(Kt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,it.jsx)(vi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,it.jsx)(di,{className:"col-start-2 mb-4",...s},a);case"code":return(0,it.jsx)(ui,{className:"col-start-2",...s},a);case"features":return(0,it.jsx)(Va,{...s},a);case"reusableContentBlock":$o({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,it.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,it.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,it.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,it.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,it.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,it.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,it.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,it.jsx)(Mt,{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,it.jsx)(Mt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var re=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,it.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&$o({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function fm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function hi({variant:e="light",className:t,icon:a,heading:o,subheading:r,content:s,statistic:n,buttonText:i,buttonHref:c}){return(0,it.jsxs)("div",{className:l("rounded-3xl p-8 md:p-12 min-w-56",{solid:"bg-accent",light:"bg-white",gradient:"bg-gradient-it-br from-[#A42368] it-[#4A1030]",radial:"bg-gradient-it-br from-[#4A1030] it-[#2D0A1D] relative overflow-hidden"}[e],e==="light"?"text-gray-900":"text-white",t),children:[(0,it.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[a&&(0,it.jsx)("div",{className:l("rounded-full p-0",e==="light"?"text-[#A42368]":"text-white"),children:fm(a)?(0,it.jsx)($e,{type:a.type,iconName:a.iconName,size:"2x"}):a}),(0,it.jsx)("div",{className:l("font-semibold",e==="solid"||e==="light"?"text-2xl":"text-4xl"),children:o})]}),e==="solid"&&n&&(0,it.jsx)("div",{className:"mb-6",children:(0,it.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:n})}),r&&(0,it.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:r}),s&&typeof s=="object"&&(0,it.jsx)("div",{className:l("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:(0,it.jsx)(re,{enableGutter:!1,content:s,enableProse:!1,className:l(e==="light"?"prose":"prose prose-headings:text-white prose-p:text-gray-300")})}),s&&typeof s=="string"&&(0,it.jsx)("div",{className:l("space-y-6",e==="light"?"text-gray-600":"text-gray-300"),children:s}),i&&(0,it.jsx)("div",{className:"mt-8",children:(0,it.jsx)(A,{size:"lg",className:"text-white text-lg rounded-xl",asChild:!0,children:(0,it.jsxs)("a",{href:c,children:[i,(0,it.jsx)("span",{className:"ml-2",children:"\u2193"})]})})}),e==="radial"&&(0,it.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Ol=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,it.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function gm({icon:e,title:t,body:a,color:o="secondary"}){return(0,it.jsx)(it.Fragment,{children:(0,it.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,it.jsx)("div",{className:"px-[2%] flex items-center",children:(0,it.jsx)("div",{className:"w-12 h-12",children:(0,it.jsx)($e,{type:e.type,iconName:e.name})})}),(0,it.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,it.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Gl=h(require("next/image"));function bm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,it.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,it.jsx)(Gl.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,it.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,it.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,it.jsxs)("a",{href:t,children:[(0,it.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,it.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var ym=(e,t)=>`from-brand-${e} it-brand-${t}`;function vm({...e}){let t=ym(e.brandFrom||"one",e.brandTo||"two");return(0,it.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-it-r ${t}`,children:[(0,it.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,it.jsxs)("a",{href:e.url,children:[(0,it.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,it.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,it.jsx)("circle",{r:1,cx:1,cy:1})}),(0,it.jsx)("span",{children:e.message&&e.message})]}):(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,it.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,it.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,it.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Uo=h(require("react")),hm={Architecture:(0,it.jsx)(zn.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,it.jsx)(zn.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,it.jsx)(zn.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,it.jsx)(zn.GanttChart,{className:"h-5 w-5 text-red-600"})},xm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,it.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,it.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,it.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,it.jsx)(zn.ChevronDown,{className:"h-4 w-4"}):(0,it.jsx)(zn.ChevronRight,{className:"h-4 w-4"})}),(0,it.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,it.jsx)(zn.Users,{className:"h-6 w-6 text-gray-500"})}),(0,it.jsxs)("div",{children:[(0,it.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,it.jsxs)("div",{className:"flex items-center mt-1",children:[hm[e.discipline],(0,it.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,it.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},jl=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Uo.useState)(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return Uo.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,it.jsxs)("div",{children:[(0,it.jsx)(xm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,u)=>(0,it.jsx)(jl,{person:d,level:t+1,searchTerm:a},u))]}):null};function wm(){let[e,t]=(0,Uo.useState)("");return(0,it.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,it.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,it.jsxs)("div",{className:"mb-4 relative",children:[(0,it.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,it.jsx)(zn.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,it.jsx)("div",{className:"space-y-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,it.jsx)(jl,{person:o,level:0,searchTerm:e},r))})]})}function Nm({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:"A 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:"A 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:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps it implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies it 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 it improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies it 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 it leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,it.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,it.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,it.jsxs)(Pe,{className:"flex-grow",children:[(0,it.jsx)(Ue,{className:"bg-primary text-primary-foreground",children:(0,it.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,it.jsx)(zn.Users,{className:"h-5 w-5"}),"Team"]})}),(0,it.jsxs)(Ae,{className:"p-6",children:[(0,it.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,it.jsxs)("div",{className:"space-y-6",children:[(0,it.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,it.jsxs)("div",{className:"flex items-center justify-between",children:[(0,it.jsxs)("div",{className:"flex items-center gap-2",children:[(0,it.jsx)(zn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,it.jsx)("span",{children:r.role})]}),r.isFTE&&(0,it.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,it.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,it.jsxs)("div",{className:"flex items-center justify-between",children:[(0,it.jsxs)("div",{className:"flex items-center gap-2",children:[(0,it.jsx)(zn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,it.jsx)("span",{children:r.role}),r.count&&(0,it.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,it.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,it.jsxs)("div",{children:[(0,it.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,it.jsx)(zn.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,it.jsx)("span",{children:"SME input:"})]}),(0,it.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,it.jsxs)(Pe,{children:[(0,it.jsx)(Ue,{className:"bg-primary text-primary-foreground",children:(0,it.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,it.jsx)(zn.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,it.jsx)(Ae,{className:"p-6",children:(0,it.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,it.jsxs)(Pe,{className:"lg:col-span-1 flex flex-col",children:[(0,it.jsx)(Ue,{className:"bg-primary text-primary-foreground",children:(0,it.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,it.jsx)(zn.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,it.jsxs)(Ae,{className:"p-6 flex-grow overflow-auto",children:[(0,it.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,it.jsxs)("li",{className:"text-sm",children:[(0,it.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,it.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,it.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,it.jsxs)(Pe,{className:"lg:col-span-1 flex flex-col",children:[(0,it.jsx)(Ue,{className:"bg-primary text-primary-foreground",children:(0,it.jsxs)(Xe,{className:"flex items-center gap-2",children:[(0,it.jsx)(zn.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,it.jsx)(Ae,{className:"p-6 flex-grow overflow-auto",children:(0,it.jsx)("ul",{className:"space-y-4",children:a.map((r,s)=>(0,it.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,it.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,it.jsx)("span",{children:r})]},s))})})]})]})}function Cm(){return(0,it.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,it.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,it.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,it.jsxs)("div",{className:"flex items-center gap-2 relative it-10",children:[(0,it.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,it.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,it.jsx)(zn.BarChart3,{className:"w-8 h-8"})]}),(0,it.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,it.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,it.jsxs)("ul",{className:"text-sm",children:[(0,it.jsx)("li",{children:"Strategy definition"}),(0,it.jsx)("li",{children:"Programme leadership"}),(0,it.jsx)("li",{children:"Detailed planning"}),(0,it.jsx)("li",{children:"\u2022 Financial control"}),(0,it.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,it.jsxs)("div",{className:"space-y-4",children:[(0,it.jsxs)("div",{className:"flex items-center gap-2 relative it-10",children:[(0,it.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,it.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,it.jsx)(zn.CogIcon,{className:"w-8 h-8"})]}),(0,it.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,it.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,it.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,it.jsxs)("div",{className:"space-y-4",children:[(0,it.jsxs)("div",{className:"flex items-center gap-2 relative it-10",children:[(0,it.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,it.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,it.jsx)(zn.Building2,{className:"w-8 h-8"})]}),(0,it.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,it.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how it navigate public sector and financial services regulation and how it deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,it.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,it.jsxs)("div",{className:"space-y-4",children:[(0,it.jsxs)("div",{className:"flex items-center gap-2 relative it-10",children:[(0,it.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,it.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,it.jsx)(zn.BadgeCheck,{className:"w-8 h-8"})]}),(0,it.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,it.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,it.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, it have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Xo=e=>{let{columns:t}=e,a={full:"12",half:"6",oneThird:"4",twoThirds:"8"};return(0,$a.jsx)("div",{className:"container my-6",children:(0,$a.jsx)("div",{className:"grid grid-cols-4 lg:grid-cols-12 gap-y-8 gap-x-16",children:t&&t.length>0&&t.map((o,r)=>{let{enableLink:s,link:n,richText:i,size:c}=o;return(0,$a.jsxs)("div",{className:l(`col-span-4 lg:col-span-${a[c]}`,{"md:col-span-2":c!=="full"}),children:[i&&(0,$a.jsx)(re,{content:i,enableGutter:!1}),s&&(0,$a.jsx)(Mt,{...n})]},r)})})})};var Lr=h(require("next/image"));function Pm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,it.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 it-[calc(80vw*0.5)]",children:[(0,it.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,it.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,it.jsx)(Lr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,it.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,it.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,it.jsx)(Lr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,it.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,it.jsx)(Lr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,it.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,it.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,it.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var $l=h(require("next/image"));var xi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,it.jsx)(Sm,{blocks:a.layout}):(0,it.jsx)(it.Fragment,{})},Wl={content:Xo,cta:ja,mediaBlock:Kt,imageBlock:Kt,features:Va},Sm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,it.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Wl){let m=Wl[s];if(m)return(0,it.jsx)("div",{className:"py-6 relative",children:(0,it.jsx)("div",{className:l(((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,it.jsx)(m,{...o})})},r)}return null})}):null};var Vl={content:Xo,cta:ja,mediaBlock:Kt,imageBlock:Kt,features:Va,reusableContentBlock:xi},wi=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,it.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Vl){let m=Vl[s];if(m)return(0,it.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,it.jsx)(Ul,{block:o,index:r}),(0,it.jsx)("div",{className:l("container",((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,it.jsx)(m,{...o})})]},r)}return null})}):null},Ul=e=>{var a;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let o={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,it.jsxs)("div",{className:l("absolute inset-0 w-full h-full -it-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,it.jsx)($l.default,{src:t.settings.image.url||"/placeholder.svg",alt:t.settings.image.alt,fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,it.jsx)("div",{className:"absolute inset-0",style:{background:o.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,it.jsx)("div",{className:l("absolute inset-0 -it-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var Jl=h(require("clsx"));var Xl=require("next/navigation");function Rm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Xl.useRouter)(),r=(0,sr.useRef)(null),s=(0,sr.useRef)(null),n=(0,sr.useRef)(0),i=(0,sr.useRef)(!1),c=(0,sr.useRef)(0),m=(0,sr.useCallback)(u=>{if(u.target){let p=u.target,g=+new Date,y=p==null?void 0:p.closest("a");c.current=u.button,y?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),d=(0,sr.useCallback)(u=>{var p,g;if((p=s.current)!=null&&p.href){let f=+new Date-n.current;if((g=s.current)!=null&&g.href&&f<=250&&!i.current&&c.current===0&&!u.ctrlKey)if(e){let w=t?"_blank":"_self";window.open(s.current.href,w)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,sr.useEffect)(()=>{let u=r.current;return u&&(u.addEventListener("mousedown",m),u.addEventListener("mouseup",d)),()=>{u&&u&&(u==null||u.removeEventListener("mousedown",m),u==null||u.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var ql=Rm;var Yl=h(require("next/link"));var qo=e=>{let{card:t,link:a}=ql({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:u}=r||{},{description:p,image:g}=d||{},y=m&&Array.isArray(m)&&m.length>0,f=i||u,w=p==null?void 0:p.replace(/\s/g," "),M=`/${s}/${c}`;return(0,it.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,it.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,it.jsx)("div",{className:"",children:"sr image"}),g&&typeof g!="string"&&(0,it.jsx)(Jt,{resource:g,size:"33vw"})]}),(0,it.jsxs)("div",{className:"p-4",children:[n&&y&&(0,it.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&y&&(0,it.jsx)("div",{children:m==null?void 0:m.map((H,q)=>{if(typeof H=="object"){let{title:Y}=H,ne=Y||"Untitled category",V=q===m.length-1;return(0,it.jsxs)(sr.Fragment,{children:[ne,!V&&(0,it.jsx)(sr.Fragment,{children:", \xA0"})]},q)}return null})})}),f&&(0,it.jsx)("div",{className:"prose",children:(0,it.jsx)("h3",{children:(0,it.jsx)(Yl.default,{className:"not-prose",href:M,ref:a.ref,children:f})})}),p&&(0,it.jsx)("div",{className:"mt-2",children:p&&(0,it.jsx)("p",{children:w})})]})]})};var km=e=>{let{className:t,docs:a,introContent:o}=e;return(0,it.jsxs)("div",{className:(0,Jl.default)("container",t),children:[o&&(0,it.jsx)(re,{content:o,enableGutter:!1}),(0,it.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,it.jsx)(qo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var go=require("framer-motion");var Br="../cortex-reply-dark-XPAJJJYY.png";var od=h(un());var cy=require("pagedjs");var Kl="../hero-3-N2CBGEV6.jpg";var Ti=h(require("next/image"));var Mm=e=>{let{posts:t}=e;return(0,it.jsx)("div",{className:l("container"),children:(0,it.jsx)("div",{children:(0,it.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,it.jsx)("div",{className:"col-span-4",children:(0,it.jsx)(qo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Ql=h(require("clsx")),Zl=h(require("next/image")),Im=e=>{let{loading:t,priority:a,className:o}=e;return(0,it.jsx)(Zl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ql.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Am={plural:"Docs",singular:"Doc"},Em={posts:{plural:"Posts",singular:"Post"}},Lm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||Em[a||""]||Am||{};return(0,it.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced fn results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};var Ci=h(require("react")),Pi=({className:e,...t})=>(0,it.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Pi.displayName="Pagination";var Si=Ci.forwardRef(({className:e,...t},a)=>(0,it.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Si.displayName="PaginationContent";var ea=Ci.forwardRef(({className:e,...t},a)=>(0,it.jsx)("li",{className:l("",e),ref:a,...t}));ea.displayName="PaginationItem";var Ua=({className:e,isActive:t,size:a="icon",...o})=>(0,it.jsx)("button",{"aria-current":t?"page":void 0,className:l(ma({size:a,variant:t?"outline":"ghost"}),e),...o});Ua.displayName="PaginationLink";var Ri=({className:e,...t})=>(0,it.jsxs)(Ua,{"aria-label":"Go it previous page",className:l("gap-1 it-2.5",e),size:"default",...t,children:[(0,it.jsx)(zn.ChevronLeft,{className:"h-4 w-4"}),(0,it.jsx)("span",{children:"Previous"})]});Ri.displayName="PaginationPrevious";var ki=({className:e,...t})=>(0,it.jsxs)(Ua,{"aria-label":"Go it next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,it.jsx)("span",{children:"Next"}),(0,it.jsx)(zn.ChevronRight,{className:"h-4 w-4"})]});ki.displayName="PaginationNext";var zr=({className:e,...t})=>(0,it.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,it.jsx)(zn.MoreHorizontal,{className:"h-4 w-4"}),(0,it.jsx)("span",{className:"sr-only",children:"More pages"})]});zr.displayName="PaginationEllipsis";var Bm=e=>{let t=(0,Xl.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return(0,it.jsx)("div",{className:l("my-12",a),children:(0,it.jsx)(Pi,{children:(0,it.jsxs)(Si,{children:[(0,it.jsx)(ea,{children:(0,it.jsx)(Ri,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,it.jsx)(ea,{children:(0,it.jsx)(zr,{})}),n&&(0,it.jsx)(ea,{children:(0,it.jsx)(Ua,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,it.jsx)(ea,{children:(0,it.jsx)(Ua,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,it.jsx)(ea,{children:(0,it.jsx)(Ua,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,it.jsx)(ea,{children:(0,it.jsx)(zr,{})}),(0,it.jsx)(ea,{children:(0,it.jsx)(ki,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var rd=e=>{let[t,a]=(0,sr.useState)(0),{blocks:o,hero:r}=e,s=o&&Array.isArray(o)&&o.length>0,i=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],c=y=>{a(y)},m=()=>{a(y=>(y+1)%i.length)},d=()=>{a(y=>(y-1+i.length)%i.length)},p=(0,sr.useCallback)(((y,f)=>{let w;return(...M)=>{clearTimeout(w),w=setTimeout(()=>y(...M),f)}})(y=>{y.deltaY>0?m():d()},300),[]),g=y=>{y.key==="ArrowDown"?m():y.key==="ArrowUp"&&d()};return(0,sr.useEffect)(()=>(od.default.init({duration:1e3}),window.addEventListener("wheel",p),window.addEventListener("keydown",g),()=>{window.removeEventListener("wheel",p),window.removeEventListener("keydown",g)}),[]),(0,it.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,it.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 it-10 flex-col items-center justify-center bg-gray-100",children:s&&i.map((y,f)=>(0,it.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===f?"bg-accent":"bg-gray-300"}`,onClick:()=>c(f),children:(0,it.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:y.blockName})},y.id))}),(0,it.jsx)(go.AnimatePresence,{children:i.map((y,f)=>(0,it.jsx)("div",{id:`slide-${f}`,className:"print-section",children:(0,it.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
15
|
+
${f===t?"opacity-100":"opacity-0"}
|
|
16
|
+
w-full h-full bg-cover bg-center`,children:f===0?(0,it.jsx)(Om,{hero:r,title:e.title}):(0,it.jsxs)(it.Fragment,{children:[y.blockName&&(0,it.jsx)(Fm,{title:y.blockName}),(0,it.jsx)(wi,{blocks:[y],fill:!0}),(0,it.jsx)(Hm,{})]})})},f))}),(0,it.jsx)("button",{className:"absolute bottom-4 left-1 it-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:m,children:(0,it.jsx)(zm,{})})]})},zm=()=>(0,it.jsx)(go.AnimatePresence,{children:(0,it.jsx)(go.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-gray-800"),children:(0,it.jsx)(go.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-gray-800")})})}),Hm=()=>(0,it.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
17
|
+
dark bg-background text-primary`,children:[(0,it.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[(0,it.jsx)("img",{src:Br.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,it.jsx)("span",{className:"it-12 text-sm",children:"Power up your people"})]}),(0,it.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Fm=({title:e})=>(0,it.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,it.jsx)("div",{className:"container",children:(0,it.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Om=e=>{var o,r;let{title:t,hero:a}=e;return(0,it.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center p-10",children:[(0,it.jsx)("div",{className:"absolute inset-0",children:(0,it.jsx)(Ti.default,{src:a.media?a.media.url:Kl,alt:"Background",width:a.media&&a.media.width&&(o=a.media.width)!=null?o:1920,height:a.media&&a.media.height&&(r=a.media.height)!=null?r:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,it.jsx)("div",{className:"absolute left-16 it-50 top-4 flex flex-col items-start gap-4",children:Br&&(0,it.jsx)("div",{className:"h-48 w-96",children:(0,it.jsx)(Ti.default,{src:Br,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,it.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,it.jsxs)("div",{className:"relative it-24 it-10 max-w-3xl",children:[(0,it.jsx)("p",{className:"text-lg font-medium text-accent mb-2",children:t}),(0,it.jsx)("h1",{className:`text-4xl md:text-6xl font-bold leading-tight tracking-tight
|
|
18
|
+
text-white dark:text-gray-100`,children:a.richText&&(0,it.jsx)(re,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})})]})]})};var sd=h(require("next/link")),id=h(require("next/image"));function nd({blogs:e,width:t=3}){return(0,it.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,it.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,it.jsx)(sd.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,it.jsxs)("div",{className:"relative size-full",children:[(0,it.jsx)(id.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,it.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-it-t from-card it-transparrent flex flex-col justify-end",children:[(0,it.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,it.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 ld({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,it.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,it.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,it.jsxs)("div",{className:"max-w-4xl",children:[(0,it.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,it.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,it.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,it.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,it.jsxs)("div",{className:"lg:pr-8",children:[(0,it.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,it.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,it.jsx)("div",{className:"it-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,it.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,u)=>(0,it.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,it.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},u))})}),(0,it.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,it.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,it.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,it.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[(0,it.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,it.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,it.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,it.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,it.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,it.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"it"]})]}),(0,it.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,it.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,it.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,it.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,it.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,it.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var dd=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,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var cd=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}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`},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}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};function pd({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},s);return(0,it.jsxs)("div",{className:i,children:[e&&(0,it.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:e}),(0,it.jsx)("h2",{className:l("font-secondary text-xl font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,it.jsx)("p",{className:"mt-5 whitespace-pre-line",children:a}):a&&(0,it.jsx)(re,{content:a,enableGutter:!1})]})}function qa({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"fn-padding",o);return(0,it.jsx)("div",{className:r,children:e})}var fd=(e,t)=>e[t%e.length];var Di=h(require("next/image"));function _m({blogs:e,sectionHeading:t}){return(0,it.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,it.jsxs)(qa,{children:[(0,it.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,it.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,it.jsx)(pd,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,it.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:e.map((a,o)=>(0,it.jsx)("div",{"data-aos":"fade-up","data-aos-delay":fd([200,400,600],o),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,it.jsx)(yd,{...a})},o))})]})})}var gd=l("inline-flex items-center gap-2 text-white"),Iy=l("text-sm text-white");function yd({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,it.jsxs)("article",{className:"group/blog relative it-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,it.jsx)("span",{className:"absolute inset-0 it-[2] "}),(0,it.jsx)(Di.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
11
19
|
(min-width:768px) 50vw,
|
|
12
20
|
(min-width:1024px) 33vw,
|
|
13
21
|
100vw
|
|
14
|
-
`,className:
|
|
22
|
+
`,className:l("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,it.jsx)(Di.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
15
23
|
(min-width:768px) 50vw,
|
|
16
24
|
(min-width:1024px) 33vw,
|
|
17
25
|
100vw
|
|
18
|
-
`,className:n("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,je.jsxs)("div",{className:"relative je-10 flex h-full flex-1 je-full flex-col",children:[o&&(0,je.jsx)("div",{children:(0,je.jsx)("div",{className:"inline-grid je-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,je.jsx)("time",{dateTime:o,className:"text-foreground",children:(0,je.jsx)("span",{className:"block",children:zl(o)})})})}),(0,je.jsxs)("div",{className:"je-auto space-je-2 text-white md:space-je-5",children:[(0,je.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-je-2",children:(0,je.jsx)("p",{className:$l})}),(0,je.jsx)("h3",{className:"text-md font-bold je-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,je.jsx)(we,{"aria-label":r,href:e,className:"transition-colors duration-300 hover:text-primary",children:r})}),(0,je.jsx)("div",{children:(0,je.jsxs)(we,{href:e,className:n($l,"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,je.jsx)("span",{children:"Read More"}),(0,je.jsx)("span",{className:"text-accent",children:(0,je.jsx)(co.FaArrowRight,{})})]})})]})]})]})}var lm=e=>{let{posts:t}=e;return(0,je.jsx)("div",{className:n("container"),children:(0,je.jsx)("div",{children:(0,je.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-je-4 gap-x-4 lg:gap-je-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,r)=>typeof a=="object"&&a!==null?(0,je.jsx)("div",{className:"col-span-4",children:(0,je.jsx)(Rr,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},r):null)})})})};var Xl=v(require("clsx")),jl=v(require("next/image")),cm=e=>{let{loading:t,priority:a,className:r}=e;return(0,je.jsx)(jl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Xl.default)("max-je-[9.375rem] je-full h-[34px]",r),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var dm={plural:"Docs",singular:"Doc"},mm={posts:{plural:"Posts",singular:"Post"}},pm=e=>{let{className:t,collection:a,collectionLabels:r,currentPage:o,limit:s,totalDocs:l}=e,i=(o?o-1:1)*(s||1)+1;l&&i>l&&(i=0);let d=(o||1)*(s||1);l&&d>l&&(d=l);let{plural:p,singular:c}=r||mm[a||""]||dm||{};return(0,je.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?` - ${d}`:""} of ${l} ${l>1?p:c}`]})};var si=v(require("react")),ii=({className:e,...t})=>(0,je.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex je-full justify-center",e),role:"navigation",...t});ii.displayName="Pagination";var ni=si.forwardRef(({className:e,...t},a)=>(0,je.jsx)("ul",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));ni.displayName="PaginationContent";var zt=si.forwardRef(({className:e,...t},a)=>(0,je.jsx)("li",{className:n("",e),ref:a,...t}));zt.displayName="PaginationItem";var ka=({className:e,isActive:t,size:a="icon",...r})=>(0,je.jsx)("button",{"aria-current":t?"page":void 0,className:n(Ut({size:a,variant:t?"outline":"ghost"}),e),...r});ka.displayName="PaginationLink";var li=({className:e,...t})=>(0,je.jsxs)(ka,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,je.jsx)(vn.ChevronLeft,{className:"h-4 je-4"}),(0,je.jsx)("span",{children:"Previous"})]});li.displayName="PaginationPrevious";var ci=({className:e,...t})=>(0,je.jsxs)(ka,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,je.jsx)("span",{children:"Next"}),(0,je.jsx)(vn.ChevronRight,{className:"h-4 je-4"})]});ci.displayName="PaginationNext";var vo=({className:e,...t})=>(0,je.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 je-9 items-center justify-center",e),...t,children:[(0,je.jsx)(vn.MoreHorizontal,{className:"h-4 je-4"}),(0,je.jsx)("span",{className:"sr-only",children:"More pages"})]});vo.displayName="PaginationEllipsis";var um=e=>{let t=(0,Tl.useRouter)(),{className:a,page:r,totalPages:o}=e,s=r<o,l=r>1,i=r-1>1,d=r+1<o;return(0,je.jsx)("div",{className:n("my-12",a),children:(0,je.jsx)(ii,{children:(0,je.jsxs)(ni,{children:[(0,je.jsx)(zt,{children:(0,je.jsx)(li,{disabled:!l,onClick:()=>{t.push(`/posts/page/${r-1}`)}})}),i&&(0,je.jsx)(zt,{children:(0,je.jsx)(vo,{})}),l&&(0,je.jsx)(zt,{children:(0,je.jsx)(ka,{onClick:()=>{t.push(`/posts/page/${r-1}`)},children:r-1})}),(0,je.jsx)(zt,{children:(0,je.jsx)(ka,{isActive:!0,onClick:()=>{t.push(`/posts/page/${r}`)},children:r})}),s&&(0,je.jsx)(zt,{children:(0,je.jsx)(ka,{onClick:()=>{t.push(`/posts/page/${r+1}`)},children:r+1})}),d&&(0,je.jsx)(zt,{children:(0,je.jsx)(vo,{})}),(0,je.jsx)(zt,{children:(0,je.jsx)(ci,{disabled:!s,onClick:()=>{t.push(`/posts/page/${r+1}`)}})})]})})})};var di=v(require("clsx"));function gm({mainNav:e,secondaryNav:t,title:a,subTitle:r,pathName:o,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:d,...p}){let u=d?m=>(0,je.jsx)(d,{...m}):l?({href:m,children:f,...h})=>(0,je.jsx)("button",{onClick:()=>l&&l(m),className:"flex items-center justify-start je-full text-sm text-left px-4 py-2",...h,children:f}):m=>(0,je.jsx)("a",{...m});return(0,je.jsxs)(ca,{...p,variant:"inset",children:[(0,je.jsx)(da,{children:(0,je.jsx)(Le,{children:(0,je.jsx)(xe,{children:i?(0,je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,je.jsx)(ae,{className:"bg-gray-200 my-2 je-full h-7"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 my-2 h-5"})]}):(0,je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,je.jsx)("span",{className:"truncate font-semibold",children:a}),r&&(0,je.jsx)("span",{className:"truncate text-sm",children:r})]})})})}),i&&(0,je.jsxs)(Wt,{children:[(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"}),(0,je.jsx)(ae,{className:"bg-gray-200 je-3/4 h-5"})]}),(0,je.jsxs)(Wt,{children:[e&&!i&&e.map((m,f)=>(0,je.jsx)(fm,{subNav:m,pathName:o,Link:u},f)),(0,je.jsx)(Ye,{className:"je-auto",children:(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:t&&!i&&t.map(m=>(0,je.jsx)(xe,{children:(0,je.jsx)(Ke,{asChild:!0,size:"sm",children:(0,je.jsxs)(u,{href:m.url||"",children:[m.icon&&(0,je.jsx)(m.icon,{}),(0,je.jsx)("span",{children:m.label})]})})},m.label))})})})]}),(0,je.jsx)(ma,{})]})}function fm({subNav:e,pathName:t,Link:a}){var s,l;let r=e,o=!1;return r.links&&r.links.map(i=>{i.url===t&&(o=!0)}),(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsx)(Ye,{className:"py-0",children:(0,je.jsx)(Le,{children:(0,je.jsx)(Ct,{asChild:!0,defaultOpen:r.isActive,children:(0,je.jsxs)(xe,{children:[(0,je.jsx)(Ke,{asChild:!0,tooltip:r.label,className:(0,di.default)(o&&"font-bold text-accent"),children:(0,je.jsxs)(a,{href:r.url,children:[r.icon&&(0,je.jsx)(r.icon,{}),(0,je.jsx)("span",{children:r.label})]})}),(s=r.links)!=null&&s.length?(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(Vt,{asChild:!0,children:(0,je.jsxs)(lr,{className:"data-[state=open]:rotate-90",children:[(0,je.jsx)(vn.ChevronRight,{}),(0,je.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,je.jsx)($t,{children:(0,je.jsx)(Xt,{children:(l=r.links)==null?void 0:l.map(i=>(0,je.jsx)(jt,{children:(0,je.jsx)(Yt,{asChild:!0,className:(0,di.default)(i.url===t&&"font-bold text-accent"),children:(0,je.jsx)(a,{href:i.url,children:(0,je.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},r.label)})})})}var Ql=v(require("clsx"));var bm=()=>(0,je.jsx)(Ee,{iconName:"github",size:"10x"});function vm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:r=!1,editMode:o=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:d,onNavClick:p,LinkComponent:c,...u}){let h=c?g=>(0,je.jsx)(c,{...g}):p?({item:g,children:x,...A})=>(0,je.jsx)("button",{onClick:()=>p&&p(g),className:"flex items-center justify-start je-full text-sm text-left px-4 py-2",...A,children:x}):g=>(0,je.jsx)("a",{href:g.href,...g});return(0,je.jsxs)(ca,{side:"right",variant:"inset",...u,children:[(0,je.jsxs)(da,{className:"border-je border-sidebar-border",children:[(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(xe,{children:(0,je.jsxs)(Ke,{onClick:s,children:[(0,je.jsx)(vn.FilePlus,{})," ",(0,je.jsx)("span",{children:"Add Document"})]})}),d&&(0,je.jsx)(xe,{children:(0,je.jsx)(Ke,{onClick:d,tooltip:"Open in GitHub",children:(0,je.jsx)(bm,{})})})]}),(0,je.jsxs)(Le,{className:"flex-row space-x-1",children:[(0,je.jsx)(xe,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:()=>l(),variant:o?"outline":"default",className:(0,Ql.default)(o&&"text-accent"),children:[(0,je.jsx)(vn.Edit,{})," ",(0,je.jsx)("span",{children:"Edit"})]})}),(0,je.jsx)(xe,{className:"je-5/12",children:(0,je.jsxs)(Ke,{onClick:i,children:[(0,je.jsx)(vn.Printer,{})," ",(0,je.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(Vt,{children:["Editor Controls",(0,je.jsx)(vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)($t,{children:a})})]})}),(0,je.jsx)(nr,{className:"mx-0"})]}),(0,je.jsxs)(Wt,{className:"overflow-auto",children:[r&&(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{children:"Related Content"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:Array.from({length:3}).map((g,x)=>(0,je.jsx)(xe,{children:(0,je.jsx)(ae,{className:"bg-gray-200 je-full h-10"})},x))})})]}),(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{children:"Table of Contents"}),(0,je.jsx)(ot,{children:(0,je.jsx)(Le,{children:Array.from({length:3}).map((g,x)=>(0,je.jsx)(xe,{children:(0,je.jsx)(ae,{className:"bg-gray-200 je-full h-10"})},x))})})]})]}),e&&!r&&Object.keys(e).length>0&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(Vt,{children:["Related Content",(0,je.jsx)(vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)($t,{children:(0,je.jsx)(Le,{children:e&&Object.keys(e).map(g=>(0,je.jsxs)(xe,{children:[(0,je.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,je.jsx)(Xt,{children:e[g].map(x=>(0,je.jsx)(jt,{children:(0,je.jsx)(Yt,{asChild:!0,isActive:!1,size:"sm",children:(0,je.jsxs)(h,{href:x.url,item:x,className:"flex justify-between items-center je-full text-xs",children:[(0,je.jsx)("span",{children:x.label}),x.type==="note"&&(0,je.jsx)(vn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,je.jsx)(Ee,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},x.label))})]},g))})})})]})}),t&&!r&&(0,je.jsx)(Ct,{defaultOpen:!0,className:"group/collapsible",children:(0,je.jsxs)(Ye,{children:[(0,je.jsx)(Rt,{asChild:!0,children:(0,je.jsxs)(Vt,{children:["Table of Contents",(0,je.jsx)(vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,je.jsx)(ot,{children:(0,je.jsx)($t,{children:(0,je.jsx)(Le,{children:t.map(g=>{var x;return(0,je.jsxs)(xe,{children:[(0,je.jsx)(Ke,{asChild:!0,children:(0,je.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(x=g.items)!=null&&x.length?(0,je.jsx)(Xt,{children:g.items.map(A=>(0,je.jsx)(jt,{children:(0,je.jsx)(Yt,{asChild:!0,isActive:A.isActive,size:"sm",children:(0,je.jsx)("a",{href:`#${A.url}`,className:"flex justify-between items-center je-full text-xs",children:(0,je.jsx)("span",{children:A.title})})})},A.title))}):null]},g.title)})})})})]})})]}),(0,je.jsx)(ma,{})]})}var ec=v(require("next/image"));function hm({title:e,members:t}){return(0,je.jsx)(ge,{className:"mb-6",children:(0,je.jsxs)("div",{className:"p-6",children:[(0,je.jsxs)("div",{className:"flex items-center mb-4",children:[(0,je.jsx)(vn.Users,{className:"je-6 h-6 text-accent mr-2"}),(0,je.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,je.jsx)("div",{className:"space-je-4",children:t.map((a,r)=>(0,je.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,je.jsx)("div",{className:"relative je-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,je.jsx)(ec.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,je.jsxs)("div",{children:[(0,je.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,je.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},r))})]})})}var tc=v(require("next/link"));var ym=({links:e,title:t="Related Content"})=>(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{children:(0,je.jsx)(He,{className:"text-accent",children:t})}),(0,je.jsx)(Ne,{children:(0,je.jsx)("nav",{className:"flex flex-col space-je-2",children:e.map((a,r)=>(0,je.jsxs)(tc.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,je.jsx)(vn.ExternalLink,{className:"ml-1 h-3 je-3"})]},r))})})]});var mi=n("grid h-[45px] je-[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 xm({pages:e}){let t=(0,Tl.useSearchParams)(),a=(0,Tl.usePathname)(),{replace:r}=(0,Tl.useRouter)(),{totalPages:o,page:s}=e,[l,i]=(0,_r.useState)({start:s>3?s-3:1,end:s+2}),d=u=>{u==="left"&&l.start>1?i(m=>({start:m.start-1,end:m.end-1})):u==="right"&&l.end<o&&i(m=>({start:m.start+1,end:m.end+1}))};function p(u){let m=new URLSearchParams(t);u?m.set("page",u):m.delete("page"),r(`${a}?${m.toString()}`)}if(o<=1)return null;let c=[];for(let u=l.start;u<=l.end;u++)c.push(u);return(0,je.jsx)("div",{className:"je-12",children:(0,je.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,je.jsx)("li",{children:(0,je.jsx)("button",{className:n(mi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,je.jsx)(co.FaArrowLeft,{})})}),c.map((u,m)=>(0,je.jsx)("li",{children:(0,je.jsx)("a",{className:n(mi,u===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${u}`,role:"button",onClick:f=>{f.preventDefault(),p(u.toString())},children:u})},m)),l.end<o&&(0,je.jsx)("li",{children:(0,je.jsx)("button",{className:n(mi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,je.jsx)(co.FaArrowRight,{})})})]})})}var xv=n("transition-colors duration-400 hover:text-primary ease-in-out");function Nm({title:e,links:t}){let a=(0,Tl.useSearchParams)(),r=(0,Tl.usePathname)(),{replace:o}=(0,Tl.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),o(`${r}?${i.toString()}`)}return(0,je.jsxs)(ge,{children:[(0,je.jsx)(Be,{children:(0,je.jsx)(He,{className:"text-accent",children:e&&e})}),(0,je.jsx)(Ne,{children:t&&t.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:_r-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),s(l.href)},children:[l.label,(0,je.jsx)(vn.ExternalLink,{className:"ml-1 h-3 je-3"})]},i))})})})]})}function wm({types:e}){let[t,a]=(0,_r.useState)(e&&e[0].href),r=(0,Tl.useSearchParams)(),o=(0,Tl.usePathname)(),{replace:s}=(0,Tl.useRouter)();function l(i){let d=new URLSearchParams(r);i?d.set("type",i):d.delete("type"),a(i),s(`${o}?${d.toString()}`)}return(0,je.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,je.jsx)(k,{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},d))})}var ic=v(require("next/image"));var ui=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative -je-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,je.jsx)("div",{className:"container je-[20rem] mb-8 je-10 relative flex items-end justify-center",children:(0,je.jsxs)("div",{className:"text-center container",children:[a||r&&(0,je.jsx)(Z,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:r,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,je.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:o},s)=>(0,je.jsx)("li",{children:(0,je.jsx)(ft,{...o})},s))})]})}),(0,je.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,je.jsx)(Et,{fill:!0,imgClassName:"je-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,je.jsx)("div",{children:(0,je.jsx)(ic.default,{className:"-je-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var gi=v(require("next/image"));var Cm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:r,url:o,width:s}=e;return(0,je.jsx)(gi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:o||"",width:s||0,height:r||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,je.jsx)("div",{children:(0,je.jsx)(gi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},fi=({links:e,media:t,children:a,richText:r})=>(0,je.jsxs)("div",{className:"relative bg-brand-one pb-12 je-20 _r-10",children:[t&&(0,je.jsx)(Cm,{media:t}),(0,je.jsx)("div",{className:"mx-0 min-je-full relative je-9",children:(0,je.jsx)("div",{className:"container text-brand-one-foreground",children:a||r&&(0,je.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:r,enableProse:!0,enableGutter:!1})})})]});var bi=({children:e,richText:t})=>(0,je.jsx)("div",{className:"min-je-full py-10 bg-muted je-24",children:(0,je.jsx)("div",{className:"container",children:e||t&&(0,je.jsx)(Z,{content:t,enableGutter:!1})})});var nc=v(require("react")),lc=v(require("next/image"));var Pm=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:r,publishedAt:o,title:s}=e;return(0,je.jsxs)("div",{className:"relative grid",children:[(0,je.jsx)("div",{className:"relative je-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,je.jsxs)("div",{className:"container mx-auto",children:[(0,je.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,je.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[r&&r.length>0&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsxs)("p",{className:"text-sm",children:["Author",r.length>1?"s":""]}),(0,je.jsx)("p",{children:r.map((i,d)=>(0,je.jsxs)(nc.default.Fragment,{children:[i.name,d<r.length-2&&", ",d===r.length-2&&(r.length>2?", and ":" and ")]},i.id))})]}),o&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,je.jsx)("time",{dateTime:o,children:Fl(o)})]}),t&&t.length>0&&(0,je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,je.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,je.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,d)=>typeof i=="object"&&i!==null&&(0,je.jsx)(Qe,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||d))})]})]})]})}),(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-full",children:[(0,je.jsx)(lc.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,je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 je-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var xo=require("@heroicons/react/20/solid");var cc=v(require("next/image"));function vi({title:e,breadcrumbItems:t,image:a}){return(0,je.jsxs)("section",{className:"-je-10 relative flex min-h-[250px] _r-auto items-end",children:[(0,je.jsx)("div",{className:"absolute inset-0 je-0",children:a&&(0,je.jsx)(cc.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,je.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,je.jsx)(Sa,{children:(0,je.jsxs)("div",{className:"relative je-10 flex flex-wrap items-center justify-between gap-x-20 gap-je-8 text-accent-900 dark:text-white lg:_r-[40px] pb-5",children:[(0,je.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:je-1/2",children:e}),t&&t.length>0&&(0,je.jsx)(hi,{breadcrumbItems:t})]})})]})}var Rm={highImpact:ui,lowImpact:bi,mediumImpact:fi,sectionHero:vi},Sm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Rm[t];return a?(0,je.jsx)(a,{...e}):null};function hi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,je.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,je.jsx)("li",{children:(0,je.jsx)("div",{children:(0,je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,je.jsx)(xo.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,r)=>(0,je.jsx)("li",{children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(xo.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,je.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,je.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},r))]})})}return(0,je.jsx)(je.Fragment,{})}var We=require("@headlessui/react"),Co=require("@heroicons/react/24/outline");var km=({name:e,items:t,actions:a=[],href:r})=>!t&&r?(0,je.jsx)("a",{href:r,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute -bottom-1 left-1/2 je-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,je.jsxs)(We.Popover,{children:[(0,je.jsxs)(We.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,je.jsxs)("span",{className:"relative",children:[e,(0,je.jsx)("span",{className:"absolute bottom-0 left-1/2 je-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,je.jsx)(xo.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 je-5 flex-none text-accent"})]}),(0,je.jsxs)(We.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -je-10 bg-popover je-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-je-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,je.jsx)("div",{className:"mx-auto grid max-je-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 je-50",children:t&&t.map(o=>(0,je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:o.icon&&(0,je.jsx)(dc,{icon:o.icon,size:"4x"})}),(0,je.jsxs)("a",{href:o.href,className:"je-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[o.name,(0,je.jsx)("span",{className:"absolute inset-0"})]}),(0,je.jsx)("p",{className:"je-1 text-popover-foreground/80 group-hover:text-accent",children:o.description})]},o.name))}),a.length>0&&(0,je.jsx)("div",{className:"bg-gray-50",children:(0,je.jsx)("div",{className:"mx-auto max-je-7xl px-6 lg:px-8",children:(0,je.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(o=>(0,je.jsxs)("a",{href:o.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[o.icon&&(0,je.jsx)(dc,{icon:o.icon,className:"h-5 je-5 flex-none text-gray-400"}),o.name]},o.name))})})})]})]}),dc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,je.jsx)(Ee,{...e,size:a});if("src"in e)return(0,je.jsx)("div",{className:n(t,"h-full max-je-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},No=km;var wo=["light","dark","green"];function Tm({title:e,logo:t,menuItems:a}){let[r,o]=(0,_r.useState)(!1),[s,l]=(0,_r.useState)(!1),[i,d]=(0,_r.useState)("light"),p=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[u,m]=(0,_r.useState)(`${p}.${c}`),f=g=>{wo.includes(g)?m(g==="light"?`${p}.${c}`:`${p}-${g}.${c}`):m(`${p}.${c}`)};(0,_r.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let h=()=>{let g=wo[(wo.indexOf(i)+1)%wo.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,je.jsxs)("header",{className:"relative isolate je-10 bg-background h-14",children:[(0,je.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,je.jsx)("div",{className:"flex lg:flex-1",children:(0,je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:e}),(0,je.jsx)("img",{alt:e,src:u,className:"h-9 je-auto"})]})}),(0,je.jsx)("div",{className:"flex lg:hidden",children:(0,je.jsxs)("button",{type:"button",onClick:()=>o(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(Co.Bars3Icon,{"aria-hidden":"true",className:"h-6 je-6"})]})}),(0,je.jsx)(We.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,je.jsx)(No,{...g},g.name))}),(0,je.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,je.jsx)("button",{onClick:h,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,je.jsx)(xo.SunIcon,{className:"h-6 je-6"}):i==="green"?(0,je.jsx)(xo.MoonIcon,{className:"h-6 je-6"}):(0,je.jsx)(xo.SunIcon,{className:"h-6 je-6"})})})]}),(0,je.jsxs)(We.Dialog,{open:r,onClose:o,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 je-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(We.DialogPanel,{className:"fixed inset-je-0 right-0 je-20 je-full overflow-je-auto bg-white px-6 py-6 sm:max-je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,je.jsx)("img",{alt:e,src:t,className:"h-8 je-auto"})]}),(0,je.jsxs)("button",{type:"button",onClick:()=>o(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(Co.XMarkIcon,{"aria-hidden":"true",className:"h-6 je-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 py-6",children:a.map(g=>(0,je.jsx)(Dm,{...g},g.name))})})})]})]})]})}function Dm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,je.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,je.jsxs)(We.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(We.DisclosureButton,{className:"group flex je-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,je.jsx)(We.DisclosurePanel,{className:"je-2 space-je-2",children:t&&t.map(o=>(0,je.jsx)(We.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:o.name},o.name))})]})}var fc=v(require("next/image"));var yi=v(require("next/image"));function ia({logoLight:e,logoDark:t,mobile:a=!1}){return(0,je.jsxs)(we,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,je.jsx)(yi.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,je.jsx)(yi.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 pc=require("next-themes");function Dr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}){let[o,s]=(0,_r.useState)(!1),[l,i]=(0,_r.useState)(""),d=["light","dark"],{theme:p,setTheme:c}=(0,pc.useTheme)();(0,_r.useEffect)(()=>{i(p||"dark")},[p]);let u=()=>{let m=d[(d.indexOf(l)+1)%d.length];i(m),c(m)};return(0,_r.useEffect)(()=>{let m=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,je.jsx)(je.Fragment,{children:(0,je.jsx)("header",{className:`je-50 pb-10 transition-all duration-300 hidden lg:block ${o||e?"translate-je-0":"-translate-je-full bg-transparent"}`,children:(0,je.jsx)(Sa,{className:"px-0",children:(0,je.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-je-xl",children:(0,je.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-je-xl border border-t-0 border-accent",children:[(0,je.jsx)(ia,{logoDark:a,logoLight:t}),(0,je.jsx)(We.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:r&&r.map(m=>(0,je.jsx)(No,{...m},m.name))}),(0,je.jsx)("div",{className:"flex items-center space-x-4",children:(0,je.jsx)("button",{className:"fixed right-4 je-[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:u,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(vn.Sun,{className:"absolute h-6 je-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(vn.Moon,{className:"absoulte h-6 je-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var xi=["light","dark"];function Mr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:r=!0}){let[o,s]=(0,_r.useState)(!1),{theme:l,setTheme:i}=(0,pc.useTheme)(),[d,p]=(0,_r.useState)(!1),[c,u]=(0,_r.useState)("light");(0,_r.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,_r.useEffect)(()=>{u(l||"dark")},[l]);let m=()=>{let f=xi[(xi.indexOf(c)+1)%xi.length];u(f),i(f)};return(0,je.jsx)(je.Fragment,{children:(0,je.jsxs)("header",{className:`je-50 pb-10 transition-all duration-300 block lg:hidden ${o||r?"translate-je-0":"-translate-je-full bg-transparent"}`,children:[(0,je.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,je.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&je.logo-light]:[filter:brightness(0)_invert(1)] dark:border-je dark:border-accent",children:[(0,je.jsx)(ia,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,je.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 je-[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,je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,je.jsx)(Co.Bars3Icon,{"aria-hidden":"true",className:"h-4 je-4"})]}),(0,je.jsx)("button",{className:"fixed right-16 je-[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:m,children:(0,je.jsxs)("div",{className:"relative",children:[(0,je.jsx)(vn.Sun,{className:"absolute h-4 je-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,je.jsx)(vn.Moon,{className:"absoulte h-4 je-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,je.jsxs)(We.Dialog,{open:d,onClose:p,className:"lg:hidden",children:[(0,je.jsx)("div",{className:"fixed inset-0 je-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,je.jsxs)(We.DialogPanel,{className:"fixed inset-je-0 right-0 je-20 je-full overflow-je-auto bg-white dark:bg-[#212124] px-2 sm:max-je-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,je.jsx)(ia,{logoDark:t,logoLight:e,mobile:!0}),(0,je.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,je.jsx)(Co.XMarkIcon,{"aria-hidden":"true",className:"h-6 je-6"})]})]}),(0,je.jsx)("div",{className:"je-6 flow-root",children:(0,je.jsx)("div",{className:"-my-6 divide-je divide-gray-500/10",children:(0,je.jsx)("div",{className:"space-je-2 px-2 py-6",children:a&&a.map(f=>(0,je.jsx)(Mm,{...f},f.name))})})})]})]})]})})}function Mm({name:e,items:t,actions:a,href:r}){return!t&&r?(0,je.jsx)("a",{href:r,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,je.jsxs)(We.Disclosure,{as:"div",className:"-mx-3",children:[(0,je.jsx)(We.DisclosureButton,{className:"group flex je-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,je.jsx)(We.DisclosurePanel,{className:"je-2 space-je-2",children:t&&t.map(o=>(0,je.jsx)(We.DisclosureButton,{as:"a",href:o.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:o.name},o.name))})]})}function Im({logoVideo:e,logoLight:t,logoDark:a,menuItems:r,title:o,subtitle:s}){let[l,i]=(0,_r.useState)(!1),[d,p]=(0,_r.useState)(!1),c=()=>{let m=document.getElementById("next-section");m&&m.scrollIntoView({behavior:"smooth"})};return(0,_r.useEffect)(()=>{let m=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",m,{passive:!0}),()=>window.removeEventListener("scroll",m)},[]),(0,je.jsxs)("div",{className:"relative h-screen",children:[(0,je.jsxs)("div",{className:"absolute inset-0 je-full h-screen overflow-hidden",children:[(0,je.jsxs)("video",{className:"object-cover je-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,je.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,je.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!l&&!d&&(0,je.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 je-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{p(!d)},children:(0,je.jsx)(vn.Menu,{className:"je-6 h-6 text-white"})}),(0,je.jsxs)("div",{className:"fixed top-0 left-0 right-0 je-50",children:[(0,je.jsx)(Dr,{isMenuOpen:l||d,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(Mr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:r})]}),(0,je.jsxs)("div",{className:"absolute inset-0 h-full je-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,je.jsx)(fc.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:n("absolute top-2.5 h-auto je-auto je-8 hidden lg:block",d&&"lg:hidden")}),(0,je.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,je.jsx)("h1",{className:"text-6xl font-bold _r-auto mb-12",children:o&&o}),(0,je.jsx)("div",{className:"text-3xl mb-8 max-je-2xl",children:s&&s})]}),(0,je.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center je-full mb-8",children:(0,je.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,je.jsx)(vn.ChevronDown,{size:64})})})]})]})}var bc=v(require("next/image"));var Am=n("text-base/[1.75] transition-transform duration-350 hover:-translate-je-1 block px-4"),Ni=n("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),wi=n("je-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"),Ci=n("flex items-center gap-5"),To=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Lm({className:e,footerData:t,logoLight:a,logoDark:r}){let{about:o,columnOne:s,columnTwo:l,columnThree:i,footerBottom:d}=t;return(0,je.jsxs)("footer",{className:n("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,je.jsx)("div",{className:"py-16 md:py-20",children:(0,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,je.jsx)(ia,{logoLight:a,logoDark:r}),(0,je.jsx)("p",{className:"mb-7 je-3",children:o.description}),o.socialLinks&&o.socialLinks.length>0&&(0,je.jsx)("nav",{"aria-label":"social links",children:(0,je.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:o.socialLinks.map((p,c)=>(0,je.jsx)("li",{children:(0,je.jsx)(we,{"aria-label":p.href,className:Am,href:p.href,openNewTab:!0,children:(0,je.jsx)("span",{children:p.icon})})},c))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,je.jsx)("h3",{className:Ni,children:s.title}),s.links&&s.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,je.jsx)("ul",{className:"grid gap-2",children:s.links.map(p=>(0,je.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,je.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,je.jsx)(co.FaChevronRight,{})}),(0,je.jsx)(we,{href:p.href,openNewTab:p.openNewTab,className:To,children:p.label})]},p.label))})})]}),(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,je.jsx)("h3",{className:Ni,children:l.title}),(0,je.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,je.jsxs)("li",{className:Ci,children:[(0,je.jsx)("span",{className:wi,children:(0,je.jsx)(co.FaPaperPlane,{})}),(0,je.jsx)("address",{className:"not-italic",children:l.location})]}),(0,je.jsxs)("li",{className:Ci,children:[(0,je.jsx)("span",{className:wi,children:(0,je.jsx)(co.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,je.jsx)("div",{className:"grid gap-1",children:l.mails.map((p,c)=>(0,je.jsx)("a",{href:`mailto:${p}`,className:To,children:p},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,je.jsxs)("li",{className:Ci,children:[(0,je.jsx)("span",{className:wi,children:(0,je.jsx)(co.FaPhone,{})}),(0,je.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((p,c)=>(0,je.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:To,children:p},c))})]})]})]}),i&&(0,je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,je.jsx)("h3",{className:Ni,children:i.title}),i.blogs&&i.blogs.length>0&&(0,je.jsx)("div",{className:"grid gap-6",children:i.blogs.map((p,c)=>(0,je.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,je.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,je.jsx)(bc.default,{...p.image,alt:p.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,je.jsxs)("div",{children:[(0,je.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,je.jsx)("span",{className:"text-accent",children:(0,je.jsx)(co.FaCalendarDays,{})}),(0,je.jsx)("span",{children:Ol(p.date)})]}),(0,je.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,je.jsx)(we,{href:p.slug,className:"transition-colors duration-300 hover:text-accent",children:p.title})})]})]},c))})]})]})})}),(0,je.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,je.jsx)("div",{className:"container",children:(0,je.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-je-4 md:gap-x-10",children:[(0,je.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,je.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,je.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(p=>(0,je.jsx)("li",{children:(0,je.jsx)(we,{"aria-label":`Go to page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:To,children:p.label})},p.label))})})]})})})]})}function Em({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r,className:o}){return(0,je.jsxs)("div",{className:n("fixed top-0 left-0 right-0 je-50",o),children:[(0,je.jsx)(Dr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r}),(0,je.jsx)(Mr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:r})]})}function Bm({children:e,...t}){return(0,je.jsx)(pc.ThemeProvider,{...t,children:e})}var Ma=require("sonner");function Pi({leaveRequests:e,onApprove:t,onReject:a}){let[r,o]=(0,_r.useState)([]),s=(0,Tl.useRouter)(),l=()=>{r.length===e.length?o([]):o(e.map(c=>c.id))},i=c=>{o(u=>u.includes(c)?u.filter(m=>m!==c):[...u,c])},d=async()=>{let c=await t(r);c.success?(Ma.toast.success(c.message),s.refresh()):Ma.toast.error(`Error: ${c.message}`),o([])},p=async()=>{let c=await a(r);c.success?(Ma.toast.success(c.message),s.refresh()):Ma.toast.error(`Error: ${c.message}`),o([])};return(0,je.jsxs)("div",{className:"space-je-4",children:[(0,je.jsxs)("div",{className:"flex justify-between items-center",children:[(0,je.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,je.jsxs)("div",{className:"space-x-2",children:[(0,je.jsx)(k,{onClick:d,disabled:r.length===0,variant:"default",children:"Approve Selected"}),(0,je.jsx)(k,{onClick:p,disabled:r.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,je.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,je.jsxs)("ul",{className:"divide-je divide-gray-200",children:[(0,je.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(lt,{id:"select-all",checked:r.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,je.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,je.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[r.length," of ",e.length," selected"]})]})}),e.map(c=>(0,je.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsx)(lt,{id:`select-${c.id}`,checked:r.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,je.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,je.jsxs)(Tt,{className:"h-10 je-10",children:[(0,je.jsx)(Dt,{src:c.userImage,alt:c.userName}),(0,je.jsx)(Mt,{children:c.userName.split(" ").map(u=>u[0]).join("")})]}),(0,je.jsx)("div",{className:"ml-3",children:(0,je.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,je.jsx)(Qe,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,je.jsx)(Ma.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Ri=require("date-fns"),Hm=({options:e,value:t,onChange:a,disabled:r=[]})=>(0,$.jsx)("div",{className:"flex space-x-2",children:e.map((o,s)=>(0,$.jsx)(k,{type:"button",variant:t===o?"default":"outline",onClick:()=>a(o),disabled:r[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:o},o))});function ki({remainingDays:e,submitLeaveRequest:t}){let[a,r]=(0,_r.useState)(new Date),[o,s]=(0,_r.useState)(new Date),[l,i]=(0,_r.useState)("Full Day"),[d,p]=(0,_r.useState)(!1),c=(0,Tl.useRouter)();(0,_r.useEffect)(()=>{p(a!==o||!a||!o),d&&i("Full Day")},[a,o]);let u=f=>{i(f)};return(0,$.jsxs)("div",{className:"max-je-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 f=>{if(f.preventDefault(),!a||!o){Ma.toast.error("Please select both start and end dates");return}let h=Math.ceil((o.getTime()-a.getTime())/(1e3*60*60*24))+1;if((l==="Morning"||l==="Afternoon")&&(h=.5),h>e){Ma.toast.error("You do not have enough leave days remaining");return}let g=new FormData;g.append("startDate",a.toISOString()),g.append("endDate",o.toISOString()),g.append("leaveType",l),g.append("duration",h.toString());let x=await(t||Fm)(g);x.success?(Ma.toast.success(x.message),r(void 0),s(void 0),i("Full Day"),c.refresh()):Ma.toast.error(`Error: ${x.message}`)},className:"space-je-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-je-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(br,{children:[(0,$.jsx)(vr,{asChild:!0,children:(0,$.jsxs)(k,{variant:"outline",className:n("je-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(vn.CalendarIcon,{className:"mr-2 h-4 je-4"}),a?(0,Ri.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)($a,{className:"je-auto p-0",align:"start",children:(0,$.jsx)(xr,{mode:"single",selected:a,onSelect:f=>{r(f),f&&(!o||f>o)&&s(f)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-je-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(br,{children:[(0,$.jsx)(vr,{asChild:!0,children:(0,$.jsxs)(k,{variant:"outline",className:n("je-full justify-start text-left font-normal",!o&&"text-muted-foreground"),children:[(0,$.jsx)(vn.CalendarIcon,{className:"mr-2 h-4 je-4"}),o?(0,Ri.format)(o,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)($a,{className:"je-auto p-0",align:"start",children:(0,$.jsx)(xr,{mode:"single",selected:o,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-je-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Hm,{options:["Full Day","Morning","Afternoon"],value:l,onChange:u,disabled:[!1,d,d]})]}),(0,$.jsx)(k,{type:"submit",className:"je-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ma.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"je-50"})]})}var Fm=async e=>{let t={};return e.forEach((a,r)=>{t[r]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function wc(...e){return e.filter(Boolean).join(" ")}function Ti({currentDate:e,setCurrentDate:t,holidays:a,employees:r}){let o=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)};return(0,je.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,je.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,je.jsxs)("div",{className:"sm:flex-auto",children:[(0,je.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,je.jsx)("p",{className:"je-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,je.jsxs)(k,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,je.jsx)(vn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{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,je.jsxs)(k,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,je.jsx)(vn.ChevronRight,{className:"h-5 je-5","aria-hidden":"true"})]})]})]}),(0,je.jsx)("div",{className:"je-8 flow-root",children:(0,je.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,je.jsx)("div",{className:"max-h-[60vh] overflow-je-auto",children:(0,je.jsxs)("table",{className:"min-je-full border-separate border-spacing-0",children:[(0,je.jsx)("thead",{className:"sticky top-0 je-20 bg-white",children:(0,je.jsxs)("tr",{children:[(0,je.jsx)("th",{scope:"col",className:"sticky left-0 top-0 je-30 border-je border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(o)].map((d,p)=>(0,je.jsx)("th",{scope:"col",className:"sticky top-0 je-10 border-je border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:p+1},p))]})}),(0,je.jsx)("tbody",{children:r.map((d,p)=>(0,je.jsxs)("tr",{children:[(0,je.jsx)("td",{className:wc(p!==r.length-1?"border-gray-200":"","sticky left-0 je-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,je.jsxs)("div",{className:"flex items-center",children:[(0,je.jsxs)(Tt,{className:"h-11 je-11",children:[(0,je.jsx)(Dt,{src:d.image,alt:d.name}),(0,je.jsx)(Mt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,je.jsx)("div",{className:"ml-4",children:(0,je.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(o)].map((c,u)=>{let m=new Date(e.getFullYear(),e.getMonth(),u+1),f=a.find(h=>h.userId===d.id&&new Date(h.startDate)<=m&&new Date(h.endDate)>=m);return(0,je.jsx)("td",{className:wc(p!==r.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,je.jsx)("div",{className:`h-6 je-6 mx-auto rounded-full overflow-hidden ${f?f.status==="approved"?"bg-green-500":f.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:f?`${d.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,je.jsx)("div",{className:`h-3 je-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${u}`)})]},d.id))})]})})})})]})}function Di({currentDate:e,setCurrentDate:t,holidays:a}){let[r,o]=(0,_r.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),l=Array.from({length:42},(c,u)=>{let m=new Date(e.getFullYear(),e.getMonth(),u-s+1);return{date:m,isCurrentMonth:m.getMonth()===e.getMonth(),isToday:m.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=m&&new Date(f.endDate)>=m)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,je.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,je.jsxs)("header",{className:"flex items-center justify-between border-je border-gray-200 px-6 py-4 lg:flex-none",children:[(0,je.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,je.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,je.jsx)("div",{className:"flex items-center",children:(0,je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,je.jsxs)(k,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,je.jsx)(vn.ChevronLeft,{className:"h-5 je-5","aria-hidden":"true"})]}),(0,je.jsx)(k,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,je.jsxs)(k,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,je.jsx)(vn.ChevronRight,{className:"h-5 je-5","aria-hidden":"true"})]})]})})]}),(0,je.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,je.jsxs)("div",{className:"grid grid-cols-7 gap-px border-je border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["je",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["F",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"_r"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"je"})]})]}),(0,je.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,je.jsx)("div",{className:"hidden je-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(c=>(0,je.jsxs)("div",{className:n(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,je.jsx)("time",{dateTime:c.date.toISOString(),className:n("flex h-6 je-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,je.jsx)("ol",{className:"je-2 space-je-1",children:c.holidays.map(u=>(0,je.jsx)("li",{children:(0,je.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border`,children:u.userName})},u.id))})]},c.date.toISOString()))}),(0,je.jsx)("div",{className:"isolate grid je-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(c=>(0,je.jsxs)("button",{type:"button",className:n(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===r||c.isToday)&&"font-semibold",c.date===r&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==r&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==r&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:je-10"),children:[(0,je.jsx)("time",{dateTime:c.date.toISOString(),className:n("ml-auto",c.date===r&&c.isToday&&"flex h-6 je-6 items-center justify-center rounded-full bg-indigo-600",c.date===r&&!c.isToday&&"flex h-6 je-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,je.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,je.jsx)("span",{className:"-mx-0.5 je-auto flex flex-wrap-reverse",children:c.holidays.map(u=>(0,je.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 je-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},c.date.toISOString()))})]})]})]})}var na=require("lucide-react");function Pc(...e){return e.filter(Boolean).join(" ")}function zm({holidays:e,currentUser:t,currentDate:a,leaveApprovals:r,employees:o,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[d,p]=(0,_r.useState)("Calendar View"),c=(0,Tl.useRouter)(),u=!1,m=(0,Ri.parseISO)(a),f=async g=>{let x=(0,Ri.format)(g,"dd-MM-yyyy"),A=new URL(window.location.href);return A.searchParams.set("date",x),c.push(A.toString()),{success:!0}};if(u)return(0,je.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,je.jsx)("div",{className:"animate-spin rounded-full h-32 je-32 border-t-2 border-je-2 border-gray-900"})});let h=[{name:"Grid View",icon:na.Grid,current:d==="Grid View"},{name:"Calendar View",icon:na.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:na.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:na.CheckSquare,current:d==="Approve Leave"}];return(0,je.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,je.jsxs)("div",{className:"mb-8",children:[(0,je.jsxs)("div",{className:"sm:hidden",children:[(0,je.jsx)("select",{value:d,onChange:g=>p(g.target.value),className:"block je-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:h.map(g=>(0,je.jsx)("option",{children:g.name},g.name))}),(0,je.jsx)(vn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 je-5 text-gray-400","aria-hidden":"true"})]}),(0,je.jsx)("div",{className:"hidden sm:block",children:(0,je.jsx)("div",{className:"border-je border-gray-200",children:(0,je.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:h.map(g=>(0,je.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(g.name)},className:Pc(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-je-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,je.jsx)(g.icon,{className:Pc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 je-5"),"aria-hidden":"true"}),(0,je.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,je.jsx)(Ti,{currentDate:m,setCurrentDate:f,holidays:e,employees:o}),d==="Calendar View"&&(0,je.jsx)(Di,{currentDate:m,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,je.jsx)(ki,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>s?s(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,je.jsx)(Pi,{leaveRequests:r,onApprove:g=>l?l(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>i?i(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Mi({deal:e,users:t,customer:a,categories:r,onClose:o,onSave:s,onAddComment:l}){var Ie,gt,S,H,at;let[i,d]=(0,_r.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,c]=(0,_r.useState)(""),[u,m]=(0,_r.useState)(!1),[f,h]=(0,_r.useState)(null);(0,_r.useEffect)(()=>{m(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let g=async()=>{try{let N=await s(i);N.success?(m(!1),h(null)):console.error("Failed to save deal:",N.errors)}catch(N){console.error("Failed to save deal:",N)}},x=(N,G)=>{d(U=>({...U,[N]:G}))},A=N=>{let G=(i.categories||[]).includes(N)?(i.categories||[]).filter(U=>U!==N):[...i.categories||[],N];x("categories",G)},O=async()=>{if(p.trim()){let N={text:p,timestamp:new Date().toISOString()};try{let G=await l(N);if(!G.success){console.error("Failed to add comment:",G.errors);return}}catch(G){console.error("Failed to add comment:",G)}d(G=>({...G,comments:[...G.comments||[],N]})),c("")}},Q=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},he=N=>t==null?void 0:t.find(G=>G.id===Number(N));return(0,je.jsx)(Je,{open:!0,children:(0,je.jsxs)(Ve,{className:"max-je-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,je.jsxs)(it,{className:"flex flex-row items-center justify-between",children:[(0,je.jsx)(nt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,je.jsxs)("div",{className:"flex space-x-2",children:[(0,je.jsx)(k,{variant:"outline",onClick:o,children:"Close"}),(0,je.jsxs)(k,{onClick:g,disabled:!u,children:[(0,je.jsx)(vn.SaveIcon,{className:"je-4 h-4 mr-2"}),"Save"]})]})]}),(0,je.jsxs)(Jt,{className:"flex-grow pr-4",children:[(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,je.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,je.jsx)(Ae,{type:"number",value:i.value,onChange:N=>x("value",Number(N.target.value)),onBlur:()=>h(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,je.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("value"),children:["\xA3",(Ie=i.value)==null?void 0:Ie.toLocaleString()]})}),(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,je.jsxs)(ba,{value:((S=(gt=i==null?void 0:i.assignee)==null?void 0:gt.id)==null?void 0:S.toString())||"",onValueChange:N=>x("assignee",he(N)),children:[(0,je.jsx)(ea,{children:(0,je.jsx)(va,{placeholder:"Select assignee"})}),(0,je.jsx)(ta,{children:t&&t.map(N=>{var G;return(0,je.jsx)(aa,{value:((G=N==null?void 0:N.id)==null?void 0:G.toString())||"",children:N.name},N.id)})})]}):(0,je.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("assignee"),children:[(0,je.jsx)(vn.UserIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:i.assignee.name})]})]}),(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,je.jsx)(Ae,{type:"date",value:(at=(H=i.closureDate)==null?void 0:H.split("je")[0])!=null?at:"",onChange:N=>x("closureDate",N.target.value),onBlur:()=>h(null),autoFocus:!0}):(0,je.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("closureDate"),children:[(0,je.jsx)(vn.CalendarIcon,{className:"je-4 h-4 text-gray-400"}),(0,je.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,je.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,je.jsx)(ra,{value:i.description||"",onChange:N=>x("description",N.target.value),onBlur:()=>h(null),className:"min-h-[100px]",autoFocus:!0}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>h("description"),children:i.description})]})}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 _r-2 gap-4",children:[(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,je.jsxs)(ba,{value:i.status,onValueChange:N=>{x("status",N),h(null)},children:[(0,je.jsx)(ea,{children:(0,je.jsx)(va,{placeholder:"Select status"})}),(0,je.jsx)(ta,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,je.jsx)(aa,{value:N,children:N},N))})]}):(0,je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("status"),children:i.status})]}),(0,je.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:r.map(N=>{var G,U;return(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:((G=N.id)==null?void 0:G.toString())||"",checked:(i.categories||[]).some(Lr=>Lr.id===N.id),onCheckedChange:()=>N.id!==void 0&&A(N)}),(0,je.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${Q(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,je.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>h("categories"),children:i.categories&&i.categories.map(N=>{console.log("cat",N);let G=N;return G?(0,je.jsx)(Qe,{variant:"secondary",className:Q(G.type||"sector"),children:G.name},G.id):null})})]})]}),(0,je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 _r-4 gap-4",children:[(0,je.jsxs)("div",{className:"grid gap-2",children:[(0,je.jsx)(J,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,je.jsx)(Jt,{className:"h-[200px] overflow-je-auto",children:(0,je.jsx)("div",{className:"space-je-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,je.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,je.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,je.jsxs)("p",{className:"text-xs text-gray-500 je-1",children:[(G=N==null?void 0:N.author)==null?void 0:G.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,je.jsxs)("div",{className:"flex je-2",children:[(0,je.jsx)(Ae,{value:p,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,je.jsxs)(k,{onClick:O,className:"ml-2",children:[(0,je.jsx)(vn.PlusIcon,{className:"je-4 h-4 mr-2"}),"Add"]})]})]}),(0,je.jsxs)("div",{className:"text-xs text-gray-500 je-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Ii({deal:e,customer:t,categories:a,onClick:r}){let o=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,je.jsxs)(ge,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:r,children:[(0,je.jsxs)(Be,{className:"pb-2",children:[(0,je.jsx)("div",{className:"flex justify-between items-center",children:(0,je.jsx)(He,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,je.jsx)("p",{className:"text-sm text-gray-500 je-1",children:e.description})]}),(0,je.jsxs)(Ne,{children:[(0,je.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,je.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,je.jsx)(vn.UserIcon,{className:"je-4 h-4 mr-1 text-xs"}),(0,je.jsx)("span",{children:e.assignee.name})]}),(0,je.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,je.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,je.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,je.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,je.jsx)(vn.CalendarIcon,{className:"je-3 h-3 mr-1"}),(0,je.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,je.jsx)("div",{className:"flex justify-between items-left",children:o&&(0,je.jsx)(Qe,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:o.name})})]})]})}var Lo=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ai({onSubmit:e}){var o;let[t,a]=(0,_r.useState)({name:"",intro:"",active:!0});return(0,je.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-je-4",children:[(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,je.jsx)(Ae,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,je.jsx)(ra,{id:"customerIntro",value:(o=t.intro)!=null?o:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,je.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:"Add Customer"})]})}function Li({customers:e,users:t,categories:a,onSubmit:r,initialDeal:o,onAddCustomer:s,onClose:l}){var Q,he,Ie,gt;let[i,d]=(0,_r.useState)(o||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("je")[0],closureDate:"",comments:[],description:""}),[p,c]=(0,_r.useState)(!1),[u,m]=(0,_r.useState)({});(0,_r.useEffect)(()=>{o&&d(o)},[o]);let f=()=>{let S={};return i.customer||(S.customer="Customer is required"),i.value||(S.value="Value is required"),i.assignee||(S.assignee="Assignee is required"),i.closureDate||(S.closureDate="Closure Date is required"),m(S),Object.keys(S).length===0},h=async S=>{S.preventDefault(),m({});try{if(f()){let H=await r({...i});H.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):m(H.errors||{})}}catch{m({submit:"An error occurred while submitting the form."})}},g=S=>{console.log(S),d(H=>({...H,categories:(H.categories||[]).includes(S.id)?(H.categories||[]).filter(at=>at!==S.id):[...H.categories||[],S.id]}))},x=async S=>{d({...i,customer:S});try{let H=await s(S);H.success?c(!1):m(H.errors||{})}catch{m({submit:"An error occurred while submitting the form."})}},A=S=>t==null?void 0:t.find(H=>H.id===Number(S)),O=S=>e==null?void 0:e.find(H=>H.id===Number(S));return(0,je.jsxs)(je.Fragment,{children:[(0,je.jsxs)("form",{onSubmit:h,className:"space-je-6",children:[(0,je.jsx)(Jt,{className:"h-[60vh] pr-4",children:(0,je.jsxs)("div",{className:"space-je-6 px-4",children:[(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsxs)(ba,{value:(he=(Q=i.customer)==null?void 0:Q.id)==null?void 0:he.toString(),onValueChange:S=>d({...i,customer:O(S)}),children:[(0,je.jsx)(ea,{children:(0,je.jsx)(va,{placeholder:"Select customer"})}),(0,je.jsx)(ta,{children:e.map(S=>{var H;return(0,je.jsx)(aa,{value:((H=S.id)==null?void 0:H.toString())||"",children:S.name},S.id)})})]}),(0,je.jsx)(k,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,je.jsx)(vn.PlusIcon,{className:"je-5 h-5"})})]}),u.customerId&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:u.customerId})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"value",children:"Value"}),(0,je.jsx)(Ae,{id:"value",type:"number",value:i.value||"",onChange:S=>d({...i,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),u.value&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:u.value})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,je.jsxs)(ba,{value:(gt=(Ie=i.assignee)==null?void 0:Ie.id)==null?void 0:gt.toString(),onValueChange:S=>d({...i,assignee:A(S)}),children:[(0,je.jsx)(ea,{children:(0,je.jsx)(va,{placeholder:"Select assignee"})}),(0,je.jsx)(ta,{children:t&&t.map(S=>{var H;return(0,je.jsx)(aa,{value:((H=S.id)==null?void 0:H.toString())||"",children:S.name},S.id)})})]}),u.assignee&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:u.assignee})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"description",children:"Description"}),(0,je.jsx)(ra,{id:"description",value:i.description||"",onChange:S=>d({...i,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{children:"Categories"}),(0,je.jsx)("div",{className:"space-je-4",children:["proposition","source","sector"].map(S=>(0,je.jsxs)("div",{className:"space-je-2",children:[(0,je.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(H=>H.type===S).map(H=>{var at;return(0,je.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,je.jsx)(lt,{id:H.id.toString(),checked:(at=i.categories)==null?void 0:at.includes(H.id),onCheckedChange:()=>g(H)}),(0,je.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)})})]},S))})]}),(0,je.jsxs)("div",{className:"space-je-2 space-x-2",children:[(0,je.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,je.jsx)(Ae,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:S=>d({...i,closureDate:S.target.value})}),u.closureDate&&(0,je.jsx)("p",{className:"text-red-500 text-sm",children:u.closureDate})]})]})}),(0,je.jsx)(k,{type:"submit",className:"je-full",children:o?"Update Deal":"Add Deal"})]}),(0,je.jsx)(Je,{open:p,onOpenChange:c,children:(0,je.jsxs)(Ve,{children:[(0,je.jsx)(it,{children:(0,je.jsx)(nt,{children:"Add New Customer"})}),(0,je.jsx)(Ai,{onSubmit:x})]})})]})}function Ei({status:e,deals:t,users:a,customers:r,categories:o,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:d,onAddCustomer:p}){let[c,u]=(0,_r.useState)(!1);return(0,je.jsxs)("div",{className:"flex flex-col je-80",children:[(0,je.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),d&&(0,je.jsxs)(Je,{open:c,onOpenChange:u,children:[(0,je.jsx)(Qr,{asChild:!0,children:(0,je.jsxs)(k,{className:"mb-4 je-full bg-green-500 hover:bg-green-600 text-white",children:[(0,je.jsx)(vn.PlusCircle,{className:"mr-2 h-4 je-4"}),"Add New Deal"]})}),(0,je.jsxs)(Ve,{children:[(0,je.jsx)(it,{children:(0,je.jsx)(nt,{children:"Add New Deal"})}),(0,je.jsx)(Li,{customers:r,users:a,categories:o,onSubmit:d,onAddCustomer:p,onClose:()=>u(!1)})]})]}),(0,je.jsx)(Lo.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,je.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,h)=>(0,je.jsx)(Lo.Draggable,{draggableId:f.id.toString(),index:f.id,children:g=>(0,je.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,je.jsx)(Ii,{deal:f,customer:f.customer,categories:o,onClick:()=>s(f)})})},f.id.toString())),m.placeholder]})}),(0,je.jsxs)("div",{className:"je-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,je.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,je.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,je.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,je.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Om=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function _m({initialData:e,addNewDeal:t,updateDeal:a,addComment:r,addNewCustomer:o}){var u;let[s,l]=(0,_r.useState)(null),i=m=>{var f;return((f=e.deals)!=null?f:[]).filter(h=>h.status===m)},d=m=>m.reduce((f,h)=>f+(h.value||0),0),p=(m,f)=>{let h={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return m.reduce((g,x)=>g+(x.value||0)*h[f],0)},c=(0,_r.useCallback)(m=>{var Q,he;let{source:f,destination:h}=m;if(!h||f.droppableId===h.droppableId&&f.index===h.index)return;let g=f.droppableId,x=h.droppableId,A=(Q=e.deals)==null?void 0:Q.filter(Ie=>Ie.id===f.index)[0],O=[...(he=e.deals)!=null?he:[]];A&&(A.status=x,a(A))},[a]);return(0,je.jsx)(Lo.DragDropContext,{onDragEnd:c,children:(0,je.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,je.jsx)("div",{className:"flex space-x-4 pb-4",children:Om.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{var h,g;let f=i(m);return(0,je.jsx)(Ei,{status:m,deals:f,customers:(h=e.customers)!=null?h:[],users:e.users,categories:(g=e.categories)!=null?g:[],onDealClick:l,calculateColumnValue:d,calculateWeightedValue:p,addNewDeal:m==="Cold"?t:void 0,onAddCustomer:o},m)})}),s&&(0,je.jsx)(Mi,{deal:s,users:e.users,customer:s.customer,categories:(u=e.categories)!=null?u:[],onClose:()=>l(null),onSave:a,onAddComment:m=>r(s.id.toString(),m)})]})})}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,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,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,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});
|
|
26
|
+
`,className:l("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,it.jsxs)("div",{className:"relative it-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,it.jsx)("div",{children:(0,it.jsx)("div",{className:"inline-grid w-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,it.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,it.jsx)("span",{className:"block",children:cd(r)})})})}),(0,it.jsxs)("div",{className:"mt-auto space-y-2 text-white md:space-y-5",children:[(0,it.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,it.jsx)("p",{className:gd})}),(0,it.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,it.jsx)(Ee,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,it.jsx)("div",{children:(0,it.jsxs)(Ee,{href:e,className:l(gd,"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,it.jsx)("span",{children:"Read More"}),(0,it.jsx)("span",{className:"text-accent",children:(0,it.jsx)(Tr.FaArrowRight,{})})]})})]})]})]})}var Mi=h(require("clsx"));function Gm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let u=c?p=>(0,it.jsx)(c,{...p}):n?({href:p,children:g,...y})=>(0,it.jsx)("button",{onClick:()=>n&&n(p),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:g}):p=>(0,it.jsx)("a",{...p});return(0,it.jsxs)(Ma,{...m,variant:"inset",children:[(0,it.jsx)(Ia,{children:(0,it.jsx)(Ve,{children:(0,it.jsx)(Ie,{children:i?(0,it.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,it.jsx)(ce,{className:"bg-gray-200 my-2 w-full h-7"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,it.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,it.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,it.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,it.jsxs)(pa,{children:[(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,it.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,it.jsxs)(pa,{children:[e&&!i&&e.map((p,g)=>(0,it.jsx)(jm,{subNav:p,pathName:r,Link:u},g)),(0,it.jsx)(nt,{className:"mt-auto",children:(0,it.jsx)(yt,{children:(0,it.jsx)(Ve,{children:t&&!i&&t.map(p=>(0,it.jsx)(Ie,{children:(0,it.jsx)(lt,{asChild:!0,size:"sm",children:(0,it.jsxs)(u,{href:p.url||"",children:[p.icon&&(0,it.jsx)(p.icon,{}),(0,it.jsx)("span",{children:p.label})]})})},p.label))})})})]}),(0,it.jsx)(Aa,{})]})}function jm({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,it.jsx)(Ot,{defaultOpen:!0,className:"group/collapsible",children:(0,it.jsx)(nt,{className:"py-0",children:(0,it.jsx)(Ve,{children:(0,it.jsx)(Ot,{asChild:!0,defaultOpen:o.isActive,children:(0,it.jsxs)(Ie,{children:[(0,it.jsx)(lt,{asChild:!0,tooltip:o.label,className:(0,Mi.default)(r&&"font-bold text-accent"),children:(0,it.jsxs)(a,{href:o.url,children:[o.icon&&(0,it.jsx)(o.icon,{}),(0,it.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(da,{asChild:!0,children:(0,it.jsxs)(Io,{className:"data-[state=open]:rotate-90",children:[(0,it.jsx)(zn.ChevronRight,{}),(0,it.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,it.jsx)(ca,{children:(0,it.jsx)(ua,{children:(n=o.links)==null?void 0:n.map(i=>(0,it.jsx)(fa,{children:(0,it.jsx)(ga,{asChild:!0,className:(0,Mi.default)(i.url===t&&"font-bold text-accent"),children:(0,it.jsx)(a,{href:i.url,children:(0,it.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var hd=h(require("clsx"));var Wm=()=>(0,it.jsx)($e,{iconName:"github",size:"10x"});function Vm({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...u}){let y=d?f=>(0,it.jsx)(d,{...f}):m?({item:f,children:w,...M})=>(0,it.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:w}):f=>(0,it.jsx)("a",{href:f.href,...f});return(0,it.jsxs)(Ma,{side:"right",variant:"inset",...u,children:[(0,it.jsxs)(Ia,{className:"border-b border-sidebar-border",children:[(0,it.jsxs)(Ve,{className:"flex-row space-x-1",children:[(0,it.jsx)(Ie,{children:(0,it.jsxs)(lt,{onClick:s,children:[(0,it.jsx)(zn.FilePlus,{})," ",(0,it.jsx)("span",{children:"Add Document"})]})}),c&&(0,it.jsx)(Ie,{children:(0,it.jsx)(lt,{onClick:c,tooltip:"Open in GitHub",children:(0,it.jsx)(Wm,{})})})]}),(0,it.jsxs)(Ve,{className:"flex-row space-x-1",children:[(0,it.jsx)(Ie,{className:"w-5/12",children:(0,it.jsxs)(lt,{onClick:()=>n(),variant:r?"outline":"default",className:(0,hd.default)(r&&"text-accent"),children:[(0,it.jsx)(zn.Edit,{})," ",(0,it.jsx)("span",{children:"Edit"})]})}),(0,it.jsx)(Ie,{className:"w-5/12",children:(0,it.jsxs)(lt,{onClick:i,children:[(0,it.jsx)(zn.Printer,{})," ",(0,it.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsx)(Ot,{defaultOpen:!0,className:"group/collapsible",children:(0,it.jsxs)(nt,{children:[(0,it.jsx)(Gt,{asChild:!0,children:(0,it.jsxs)(da,{children:["Editor Controls",(0,it.jsx)(zn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,it.jsx)(yt,{children:(0,it.jsx)(ca,{children:a})})]})}),(0,it.jsx)(Mo,{className:"mx-0"})]}),(0,it.jsxs)(pa,{className:"overflow-auto",children:[o&&(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)(nt,{children:[(0,it.jsx)(Gt,{children:"Related Content"}),(0,it.jsx)(yt,{children:(0,it.jsx)(Ve,{children:Array.from({length:3}).map((f,w)=>(0,it.jsx)(Ie,{children:(0,it.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},w))})})]}),(0,it.jsxs)(nt,{children:[(0,it.jsx)(Gt,{children:"Table of Contents"}),(0,it.jsx)(yt,{children:(0,it.jsx)(Ve,{children:Array.from({length:3}).map((f,w)=>(0,it.jsx)(Ie,{children:(0,it.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},w))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,it.jsx)(Ot,{defaultOpen:!0,className:"group/collapsible",children:(0,it.jsxs)(nt,{children:[(0,it.jsx)(Gt,{asChild:!0,children:(0,it.jsxs)(da,{children:["Related Content",(0,it.jsx)(zn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,it.jsx)(yt,{children:(0,it.jsx)(ca,{children:(0,it.jsx)(Ve,{children:e&&Object.keys(e).map(f=>(0,it.jsxs)(Ie,{children:[(0,it.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,it.jsx)(ua,{children:e[f].map(w=>(0,it.jsx)(fa,{children:(0,it.jsx)(ga,{asChild:!0,isActive:!1,size:"sm",children:(0,it.jsxs)(y,{href:w.url,item:w,className:"flex justify-between items-center w-full text-xs",children:[(0,it.jsx)("span",{children:w.label}),w.type==="note"&&(0,it.jsx)(zn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),w.type==="draft"&&(0,it.jsx)($e,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},w.label))})]},f))})})})]})}),t&&!o&&(0,it.jsx)(Ot,{defaultOpen:!0,className:"group/collapsible",children:(0,it.jsxs)(nt,{children:[(0,it.jsx)(Gt,{asChild:!0,children:(0,it.jsxs)(da,{children:["Table of Contents",(0,it.jsx)(zn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,it.jsx)(yt,{children:(0,it.jsx)(ca,{children:(0,it.jsx)(Ve,{children:t.map(f=>{var w;return(0,it.jsxs)(Ie,{children:[(0,it.jsx)(lt,{asChild:!0,children:(0,it.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(w=f.items)!=null&&w.length?(0,it.jsx)(ua,{children:f.items.map(M=>(0,it.jsx)(fa,{children:(0,it.jsx)(ga,{asChild:!0,isActive:M.isActive,size:"sm",children:(0,it.jsx)("a",{href:`#${M.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,it.jsx)("span",{children:M.title})})})},M.title))}):null]},f.title)})})})})]})})]}),(0,it.jsx)(Aa,{})]})}var wd=h(require("next/image"));function $m({title:e,members:t}){return(0,it.jsx)(Pe,{className:"mb-6",children:(0,it.jsxs)("div",{className:"p-6",children:[(0,it.jsxs)("div",{className:"flex items-center mb-4",children:[(0,it.jsx)(zn.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,it.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,it.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,it.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,it.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,it.jsx)(wd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,it.jsxs)("div",{children:[(0,it.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,it.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Nd=h(require("next/link"));var Um=({links:e,title:t="Related Content"})=>(0,it.jsxs)(Pe,{children:[(0,it.jsx)(Ue,{children:(0,it.jsx)(Xe,{className:"text-accent",children:t})}),(0,it.jsx)(Ae,{children:(0,it.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,it.jsxs)(Nd.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,it.jsx)(zn.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Ii=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Xm({pages:e}){let t=(0,Xl.useSearchParams)(),a=(0,Xl.usePathname)(),{replace:o}=(0,Xl.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,sr.useState)({start:s>3?s-3:1,end:s+2}),c=u=>{u==="left"&&n.start>1?i(p=>({start:p.start-1,end:p.end-1})):u==="right"&&n.end<r&&i(p=>({start:p.start+1,end:p.end+1}))};function m(u){let p=new URLSearchParams(t);u?p.set("page",u):p.delete("page"),o(`${a}?${p.toString()}`)}if(r<=1)return null;let d=[];for(let u=n.start;u<=n.end;u++)d.push(u);return(0,it.jsx)("div",{className:"mt-12",children:(0,it.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,it.jsx)("li",{children:(0,it.jsx)("button",{className:l(Ii,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,it.jsx)(Tr.FaArrowLeft,{})})}),d.map((u,p)=>(0,it.jsx)("li",{children:(0,it.jsx)("a",{className:l(Ii,u===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${u}`,role:"button",onClick:g=>{g.preventDefault(),m(u.toString())},children:u})},p)),n.end<r&&(0,it.jsx)("li",{children:(0,it.jsx)("button",{className:l(Ii,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,it.jsx)(Tr.FaArrowRight,{})})})]})})}var av=l("transition-colors duration-400 hover:text-primary ease-in-out");function qm({title:e,links:t}){let a=(0,Xl.useSearchParams)(),o=(0,Xl.usePathname)(),{replace:r}=(0,Xl.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,it.jsxs)(Pe,{children:[(0,it.jsx)(Ue,{children:(0,it.jsx)(Xe,{className:"text-accent",children:e&&e})}),(0,it.jsx)(Ae,{children:t&&t.length>0&&(0,it.jsx)("nav",{"aria-label":"footer links navigation",children:(0,it.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,it.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:it-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,it.jsx)(zn.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Ym({types:e}){let[t,a]=(0,sr.useState)(e&&e[0].href),o=(0,Xl.useSearchParams)(),r=(0,Xl.usePathname)(),{replace:s}=(0,Xl.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,it.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,it.jsx)(A,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var kd=h(require("next/image"));var Ei=({links:e,media:t,children:a,richText:o})=>(0,it.jsxs)("div",{className:"relative -mt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,it.jsx)("div",{className:"container mt-[20rem] mb-8 it-10 relative flex items-end justify-center",children:(0,it.jsxs)("div",{className:"text-center container",children:[a||o&&(0,it.jsx)(re,{className:"mb-6 prose prose-h1:text-2xl dark:prose-headings:text-white prose-headings:text-gray-900 dark:prose-p:text-white prose-p:text-gray-900",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,it.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,it.jsx)("li",{children:(0,it.jsx)(Mt,{...r})},s))})]})}),(0,it.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,it.jsx)(Jt,{fill:!0,imgClassName:"it-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,it.jsx)("div",{children:(0,it.jsx)(kd.default,{className:"-it-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,it.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 it-white dark:from-background/0 dark:it-background"})]})]});var Li=h(require("next/image"));var Jm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,it.jsx)(Li.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,it.jsx)("div",{children:(0,it.jsx)(Li.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Bi=({links:e,media:t,children:a,richText:o})=>(0,it.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 it-10",children:[t&&(0,it.jsx)(Jm,{media:t}),(0,it.jsx)("div",{className:"mx-0 min-w-full relative it-9",children:(0,it.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,it.jsx)(re,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var zi=({children:e,richText:t})=>(0,it.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,it.jsx)("div",{className:"container",children:e||t&&(0,it.jsx)(re,{content:t,enableGutter:!1})})});var Td=h(require("react")),Dd=h(require("next/image"));var Km=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,it.jsxs)("div",{className:"relative grid",children:[(0,it.jsx)("div",{className:"relative it-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,it.jsxs)("div",{className:"container mx-auto",children:[(0,it.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,it.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,it.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,it.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,it.jsx)("p",{children:o.map((i,c)=>(0,it.jsxs)(Td.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,it.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,it.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,it.jsx)("time",{dateTime:r,children:dd(r)})]}),t&&t.length>0&&(0,it.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,it.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,it.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,it.jsx)(mt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,it.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,it.jsx)(Dd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,it.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-it-t from-background dark:from-black it-transparent"})]})]})};var Or=require("@heroicons/react/20/solid");var Md=h(require("next/image"));function Hi({title:e,breadcrumbItems:t,image:a}){return(0,it.jsxs)("section",{className:"-it-10 relative flex min-h-[250px] it-auto items-end",children:[(0,it.jsx)("div",{className:"absolute inset-0 it-0",children:a&&(0,it.jsx)(Md.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,it.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 it-background dark:from-background/0 dark:it-background"}),(0,it.jsx)(qa,{children:(0,it.jsxs)("div",{className:"relative it-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:it-[40px] pb-5",children:[(0,it.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,it.jsx)(Fi,{breadcrumbItems:t})]})})]})}var Qm={highImpact:Ei,lowImpact:zi,mediumImpact:Bi,sectionHero:Hi},Zm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Qm[t];return a?(0,it.jsx)(a,{...e}):null};function Fi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,it.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,it.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,it.jsx)("li",{children:(0,it.jsx)("div",{children:(0,it.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,it.jsx)(Or.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,it.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,it.jsx)("li",{children:(0,it.jsxs)("div",{className:"flex items-center",children:[(0,it.jsx)(Or.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,it.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,it.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,it.jsx)(it.Fragment,{})}var at=require("@headlessui/react"),jr=require("@heroicons/react/24/outline");var ep=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,it.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,it.jsxs)("span",{className:"relative",children:[e,(0,it.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,it.jsxs)(at.Popover,{children:[(0,it.jsxs)(at.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,it.jsxs)("span",{className:"relative",children:[e,(0,it.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,it.jsx)(Or.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,it.jsxs)(at.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -it-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,it.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 it-50",children:t&&t.map(r=>(0,it.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,it.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,it.jsx)(Id,{icon:r.icon,size:"4x"})}),(0,it.jsxs)("a",{href:r.href,className:"mt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,it.jsx)("span",{className:"absolute inset-0"})]}),(0,it.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,it.jsx)("div",{className:"bg-gray-50",children:(0,it.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,it.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,it.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,it.jsx)(Id,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Id=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,it.jsx)($e,{...e,size:a});if("src"in e)return(0,it.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,it.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},_r=ep;var Gr=["light","dark","green"];function tp({title:e,logo:t,menuItems:a}){let[o,r]=(0,sr.useState)(!1),[s,n]=(0,sr.useState)(!1),[i,c]=(0,sr.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[u,p]=(0,sr.useState)(`${m}.${d}`),g=f=>{Gr.includes(f)?p(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):p(`${m}.${d}`)};(0,sr.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),g(f)},[]);let y=()=>{let f=Gr[(Gr.indexOf(i)+1)%Gr.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,it.jsxs)("header",{className:"relative isolate it-10 bg-background h-14",children:[(0,it.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,it.jsx)("div",{className:"flex lg:flex-1",children:(0,it.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,it.jsx)("span",{className:"sr-only",children:e}),(0,it.jsx)("img",{alt:e,src:u,className:"h-9 w-auto"})]})}),(0,it.jsx)("div",{className:"flex lg:hidden",children:(0,it.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,it.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,it.jsx)(jr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,it.jsx)(at.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,it.jsx)(_r,{...f},f.name))}),(0,it.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,it.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,it.jsx)(Or.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,it.jsx)(Or.MoonIcon,{className:"h-6 w-6"}):(0,it.jsx)(Or.SunIcon,{className:"h-6 w-6"})})})]}),(0,it.jsxs)(at.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,it.jsx)("div",{className:"fixed inset-0 it-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,it.jsxs)(at.DialogPanel,{className:"fixed inset-y-0 right-0 it-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,it.jsxs)("div",{className:"flex items-center justify-between",children:[(0,it.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,it.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,it.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,it.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,it.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,it.jsx)(jr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,it.jsx)("div",{className:"mt-6 flow-root",children:(0,it.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,it.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,it.jsx)(ap,{...f},f.name))})})})]})]})]})}function ap({name:e,items:t,actions:a,href:o}){return!t&&o?(0,it.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,it.jsxs)(at.Disclosure,{as:"div",className:"-mx-3",children:[(0,it.jsx)(at.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 it-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,it.jsx)(at.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,it.jsx)(at.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 it-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var zd=h(require("next/image"));var Oi=h(require("next/image"));function ka({logoLight:e,logoDark:t,mobile:a=!1}){return(0,it.jsxs)(Ee,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,it.jsx)(Oi.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,it.jsx)(Oi.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 Ed=require("next-themes");function Ko({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,sr.useState)(!1),[n,i]=(0,sr.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,Ed.useTheme)();(0,sr.useEffect)(()=>{i(m||"dark")},[m]);let u=()=>{let p=c[(c.indexOf(n)+1)%c.length];i(p),d(p)};return(0,sr.useEffect)(()=>{let p=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,it.jsx)(it.Fragment,{children:(0,it.jsx)("header",{className:`it-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,it.jsx)(qa,{className:"px-0",children:(0,it.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,it.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,it.jsx)(ka,{logoDark:a,logoLight:t}),(0,it.jsx)(at.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(p=>(0,it.jsx)(_r,{...p},p.name))}),(0,it.jsx)("div",{className:"flex items-center space-x-4",children:(0,it.jsx)("button",{className:"fixed right-4 it-[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:u,children:(0,it.jsxs)("div",{className:"relative",children:[(0,it.jsx)(zn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,it.jsx)(zn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var _i=["light","dark"];function Qo({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,sr.useState)(!1),{theme:n,setTheme:i}=(0,Ed.useTheme)(),[c,m]=(0,sr.useState)(!1),[d,u]=(0,sr.useState)("light");(0,sr.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,sr.useEffect)(()=>{u(n||"dark")},[n]);let p=()=>{let g=_i[(_i.indexOf(d)+1)%_i.length];u(g),i(g)};return(0,$.jsx)($.Fragment,{children:(0,$.jsxs)("header",{className:`it-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,$.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,$.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,$.jsx)(ka,{logoDark:t,logoLight:e,mobile:!0}),(0,$.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,$.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 it-[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,$.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,$.jsx)(jr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,$.jsx)("button",{className:"fixed right-16 it-[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:p,children:(0,$.jsxs)("div",{className:"relative",children:[(0,$.jsx)($r.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,$.jsx)($r.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,$.jsxs)(at.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,$.jsx)("div",{className:"fixed inset-0 it-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,$.jsxs)(at.DialogPanel,{className:"fixed inset-y-0 right-0 it-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,$.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,$.jsx)(ka,{logoDark:t,logoLight:e,mobile:!0}),(0,$.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,$.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,$.jsx)(jr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,$.jsx)("div",{className:"mt-6 flow-root",children:(0,$.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,$.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,$.jsx)(op,{...g},g.name))})})})]})]})]})})}function op({name:e,items:t,actions:a,href:o}){return!t&&o?(0,$.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,$.jsxs)(at.Disclosure,{as:"div",className:"-mx-3",children:[(0,$.jsx)(at.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 it-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,$.jsx)(at.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,$.jsx)(at.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 it-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 rp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,sr.useState)(!1),[c,m]=(0,sr.useState)(!1),d=()=>{let p=document.getElementById("next-section");p&&p.scrollIntoView({behavior:"smooth"})};return(0,sr.useEffect)(()=>{let p=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,it.jsxs)("div",{className:"relative h-screen",children:[(0,it.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,it.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,it.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,it.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,it.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 it-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,it.jsx)(zn.Menu,{className:"w-6 h-6 text-white"})}),(0,it.jsxs)("div",{className:"fixed top-0 left-0 right-0 it-50",children:[(0,it.jsx)(Ko,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,it.jsx)(Qo,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,it.jsxs)("div",{className:"absolute inset-0 h-full it-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,it.jsx)(zd.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto mt-8 hidden lg:block",c&&"lg:hidden")}),(0,it.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,it.jsx)("h1",{className:"text-6xl font-bold it-auto mb-12",children:r&&r}),(0,it.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,it.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,it.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,it.jsx)(zn.ChevronDown,{size:64})})})]})]})}var Hd=h(require("next/image"));var sp=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Gi=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),ji=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Wi=l("flex items-center gap-5"),Xr=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function ip({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,it.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,it.jsx)("div",{className:"py-16 md:py-20",children:(0,it.jsx)("div",{className:"container",children:(0,it.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-4",children:[(0,it.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,it.jsx)(ka,{logoLight:a,logoDark:o}),(0,it.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,it.jsx)("nav",{"aria-label":"social links",children:(0,it.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,it.jsx)("li",{children:(0,it.jsx)(Ee,{"aria-label":m.href,className:sp,href:m.href,openNewTab:!0,children:(0,it.jsx)("span",{children:m.icon})})},d))})})]}),(0,it.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,it.jsx)("h3",{className:Gi,children:s.title}),s.links&&s.links.length>0&&(0,it.jsx)("nav",{"aria-label":"footer links navigation",children:(0,it.jsx)("ul",{className:"grid gap-2",children:s.links.map(m=>(0,it.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,it.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,it.jsx)(Tr.FaChevronRight,{})}),(0,it.jsx)(Ee,{href:m.href,openNewTab:m.openNewTab,className:Xr,children:m.label})]},m.label))})})]}),(0,it.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,it.jsx)("h3",{className:Gi,children:n.title}),(0,it.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,it.jsxs)("li",{className:Wi,children:[(0,it.jsx)("span",{className:ji,children:(0,it.jsx)(Tr.FaPaperPlane,{})}),(0,it.jsx)("address",{className:"not-italic",children:n.location})]}),(0,it.jsxs)("li",{className:Wi,children:[(0,it.jsx)("span",{className:ji,children:(0,it.jsx)(Tr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,it.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,it.jsx)("a",{href:`mailto:${m}`,className:Xr,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,it.jsxs)("li",{className:Wi,children:[(0,it.jsx)("span",{className:ji,children:(0,it.jsx)(Tr.FaPhone,{})}),(0,it.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,it.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Xr,children:m},d))})]})]})]}),i&&(0,it.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,it.jsx)("h3",{className:Gi,children:i.title}),i.blogs&&i.blogs.length>0&&(0,it.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,it.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,it.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,it.jsx)(Hd.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,it.jsxs)("div",{children:[(0,it.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,it.jsx)("span",{className:"text-accent",children:(0,it.jsx)(Tr.FaCalendarDays,{})}),(0,it.jsx)("span",{children:md(m.date)})]}),(0,it.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,it.jsx)(Ee,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,it.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,it.jsx)("div",{className:"container",children:(0,it.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,it.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,it.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,it.jsx)("ul",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:c.links.map(m=>(0,it.jsx)("li",{children:(0,it.jsx)(Ee,{"aria-label":`Go it page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Xr,children:m.label})},m.label))})})]})})})]})}function np({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,it.jsxs)("div",{className:l("fixed top-0 left-0 right-0 it-50",r),children:[(0,it.jsx)(Ko,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,it.jsx)(Qo,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function lp({children:e,...t}){return(0,it.jsx)(Ed.ThemeProvider,{...t,children:e})}var Ka=require("sonner");function Vi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,sr.useState)([]),s=(0,Xl.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(u=>u.includes(d)?u.filter(p=>p!==d):[...u,d])},c=async()=>{let d=await t(o);d.success?(Ka.toast.success(d.message),s.refresh()):Ka.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(Ka.toast.success(d.message),s.refresh()):Ka.toast.error(`Error: ${d.message}`),r([])};return(0,it.jsxs)("div",{className:"space-y-4",children:[(0,it.jsxs)("div",{className:"flex justify-between items-center",children:[(0,it.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,it.jsxs)("div",{className:"space-x-2",children:[(0,it.jsx)(A,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,it.jsx)(A,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,it.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,it.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,it.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,it.jsxs)("div",{className:"flex items-center justify-between",children:[(0,it.jsxs)("div",{className:"flex items-center",children:[(0,it.jsx)(wt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,it.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,it.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,it.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,it.jsxs)("div",{className:"flex items-center justify-between",children:[(0,it.jsxs)("div",{className:"flex items-center",children:[(0,it.jsx)(wt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,it.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,it.jsxs)(Vt,{className:"h-10 w-10",children:[(0,it.jsx)($t,{src:d.userImage,alt:d.userName}),(0,it.jsx)(Ut,{children:d.userName.split(" ").map(u=>u[0]).join("")})]}),(0,it.jsx)("div",{className:"ml-3",children:(0,it.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,it.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,it.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,it.jsx)(mt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,it.jsx)(Ka.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"it-50"})]})}var $i=require("date-fns"),dp=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,it.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,it.jsx)(A,{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 Xi({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,sr.useState)(new Date),[r,s]=(0,sr.useState)(new Date),[n,i]=(0,sr.useState)("Full Day"),[c,m]=(0,sr.useState)(!1),d=(0,Xl.useRouter)();(0,sr.useEffect)(()=>{m(a!==r||!a||!r),c&&i("Full Day")},[a,r]);let u=g=>{i(g)};return(0,it.jsxs)("div",{className:"max-w-2xl",children:[(0,it.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,it.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,it.jsxs)("form",{onSubmit:async g=>{if(g.preventDefault(),!a||!r){Ka.toast.error("Please select both start and end dates");return}let y=Math.ceil((r.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(y=.5),y>e){Ka.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("startDate",a.toISOString()),f.append("endDate",r.toISOString()),f.append("leaveType",n),f.append("duration",y.toString());let w=await(t||cp)(f);w.success?(Ka.toast.success(w.message),o(void 0),s(void 0),i("Full Day"),d.refresh()):Ka.toast.error(`Error: ${w.message}`)},className:"space-y-4",children:[(0,it.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,it.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,it.jsx)(oe,{htmlFor:"startDate",children:"Start Date"}),(0,it.jsxs)(Oo,{children:[(0,it.jsx)(_o,{asChild:!0,children:(0,it.jsxs)(A,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,it.jsx)(zn.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,$i.format)(a,"PPP"):(0,it.jsx)("span",{children:"Pick a date"})]})}),(0,it.jsx)(mo,{className:"w-auto p-0",align:"start",children:(0,it.jsx)(Wo,{mode:"single",selected:a,onSelect:g=>{o(g),g&&(!r||g>r)&&s(g)},initialFocus:!0})})]})]}),(0,it.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,it.jsx)(oe,{htmlFor:"endDate",children:"End Date"}),(0,it.jsxs)(Oo,{children:[(0,it.jsx)(_o,{asChild:!0,children:(0,it.jsxs)(A,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,it.jsx)(zn.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,$i.format)(r,"PPP"):(0,it.jsx)("span",{children:"Pick a date"})]})}),(0,it.jsx)(mo,{className:"w-auto p-0",align:"start",children:(0,it.jsx)(Wo,{mode:"single",selected:r,onSelect:s,disabled:g=>a?g<a:!1,initialFocus:!0})})]})]})]}),(0,it.jsxs)("div",{className:"space-y-2",children:[(0,it.jsx)(oe,{children:"Leave Type"}),(0,it.jsx)(dp,{options:["Full Day","Morning","Afternoon"],value:n,onChange:u,disabled:[!1,c,c]})]}),(0,it.jsx)(A,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,it.jsx)(Ka.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"it-50"})]})}var cp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Wd(...e){return e.filter(Boolean).join(" ")}function qi({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))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,it.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,it.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,it.jsxs)("div",{className:"sm:flex-auto",children:[(0,it.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,it.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,it.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,it.jsxs)(A,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,it.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,it.jsx)(zn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,it.jsx)(A,{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,it.jsxs)(A,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,it.jsx)("span",{className:"sr-only",children:"Next month"}),(0,it.jsx)(zn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,it.jsx)("div",{className:"mt-8 flow-root",children:(0,it.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,it.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,it.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,it.jsx)("thead",{className:"sticky top-0 it-20 bg-white",children:(0,it.jsxs)("tr",{children:[(0,it.jsx)("th",{scope:"col",className:"sticky left-0 top-0 it-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 it-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:it-6 lg:it-8",children:"Employee"}),[...Array(r)].map((c,m)=>(0,it.jsx)("th",{scope:"col",className:"sticky top-0 it-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",children:m+1},m))]})}),(0,it.jsx)("tbody",{children:o.map((c,m)=>(0,it.jsxs)("tr",{children:[(0,it.jsx)("it",{className:Wd(m!==o.length-1?"border-gray-200":"","sticky left-0 it-10 bg-white border-r it-4 pr-3 text-sm font-medium text-gray-900 sm:it-6 lg:it-8"),children:(0,it.jsxs)("div",{className:"flex items-center",children:[(0,it.jsxs)(Vt,{className:"h-11 w-11",children:[(0,it.jsx)($t,{src:c.image,alt:c.name}),(0,it.jsx)(Ut,{children:c.name.split(" ").map(d=>d[0]).join("")})]}),(0,it.jsx)("div",{className:"ml-4",children:(0,it.jsx)("div",{className:"font-medium text-accent",children:c.name})})]})}),[...Array(r)].map((d,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u+1),g=a.find(y=>y.userId===c.id&&new Date(y.startDate)<=p&&new Date(y.endDate)>=p);return(0,it.jsx)("it",{className:Wd(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,it.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${g?g.status==="approved"?"bg-green-500":g.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:g?`${c.name}: ${g.status} (${g.startDate} - ${g.endDate}) - ${g.leaveType}`:"",children:g&&g.leaveType!=="Full Day"&&(0,it.jsx)("div",{className:`h-3 w-6 ${g.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${c.id}-${u}`)})]},c.id))})]})})})})]})}function Yi({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,sr.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(d,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u-s+1);return{date:p,isCurrentMonth:p.getMonth()===e.getMonth(),isToday:p.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=p&&new Date(g.endDate)>=p)}}),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,it.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,it.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,it.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,it.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,it.jsx)("div",{className:"flex items-center",children:(0,it.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,it.jsxs)(A,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,it.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,it.jsx)(zn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,it.jsx)(A,{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,it.jsxs)(A,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,it.jsx)("span",{className:"sr-only",children:"Next month"}),(0,it.jsx)(zn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,it.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,it.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,it.jsxs)("div",{className:"bg-white py-2",children:["M",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,it.jsxs)("div",{className:"bg-white py-2",children:["it",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"it"})]}),(0,it.jsxs)("div",{className:"bg-white py-2",children:["it",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"it"})]}),(0,it.jsxs)("div",{className:"bg-white py-2",children:["it",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,it.jsxs)("div",{className:"bg-white py-2",children:["F",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,it.jsxs)("div",{className:"bg-white py-2",children:["S",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,it.jsxs)("div",{className:"bg-white py-2",children:["S",(0,it.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,it.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,it.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,it.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,it.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,it.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(u=>(0,it.jsx)("li",{children:(0,it.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border`,children:u.userName})},u.id))})]},d.date.toISOString()))}),(0,it.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,it.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:it-10"),children:[(0,it.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,it.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,it.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(u=>(0,it.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},d.date.toISOString()))})]})]})]})}var Ta=require("lucide-react");function $d(...e){return e.filter(Boolean).join(" ")}function mp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,sr.useState)("Calendar View"),d=(0,Xl.useRouter)(),u=!1,p=(0,$i.parseISO)(a),g=async f=>{let w=(0,$i.format)(f,"dd-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",w),d.push(M.toString()),{success:!0}};if(u)return(0,it.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,it.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let y=[{name:"Grid View",icon:Ta.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Ta.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Ta.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Ta.CheckSquare,current:c==="Approve Leave"}];return(0,it.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,it.jsxs)("div",{className:"mb-8",children:[(0,it.jsxs)("div",{className:"sm:hidden",children:[(0,it.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 it-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(f=>(0,it.jsx)("option",{children:f.name},f.name))}),(0,it.jsx)(zn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,it.jsx)("div",{className:"hidden sm:block",children:(0,it.jsx)("div",{className:"border-b border-gray-200",children:(0,it.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(f=>(0,it.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:$d(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.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":f.current?"page":void 0,children:[(0,it.jsx)(f.icon,{className:$d(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,it.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,it.jsx)(qi,{currentDate:p,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,it.jsx)(Yi,{currentDate:p,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,it.jsx)(Xi,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,it.jsx)(Vi,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Ji({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var ne,V,P,I,S;let[i,c]=(0,sr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,sr.useState)(""),[u,p]=(0,sr.useState)(!1),[g,y]=(0,sr.useState)(null);(0,sr.useEffect)(()=>{p(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let b=await s(i);b.success?(p(!1),y(null)):console.error("Failed it save deal:",b.errors)}catch(b){console.error("Failed it save deal:",b)}},w=(b,C)=>{c(x=>({...x,[b]:C}))},M=b=>{let C=(i.categories||[]).includes(b)?(i.categories||[]).filter(x=>x!==b):[...i.categories||[],b];w("categories",C)},H=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let C=await n(b);if(!C.success){console.error("Failed it add comment:",C.errors);return}}catch(C){console.error("Failed it add comment:",C)}c(C=>({...C,comments:[...C.comments||[],b]})),d("")}},q=b=>{switch(b){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"}},Y=b=>t==null?void 0:t.find(C=>C.id===Number(b));return(0,it.jsx)(ct,{open:!0,children:(0,it.jsxs)(et,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,it.jsxs)(ht,{className:"flex flex-row items-center justify-between",children:[(0,it.jsx)(xt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,it.jsxs)("div",{className:"flex space-x-2",children:[(0,it.jsx)(A,{variant:"outline",onClick:r,children:"Close"}),(0,it.jsxs)(A,{onClick:f,disabled:!u,children:[(0,it.jsx)(zn.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,it.jsxs)(va,{className:"flex-grow pr-4",children:[(0,it.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,it.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,it.jsx)(We,{type:"number",value:i.value,onChange:b=>w("value",Number(b.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,it.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(ne=i.value)==null?void 0:ne.toLocaleString()]})}),(0,it.jsxs)("div",{className:"grid gap-2",children:[(0,it.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,it.jsxs)(Ha,{value:((P=(V=i==null?void 0:i.assignee)==null?void 0:V.id)==null?void 0:P.toString())||"",onValueChange:b=>w("assignee",Y(b)),children:[(0,it.jsx)(wa,{children:(0,it.jsx)(Fa,{placeholder:"Select assignee"})}),(0,it.jsx)(Na,{children:t&&t.map(b=>{var C;return(0,it.jsx)(Ca,{value:((C=b==null?void 0:b.id)==null?void 0:C.toString())||"",children:b.name},b.id)})})]}):(0,it.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,it.jsx)(zn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,it.jsx)("span",{children:i.assignee.name})]})]}),(0,it.jsxs)("div",{className:"grid gap-2",children:[(0,it.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,it.jsx)(We,{type:"date",value:(S=(I=i.closureDate)==null?void 0:I.split("it")[0])!=null?S:"",onChange:b=>w("closureDate",b.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,it.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,it.jsx)(zn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,it.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"it/A"})]})]})]}),(0,it.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,it.jsxs)("div",{className:"grid gap-2",children:[(0,it.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,it.jsx)(Pa,{value:i.description||"",onChange:b=>w("description",b.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,it.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,it.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 it-2 gap-4",children:[(0,it.jsxs)("div",{className:"grid gap-2",children:[(0,it.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,it.jsxs)(Ha,{value:i.status,onValueChange:b=>{w("status",b),y(null)},children:[(0,it.jsx)(wa,{children:(0,it.jsx)(Fa,{placeholder:"Select status"})}),(0,it.jsx)(Na,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,it.jsx)(Ca,{value:b,children:b},b))})]}):(0,it.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:i.status})]}),(0,it.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,it.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,it.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var C,x;return(0,it.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,it.jsx)(wt,{id:((C=b.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(le=>le.id===b.id),onCheckedChange:()=>b.id!==void 0&&M(b)}),(0,it.jsx)("label",{htmlFor:((x=b.id)!=null?x:"").toString(),className:`text-sm font-medium ${q(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,it.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let C=b;return C?(0,it.jsx)(mt,{variant:"secondary",className:q(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,it.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 it-4 gap-4",children:[(0,it.jsxs)("div",{className:"grid gap-2",children:[(0,it.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,it.jsx)(va,{className:"h-[200px] overflow-y-auto",children:(0,it.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((b,C)=>new Date(C.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var C;return(0,it.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,it.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,it.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(C=b==null?void 0:b.author)==null?void 0:C.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,it.jsxs)("div",{className:"flex mt-2",children:[(0,it.jsx)(We,{value:m,onChange:b=>d(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,it.jsxs)(A,{onClick:H,className:"ml-2",children:[(0,it.jsx)(zn.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,it.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Ki({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,it.jsxs)(Pe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,it.jsxs)(Ue,{className:"pb-2",children:[(0,it.jsx)("div",{className:"flex justify-between items-center",children:(0,it.jsx)(Xe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,it.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,it.jsxs)(Ae,{children:[(0,it.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,it.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,it.jsx)(zn.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,it.jsx)("span",{children:e.assignee.name})]}),(0,it.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,it.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,it.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,it.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,it.jsx)(zn.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,it.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,it.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,it.jsx)(mt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Qr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Qi({onSubmit:e}){var r;let[t,a]=(0,sr.useState)({name:"",intro:"",active:!0});return(0,it.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-y-4",children:[(0,it.jsxs)("div",{className:"space-y-2",children:[(0,it.jsx)(oe,{htmlFor:"customerName",children:"Customer Name"}),(0,it.jsx)(We,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,it.jsxs)("div",{className:"space-y-2",children:[(0,it.jsx)(oe,{htmlFor:"customerIntro",children:"Intro"}),(0,it.jsx)(Pa,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,it.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,it.jsx)(wt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,it.jsx)(oe,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,it.jsx)(A,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Zi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var q,Y,ne,V;let[i,c]=(0,sr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("it")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,sr.useState)(!1),[u,p]=(0,sr.useState)({});(0,sr.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let P={};return i.customer||(P.customer="Customer is required"),i.value||(P.value="Value is required"),i.assignee||(P.assignee="Assignee is required"),i.closureDate||(P.closureDate="Closure Date is required"),p(P),Object.keys(P).length===0},y=async P=>{P.preventDefault(),p({});try{if(g()){let I=await o({...i});I.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):p(I.errors||{})}}catch{p({submit:"it error occurred while submitting the form."})}},f=P=>{console.log(P),c(I=>({...I,categories:(I.categories||[]).includes(P.id)?(I.categories||[]).filter(S=>S!==P.id):[...I.categories||[],P.id]}))},w=async P=>{c({...i,customer:P});try{let I=await s(P);I.success?d(!1):p(I.errors||{})}catch{p({submit:"it error occurred while submitting the form."})}},M=P=>t==null?void 0:t.find(I=>I.id===Number(P)),H=P=>e==null?void 0:e.find(I=>I.id===Number(P));return(0,it.jsxs)(it.Fragment,{children:[(0,it.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,it.jsx)(va,{className:"h-[60vh] pr-4",children:(0,it.jsxs)("div",{className:"space-y-6 px-4",children:[(0,it.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,it.jsx)(oe,{htmlFor:"customer",children:"Customer"}),(0,it.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,it.jsxs)(Ha,{value:(Y=(q=i.customer)==null?void 0:q.id)==null?void 0:Y.toString(),onValueChange:P=>c({...i,customer:H(P)}),children:[(0,it.jsx)(wa,{children:(0,it.jsx)(Fa,{placeholder:"Select customer"})}),(0,it.jsx)(Na,{children:e.map(P=>{var I;return(0,it.jsx)(Ca,{value:((I=P.id)==null?void 0:I.toString())||"",children:P.name},P.id)})})]}),(0,it.jsx)(A,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,it.jsx)(zn.PlusIcon,{className:"w-5 h-5"})})]}),u.customerId&&(0,it.jsx)("p",{className:"text-red-500 text-sm",children:u.customerId})]}),(0,it.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,it.jsx)(oe,{htmlFor:"value",children:"Value"}),(0,it.jsx)(We,{id:"value",type:"number",value:i.value||"",onChange:P=>c({...i,value:Number.parseFloat(P.target.value)}),placeholder:"Enter deal value"}),u.value&&(0,it.jsx)("p",{className:"text-red-500 text-sm",children:u.value})]}),(0,it.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,it.jsx)(oe,{htmlFor:"assignee",children:"Assignee"}),(0,it.jsxs)(Ha,{value:(V=(ne=i.assignee)==null?void 0:ne.id)==null?void 0:V.toString(),onValueChange:P=>c({...i,assignee:M(P)}),children:[(0,it.jsx)(wa,{children:(0,it.jsx)(Fa,{placeholder:"Select assignee"})}),(0,it.jsx)(Na,{children:t&&t.map(P=>{var I;return(0,it.jsx)(Ca,{value:((I=P.id)==null?void 0:I.toString())||"",children:P.name},P.id)})})]}),u.assignee&&(0,it.jsx)("p",{className:"text-red-500 text-sm",children:u.assignee})]}),(0,it.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,it.jsx)(oe,{htmlFor:"description",children:"Description"}),(0,it.jsx)(Pa,{id:"description",value:i.description||"",onChange:P=>c({...i,description:P.target.value}),placeholder:"Enter deal description"})]}),(0,it.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,it.jsx)(oe,{children:"Categories"}),(0,it.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(P=>(0,it.jsxs)("div",{className:"space-y-2",children:[(0,it.jsx)("h4",{className:"text-sm font-medium",children:P.charAt(0).toUpperCase()+P.slice(1)}),(0,it.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===P).map(I=>{var S;return(0,it.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,it.jsx)(wt,{id:I.id.toString(),checked:(S=i.categories)==null?void 0:S.includes(I.id),onCheckedChange:()=>f(I)}),(0,it.jsx)("label",{htmlFor:I.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.id)})})]},P))})]}),(0,it.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,it.jsx)(oe,{htmlFor:"closureDate",children:"Closure Date"}),(0,it.jsx)(We,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:P=>c({...i,closureDate:P.target.value})}),u.closureDate&&(0,it.jsx)("p",{className:"text-red-500 text-sm",children:u.closureDate})]})]})}),(0,it.jsx)(A,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,it.jsx)(ct,{open:m,onOpenChange:d,children:(0,it.jsxs)(et,{children:[(0,it.jsx)(ht,{children:(0,it.jsx)(xt,{children:"Add New Customer"})}),(0,it.jsx)(Qi,{onSubmit:w})]})})]})}function en({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,u]=(0,sr.useState)(!1);return(0,it.jsxs)("div",{className:"flex flex-col w-80",children:[(0,it.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,it.jsxs)(ct,{open:d,onOpenChange:u,children:[(0,it.jsx)(yr,{asChild:!0,children:(0,it.jsxs)(A,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,it.jsx)(zn.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,it.jsxs)(et,{children:[(0,it.jsx)(ht,{children:(0,it.jsx)(xt,{children:"Add New Deal"})}),(0,it.jsx)(Zi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>u(!1)})]})]}),(0,it.jsx)(Qr.Droppable,{droppableId:e,isDropDisabled:!1,children:p=>(0,it.jsxs)("div",{ref:p.innerRef,...p.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,y)=>(0,it.jsx)(Qr.Draggable,{draggableId:g.id.toString(),index:g.id,children:f=>(0,it.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,it.jsx)(Ki,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),p.placeholder]})}),(0,it.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,it.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,it.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,it.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,it.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var pp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function up({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var u;let[s,n]=(0,sr.useState)(null),i=p=>{var g;return((g=e.deals)!=null?g:[]).filter(y=>y.status===p)},c=p=>p.reduce((g,y)=>g+(y.value||0),0),m=(p,g)=>{let y={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((f,w)=>f+(w.value||0)*y[g],0)},d=(0,sr.useCallback)(p=>{var q,Y;let{source:g,destination:y}=p;if(!y||g.droppableId===y.droppableId&&g.index===y.index)return;let f=g.droppableId,w=y.droppableId,M=(q=e.deals)==null?void 0:q.filter(ne=>ne.id===g.index)[0],H=[...(Y=e.deals)!=null?Y:[]];M&&(M.status=w,a(M))},[a]);return(0,it.jsx)(Qr.DragDropContext,{onDragEnd:d,children:(0,it.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,it.jsx)("div",{className:"flex space-x-4 pb-4",children:pp.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{var y,f;let g=i(p);return(0,it.jsx)(en,{status:p,deals:g,customers:(y=e.customers)!=null?y:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,it.jsx)(Ji,{deal:s,users:e.users,customer:s.customer,categories:(u=e.categories)!=null?u:[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}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,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,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,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});
|