cortex-react-components 1.64.1 → 1.65.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-VT6DWUPF.mjs → chunk-2ELJOFU3.mjs} +1 -1
- package/dist/{chunk-WLA5QCBE.mjs → chunk-33ZXPMQU.mjs} +1 -1
- package/dist/{chunk-B7VQUUH3.mjs → chunk-3QWSFRVM.mjs} +1 -1
- package/dist/{chunk-X3MBDMXV.mjs → chunk-3UA62APP.mjs} +1 -1
- package/dist/{chunk-XGEMVLT5.mjs → chunk-3XV6OBSL.mjs} +1 -1
- package/dist/{chunk-OT2LLDV2.mjs → chunk-4A43BI3C.mjs} +1 -1
- package/dist/{chunk-5J244QX4.mjs → chunk-4GL57G4E.mjs} +1 -1
- package/dist/{chunk-ZKU7UP6U.mjs → chunk-5DJ7VOAO.mjs} +1 -1
- package/dist/{chunk-VX4NPEMC.mjs → chunk-5OMUHSTO.mjs} +1 -1
- package/dist/{chunk-G72SIYN7.mjs → chunk-6BOIU52Z.mjs} +1 -1
- package/dist/{chunk-ELPMUABW.mjs → chunk-6OS3ZJBB.mjs} +1 -1
- package/dist/{chunk-3HDDBU3J.mjs → chunk-AKH3ER3D.mjs} +1 -1
- package/dist/{chunk-MDEYJGAN.mjs → chunk-AN6TXGAM.mjs} +1 -1
- package/dist/{chunk-5LF662B4.mjs → chunk-APNL5YEF.mjs} +1 -1
- package/dist/{chunk-QUOLG5NC.mjs → chunk-BGQKHEB3.mjs} +1 -1
- package/dist/{chunk-UM3WHBE7.mjs → chunk-BYSEFJFA.mjs} +1 -1
- package/dist/{chunk-YQ2YVQBS.mjs → chunk-DJQUKJMH.mjs} +1 -1
- package/dist/chunk-DVF55CWB.mjs +4 -0
- package/dist/{chunk-L45A6K4C.mjs → chunk-E7W2GFKO.mjs} +1 -1
- package/dist/{chunk-CXZGSPKM.mjs → chunk-EGYV6SU2.mjs} +1 -1
- package/dist/{chunk-UVPODMUO.mjs → chunk-FYEE5UWZ.mjs} +1 -1
- package/dist/{chunk-OIQ6GXBY.mjs → chunk-H3V6RZEI.mjs} +1 -1
- package/dist/{chunk-QZJGH4W6.mjs → chunk-I5DSZMH2.mjs} +1 -1
- package/dist/{chunk-VXGRJCCM.mjs → chunk-IC57R2EU.mjs} +1 -1
- package/dist/{chunk-Y7TUU6BG.mjs → chunk-IDRYG7HP.mjs} +1 -1
- package/dist/{chunk-6BZPTAOQ.mjs → chunk-IISHIQBQ.mjs} +1 -1
- package/dist/{chunk-MUZO74UP.mjs → chunk-ILBKV7ZM.mjs} +1 -1
- package/dist/{chunk-ISYJGX2I.mjs → chunk-L7FUS5TO.mjs} +1 -1
- package/dist/{chunk-ANTK5LAD.mjs → chunk-N363IQBL.mjs} +1 -1
- package/dist/{chunk-666KIWPS.mjs → chunk-NVN7UJT6.mjs} +1 -1
- package/dist/{chunk-37NBXA5G.mjs → chunk-PADGOK5C.mjs} +1 -1
- package/dist/{chunk-DAJNZDN6.mjs → chunk-PBRC3UOA.mjs} +1 -1
- package/dist/{chunk-HQTSD5A3.mjs → chunk-R64KZZJP.mjs} +1 -1
- package/dist/{chunk-737CTHXW.mjs → chunk-SKQYQ4SD.mjs} +1 -1
- package/dist/{chunk-DIAK5C43.mjs → chunk-STHWCR5K.mjs} +1 -1
- package/dist/{chunk-KETV2XVN.mjs → chunk-SX5U74MW.mjs} +1 -1
- package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
- package/dist/{chunk-TYROOO53.mjs → chunk-U5XA76PE.mjs} +1 -1
- package/dist/{chunk-MRJQKF4Z.mjs → chunk-VNGK6ACI.mjs} +1 -1
- package/dist/{chunk-SVYUY3VF.mjs → chunk-WSKZ2N7J.mjs} +1 -1
- package/dist/{chunk-RVI4KPBJ.mjs → chunk-XDLNQPZY.mjs} +1 -1
- package/dist/{chunk-4XO4HI55.mjs → chunk-Y6RAHEXF.mjs} +1 -1
- package/dist/{chunk-PEL6QUMS.mjs → chunk-YWUPEMYN.mjs} +1 -1
- package/dist/{chunk-RWWF3HBN.mjs → chunk-YZ47PIHK.mjs} +1 -1
- package/dist/{chunk-X7PHWC2I.mjs → chunk-ZJSR6A6I.mjs} +1 -1
- package/dist/{chunk-Z6NED523.mjs → chunk-ZY2PDUUB.mjs} +1 -1
- package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/Content.stories.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/CogeBoard.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/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/ContentCard.stories.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/DigitalColleagues/AddEpicModal.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/ChatInterface.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
- package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
- package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.mjs +1 -1
- package/dist/components/DigitalColleagues/TaskDetailsModal.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/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/Print.stories.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Payload/Card/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/RichText.stories.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/index.js +9 -8
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.js +2 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/components/ui/tabs.css +1 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.js +4 -0
- package/dist/components/ui/tabs.mjs +2 -0
- package/dist/globals.css +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.js +14 -13
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.js +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Blog.stories.js +1 -1
- package/dist/pages/Blog.stories.mjs +1 -1
- package/dist/pages/Documentation.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.js +8 -8
- package/dist/pages/Page.stories.mjs +1 -1
- package/dist/pages/Printable.stories.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Publish.stories.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/pages/Website.stories.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/AboutSection.stories.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogDetail.stories.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogList.stories.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/BlogListSection.stories.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/ContactSection.stories.mjs +1 -1
- package/dist/sections/ImageSection.stories.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PageSections.stories.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/PricingSection.stories.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/ServiceSection.stories.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +2 -1
package/dist/components/index.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use strict";
|
|
3
|
+
"use client"
|
|
3
4
|
'use server'
|
|
4
5
|
'use strict'
|
|
5
6
|
|
|
6
|
-
"use strict";var kc=Object.create;var Zo=Object.defineProperty;var Sc=Object.getOwnPropertyDescriptor;var Rc=Object.getOwnPropertyNames;var Tc=Object.getPrototypeOf,Dc=Object.prototype.hasOwnProperty;var Mc=(e,t)=>{for(var a in t)Zo(e,a,{get:t[a],enumerable:!0})},Nn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Rc(t))!Dc.call(e,r)&&r!==a&&Zo(e,r,{get:()=>t[r],enumerable:!(o=Sc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?kc(Tc(e)):{},Nn(t||!e||!e.__esModule?Zo(a,"default",{value:e,enumerable:!0}):a,e)),Ic=e=>Nn(Zo({},"__esModule",{value:!0}),e);var Jp={};Mc(Jp,{Alert:()=>mi,AlertDescription:()=>ui,AlertTitle:()=>pi,ApproveLeave:()=>sn,Avatar:()=>We,AvatarFallback:()=>Ue,AvatarImage:()=>Ve,Badge:()=>je,BannerBlock:()=>yi,BrandLogo:()=>ba,Breadcrumb:()=>us,BreadcrumbEllipsis:()=>hs,BreadcrumbItem:()=>gs,BreadcrumbLink:()=>bs,BreadcrumbList:()=>fs,BreadcrumbPage:()=>ys,BreadcrumbSeparator:()=>vs,Breadcrumbs:()=>Mp,Button:()=>T,CMSLink:()=>ht,CRMCogeBoard:()=>Up,CRMKanbanBoard:()=>Wp,Calendar:()=>Eo,CalendarView:()=>mn,CallToActionBlock:()=>Ta,CallToActionBlockOld:()=>Am,Card:()=>Go,Categories:()=>wp,ChatCardTask:()=>gn,ChatInterfaceMessages:()=>Qp,ChatMessage:()=>bn,Checkbox:()=>vt,CodeBlock:()=>Ni,Collapsible:()=>Bt,CollapsibleContent:()=>ea,CollapsibleTrigger:()=>Zt,CollectionArchive:()=>sp,Command:()=>vr,CommandDialog:()=>wl,CommandEmpty:()=>ii,CommandGroup:()=>ni,CommandInput:()=>ri,CommandItem:()=>di,CommandList:()=>si,CommandSeparator:()=>li,CommandShortcut:()=>ci,Container:()=>Ki,ContentBlock:()=>Oo,ContentCard:()=>Wm,CopyButton:()=>xi,CustomLink:()=>it,CustomerCard:()=>Zl,DarkTop:()=>Ai,DealCard:()=>pn,DealDetails:()=>qo,Dialog:()=>st,DialogClose:()=>br,DialogContent:()=>Qe,DialogDescription:()=>oi,DialogFooter:()=>ai,DialogHeader:()=>bt,DialogOverlay:()=>yr,DialogPortal:()=>ti,DialogTitle:()=>yt,DialogTrigger:()=>gr,DropdownMenu:()=>Bn,DropdownMenuCheckboxItem:()=>Ps,DropdownMenuContent:()=>Ns,DropdownMenuGroup:()=>En,DropdownMenuItem:()=>Cs,DropdownMenuLabel:()=>Ss,DropdownMenuPortal:()=>Hn,DropdownMenuRadioGroup:()=>zn,DropdownMenuRadioItem:()=>ks,DropdownMenuSeparator:()=>Rs,DropdownMenuShortcut:()=>Ts,DropdownMenuSub:()=>Fn,DropdownMenuSubContent:()=>ws,DropdownMenuSubTrigger:()=>xs,DropdownMenuTrigger:()=>Ln,DynamicIcon:()=>Ie,EventCard:()=>ed,FeatureCard:()=>Br,FeatureGrid:()=>dd,FeaturesBlock:()=>Ma,Filter:()=>Np,FlowPrintable:()=>Ad,Footer:()=>Hp,Header:()=>Fp,HeaderDesktop:()=>en,HeaderMobile:()=>an,HeadingImage:()=>ep,Hero:()=>$m,HighImpactHero:()=>ji,HolidayGrid:()=>cn,HolidayTracker:()=>_p,HoverCard:()=>bl,HoverCardContent:()=>ei,HoverCardTrigger:()=>yl,Image:()=>sd,ImageBlock:()=>Ri,InfoTile:()=>jm,Input:()=>_e,Insight:()=>Um,KanbanColumn:()=>Ko,Label:()=>J,LightTop:()=>Bi,Logo:()=>ip,LowImpactHero:()=>qi,MOTD:()=>Ym,Mask:()=>Rp,Media:()=>$t,MediaBlock:()=>Wt,MediumImpactHero:()=>Yi,NewCustomerForm:()=>un,NewDealForm:()=>fn,NewsGrid:()=>Md,OrgChart:()=>Qm,PagePrintable:()=>Bd,PageRange:()=>dp,PageShape:()=>Vo,Pagination:()=>xp,PayloadPagination:()=>cp,Popover:()=>Io,PopoverAnchor:()=>ml,PopoverContent:()=>Ka,PopoverTrigger:()=>Ao,PostHero:()=>kp,PricingCard:()=>_m,Printable:()=>up,ProjectCard:()=>rd,ProjectTeam:()=>vp,ProposalSummary:()=>Jm,RelatedContent:()=>hp,RelatedPagesMenu:()=>zp,RelatedPosts:()=>rp,RenderBlocks:()=>ga,RenderBlocksWithShapes:()=>ap,RenderHero:()=>Dp,RequestLeave:()=>dn,ReusableContentBlock:()=>Ii,RichText:()=>Z,ScrollArea:()=>St,ScrollBar:()=>fr,SectionHero:()=>Ji,Select:()=>ca,SelectContent:()=>Ot,SelectGroup:()=>Sm,SelectItem:()=>Gt,SelectLabel:()=>Rl,SelectScrollDownButton:()=>bi,SelectScrollUpButton:()=>gi,SelectSeparator:()=>Tl,SelectTrigger:()=>zt,SelectValue:()=>ma,Separator:()=>vo,ServiceCard:()=>Gm,Sheet:()=>tr,SheetClose:()=>jn,SheetContent:()=>xo,SheetDescription:()=>Ls,SheetFooter:()=>As,SheetHeader:()=>Is,SheetOverlay:()=>ar,SheetPortal:()=>Ms,SheetTitle:()=>Bs,SheetTrigger:()=>Un,Sidebar:()=>xa,SidebarContent:()=>aa,SidebarFooter:()=>Na,SidebarGroup:()=>at,SidebarGroupAction:()=>_s,SidebarGroupContent:()=>ft,SidebarGroupLabel:()=>Et,SidebarHeader:()=>wa,SidebarInput:()=>Gs,SidebarInset:()=>Os,SidebarLeft:()=>fp,SidebarMenu:()=>$e,SidebarMenuAction:()=>Co,SidebarMenuBadge:()=>$s,SidebarMenuButton:()=>ot,SidebarMenuItem:()=>Me,SidebarMenuSkeleton:()=>Ws,SidebarMenuSub:()=>oa,SidebarMenuSubButton:()=>sa,SidebarMenuSubItem:()=>ra,SidebarProvider:()=>Hs,SidebarRail:()=>zs,SidebarRight:()=>yp,SidebarSeparator:()=>No,SidebarTrigger:()=>Fs,SimpleHeader:()=>Ap,Skeleton:()=>ce,SlideShow:()=>Rd,TextAndImages:()=>Id,Textarea:()=>pa,Theme:()=>Or,ThemeProvider:()=>Sp,ThemeWithShapes:()=>bd,Toast:()=>So,ToastAction:()=>js,ToastClose:()=>Ro,ToastDescription:()=>Do,ToastProvider:()=>pr,ToastTitle:()=>To,ToastViewport:()=>ko,Toaster:()=>sl,Toggle:()=>Ys,ToggleGroup:()=>qs,ToggleGroupItem:()=>Ks,Tooltip:()=>ir,TooltipContent:()=>wo,TooltipProvider:()=>sr,TooltipTrigger:()=>nr,VideoHeader:()=>Lp,WhyUs:()=>Zm,badgeVariants:()=>fi,buttonVariants:()=>ta,toggleVariants:()=>Mo,useIsMobile:()=>rr,useSidebar:()=>Ya,useToast:()=>mr});module.exports=Ic(Jp);var Va=h(require("react")),er=require("@radix-ui/react-icons"),An=require("@radix-ui/react-slot");var In=require("clsx");var ms="-",Ac=e=>{let t=Lc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(ms);return i[0]===""&&i.length!==1&&i.shift(),kn(i,t)||Bc(l)},getConflictingClassGroupIds:(l,i)=>{let c=a[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},kn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?kn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ms);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Cn=/^\[(.+)\]$/,Bc=e=>{if(Cn.test(e)){let t=Cn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Lc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Hc(Object.entries(e.classGroups),a).forEach(([s,l])=>{cs(l,o,s,t)}),o},cs=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Pn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Ec(r)){cs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{cs(l,Pn(t,s),a,o)})})},Pn=(e,t)=>{let a=e;return t.split(ms).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Ec=e=>e.isThemeGetter,Hc=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,i])=>[t+l,i])):s);return[a,r]}):e,Fc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},Sn="!",zc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let c=[],m=0,d=0,p;for(let v=0;v<i.length;v++){let M=i[v];if(m===0){if(M===r&&(o||i.slice(v,v+s)===t)){c.push(i.slice(d,v)),d=v+s;continue}if(M==="/"){p=v;continue}}M==="["?m++:M==="]"&&m--}let f=c.length===0?i:i.substring(d),g=f.startsWith(Sn),b=g?f.substring(1):f,u=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:u}};return a?i=>a({className:i,parseClassName:l}):l},Oc=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},Gc=e=>({cache:Fc(e.cacheSize),parseClassName:zc(e),...Ac(e)}),_c=/\s+/,$c=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(_c),i="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:g}=a(m),b=!!g,u=o(b?f.substring(0,g):f);if(!u){if(!b){i=m+(i.length>0?" "+i:i);continue}if(u=o(f),!u){i=m+(i.length>0?" "+i:i);continue}b=!1}let v=Oc(d).join(":"),M=p?v+Sn:v,O=M+u;if(s.includes(O))continue;s.push(O);let N=r(u,b);for(let L=0;L<N.length;++L){let w=N[L];s.push(M+w)}i=m+(i.length>0?" "+i:i)}return i};function Wc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Rn(t))&&(o&&(o+=" "),o+=a);return o}var Rn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Rn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Vc(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=Gc(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=$c(c,a);return r(c,d),d}return function(){return s(Wc.apply(null,arguments))}}var te=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Tn=/^\[(?:([a-tt-]+):)?(.+)\]$/i,Uc=/^\d+\/\d+$/,jc=new Set(["px","full","screen"]),Xc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|el)$/,Yc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|tt|or|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Kc=/^(inset_)?-?((\d+)?\.?(\d+)[a-tt]+|0)tt-?((\d+)?\.?(\d+)[a-tt]+|0)/,Qc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=e=>$a(e)||jc.has(e)||Uc.test(e),Qt=e=>Wa(e,"length",sm),$a=e=>!!e&&!Number.isNaN(Number(e)),ds=e=>Wa(e,"number",$a),bo=e=>!!e&&Number.isInteger(Number(e)),Jc=e=>e.endsWith("%")&&$a(e.slice(0,-1)),I=e=>Tn.test(e),Jt=e=>Xc.test(e),Zc=new Set(["length","size","percentage"]),em=e=>Wa(e,Zc,Dn),tm=e=>Wa(e,"position",Dn),am=new Set(["image","url"]),om=e=>Wa(e,am,nm),rm=e=>Wa(e,"",im),yo=()=>!0,Wa=(e,t,a)=>{let o=Tn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},sm=e=>Yc.test(e)&&!qc.test(e),Dn=()=>!1,im=e=>Kc.test(e),nm=e=>Qc.test(e);var lm=()=>{let e=te("colors"),t=te("spacing"),a=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),l=te("borderSpacing"),i=te("borderWidth"),c=te("contrast"),m=te("grayscale"),d=te("hueRotate"),p=te("invert"),f=te("gap"),g=te("gradientColorStops"),b=te("gradientColorStopPositions"),u=te("inset"),v=te("margin"),M=te("opacity"),O=te("padding"),N=te("saturate"),L=te("scale"),w=te("sepia"),Q=te("skew"),_a=te("space"),yn=te("translate"),ss=()=>["auto","contain","none"],is=()=>["auto","hidden","clip","visible","scroll"],ns=()=>["auto",I,t],re=()=>[I,t],vn=()=>["",At,Qt],Qo=()=>["auto",$a,I],hn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Jo=()=>["solid","dashed","dotted","double","none"],xn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ls=()=>["start","end","center","between","around","evenly","stretch"],go=()=>["","0",I],wn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],It=()=>[$a,I];return{cacheSize:500,separator:":",theme:{colors:[yo],spacing:[At,Qt],blur:["none","",Jt,I],brightness:It(),borderColor:[e],borderRadius:["none","","full",Jt,I],borderSpacing:re(),borderWidth:vn(),contrast:It(),grayscale:go(),hueRotate:It(),invert:go(),gap:re(),gradientColorStops:[e],gradientColorStopPositions:[Jc,Qt],inset:ns(),margin:ns(),opacity:It(),padding:re(),saturate:It(),scale:It(),sepia:go(),skew:It(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":wn()}],"break-before":[{"break-before":wn()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...hn(),I]}],overflow:[{overflow:is()}],"overflow-tt":[{"overflow-tt":is()}],"overflow-tt":[{"overflow-tt":is()}],overscroll:[{overscroll:ss()}],"overscroll-tt":[{"overscroll-tt":ss()}],"overscroll-tt":[{"overscroll-tt":ss()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-tt":[{"inset-tt":[u]}],"inset-tt":[{"inset-tt":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],tt:[{tt:["auto",bo,I]}],basis:[{basis:ns()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:go()}],shrink:[{shrink:go()}],order:[{order:["first","last","none",bo,I]}],"grid-cols":[{"grid-cols":[yo]}],"col-start-end":[{col:["auto",{span:["full",bo,I]},I]}],"col-start":[{"col-start":Qo()}],"col-end":[{"col-end":Qo()}],"grid-rows":[{"grid-rows":[yo]}],"row-start-end":[{row:["auto",{span:[bo,I]},I]}],"row-start":[{"row-start":Qo()}],"row-end":[{"row-end":Qo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[f]}],"gap-tt":[{"gap-tt":[f]}],"gap-tt":[{"gap-tt":[f]}],"justify-content":[{justify:["normal",...ls()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ls(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ls(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],tt:[{tt:[O]}],tt:[{tt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],tt:[{tt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-tt":[{"space-tt":[_a]}],"space-tt-reverse":["space-tt-reverse"],"space-tt":[{"space-tt":[_a]}],"space-tt-reverse":["space-tt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ds]}],"font-family":[{font:[yo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",$a,ds]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","yd-underline"],"text-decoration-style":[{decoration:[...Jo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,Qt]}],"underline-offset":[{"underline-offset":["auto",At,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...hn(),tm]}],"bg-repeat":[{bg:["yd-repeat",{repeat:["","tt","tt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",em]}],"bg-image":[{bg:["none",{"gradient-tt":["t","tr","r","br","b","bl","l","tl"]},om]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-tt-pos":[{tt:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-tt":[{tt:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-el":[{"rounded-el":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-tt":[{"border-tt":[i]}],"border-w-tt":[{"border-tt":[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:[...Jo(),"hidden"]}],"divide-tt":[{"divide-tt":[i]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-tt":[{"divide-tt":[i]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Jo()}],"border-color":[{border:[r]}],"border-color-tt":[{"border-tt":[r]}],"border-color-tt":[{"border-tt":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Jo()]}],"outline-offset":[{"outline-offset":[At,I]}],"outline-w":[{outline:[At,Qt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:vn()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[At,Qt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,rm]}],"shadow-color":[{shadow:[yo]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...xn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":xn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Jt,I]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[N]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:It()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:It()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-tt":[{"scale-tt":[L]}],"scale-tt":[{"scale-tt":[L]}],rotate:[{rotate:[bo,I]}],"translate-tt":[{"translate-tt":[yn]}],"translate-tt":[{"translate-tt":[yn]}],"skew-tt":[{"skew-tt":[Q]}],"skew-tt":[{"skew-tt":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","yd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","tt-resize","nw-resize","tt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","tt","tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","tt","tt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-tt":[{"touch-pan":["tt","left","right"]}],"touch-tt":[{"touch-pan":["tt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[At,Qt,ds]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-tt","overflow-tt"],overscroll:["overscroll-tt","overscroll-tt"],inset:["inset-tt","inset-tt","start","end","top","right","bottom","left"],"inset-tt":["right","left"],"inset-tt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-tt","gap-tt"],p:["px","py","ps","tt","tt","pr","pb","pl"],px:["pr","pl"],py:["tt","pb"],m:["mx","my","ms","me","tt","mr","mb","ml"],mx:["mr","ml"],my:["tt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-tt","rounded-tt","rounded-el","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-el"],"rounded-e":["rounded-tt","rounded-tt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-tt","border-spacing-tt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-tt":["border-w-r","border-w-l"],"border-w-tt":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-tt":["border-color-r","border-color-l"],"border-color-tt":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-tt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-tt","scroll-tt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-tt","scroll-pb"],touch:["touch-tt","touch-tt","touch-pz"],"touch-tt":["touch"],"touch-tt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Mn=Vc(lm);function n(...e){return Mn((0,In.clsx)(e))}function ps(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{if(i.title&&l.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let c=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of c)m.children[0]&&l.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),l}),r=dm(e.layout);return{tableOfContents:o,contentWithIds:r}}function dm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var tt=require("react/jsx-runtime"),us=Va.forwardRef(({...e},t)=>(0,tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));us.displayName="Breadcrumb";var fs=Va.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("Vn",{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}));fs.displayName="BreadcrumbList";var gs=Va.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));gs.displayName="BreadcrumbItem";var bs=Va.forwardRef(({asChild:e,className:t,...a},o)=>(0,tt.jsx)(e?An.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));bs.displayName="BreadcrumbLink";var ys=Va.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));ys.displayName="BreadcrumbPage";var vs=({children:e,className:t,...a})=>(0,tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,tt.jsx)(er.ChevronRightIcon,{})});vs.displayName="BreadcrumbSeparator";var hs=({className:e,...t})=>(0,tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(er.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More"})]});hs.displayName="BreadcrumbElipssis";var Ua=h(require("@radix-ui/react-collapsible")),Bt=Ua.Root,Zt=Ua.CollapsibleTrigger,ea=Ua.CollapsibleContent;var Lt=h(require("react")),E=h(require("@radix-ui/react-dropdown-menu"));var Bn=E.Root,Ln=E.Trigger,En=E.Group,Hn=E.Portal,Fn=E.Sub,zn=E.RadioGroup,xs=Lt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,tt.jsxs)(E.SubTrigger,{ref:r,className:n("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,tt.jsx)(er.ChevronRightIcon,{className:"ml-auto"})]}));xs.displayName=E.SubTrigger.displayName;var ws=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.SubContent,{ref:a,className:n("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ws.displayName=E.SubContent.displayName;var Ns=Lt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(E.Portal,{children:(0,tt.jsx)(E.Content,{ref:o,sideOffset:t,className:n("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ns.displayName=E.Content.displayName;var Cs=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Item,{ref:o,className:n("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Cs.displayName=E.Item.displayName;var Ps=Lt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,tt.jsxs)(E.CheckboxItem,{ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(er.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ps.displayName=E.CheckboxItem.displayName;var ks=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(E.RadioItem,{ref:o,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(er.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ks.displayName=E.RadioItem.displayName;var Ss=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ss.displayName=E.Label.displayName;var Rs=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Rs.displayName=E.Separator.displayName;var Ts=({className:e,...t})=>(0,tt.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});Ts.displayName="DropdownMenuShortcut";var On=h(require("react"));var _e=On.forwardRef(({className:e,type:t,...a},o)=>(0,tt.jsx)("input",{type:t,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));_e.displayName="Input";var _n=h(require("react")),Ds=h(require("@radix-ui/react-separator"));var vo=_n.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,$n.jsx)(Ds.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));vo.displayName=Ds.Root.displayName;var ho=h(require("react")),de=h(require("@radix-ui/react-dialog")),Vn=require("class-variance-authority");var tr=de.Root,Un=de.Trigger,jn=de.Close,Ms=de.Portal,ar=ho.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Overlay,{className:n("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));ar.displayName=de.Overlay.displayName;var cm=(0,Vn.cva)("fixed tt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-tt-0 top-0 border-b data-[state=closed]:slide-out-tt-top data-[state=open]:slide-in-from-top",bottom:"inset-tt-0 bottom-0 border-t data-[state=closed]:slide-out-tt-bottom data-[state=open]:slide-in-from-bottom",left:"inset-tt-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-tt-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-tt-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-tt-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),xo=ho.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,tt.jsxs)(Ms,{children:[(0,tt.jsx)(ar,{}),(0,tt.jsxs)(de.Content,{ref:r,className:n(cm({side:e}),t),...o,children:[(0,tt.jsxs)(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,tt.jsx)(er.Cross2Icon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));xo.displayName=de.Content.displayName;var Is=({className:e,...t})=>(0,tt.jsx)("div",{className:n("flex flex-col space-tt-2 text-center sm:text-left",e),...t});Is.displayName="SheetHeader";var As=({className:e,...t})=>(0,tt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});As.displayName="SheetFooter";var Bs=ho.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));Bs.displayName=de.Title.displayName;var Ls=ho.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ls.displayName=de.Description.displayName;var F=h(require("react")),el=require("lucide-react");var or=require("react"),rr=(e=768)=>{let[t,a]=(0,or.useState)(!1);return(0,or.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var qn=h(require("react")),ta=(0,Vn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=qn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,tt.jsx)(e?An.Slot:"button",{className:n(ta({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function ce({className:e,...t}){return(0,tt.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var Jn=h(require("react")),ut=h(require("@radix-ui/react-tooltip"));var sr=ut.Provider,ir=ut.Root,nr=ut.Trigger,wo=Jn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(ut.Portal,{children:(0,tt.jsx)(ut.Content,{ref:o,sideOffset:t,className:n("tt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));wo.displayName=ut.Content.displayName;var mm="sidebar:state",pm=60*60*24*7,um="16rem",fm="18rem",gm="3rem",bm="b",tl=F.createContext(null);function Ya(){let e=F.useContext(tl);if(!e)throw new Error("useSidebar must tt used within a SidebarProvider.");return e}var Hs=F.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let c=rr(),[m,d]=F.useState(!1),[p,f]=F.useState(e),g=t??p,b=F.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(g):O);f(O),document.cookie=`${mm}=${g}; path=/; max-age=${pm}`},[a,g]),u=F.useCallback(()=>c?d(O=>!O):b(O=>!O),[c,b,d]);F.useEffect(()=>{let O=N=>{N.key===bm&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",M=F.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,m,d,u]);return(0,tt.jsx)(tl.Provider,{value:M,children:(0,tt.jsx)(sr,{delayDuration:0,children:(0,tt.jsx)("div",{style:{"--sidebar-width":um,"--sidebar-width-icon":gm,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Hs.displayName="SidebarProvider";var xa=F.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=Ya();return a==="none"?(0,tt.jsx)("div",{className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,tt.jsx)(tr,{open:m,onOpenChange:d,...s,children:(0,tt.jsx)(xo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":fm},side:e,children:(0,tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,tt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,tt.jsx)("div",{className:n("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,tt.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 tt-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4)tt+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,tt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});xa.displayName="Sidebar";var Fs=F.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Ya();return(0,tt.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,tt.jsx)(el.PanelLeft,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Fs.displayName="SidebarTrigger";var zs=F.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Ya();return(0,tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-tt-0 tt-20 hidden w-4 -translate-tt-1/2 transition-all ease-linear after:absolute after:inset-tt-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]tt&]:cursor-w-resize [[data-side=right]tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]tt&]:-left-2",e),...t})});zs.displayName="SidebarRail";var Os=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-tt-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-el md:peer-data-[variant=inset]:shadow",e),...t}));Os.displayName="SidebarInset";var Gs=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(_e,{ref:a,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Gs.displayName="SidebarInput";var wa=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));wa.displayName="SidebarHeader";var Na=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));Na.displayName="SidebarFooter";var No=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(vo,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));No.displayName="SidebarSeparator";var aa=F.forwardRef(({className:e,...t},a)=>(0,tt.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}));aa.displayName="SidebarContent";var at=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));at.displayName="SidebarGroup";var Et=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?An.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-tt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Et.displayName="SidebarGroupLabel";var _s=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?An.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("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}));_s.displayName="SidebarGroupAction";var ft=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-sm",e),...t}));ft.displayName="SidebarGroupContent";var $e=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("Vn",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));$e.displayName="SidebarMenu";var Me=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Me.displayName="SidebarMenuItem";var ym=(0,Vn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ot=F.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let c=e?An.Slot:"button",{isMobile:m,state:d}=Ya(),p=(0,tt.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(ym({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,tt.jsxs)(ir,{children:[(0,tt.jsx)(nr,{asChild:!0,children:p}),(0,tt.jsx)(wo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ot.displayName="SidebarMenuButton";var Co=F.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,tt.jsx)(t?An.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("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}));Co.displayName="SidebarMenuAction";var $s=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("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}));$s.displayName="SidebarMenuBadge";var Ws=F.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=F.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,tt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:n("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,tt.jsx)(ce,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,tt.jsx)(ce,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Ws.displayName="SidebarMenuSkeleton";var oa=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("Vn",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));oa.displayName="SidebarMenuSub";var ra=F.forwardRef(({...e},t)=>(0,tt.jsx)("li",{ref:t,...e}));ra.displayName="SidebarMenuSubItem";var sa=F.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,tt.jsx)(e?An.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-w-0 -translate-tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));sa.displayName="SidebarMenuSubButton";var cr=h(require("react")),vm=1,hm=1e6;var Vs=0;function xm(){return Vs=(Vs+1)%Number.MAX_SAFE_INTEGER,Vs.toString()}var Us=new Map,al=e=>{if(Us.has(e))return;let t=setTimeout(()=>{Us.delete(e),Po({type:"REMOVE_TOAST",toastId:e})},hm);Us.set(e,t)},wm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,vm)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?al(a):e.toasts.forEach(o=>{al(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},lr=[],dr={toasts:[]};function Po(e){dr=wm(dr,e),lr.forEach(t=>{t(dr)})}function Nm({...e}){let t=xm(),a=r=>Po({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Po({type:"DISMISS_TOAST",toastId:t});return Po({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function mr(){let[e,t]=cr.useState(dr);return cr.useEffect(()=>(lr.push(t),()=>{let a=lr.indexOf(t);a>-1&&lr.splice(a,1)}),[e]),{...e,toast:Nm,dismiss:a=>Po({type:"DISMISS_TOAST",toastId:a})}}var Ca=h(require("react")),ye=h(require("@radix-ui/react-toast"));var pr=ye.Provider,ko=Ca.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Viewport,{ref:a,className:n("fixed top-0 tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));ko.displayName=ye.Viewport.displayName;var Cm=(0,Vn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-tt-0 data-[swipe=end]:translate-tt-[var(--radix-toast-swipe-end-tt)] data-[swipe=move]:translate-tt-[var(--radix-toast-swipe-move-tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-tt-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),So=Ca.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)(ye.Root,{ref:o,className:n(Cm({variant:t}),e),...a}));So.displayName=ye.Root.displayName;var js=Ca.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.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}));js.displayName=ye.Action.displayName;var Ro=Ca.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.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,tt.jsx)(el.tt,{className:"h-4 w-4"})}));Ro.displayName=ye.Close.displayName;var To=Ca.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));To.displayName=ye.Title.displayName;var Do=Ca.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));Do.displayName=ye.Description.displayName;function sl(){let{toasts:e}=mr();return(0,tt.jsxs)(pr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,tt.jsxs)(So,{...s,children:[(0,tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,tt.jsx)(To,{children:a}),o&&(0,tt.jsx)(Do,{children:o})]}),r,(0,tt.jsx)(Ro,{})]},t)}),(0,tt.jsx)(ko,{})]})}var il=h(require("react")),Xs=h(require("@radix-ui/react-toggle"));var Mo=(0,Vn.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-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"}}),Ys=il.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,tt.jsx)(Xs.Root,{ref:r,className:n(Mo({variant:t,size:a,className:e})),...o}));Ys.displayName=Xs.Root.displayName;var Pa=h(require("react")),qa=h(require("@radix-ui/react-toggle-group"));var dl=Pa.createContext({size:"default",variant:"default"}),qs=Pa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,tt.jsx)(qa.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,tt.jsx)(dl.Provider,{value:{variant:t,size:a},children:o})}));qs.displayName=qa.Root.displayName;var Ks=Pa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=Pa.useContext(dl);return(0,tt.jsx)(qa.Item,{ref:s,className:n(Mo({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Ks.displayName=qa.Item.displayName;var Qs=h(require("react")),rt=h(require("@radix-ui/react-scroll-area"));var St=Qs.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(rt.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,tt.jsx)(rt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,tt.jsx)(fr,{}),(0,tt.jsx)(rt.Corner,{})]}));St.displayName=rt.Root.displayName;var fr=Qs.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,tt.jsx)(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,tt.jsx)(rt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));fr.displayName=rt.ScrollAreaScrollbar.displayName;var cl=h(require("react")),gt=h(require("@radix-ui/react-popover"));var Io=gt.Root,Ao=gt.Trigger,ml=gt.Anchor,Ka=cl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(gt.Portal,{children:(0,tt.jsx)(gt.Content,{ref:r,align:t,sideOffset:a,className:n("tt-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ka.displayName=gt.Content.displayName;var pl=h(require("react")),Zs=h(require("@radix-ui/react-label"));var Pm=(0,Vn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=pl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Zs.Root,{ref:a,className:n(Pm(),e),...t}));J.displayName=Zs.Root.displayName;var gl=h(require("react")),ka=h(require("@radix-ui/react-hover-card"));var bl=ka.Root,yl=ka.Trigger,ei=gl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(ka.Content,{ref:r,align:t,sideOffset:a,className:n("tt-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ei.displayName=ka.Content.displayName;var Bo=h(require("react")),me=h(require("@radix-ui/react-dialog"));var st=me.Root,gr=me.Trigger,ti=me.Portal,br=me.Close,yr=Bo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Overlay,{ref:a,className:n("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));yr.displayName=me.Overlay.displayName;var Qe=Bo.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(ti,{children:[(0,tt.jsx)(yr,{}),(0,tt.jsxs)(me.Content,{ref:o,className:n("fixed left-[50%] top-[50%] tt-50 grid w-full max-w-lg translate-tt-[-50%] translate-tt-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-tt-left-1/2 data-[state=closed]:slide-out-tt-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,tt.jsxs)(me.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,tt.jsx)(el.tt,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Qe.displayName=me.Content.displayName;var bt=({className:e,...t})=>(0,tt.jsx)("div",{className:n("flex flex-col space-tt-1.5 text-center sm:text-left",e),...t});bt.displayName="DialogHeader";var ai=({className:e,...t})=>(0,tt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});ai.displayName="DialogFooter";var yt=Bo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));yt.displayName=me.Title.displayName;var oi=Bo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));oi.displayName=me.Description.displayName;var la=h(require("react")),He=require("cmdk");var vr=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));vr.displayName=He.Command.displayName;var wl=({children:e,...t})=>(0,tt.jsx)(st,{...t,children:(0,tt.jsx)(Qe,{className:"overflow-hidden p-0",children:(0,tt.jsx)(vr,{className:"[&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground [&tt[cmdk-group]:not([hidden])tt~[cmdk-group]]:tt-0 [&tt[cmdk-group]]:px-2 [&tt[cmdk-input-wrapper]_svg]:h-5 [&tt[cmdk-input-wrapper]_svg]:w-5 [&tt[cmdk-input]]:h-12 [&tt[cmdk-item]]:px-2 [&tt[cmdk-item]]:py-3 [&tt[cmdk-item]_svg]:h-5 [&tt[cmdk-item]_svg]:w-5",children:e})})}),ri=la.forwardRef(({className:e,...t},a)=>(0,tt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,tt.jsx)(el.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,tt.jsx)(He.Command.Input,{ref:a,className:n("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})]}));ri.displayName=He.Command.Input.displayName;var si=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.List,{ref:a,className:n("max-h-[300px] overflow-tt-auto overflow-tt-hidden",e),...t}));si.displayName=He.Command.List.displayName;var ii=la.forwardRef((e,t)=>(0,tt.jsx)(He.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ii.displayName=He.Command.Empty.displayName;var ni=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:py-1.5 [&tt[cmdk-group-heading]]:text-xs [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));ni.displayName=He.Command.Group.displayName;var li=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));li.displayName=He.Command.Separator.displayName;var di=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.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}));di.displayName=He.Command.Item.displayName;var ci=({className:e,...t})=>(0,tt.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ci.displayName="CommandShortcut";var hr=h(require("react"));var km=(0,Vn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-tt-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),mi=hr.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)("div",{ref:o,role:"alert",className:n(km({variant:t}),e),...a}));mi.displayName="Alert";var pi=hr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));pi.displayName="AlertTitle";var ui=hr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));ui.displayName="AlertDescription";var wr=h(require("react")),Ft=h(require("@radix-ui/react-avatar"));var We=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));We.displayName=Ft.Root.displayName;var Ve=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));Ve.displayName=Ft.Image.displayName;var Ue=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ue.displayName=Ft.Fallback.displayName;var fi=(0,Vn.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function je({className:e,variant:t,...a}){return(0,tt.jsx)("div",{className:n(fi({variant:t}),e),...a})}var Lo=h(require("@radix-ui/react-checkbox")),Sl=h(require("react")),vt=Sl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Lo.Root,{className:n("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,tt.jsx)(Lo.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,tt.jsx)(el.Check,{className:"h-4 w-4"})})}));vt.displayName=Lo.Root.displayName;var G=h(require("@radix-ui/react-select")),da=h(require("react")),ca=G.Root,Sm=G.Group,ma=G.Value,zt=da.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Trigger,{className:n("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,tt.jsx)(G.Icon,{asChild:!0,children:(0,tt.jsx)(el.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));zt.displayName=G.Trigger.displayName;var gi=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(el.ChevronUp,{className:"h-4 w-4"})}));gi.displayName=G.ScrollUpButton.displayName;var bi=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(el.ChevronDown,{className:"h-4 w-4"})}));bi.displayName=G.ScrollDownButton.displayName;var Ot=da.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,tt.jsx)(G.Portal,{children:(0,tt.jsxs)(G.Content,{className:n("relative tt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-tt-1 data-[side=left]:-translate-tt-1 data-[side=right]:translate-tt-1 data-[side=top]:-translate-tt-1",t),position:a,ref:r,...o,children:[(0,tt.jsx)(gi,{}),(0,tt.jsx)(G.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,tt.jsx)(bi,{})]})}));Ot.displayName=G.Content.displayName;var Rl=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Rl.displayName=G.Label.displayName;var Gt=da.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Item,{className:n("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(G.ItemIndicator,{children:(0,tt.jsx)(el.Check,{className:"h-4 w-4"})})}),(0,tt.jsx)(G.ItemText,{children:e})]}));Gt.displayName=G.Item.displayName;var Tl=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Tl.displayName=G.Separator.displayName;var Dl=h(require("react")),pa=Dl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("textarea",{className:n("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 Il=require("react-day-picker");function Eo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,tt.jsx)(Il.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-tt-4 sm:space-tt-4 sm:space-tt-0",month:"space-tt-4",caption:"flex justify-center tt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-tt-1 flex items-center",nav_button:n(ta({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-tt-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:tt-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:n(ta({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Eo.displayName="Calendar";var yi=({className:e,content:t,style:a})=>(0,tt.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,tt.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,tt.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var vi=h(require("next/link")),ht=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,tt.jsxs)(vi.default,{className:n(r),href:d||m||"",...f,children:[s&&s,o&&o]}):(0,tt.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,tt.jsxs)(vi.default,{className:n(r),href:d||m||"",...f,children:[s&&s,o&&o]})})};function kr({className:e}){return n("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Rm({className:e,...t}){return(0,tt.jsx)("input",{...t,className:kr({className:e})})}function Sr({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Rm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-tt-1/2 text-accent",children:e})]})}function Tm({className:e,...t}){return(0,tt.jsx)("textarea",{...t,className:n(kr({}),"resize-none md:min-h-[130px]",e)})}function Bl({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Tm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var El=require("formik"),Hl=require("react-icons/fa6"),Ra=h(require("yup"));async function Ll(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.yd/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"yd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var hi=require("sonner"),xt={tooShort:"Must tt at least ${min} characters",tooLong:"Must tt at most ${max} characters",required:"This field is required",email:"Invalid email format"},Dm=Ra.object().shape({name:Ra.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),email:Ra.string().email(xt.email).required(xt.required),subject:Ra.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),message:Ra.string().min(2,xt.tooShort).max(300,xt.tooLong).required(xt.required)}),Rr=n("!pr-[44px] text-foreground"),Tr=n("!border-red-600 border"),Dr=n("sr-only");function Fl(){return(0,tt.jsx)(El.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Dm,onSubmit:async(e,{resetForm:t})=>{let a=await Ll(e);a.data===null?hi.toast.error(a.message):(hi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,tt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 tt-2 lg:grid-cols-2",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Sr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Hl.FaUser,{className:"text-primary"}),className:n(Rr,e.name&&t.name&&Tr)}),e.name&&t.name&&(0,tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Dr,children:e.name})]}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Sr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Mm,{}),className:n(Rr,e.email&&t.email&&Tr)}),e.email&&t.email&&(0,tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Dr,children:e.email})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(Sr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(Rr,e.subject&&t.subject&&Tr)}),e.subject&&t.subject&&(0,tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Dr,children:e.subject})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(Bl,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Im,{}),className:n(Rr,e.message&&t.message&&Tr)}),e.message&&t.message&&(0,tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Dr,children:e.message})]}),(0,tt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,tt.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Mm(){return(0,tt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Im(){return(0,tt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Am=({links:e,richText:t})=>(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,tt.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,tt.jsx)(ht,{size:"lg",...a},o))})]})}),Ta=({links:e,richText:t})=>{let[a,o]=(0,or.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=c=>{c.target===c.currentTarget&&l()};return(0,tt.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,tt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,tt.jsx)(Z,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,tt.jsx)("div",{className:"tt-10 flex items-center justify-center gap-tt-6",children:(0,tt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?(0,tt.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white yd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},m):(0,tt.jsx)(ht,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white yd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},m))})})]})}),a&&(0,tt.jsx)("div",{className:"absolute inset-0 tt-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,tt.jsxs)("div",{className:"bg-white p-6 tt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,tt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,tt.jsx)(Fl,{})," "]})})]})};var Mr=require("prism-react-renderer");function xi({code:e}){let[t,a]=(0,or.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,tt.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,tt.jsx)("p",{children:t}),(0,tt.jsx)("div",{className:"w-6 h-6",children:(0,tt.jsx)(el.ClipboardCopy,{})})]})})}var _l=({code:e,language:t=""})=>e?(0,tt.jsx)(Mr.Highlight,{code:e,language:t,theme:Mr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-tt-auto",children:[r.map((s,l)=>(0,tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,tt.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,tt.jsx)("span",{...o({token:i})},c))})]},l)),(0,tt.jsx)(xi,{code:e})]})}):null;var Ni=({className:e,code:t,language:a})=>(0,tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,tt.jsx)(_l,{code:t,language:a})});var Wl=h(require("next/image")),Bm={"3xl":1920,"2xl":1536,el:1280,lg:1024,md:768,sm:640},$l="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=",Vl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:c}=e,m,d,p=t,f=i||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:M,url:O,width:N}=s;if(M&&M>500){let L=500/M;m=N*L,d=M*L}else m=N,d=M;p=u||"",f=O||$l}let g=c||"lazy",b=l||Object.entries(Bm).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,tt.jsx)("picture",{children:(0,tt.jsx)(Wl.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:$l,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:m})})};var Ul=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,or.useRef)(null);if((0,or.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,tt.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,tt.jsx)("source",{src:a.url||""})})}return null};var $t=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,tt.jsx)(a||or.Fragment,{...a!==null?{className:t}:{},children:r?(0,tt.jsx)(Ul,{...e}):(0,tt.jsx)(Vl,{...e})})};var Wt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,tt.jsx)($t,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Ri=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:n("",{container:a},t),children:(0,tt.jsx)($t,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var Ma=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,tt.jsxs)("section",{className:n(r?"w-full":"",""),children:[(0,tt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,tt.jsx)("h2",{className:"mb-6 tt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,tt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,tt.jsx)("div",{className:"mb-5 text-foreground",children:(0,tt.jsx)(Z,{content:t,enableGutter:!1})})]}),(0,tt.jsx)("div",{className:`grid gap-6 tt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,tt.jsx)(Br,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},l)})})]});var Lr=h(require("react"));function Fo({nodes:e}){return(0,tt.jsx)(Lr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,tt.jsx)(Lr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,tt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,tt.jsx)("table",{children:(0,tt.jsx)("tbody",{children:t.children.map((s,l)=>(0,tt.jsx)("tr",{children:s.children.map((i,c)=>(0,tt.jsx)("td",{children:Fo({nodes:i.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Fo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,tt.jsx)(Ta,{...s},a);case"mediaBlock":return(0,tt.jsx)(Wt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,tt.jsx)(Ri,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,tt.jsx)(yi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,tt.jsx)(Ni,{className:"col-start-2",...s},a);case"features":return(0,tt.jsx)(Ma,{...s,nested:!0},a);case"reusableContentBlock":Fo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,tt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,tt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,tt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,tt.jsx)("div",{className:n({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Fo({nodes:t?.root?.children})}):null;var Ie=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("tt-")?e+" ":"tt-"+e+" ",s="tt-"+t,l=o??"",i=r+s+" tt-"+a+" "+l;return(0,tt.jsx)("i",{className:i})};var Kl=h(require("next/image"));function ql(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Br({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:c}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-tt-br from-[#A42368] tt-[#4A1030]",radial:"bg-gradient-tt-br from-[#4A1030] tt-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-el h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&m[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,tt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,tt.jsx)(Kl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,tt.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,tt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,tt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,tt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,tt.jsx)(Lm,{icon:{type:t?.type||"tt-light",iconName:t?.icon||"yd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,tt.jsx)(Z,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-sm prose-p:text-lg prose-headings:text-el","space-tt-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,tt.jsx)("div",{className:n("prose-sm prose-p:text-lg prose-headings:text-el","space-tt-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,tt.jsx)("div",{className:"tt-6",children:(0,tt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Lm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="yd-icon-error"?(0,tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,tt.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),ql(e)&&(0,tt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 tt-1":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="yd-icon-error"?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[ql(e)&&(0,tt.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Ql=h(require("next/image")),Jl=h(require("next/link"));var Ia=h(require("react"));var ue=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("rounded-el border bg-card text-card-foreground shadow",e),...t}));ue.displayName="Card";var Re=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("flex flex-col space-tt-1.5 p-6",e),...t}));Re.displayName="CardHeader";var Te=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Te.displayName="CardTitle";var Ti=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ti.displayName="CardDescription";var Ne=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("p-6 tt-0",e),...t}));Ne.displayName="CardContent";var Di=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:n("flex items-center p-6 tt-0",e),...t}));Di.displayName="CardFooter";function Zl({name:e,logo:t,href:a}){return(0,tt.jsx)(ue,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,tt.jsxs)(Jl.default,{href:a,className:"block",children:[(0,tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,tt.jsx)(Ql.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,tt.jsx)(Ne,{className:"p-3 flex items-center justify-center h-18 bg-gradient-tt-br from-gray-900 via-brand-one tt-gray-900",children:(0,tt.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function ed({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,tt.jsx)(el.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,tt.jsx)(el.Award,{className:"h-4 w-4"});case"companyEvent":return(0,tt.jsx)(el.PartyPopper,{className:"h-4 w-4"});default:return(0,tt.jsx)(el.CalendarDays,{className:"h-4 w-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 tt-slate-500"}};return(0,tt.jsxs)(ue,{className:`w-full max-w-md overflow-hidden bg-gradient-tt-br ${l(e)}`,children:[(0,tt.jsxs)(Re,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,tt.jsxs)(We,{className:"h-14 w-14 border-2 border-white",children:[(0,tt.jsx)(Ve,{src:r,alt:a||"Event"}),(0,tt.jsx)(Ue,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,tt.jsxs)("div",{className:"flex flex-col",children:[(0,tt.jsx)(Te,{className:"text-el",children:a||"Untitled Event"}),(0,tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,tt.jsx)(el.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,tt.jsxs)(Ne,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,tt.jsxs)(je,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,tt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-tt])([tt-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var ad=h(require("next/link"));var od=h(require("next/image")),td={sm:"640px",md:"768px",lg:"1024px",el:"1280px","2xl":"1400px"};function rd({slug:e,image:t,title:a,description:o}){return(0,tt.jsxs)(ad.default,{href:e,className:"group/portfolio relative tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,tt.jsx)("span",{className:n("absolute inset-0 tt-[2] bg-gradient-1 from-primary/0 tt-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,tt.jsx)(od.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
7
|
-
(min-width:${
|
|
8
|
-
(min-width:${
|
|
7
|
+
"use strict";var Rc=Object.create;var tr=Object.defineProperty;var Tc=Object.getOwnPropertyDescriptor;var Dc=Object.getOwnPropertyNames;var Mc=Object.getPrototypeOf,Ic=Object.prototype.hasOwnProperty;var Ac=(e,t)=>{for(var a in t)tr(e,a,{get:t[a],enumerable:!0})},Pn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Dc(t))!Ic.call(e,r)&&r!==a&&tr(e,r,{get:()=>t[r],enumerable:!(o=Tc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?Rc(Mc(e)):{},Pn(t||!e||!e.__esModule?tr(a,"default",{value:e,enumerable:!0}):a,e)),Bc=e=>Pn(tr({},"__esModule",{value:!0}),e);var ru={};Ac(ru,{Alert:()=>ui,AlertDescription:()=>gi,AlertTitle:()=>fi,ApproveLeave:()=>ln,Avatar:()=>We,AvatarFallback:()=>Ue,AvatarImage:()=>Ve,Badge:()=>je,BannerBlock:()=>hi,BrandLogo:()=>ya,Breadcrumb:()=>gs,BreadcrumbEllipsis:()=>ws,BreadcrumbItem:()=>ys,BreadcrumbLink:()=>vs,BreadcrumbList:()=>bs,BreadcrumbPage:()=>hs,BreadcrumbSeparator:()=>xs,Breadcrumbs:()=>Hp,Button:()=>T,CMSLink:()=>ht,CRMCogeBoard:()=>Qp,CRMKanbanBoard:()=>qp,Calendar:()=>Ho,CalendarView:()=>un,CallToActionBlock:()=>Da,CallToActionBlockOld:()=>zm,Card:()=>$o,Categories:()=>Rp,ChatCardTask:()=>yn,ChatInterfaceMessages:()=>ou,ChatMessage:()=>vn,Checkbox:()=>vt,CodeBlock:()=>Pi,Collapsible:()=>Bt,CollapsibleContent:()=>ea,CollapsibleTrigger:()=>Zt,CollectionArchive:()=>mp,Command:()=>xr,CommandDialog:()=>Cl,CommandEmpty:()=>li,CommandGroup:()=>di,CommandInput:()=>ii,CommandItem:()=>mi,CommandList:()=>ni,CommandSeparator:()=>ci,CommandShortcut:()=>pi,Container:()=>Ji,ContentBlock:()=>_o,ContentCard:()=>qm,CopyButton:()=>Ni,CustomLink:()=>it,CustomerCard:()=>td,DarkTop:()=>Li,DealCard:()=>fn,DealDetails:()=>Qo,Dialog:()=>st,DialogClose:()=>vr,DialogContent:()=>Qe,DialogDescription:()=>si,DialogFooter:()=>ri,DialogHeader:()=>bt,DialogOverlay:()=>hr,DialogPortal:()=>oi,DialogTitle:()=>yt,DialogTrigger:()=>yr,DropdownMenu:()=>En,DropdownMenuCheckboxItem:()=>Ss,DropdownMenuContent:()=>Ps,DropdownMenuGroup:()=>Fn,DropdownMenuItem:()=>ks,DropdownMenuLabel:()=>Ts,DropdownMenuPortal:()=>zn,DropdownMenuRadioGroup:()=>Gn,DropdownMenuRadioItem:()=>Rs,DropdownMenuSeparator:()=>Ds,DropdownMenuShortcut:()=>Ms,DropdownMenuSub:()=>On,DropdownMenuSubContent:()=>Cs,DropdownMenuSubTrigger:()=>Ns,DropdownMenuTrigger:()=>Hn,DynamicIcon:()=>Ie,EventCard:()=>ad,FeatureCard:()=>Er,FeatureGrid:()=>md,FeaturesBlock:()=>Ia,Filter:()=>Tp,FlowPrintable:()=>Ld,Footer:()=>$p,Header:()=>Wp,HeaderDesktop:()=>an,HeaderMobile:()=>rn,HeadingImage:()=>ip,Hero:()=>Ym,HighImpactHero:()=>Yi,HolidayGrid:()=>pn,HolidayTracker:()=>Xp,HoverCard:()=>vl,HoverCardContent:()=>ai,HoverCardTrigger:()=>hl,Image:()=>nd,ImageBlock:()=>Di,InfoTile:()=>Jm,Input:()=>_e,Insight:()=>Qm,KanbanColumn:()=>Jo,Label:()=>J,LightTop:()=>Ei,Logo:()=>pp,LowImpactHero:()=>Qi,MOTD:()=>ep,Mask:()=>Bp,Media:()=>$t,MediaBlock:()=>Wt,MediumImpactHero:()=>Ki,NewCustomerForm:()=>gn,NewDealForm:()=>bn,NewsGrid:()=>Ad,OrgChart:()=>op,PagePrintable:()=>Ed,PageRange:()=>gp,PageShape:()=>jo,Pagination:()=>Sp,PayloadPagination:()=>bp,Popover:()=>Ao,PopoverAnchor:()=>ul,PopoverContent:()=>Qa,PopoverTrigger:()=>Bo,PostHero:()=>Ip,PricingCard:()=>Xm,Printable:()=>hp,ProjectCard:()=>id,ProjectTeam:()=>Pp,ProposalSummary:()=>rp,RelatedContent:()=>kp,RelatedPagesMenu:()=>Vp,RelatedPosts:()=>cp,RenderBlocks:()=>ba,RenderBlocksWithShapes:()=>lp,RenderHero:()=>Ep,RequestLeave:()=>mn,ReusableContentBlock:()=>Bi,RichText:()=>Z,ScrollArea:()=>St,ScrollBar:()=>br,SectionHero:()=>en,Select:()=>ca,SelectContent:()=>Ot,SelectGroup:()=>Tm,SelectItem:()=>Gt,SelectLabel:()=>Dl,SelectScrollDownButton:()=>vi,SelectScrollUpButton:()=>yi,SelectSeparator:()=>Ml,SelectTrigger:()=>zt,SelectValue:()=>ma,Separator:()=>ho,ServiceCard:()=>jm,Sheet:()=>or,SheetClose:()=>Yn,SheetContent:()=>wo,SheetDescription:()=>Hs,SheetFooter:()=>Ls,SheetHeader:()=>Bs,SheetOverlay:()=>rr,SheetPortal:()=>As,SheetTitle:()=>Es,SheetTrigger:()=>Xn,Sidebar:()=>wa,SidebarContent:()=>aa,SidebarFooter:()=>Ca,SidebarGroup:()=>at,SidebarGroupAction:()=>Ws,SidebarGroupContent:()=>ft,SidebarGroupLabel:()=>Et,SidebarHeader:()=>Na,SidebarInput:()=>$s,SidebarInset:()=>_s,SidebarLeft:()=>xp,SidebarMenu:()=>$e,SidebarMenuAction:()=>Po,SidebarMenuBadge:()=>Vs,SidebarMenuButton:()=>ot,SidebarMenuItem:()=>Me,SidebarMenuSkeleton:()=>Us,SidebarMenuSub:()=>oa,SidebarMenuSubButton:()=>sa,SidebarMenuSubItem:()=>ra,SidebarProvider:()=>zs,SidebarRail:()=>Gs,SidebarRight:()=>Cp,SidebarSeparator:()=>Co,SidebarTrigger:()=>Os,SimpleHeader:()=>zp,Skeleton:()=>ce,SlideShow:()=>Dd,Tabs:()=>Dm,TabsContent:()=>Am,TabsList:()=>Mm,TabsTrigger:()=>Im,TextAndImages:()=>Bd,Textarea:()=>pa,Theme:()=>_r,ThemeProvider:()=>Ap,ThemeWithShapes:()=>vd,Toast:()=>Ro,ToastAction:()=>Ys,ToastClose:()=>To,ToastDescription:()=>Mo,ToastProvider:()=>fr,ToastTitle:()=>Do,ToastViewport:()=>So,Toaster:()=>nl,Toggle:()=>Ks,ToggleGroup:()=>Qs,ToggleGroupItem:()=>Js,Tooltip:()=>lr,TooltipContent:()=>No,TooltipProvider:()=>nr,TooltipTrigger:()=>dr,VideoHeader:()=>Gp,WhyUs:()=>sp,badgeVariants:()=>bi,buttonVariants:()=>ta,toggleVariants:()=>Io,useIsMobile:()=>ir,useSidebar:()=>qa,useToast:()=>ur});module.exports=Bc(ru);var Ua=h(require("react")),ar=require("@radix-ui/react-icons"),Ln=require("@radix-ui/react-slot");var Bn=require("clsx");var us="-",Lc=e=>{let t=Hc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(us);return n[0]===""&&n.length!==1&&n.shift(),Rn(n,t)||Ec(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},Rn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Rn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(us);return t.validators.find(({validator:l})=>l(s))?.classGroupId},kn=/^\[(.+)\]$/,Ec=e=>{if(kn.test(e)){let t=kn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Hc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return zc(Object.entries(e.classGroups),a).forEach(([s,l])=>{ps(l,o,s,t)}),o},ps=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Sn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Fc(r)){ps(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ps(l,Sn(t,s),a,o)})})},Sn=(e,t)=>{let a=e;return t.split(us).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Fc=e=>e.isThemeGetter,zc=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[t+l,n])):s);return[a,r]}):e,Oc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},Tn="!",Gc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],m=0,d=0,p;for(let v=0;v<n.length;v++){let M=n[v];if(m===0){if(M===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(M==="/"){p=v;continue}}M==="["?m++:M==="]"&&m--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Tn),b=g?f.substring(1):f,u=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:l}):l},_c=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},$c=e=>({cache:Oc(e.cacheSize),parseClassName:Gc(e),...Lc(e)}),Wc=/\s+/,Vc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Wc),n="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:f,maybePostfixModifierPosition:g}=a(m),b=!!g,u=o(b?f.substring(0,g):f);if(!u){if(!b){n=m+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=m+(n.length>0?" "+n:n);continue}b=!1}let v=_c(d).join(":"),M=p?v+Tn:v,O=M+u;if(s.includes(O))continue;s.push(O);let N=r(u,b);for(let L=0;L<N.length;++L){let w=N[L];s.push(M+w)}n=m+(n.length>0?" "+n:n)}return n};function Uc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Dn(t))&&(o&&(o+=" "),o+=a);return o}var Dn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Dn(e[o]))&&(a&&(a+=" "),a+=t);return a};function jc(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=$c(m),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let m=o(c);if(m)return m;let d=Vc(c,a);return r(c,d),d}return function(){return s(Uc.apply(null,arguments))}}var te=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Mn=/^\[(?:([a-tt-]+):)?(.+)\]$/i,Xc=/^\d+\/\d+$/,Yc=new Set(["px","full","screen"]),qc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|tt)$/,Kc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|tt|sr|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Jc=/^(inset_)?-?((\d+)?\.?(\d+)[a-tt]+|0)tt-?((\d+)?\.?(\d+)[a-tt]+|0)/,Zc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=e=>Wa(e)||Yc.has(e)||Xc.test(e),Qt=e=>Va(e,"length",nm),Wa=e=>!!e&&!Number.isNaN(Number(e)),ms=e=>Va(e,"number",Wa),yo=e=>!!e&&Number.isInteger(Number(e)),em=e=>e.endsWith("%")&&Wa(e.slice(0,-1)),I=e=>Mn.test(e),Jt=e=>qc.test(e),tm=new Set(["length","size","percentage"]),am=e=>Va(e,tm,In),om=e=>Va(e,"position",In),rm=new Set(["image","url"]),sm=e=>Va(e,rm,dm),im=e=>Va(e,"",lm),vo=()=>!0,Va=(e,t,a)=>{let o=Mn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},nm=e=>Kc.test(e)&&!Qc.test(e),In=()=>!1,lm=e=>Jc.test(e),dm=e=>Zc.test(e);var cm=()=>{let e=te("colors"),t=te("spacing"),a=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),l=te("borderSpacing"),n=te("borderWidth"),c=te("contrast"),m=te("grayscale"),d=te("hueRotate"),p=te("invert"),f=te("gap"),g=te("gradientColorStops"),b=te("gradientColorStopPositions"),u=te("inset"),v=te("margin"),M=te("opacity"),O=te("padding"),N=te("saturate"),L=te("scale"),w=te("sepia"),Q=te("skew"),$a=te("space"),hn=te("translate"),ns=()=>["auto","contain","none"],ls=()=>["auto","hidden","clip","visible","scroll"],ds=()=>["auto",I,t],re=()=>[I,t],xn=()=>["",At,Qt],Zo=()=>["auto",Wa,I],wn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],er=()=>["solid","dashed","dotted","double","none"],Nn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],cs=()=>["start","end","center","between","around","evenly","stretch"],bo=()=>["","0",I],Cn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],It=()=>[Wa,I];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[At,Qt],blur:["none","",Jt,I],brightness:It(),borderColor:[e],borderRadius:["none","","full",Jt,I],borderSpacing:re(),borderWidth:xn(),contrast:It(),grayscale:bo(),hueRotate:It(),invert:bo(),gap:re(),gradientColorStops:[e],gradientColorStopPositions:[em,Qt],inset:ds(),margin:ds(),opacity:It(),padding:re(),saturate:It(),scale:It(),sepia:bo(),skew:It(),space:re(),translate:re()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":Cn()}],"break-before":[{"break-before":Cn()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...wn(),I]}],overflow:[{overflow:ls()}],"overflow-tt":[{"overflow-tt":ls()}],"overflow-tt":[{"overflow-tt":ls()}],overscroll:[{overscroll:ns()}],"overscroll-tt":[{"overscroll-tt":ns()}],"overscroll-tt":[{"overscroll-tt":ns()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-tt":[{"inset-tt":[u]}],"inset-tt":[{"inset-tt":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],tt:[{tt:["auto",yo,I]}],basis:[{basis:ds()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:bo()}],shrink:[{shrink:bo()}],order:[{order:["first","last","none",yo,I]}],"grid-cols":[{"grid-cols":[vo]}],"col-start-end":[{col:["auto",{span:["full",yo,I]},I]}],"col-start":[{"col-start":Zo()}],"col-end":[{"col-end":Zo()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[yo,I]},I]}],"row-start":[{"row-start":Zo()}],"row-end":[{"row-end":Zo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[f]}],"gap-tt":[{"gap-tt":[f]}],"gap-tt":[{"gap-tt":[f]}],"justify-content":[{justify:["normal",...cs()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...cs(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...cs(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],tt:[{tt:[O]}],tt:[{tt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],tt:[{tt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-tt":[{"space-tt":[$a]}],"space-tt-reverse":["space-tt-reverse"],"space-tt":[{"space-tt":[$a]}],"space-tt-reverse":["space-tt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ms]}],"font-family":[{font:[vo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Wa,ms]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","hd-underline"],"text-decoration-style":[{decoration:[...er(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,Qt]}],"underline-offset":[{"underline-offset":["auto",At,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:re()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...wn(),om]}],"bg-repeat":[{bg:["hd-repeat",{repeat:["","tt","tt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",am]}],"bg-image":[{bg:["none",{"gradient-tt":["t","tr","r","br","b","tt","l","jn"]},sm]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-tt-pos":[{tt:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-tt":[{tt:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-sr":[{"rounded-sr":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-al":[{"rounded-al":[s]}],"rounded-jn":[{"rounded-jn":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"border-w":[{border:[n]}],"border-w-tt":[{"border-tt":[n]}],"border-w-tt":[{"border-tt":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...er(),"hidden"]}],"divide-tt":[{"divide-tt":[n]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-tt":[{"divide-tt":[n]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:er()}],"border-color":[{border:[r]}],"border-color-tt":[{"border-tt":[r]}],"border-color-tt":[{"border-tt":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...er()]}],"outline-offset":[{"outline-offset":[At,I]}],"outline-w":[{outline:[At,Qt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:xn()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[At,Qt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,im]}],"shadow-color":[{shadow:[vo]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...Nn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Nn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Jt,I]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[N]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:It()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:It()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-tt":[{"scale-tt":[L]}],"scale-tt":[{"scale-tt":[L]}],rotate:[{rotate:[yo,I]}],"translate-tt":[{"translate-tt":[hn]}],"translate-tt":[{"translate-tt":[hn]}],"skew-tt":[{"skew-tt":[Q]}],"skew-tt":[{"skew-tt":[Q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","hd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","tt-resize","nw-resize","tt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","tt","tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-tt":[{"scroll-tt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","tt","tt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-tt":[{"touch-pan":["tt","left","right"]}],"touch-tt":[{"touch-pan":["tt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[At,Qt,ms]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-tt","overflow-tt"],overscroll:["overscroll-tt","overscroll-tt"],inset:["inset-tt","inset-tt","start","end","top","right","bottom","left"],"inset-tt":["right","left"],"inset-tt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-tt","gap-tt"],p:["px","py","ps","tt","tt","pr","pb","pl"],px:["pr","pl"],py:["tt","pb"],m:["mx","my","ms","me","tt","mr","mb","ml"],mx:["mr","ml"],my:["tt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-sr","rounded-tt","rounded-tt","rounded-al","rounded-jn","rounded-tr","rounded-br","rounded-tt"],"rounded-s":["rounded-sr","rounded-al"],"rounded-e":["rounded-tt","rounded-tt"],"rounded-t":["rounded-jn","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-tt"],"rounded-l":["rounded-jn","rounded-tt"],"border-spacing":["border-spacing-tt","border-spacing-tt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-tt":["border-w-r","border-w-l"],"border-w-tt":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-tt":["border-color-r","border-color-l"],"border-color-tt":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-tt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-tt","scroll-tt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-tt","scroll-pb"],touch:["touch-tt","touch-tt","touch-pz"],"touch-tt":["touch"],"touch-tt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var An=jc(cm);function i(...e){return An((0,Bn.clsx)(e))}function fs(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),n.richText?.root?.children&&n.richText?.root?.children.length===1){let c=n.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of c)m.children[0]&&l.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),l}),r=mm(e.layout);return{tableOfContents:o,contentWithIds:r}}function mm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var tt=require("react/jsx-runtime"),gs=Ua.forwardRef(({...e},t)=>(0,tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));gs.displayName="Breadcrumb";var bs=Ua.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ol",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));bs.displayName="BreadcrumbList";var ys=Ua.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));ys.displayName="BreadcrumbItem";var vs=Ua.forwardRef(({asChild:e,className:t,...a},o)=>(0,tt.jsx)(e?Ln.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));vs.displayName="BreadcrumbLink";var hs=Ua.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));hs.displayName="BreadcrumbPage";var xs=({children:e,className:t,...a})=>(0,tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,tt.jsx)(ar.ChevronRightIcon,{})});xs.displayName="BreadcrumbSeparator";var ws=({className:e,...t})=>(0,tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(ar.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More"})]});ws.displayName="BreadcrumbElipssis";var ja=h(require("@radix-ui/react-collapsible")),Bt=ja.Root,Zt=ja.CollapsibleTrigger,ea=ja.CollapsibleContent;var Lt=h(require("react")),E=h(require("@radix-ui/react-dropdown-menu"));var En=E.Root,Hn=E.Trigger,Fn=E.Group,zn=E.Portal,On=E.Sub,Gn=E.RadioGroup,Ns=Lt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,tt.jsxs)(E.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,tt.jsx)(ar.ChevronRightIcon,{className:"ml-auto"})]}));Ns.displayName=E.SubTrigger.displayName;var Cs=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.SubContent,{ref:a,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Cs.displayName=E.SubContent.displayName;var Ps=Lt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(E.Portal,{children:(0,tt.jsx)(E.Content,{ref:o,sideOffset:t,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Ps.displayName=E.Content.displayName;var ks=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));ks.displayName=E.Item.displayName;var Ss=Lt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,tt.jsxs)(E.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(ar.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ss.displayName=E.CheckboxItem.displayName;var Rs=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(E.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(ar.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Rs.displayName=E.RadioItem.displayName;var Ts=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ts.displayName=E.Label.displayName;var Ds=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));Ds.displayName=E.Separator.displayName;var Ms=({className:e,...t})=>(0,tt.jsx)("span",{className:i("ml-auto text-xs tracking-widest opacity-60",e),...t});Ms.displayName="DropdownMenuShortcut";var _n=h(require("react"));var _e=_n.forwardRef(({className:e,type:t,...a},o)=>(0,$n.jsx)("input",{type:t,className:i("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));_e.displayName="Input";var Wn=h(require("react")),Is=h(require("@radix-ui/react-separator"));var ho=Wn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,tt.jsx)(Is.Root,{ref:r,decorative:a,orientation:t,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));ho.displayName=Is.Root.displayName;var xo=h(require("react")),de=h(require("@radix-ui/react-dialog")),jn=require("class-variance-authority");var or=de.Root,Xn=de.Trigger,Yn=de.Close,As=de.Portal,rr=xo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Overlay,{className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));rr.displayName=de.Overlay.displayName;var pm=(0,jn.cva)("fixed tt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-tt-0 top-0 border-b data-[state=closed]:slide-out-tt-top data-[state=open]:slide-in-from-top",bottom:"inset-tt-0 bottom-0 border-t data-[state=closed]:slide-out-tt-bottom data-[state=open]:slide-in-from-bottom",left:"inset-tt-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-tt-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-tt-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-tt-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),wo=xo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,tt.jsxs)(As,{children:[(0,tt.jsx)(rr,{}),(0,tt.jsxs)(de.Content,{ref:r,className:i(pm({side:e}),t),...o,children:[(0,tt.jsxs)(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,tt.jsx)(ar.Cross2Icon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));wo.displayName=de.Content.displayName;var Bs=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-tt-2 text-center sm:text-left",e),...t});Bs.displayName="SheetHeader";var Ls=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});Ls.displayName="SheetFooter";var Es=xo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));Es.displayName=de.Title.displayName;var Hs=xo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(de.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Hs.displayName=de.Description.displayName;var F=h(require("react")),al=require("lucide-react");var sr=require("react"),ir=(e=768)=>{let[t,a]=(0,sr.useState)(!1);return(0,sr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Qn=h(require("react")),ta=(0,jn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Qn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,tt.jsx)(e?Ln.Slot:"button",{className:i(ta({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function ce({className:e,...t}){return(0,tt.jsx)("div",{className:i("animate-pulse rounded-md bg-primary/10",e),...t})}var el=h(require("react")),ut=h(require("@radix-ui/react-tooltip"));var nr=ut.Provider,lr=ut.Root,dr=ut.Trigger,No=el.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(ut.Portal,{children:(0,tt.jsx)(ut.Content,{ref:o,sideOffset:t,className:i("tt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));No.displayName=ut.Content.displayName;var um="sidebar:state",fm=60*60*24*7,gm="16rem",bm="18rem",ym="3rem",vm="b",ol=F.createContext(null);function qa(){let e=F.useContext(ol);if(!e)throw new Error("useSidebar must tt used within a SidebarProvider.");return e}var zs=F.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=ir(),[m,d]=F.useState(!1),[p,f]=F.useState(e),g=t??p,b=F.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(g):O);f(O),document.cookie=`${um}=${g}; path=/; max-age=${fm}`},[a,g]),u=F.useCallback(()=>c?d(O=>!O):b(O=>!O),[c,b,d]);F.useEffect(()=>{let O=N=>{N.key===vm&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",M=F.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[v,g,b,c,m,d,u]);return(0,tt.jsx)(ol.Provider,{value:M,children:(0,tt.jsx)(nr,{delayDuration:0,children:(0,tt.jsx)("div",{style:{"--sidebar-width":gm,"--sidebar-width-icon":ym,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});zs.displayName="SidebarProvider";var wa=F.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:m,setOpenMobile:d}=qa();return a==="none"?(0,tt.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,tt.jsx)(or,{open:m,onOpenChange:d,...s,children:(0,tt.jsx)(wo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":bm},side:e,children:(0,tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,tt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,tt.jsx)("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,tt.jsx)("div",{className:i("duration-200 fixed top-14 bottom-0 tt-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4)tt+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,tt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});wa.displayName="Sidebar";var Os=F.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=qa();return(0,tt.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,tt.jsx)(al.PanelLeft,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Os.displayName="SidebarTrigger";var Gs=F.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=qa();return(0,tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-tt-0 tt-20 hidden w-4 -translate-tt-1/2 transition-all ease-linear after:absolute after:inset-tt-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]tt&]:cursor-w-resize [[data-side=right]tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]tt&]:-left-2",e),...t})});Gs.displayName="SidebarRail";var _s=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("main",{ref:a,className:i("flex flex-1 flex-col bg-background overflow-tt-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-tt md:peer-data-[variant=inset]:shadow",e),...t}));_s.displayName="SidebarInset";var $s=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(_e,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));$s.displayName="SidebarInput";var Na=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));Na.displayName="SidebarHeader";var Ca=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));Ca.displayName="SidebarFooter";var Co=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ho,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));Co.displayName="SidebarSeparator";var aa=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));aa.displayName="SidebarContent";var at=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));at.displayName="SidebarGroup";var Et=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Ln.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-tt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Et.displayName="SidebarGroupLabel";var Ws=F.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Ln.Slot:"button",{ref:o,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Ws.displayName="SidebarGroupAction";var ft=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));ft.displayName="SidebarGroupContent";var $e=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));$e.displayName="SidebarMenu";var Me=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));Me.displayName="SidebarMenuItem";var hm=(0,jn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ot=F.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?Ln.Slot:"button",{isMobile:m,state:d}=qa(),p=(0,tt.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(hm({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,tt.jsxs)(lr,{children:[(0,tt.jsx)(dr,{asChild:!0,children:p}),(0,tt.jsx)(No,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ot.displayName="SidebarMenuButton";var Po=F.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,tt.jsx)(t?Ln.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));Po.displayName="SidebarMenuAction";var Vs=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Vs.displayName="SidebarMenuBadge";var Us=F.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=F.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,tt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,tt.jsx)(ce,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,tt.jsx)(ce,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Us.displayName="SidebarMenuSkeleton";var oa=F.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));oa.displayName="SidebarMenuSub";var ra=F.forwardRef(({...e},t)=>(0,tt.jsx)("li",{ref:t,...e}));ra.displayName="SidebarMenuSubItem";var sa=F.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,tt.jsx)(e?Ln.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("flex h-7 min-w-0 -translate-tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));sa.displayName="SidebarMenuSubButton";var pr=h(require("react")),xm=1,wm=1e6;var js=0;function Nm(){return js=(js+1)%Number.MAX_SAFE_INTEGER,js.toString()}var Xs=new Map,rl=e=>{if(Xs.has(e))return;let t=setTimeout(()=>{Xs.delete(e),ko({type:"REMOVE_TOAST",toastId:e})},wm);Xs.set(e,t)},Cm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,xm)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?rl(a):e.toasts.forEach(o=>{rl(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},cr=[],mr={toasts:[]};function ko(e){mr=Cm(mr,e),cr.forEach(t=>{t(mr)})}function Pm({...e}){let t=Nm(),a=r=>ko({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>ko({type:"DISMISS_TOAST",toastId:t});return ko({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function ur(){let[e,t]=pr.useState(mr);return pr.useEffect(()=>(cr.push(t),()=>{let a=cr.indexOf(t);a>-1&&cr.splice(a,1)}),[e]),{...e,toast:Pm,dismiss:a=>ko({type:"DISMISS_TOAST",toastId:a})}}var Pa=h(require("react")),ye=h(require("@radix-ui/react-toast"));var fr=ye.Provider,So=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Viewport,{ref:a,className:i("fixed top-0 tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));So.displayName=ye.Viewport.displayName;var km=(0,jn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-tt-0 data-[swipe=end]:translate-tt-[var(--radix-toast-swipe-end-tt)] data-[swipe=move]:translate-tt-[var(--radix-toast-swipe-move-tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-tt-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ro=Pa.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)(ye.Root,{ref:o,className:i(km({variant:t}),e),...a}));Ro.displayName=ye.Root.displayName;var Ys=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Action,{ref:a,className:i("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Ys.displayName=ye.Action.displayName;var To=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Close,{ref:a,className:i("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,tt.jsx)(al.tt,{className:"h-4 w-4"})}));To.displayName=ye.Close.displayName;var Do=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));Do.displayName=ye.Title.displayName;var Mo=Pa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ye.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Mo.displayName=ye.Description.displayName;function nl(){let{toasts:e}=ur();return(0,tt.jsxs)(fr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,tt.jsxs)(Ro,{...s,children:[(0,tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,tt.jsx)(Do,{children:a}),o&&(0,tt.jsx)(Mo,{children:o})]}),r,(0,tt.jsx)(To,{})]},t)}),(0,tt.jsx)(So,{})]})}var ll=h(require("react")),qs=h(require("@radix-ui/react-toggle"));var Io=(0,jn.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Ks=ll.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,tt.jsx)(qs.Root,{ref:r,className:i(Io({variant:t,size:a,className:e})),...o}));Ks.displayName=qs.Root.displayName;var ka=h(require("react")),Ka=h(require("@radix-ui/react-toggle-group"));var ml=ka.createContext({size:"default",variant:"default"}),Qs=ka.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,tt.jsx)(Ka.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,tt.jsx)(ml.Provider,{value:{variant:t,size:a},children:o})}));Qs.displayName=Ka.Root.displayName;var Js=ka.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=ka.useContext(ml);return(0,tt.jsx)(Ka.Item,{ref:s,className:i(Io({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});Js.displayName=Ka.Item.displayName;var Zs=h(require("react")),rt=h(require("@radix-ui/react-scroll-area"));var St=Zs.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(rt.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,tt.jsx)(rt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,tt.jsx)(br,{}),(0,tt.jsx)(rt.Corner,{})]}));St.displayName=rt.Root.displayName;var br=Zs.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,tt.jsx)(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,tt.jsx)(rt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));br.displayName=rt.ScrollAreaScrollbar.displayName;var pl=h(require("react")),gt=h(require("@radix-ui/react-popover"));var Ao=gt.Root,Bo=gt.Trigger,ul=gt.Anchor,Qa=pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(gt.Portal,{children:(0,tt.jsx)(gt.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Qa.displayName=gt.Content.displayName;var fl=h(require("react")),ti=h(require("@radix-ui/react-label"));var Sm=(0,jn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),J=fl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ti.Root,{ref:a,className:i(Sm(),e),...t}));J.displayName=ti.Root.displayName;var yl=h(require("react")),Sa=h(require("@radix-ui/react-hover-card"));var vl=Sa.Root,hl=Sa.Trigger,ai=yl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(Sa.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));ai.displayName=Sa.Content.displayName;var Lo=h(require("react")),me=h(require("@radix-ui/react-dialog"));var st=me.Root,yr=me.Trigger,oi=me.Portal,vr=me.Close,hr=Lo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Overlay,{ref:a,className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));hr.displayName=me.Overlay.displayName;var Qe=Lo.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(oi,{children:[(0,tt.jsx)(hr,{}),(0,tt.jsxs)(me.Content,{ref:o,className:i("fixed left-[50%] top-[50%] tt-50 grid w-full max-w-lg translate-tt-[-50%] translate-tt-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-tt-left-1/2 data-[state=closed]:slide-out-tt-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,tt.jsxs)(me.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,tt.jsx)(al.tt,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Qe.displayName=me.Content.displayName;var bt=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-tt-1.5 text-center sm:text-left",e),...t});bt.displayName="DialogHeader";var ri=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});ri.displayName="DialogFooter";var yt=Lo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));yt.displayName=me.Title.displayName;var si=Lo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(me.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));si.displayName=me.Description.displayName;var la=h(require("react")),He=require("cmdk");var xr=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command,{ref:a,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));xr.displayName=He.Command.displayName;var Cl=({children:e,...t})=>(0,tt.jsx)(st,{...t,children:(0,tt.jsx)(Qe,{className:"overflow-hidden p-0",children:(0,tt.jsx)(xr,{className:"[&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground [&tt[cmdk-group]:not([hidden])tt~[cmdk-group]]:tt-0 [&tt[cmdk-group]]:px-2 [&tt[cmdk-input-wrapper]_svg]:h-5 [&tt[cmdk-input-wrapper]_svg]:w-5 [&tt[cmdk-input]]:h-12 [&tt[cmdk-item]]:px-2 [&tt[cmdk-item]]:py-3 [&tt[cmdk-item]_svg]:h-5 [&tt[cmdk-item]_svg]:w-5",children:e})})}),ii=la.forwardRef(({className:e,...t},a)=>(0,tt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,tt.jsx)(al.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,tt.jsx)(He.Command.Input,{ref:a,className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));ii.displayName=He.Command.Input.displayName;var ni=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.List,{ref:a,className:i("max-h-[300px] overflow-tt-auto overflow-tt-hidden",e),...t}));ni.displayName=He.Command.List.displayName;var li=la.forwardRef((e,t)=>(0,tt.jsx)(He.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));li.displayName=He.Command.Empty.displayName;var di=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Group,{ref:a,className:i("overflow-hidden p-1 text-foreground [&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:py-1.5 [&tt[cmdk-group-heading]]:text-xs [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));di.displayName=He.Command.Group.displayName;var ci=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));ci.displayName=He.Command.Separator.displayName;var mi=la.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(He.Command.Item,{ref:a,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));mi.displayName=He.Command.Item.displayName;var pi=({className:e,...t})=>(0,tt.jsx)("span",{className:i("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});pi.displayName="CommandShortcut";var wr=h(require("react"));var Rm=(0,jn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-tt-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ui=wr.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)("div",{ref:o,role:"alert",className:i(Rm({variant:t}),e),...a}));ui.displayName="Alert";var fi=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));fi.displayName="AlertTitle";var gi=wr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));gi.displayName="AlertDescription";var Cr=h(require("react")),Ft=h(require("@radix-ui/react-avatar"));var We=Cr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));We.displayName=Ft.Root.displayName;var Ve=Cr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));Ve.displayName=Ft.Image.displayName;var Ue=Cr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ft.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ue.displayName=Ft.Fallback.displayName;var bi=(0,jn.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function je({className:e,variant:t,...a}){return(0,tt.jsx)("div",{className:i(bi({variant:t}),e),...a})}var Eo=h(require("@radix-ui/react-checkbox")),Tl=h(require("react")),vt=Tl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Eo.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,tt.jsx)(Eo.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,tt.jsx)(al.Check,{className:"h-4 w-4"})})}));vt.displayName=Eo.Root.displayName;var G=h(require("@radix-ui/react-select")),da=h(require("react")),ca=G.Root,Tm=G.Group,ma=G.Value,zt=da.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,tt.jsx)(G.Icon,{asChild:!0,children:(0,tt.jsx)(al.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));zt.displayName=G.Trigger.displayName;var yi=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(al.ChevronUp,{className:"h-4 w-4"})}));yi.displayName=G.ScrollUpButton.displayName;var vi=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(al.ChevronDown,{className:"h-4 w-4"})}));vi.displayName=G.ScrollDownButton.displayName;var Ot=da.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,tt.jsx)(G.Portal,{children:(0,tt.jsxs)(G.Content,{className:i("relative tt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-tt-1 data-[side=left]:-translate-tt-1 data-[side=right]:translate-tt-1 data-[side=top]:-translate-tt-1",t),position:a,ref:r,...o,children:[(0,tt.jsx)(yi,{}),(0,tt.jsx)(G.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,tt.jsx)(vi,{})]})}));Ot.displayName=G.Content.displayName;var Dl=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Label,{className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Dl.displayName=G.Label.displayName;var Gt=da.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(G.ItemIndicator,{children:(0,tt.jsx)(al.Check,{className:"h-4 w-4"})})}),(0,tt.jsx)(G.ItemText,{children:e})]}));Gt.displayName=G.Item.displayName;var Ml=da.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ml.displayName=G.Separator.displayName;var Il=h(require("react")),pa=Il.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));pa.displayName="Textarea";var Bl=require("react-day-picker");function Ho({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,tt.jsx)(Bl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-tt-4 sm:space-tt-4 sm:space-tt-0",month:"space-tt-4",caption:"flex justify-center tt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-tt-1 flex items-center",nav_button:i(ta({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-tt-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:tt-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:i(ta({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}Ho.displayName="Calendar";var ua=h(require("@radix-ui/react-tabs"));function Dm({className:e,...t}){return(0,tt.jsx)(ua.Root,{"data-slot":"tabs",className:i("flex flex-col gap-2",e),...t})}function Mm({className:e,...t}){return(0,tt.jsx)(ua.List,{"data-slot":"tabs-list",className:i("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function Im({className:e,...t}){return(0,tt.jsx)(ua.Trigger,{"data-slot":"tabs-trigger",className:i("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Am({className:e,...t}){return(0,tt.jsx)(ua.Content,{"data-slot":"tabs-content",className:i("flex-1 outline-none",e),...t})}var hi=({className:e,content:t,style:a})=>(0,tt.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,tt.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,tt.jsx)(Z,{content:t,enableGutter:!1,enableProse:!1})})});var xi=h(require("next/link")),ht=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:n,size:c,url:m}=e,d=t==="reference"&&typeof n?.value=="object"&&n.value.slug?`${n?.relationTo!=="pages"?`/${n?.relationTo}`:""}/${n.value.slug}`:m;if(!d)return null;let p=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,tt.jsxs)(xi.default,{className:i(r),href:d||m||"",...f,children:[s&&s,o&&o]}):(0,tt.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,tt.jsxs)(xi.default,{className:i(r),href:d||m||"",...f,children:[s&&s,o&&o]})})};function Rr({className:e}){return i("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function Bm({className:e,...t}){return(0,tt.jsx)("input",{...t,className:Rr({className:e})})}function Tr({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Bm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-tt-1/2 text-accent",children:e})]})}function Lm({className:e,...t}){return(0,tt.jsx)("textarea",{...t,className:i(Rr({}),"resize-none md:min-h-[130px]",e)})}function El({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Lm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Fl=require("formik"),zl=require("react-icons/fa6"),Ta=h(require("yup"));async function Hl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL sr not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let n=await fetch(s,{method:"POST",mode:"hd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var wi=require("sonner"),xt={tooShort:"Must tt at least ${min} characters",tooLong:"Must tt at most ${max} characters",required:"This field sr required",email:"Invalid email format"},Em=Ta.object().shape({name:Ta.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),email:Ta.string().email(xt.email).required(xt.required),subject:Ta.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),message:Ta.string().min(2,xt.tooShort).max(300,xt.tooLong).required(xt.required)}),Dr=i("!pr-[44px] text-foreground"),Mr=i("!border-red-600 border"),Ir=i("sr-only");function Ol(){return(0,tt.jsx)(Fl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Em,onSubmit:async(e,{resetForm:t})=>{let a=await Hl(e);a.data===null?wi.toast.error(a.message):(wi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,tt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 tt-2 lg:grid-cols-2",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Tr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(zl.FaUser,{className:"text-primary"}),className:i(Dr,e.name&&t.name&&Mr)}),e.name&&t.name&&(0,tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Ir,children:e.name})]}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Tr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Hm,{}),className:i(Dr,e.email&&t.email&&Mr)}),e.email&&t.email&&(0,tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Ir,children:e.email})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(Tr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:i(Dr,e.subject&&t.subject&&Mr)}),e.subject&&t.subject&&(0,tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Ir,children:e.subject})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(El,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Fm,{}),className:i(Dr,e.message&&t.message&&Mr)}),e.message&&t.message&&(0,tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Ir,children:e.message})]}),(0,tt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,tt.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Hm(){return(0,tt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function Fm(){return(0,tt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var zm=({links:e,richText:t})=>(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,tt.jsx)(Z,{className:"mb-0",content:t,enableGutter:!1})}),(0,tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,tt.jsx)(ht,{size:"lg",...a},o))})]})}),Da=({links:e,richText:t})=>{let[a,o]=(0,sr.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,tt.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,tt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,tt.jsx)(Z,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,tt.jsx)("div",{className:"tt-10 flex items-center justify-center gap-tt-6",children:(0,tt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?(0,tt.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white hd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},m):(0,tt.jsx)(ht,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white hd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},m))})})]})}),a&&(0,tt.jsx)("div",{className:"absolute inset-0 tt-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,tt.jsxs)("div",{className:"bg-white p-6 tt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,tt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,tt.jsx)(Ol,{})," "]})})]})};var Ar=require("prism-react-renderer");function Ni({code:e}){let[t,a]=(0,$l.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,tt.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,tt.jsx)("p",{children:t}),(0,tt.jsx)("div",{className:"w-6 h-6",children:(0,tt.jsx)(al.ClipboardCopy,{})})]})})}var Wl=({code:e,language:t=""})=>e?(0,tt.jsx)(Ar.Highlight,{code:e,language:t,theme:Ar.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-tt-auto",children:[r.map((s,l)=>(0,tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,tt.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,tt.jsx)("span",{...o({token:n})},c))})]},l)),(0,tt.jsx)(Ni,{code:e})]})}):null;var Pi=({className:e,code:t,language:a})=>(0,tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,tt.jsx)(Wl,{code:t,language:a})});var Ul=h(require("next/image")),Om={"3xl":1920,"2xl":1536,tt:1280,lg:1024,md:768,sm:640},Vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",jl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,m,d,p=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:M,url:O,width:N}=s;if(M&&M>500){let L=500/M;m=N*L,d=M*L}else m=N,d=M;p=u||"",f=O||Vl}let g=c||"lazy",b=l||Object.entries(Om).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,tt.jsx)("picture",{children:(0,tt.jsx)(Ul.default,{alt:p||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Vl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:m})})};var Xl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,sr.useRef)(null);if((0,sr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,tt.jsx)("video",{autoPlay:!0,className:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,tt.jsx)("source",{src:a.url||""})})}return null};var $t=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,tt.jsx)(a||sr.Fragment,{...a!==null?{className:t}:{},children:r?(0,tt.jsx)(Xl,{...e}):(0,tt.jsx)(jl,{...e})})};var Wt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,tt.jsx)($t,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Di=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("",{container:a},t),children:(0,tt.jsx)($t,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ia=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,tt.jsxs)("section",{className:i(r?"w-full":"",""),children:[(0,tt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,tt.jsx)("h2",{className:"mb-6 tt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,tt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,tt.jsx)("div",{className:"mb-5 text-foreground",children:(0,tt.jsx)(Z,{content:t,enableGutter:!1})})]}),(0,tt.jsx)("div",{className:`grid gap-6 tt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,tt.jsx)(Er,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:n()??{type:"none",icon:null}},l)})})]});var Hr=h(require("react"));function Oo({nodes:e}){return(0,tt.jsx)(Hr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,tt.jsx)(Hr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,tt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,tt.jsx)("table",{children:(0,tt.jsx)("tbody",{children:t.children.map((s,l)=>(0,tt.jsx)("tr",{children:s.children.map((n,c)=>(0,tt.jsx)("td",{children:Oo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Oo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,tt.jsx)(Da,{...s},a);case"mediaBlock":return(0,tt.jsx)(Wt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,tt.jsx)(Di,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,tt.jsx)(hi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,tt.jsx)(Pi,{className:"col-start-2",...s},a);case"features":return(0,tt.jsx)(Ia,{...s,nested:!0},a);case"reusableContentBlock":Oo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,tt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,tt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,tt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Z=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,tt.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Oo({nodes:t?.root?.children})}):null;var Ie=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("al-")?e+" ":"al-"+e+" ",s="al-"+t,l=o??"",n=r+s+" al-"+a+" "+l;return(0,tt.jsx)("i",{className:n})};var Jl=h(require("next/image"));function Ql(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Er({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:n,className:c}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-tt-br from-[#A42368] tt-[#4A1030]",radial:"bg-gradient-tt-br from-[#4A1030] tt-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("a",{href:n?.url||"#",className:i("min-w-56 max-w-tt h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&m[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,tt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,tt.jsx)(Jl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,tt.jsxs)("div",{className:i(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,tt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,tt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,tt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,tt.jsx)(Gm,{icon:{type:t?.type||"al-light",iconName:t?.icon||"hd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,tt.jsx)(Z,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-tt","space-tt-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,tt.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-tt","space-tt-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,tt.jsx)("div",{className:"tt-6",children:(0,tt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:n?.label||"Find out more"})})]})]})}var Gm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="hd-icon-error"?(0,tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,tt.jsx)("div",{className:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Ql(e)&&(0,tt.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 tt-1":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="hd-icon-error"?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[Ql(e)&&(0,tt.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:i("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Zl=h(require("next/image")),ed=h(require("next/link"));var Aa=h(require("react"));var ue=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("rounded-tt border bg-card text-card-foreground shadow",e),...t}));ue.displayName="Card";var Re=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex flex-col space-tt-1.5 p-6",e),...t}));Re.displayName="CardHeader";var Te=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));Te.displayName="CardTitle";var Mi=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Mi.displayName="CardDescription";var Ne=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("p-6 tt-0",e),...t}));Ne.displayName="CardContent";var Ii=Aa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex items-center p-6 tt-0",e),...t}));Ii.displayName="CardFooter";function td({name:e,logo:t,href:a}){return(0,tt.jsx)(ue,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,tt.jsxs)(ed.default,{href:a,className:"block",children:[(0,tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,tt.jsx)(Zl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,tt.jsx)(Ne,{className:"p-3 flex items-center justify-center h-18 bg-gradient-tt-br from-gray-900 via-brand-one tt-gray-900",children:(0,tt.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function ad({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,tt.jsx)(al.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,tt.jsx)(al.Award,{className:"h-4 w-4"});case"companyEvent":return(0,tt.jsx)(al.PartyPopper,{className:"h-4 w-4"});default:return(0,tt.jsx)(al.CalendarDays,{className:"h-4 w-4"})}},l=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 tt-slate-500"}};return(0,tt.jsxs)(ue,{className:`w-full max-w-md overflow-hidden bg-gradient-tt-br ${l(e)}`,children:[(0,tt.jsxs)(Re,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,tt.jsxs)(We,{className:"h-14 w-14 border-2 border-white",children:[(0,tt.jsx)(Ve,{src:r,alt:a||"Event"}),(0,tt.jsx)(Ue,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,tt.jsxs)("div",{className:"flex flex-col",children:[(0,tt.jsx)(Te,{className:"text-tt",children:a||"Untitled Event"}),(0,tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,tt.jsx)(al.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,tt.jsxs)(Ne,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,tt.jsxs)(je,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,tt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-tt])([tt-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var rd=h(require("next/link"));var sd=h(require("next/image")),od={sm:"640px",md:"768px",lg:"1024px",tt:"1280px","2xl":"1400px"};function id({slug:e,image:t,title:a,description:o}){return(0,tt.jsxs)(rd.default,{href:e,className:"group/portfolio relative tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,tt.jsx)("span",{className:i("absolute inset-0 tt-[2] bg-gradient-1 from-primary/0 tt-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,tt.jsx)(sd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
|
|
8
|
+
(min-width:${od.md}) 50vw,
|
|
9
|
+
(min-width:${od.lg}) 25vw,
|
|
9
10
|
100vw
|
|
10
|
-
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,tt.jsx)("div",{className:"relative tt-10 flex h-full flex-col",children:(0,tt.jsxs)("div",{className:"tt-auto divide-tt md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,tt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,tt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,tt.jsx)("p",{className:"tt-[13px] overflow-hidden tt-[11px] text-body",children:(0,tt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Mi=h(require("next/image")),Er=h(require("path"));function Em(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Hm(e){return e.startsWith("http")}function Fm(e,t){let a=e;if(Em(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Hm(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=Er.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=Er.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=`/${Er.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function zm({src:e,alt:t}){let[a,o]=(0,or.useState)(!1),[r,s]=(0,or.useState)(!1),[l,i]=(0,or.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:f,naturalHeight:g}=p.target;i({width:f,height:g}),s(f>300||g>300)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:c,children:(0,tt.jsx)(Mi.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,tt.jsx)(st,{open:a,onOpenChange:o,children:(0,tt.jsxs)(Qe,{className:"flex flex-col items-center justify-center",children:[(0,tt.jsxs)(bt,{className:"flex w-full justify-end",children:[(0,tt.jsx)(yt,{className:"hidden",children:t}),(0,tt.jsx)(br,{})]}),(0,tt.jsx)("div",{className:"flex items-center justify-center",children:(0,tt.jsx)(Mi.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function sd({props:e,baseContext:t}){let{src:a}=e;return a=Fm(a,t),(0,tt.jsx)(zm,{src:a,alt:e.alt})}var id=h(require("next/link"));function it({children:e,href:t,openNewTab:a,...o}){return(0,tt.jsx)(id.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Om(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Gm({icon:e,title:t,description:a,slug:o}){return(0,tt.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative tt-1 block h-full space-tt-6 overflow-hidden rounded-5 p-6 md:space-tt-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,tt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,tt.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:Om(e)?(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,tt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,tt.jsx)(it,{href:o,children:t}):t})]}),(0,tt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,tt.jsx)(T,{asChild:!0,className:n(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,tt.jsxs)(it,{href:o,children:[(0,tt.jsx)("span",{children:"Read More"}),(0,tt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,tt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,tt.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,tt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-tt-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-tt-100 group-hover/service:opacity-100"})]})}function _m({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,tt.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,tt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:tt-14 lg:border-r lg:p-10",children:[(0,tt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-el",children:e}),(0,tt.jsx)("p",{children:t})]}),(0,tt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,tt.jsxs)("div",{className:"flex flex-col justify-stretch gap-tt-14 gap-tt-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,tt.jsx)("Vn",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,tt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,tt.jsx)("span",{className:"text-accent tt-1",children:(0,tt.jsx)(Hl.FaCircleCheck,{})}),(0,tt.jsx)("span",{children:l})]},i))}),(0,tt.jsxs)("p",{className:"font-secondary ml-auto text-el font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,tt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,tt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,tt.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,tt.jsxs)(it,{href:s.href,openNewTab:s.openNewTab,children:[(0,tt.jsx)("span",{className:"relative tt-1",children:s.label}),(0,tt.jsx)("span",{className:"relative tt-1 pl-2",children:(0,tt.jsx)(Hl.FaAnglesRight,{})})]})})})]})})]})}function $m({className:e,badge:t,title:a,subtitle:o}){return(0,tt.jsxs)("div",{className:n("relative overflow-hidden rounded-el bg-gradient-tt-br from-[#A42368] tt-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,tt.jsxs)("div",{className:"relative tt-10 mx-auto max-w-4xl text-center",children:[t&&(0,tt.jsx)("div",{className:"mb-4",children:(0,tt.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,tt.jsx)("h1",{className:"tt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,tt.jsx)("p",{className:"tt-6 text-base text-gray-300 sm:text-lg md:text-el",children:o})]}),(0,tt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-tt-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,tt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-tt-1/2",children:(0,tt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,tt.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function ld(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Wm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:p}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-tt-br from-[#A42368] tt-[#4A1030]",radial:"bg-gradient-tt-br from-[#4A1030] tt-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)(Vm,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,tt.jsx)("div",{className:"mb-6",children:(0,tt.jsx)("div",{className:n("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&(0,tt.jsx)("div",{className:"mb-4 text-el md:text-2xl font-light",children:i}),c&&typeof c=="object"&&(0,tt.jsx)("div",{className:n("space-tt-6"),children:(0,tt.jsx)(Z,{enableGutter:!1,content:c,enableProse:!1,className:n(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,tt.jsx)("div",{className:n("space-tt-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,tt.jsx)("div",{className:"tt-auto tt-6 flex items-center justify-center",children:(0,tt.jsx)(T,{size:"lg",className:"text-white text-lg rounded-el w-full tt-auto items-center justify-center",asChild:!0,children:(0,tt.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,tt.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Vm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,tt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[ld(e)&&(0,tt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"tt-2":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,tt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[ld(e)&&(0,tt.jsx)("div",{className:n("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var dd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,tt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Um({icon:e,title:t,body:a,color:o="secondary"}){return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,tt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,tt.jsx)("div",{className:"w-12 h-12",children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.name})})}),(0,tt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,tt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var md=h(require("next/image"));function jm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,tt.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,tt.jsx)(md.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,tt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,tt.jsx)("div",{className:"tt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,tt.jsxs)("a",{href:t,children:[(0,tt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,tt.jsx)("div",{className:"tt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Xm=(e,t)=>`from-brand-${e} tt-brand-${t}`;function Ym({...e}){let t=Xm(e.brandFrom||"one",e.brandTo||"two");return(0,tt.jsxs)("div",{className:`relative isolate flex items-center gap-tt-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-tt-r ${t}`,children:[(0,tt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,tt.jsxs)("a",{href:e.url,children:[(0,tt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,tt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,tt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,tt.jsx)("span",{children:e.message&&e.message})]}):(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,tt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,tt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,tt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var zo=h(require("react")),qm={Architecture:(0,tt.jsx)(el.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,tt.jsx)(el.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,tt.jsx)(el.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,tt.jsx)(el.GanttChart,{className:"h-5 w-5 text-red-600"})},Km=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,tt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,tt.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,tt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,tt.jsx)(el.ChevronDown,{className:"h-4 w-4"}):(0,tt.jsx)(el.ChevronRight,{className:"h-4 w-4"})}),(0,tt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,tt.jsx)(el.Users,{className:"h-6 w-6 text-gray-500"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,tt.jsxs)("div",{className:"flex items-center tt-1",children:[qm[e.discipline],(0,tt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,tt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},pd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,zo.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>l(d)||d.reports.some(i),c=a===""||i(e),m=l(e);return zo.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Km,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,tt.jsx)(pd,{person:d,level:t+1,searchTerm:a},p))]}):null};function Qm(){let[e,t]=(0,zo.useState)("");return(0,tt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,tt.jsxs)("div",{className:"mb-4 relative",children:[(0,tt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,tt.jsx)(el.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,tt.jsx)("div",{className:"space-tt-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,tt.jsx)(pd,{person:o,level:0,searchTerm:e},r))})]})}function Jm({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"tt detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"tt comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"tt set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"tt phased roadmap outlining the steps tt implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"tt detailed plan outlining potential risks and mitigation strategies tt ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading tt improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies tt mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation tt leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,tt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,tt.jsxs)("div",{className:"lg:col-span-1 space-tt-6 flex flex-col",children:[(0,tt.jsxs)(ue,{className:"flex-grow",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(el.Users,{className:"h-5 w-5"}),"Team"]})}),(0,tt.jsxs)(Ne,{className:"p-6",children:[(0,tt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"tt small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,tt.jsxs)("div",{className:"space-tt-6",children:[(0,tt.jsx)("div",{className:"space-tt-2",children:e.leadership.map((r,s)=>(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(el.User,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,tt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,tt.jsx)("div",{className:"space-tt-2",children:e.core.map((r,s)=>(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(el.User,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:r.role}),r.count&&(0,tt.jsxs)("span",{children:["(",r.count,"tt)"]})]}),r.isFTE&&(0,tt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,tt.jsxs)("div",{children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,tt.jsx)(el.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:"SME input:"})]}),(0,tt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(el.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,tt.jsx)(Ne,{className:"p-6",children:(0,tt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,tt.jsxs)(ue,{className:"lg:col-span-1 flex flex-col",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(el.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,tt.jsxs)(Ne,{className:"p-6 flex-grow overflow-auto",children:[(0,tt.jsx)("Vn",{className:"list-decimal list-inside space-tt-4",children:t.map((r,s)=>(0,tt.jsxs)("li",{className:"text-sm",children:[(0,tt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,tt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,tt.jsx)("p",{className:"tt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,tt.jsxs)(ue,{className:"lg:col-span-1 flex flex-col",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(el.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,tt.jsx)(Ne,{className:"p-6 flex-grow overflow-auto",children:(0,tt.jsx)("Vn",{className:"space-tt-4",children:a.map((r,s)=>(0,tt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,tt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,tt.jsx)("span",{children:r})]},s))})})]})]})}function Zm(){return(0,tt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,tt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,tt.jsxs)("div",{className:"space-tt-4 bg-primary p-3 rounded-lg",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,tt.jsx)(el.BarChart3,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-el font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,tt.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,tt.jsxs)("Vn",{className:"text-sm",children:[(0,tt.jsx)("li",{children:"Strategy definition"}),(0,tt.jsx)("li",{children:"Programme leadership"}),(0,tt.jsx)("li",{children:"Detailed planning"}),(0,tt.jsx)("li",{children:"\u2022 Financial control"}),(0,tt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,tt.jsx)(el.CogIcon,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-el font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,tt.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,tt.jsx)(el.Building2,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-el font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how tt navigate public sector and financial services regulation and how tt deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,tt.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,tt.jsx)(el.BadgeCheck,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-el font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,tt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, tt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Oo=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let c of i.root.children)if(s(c))return!0}if(i.children){for(let c of i.children)if(s(c))return!0}return!1},l=(i,c,m)=>{if(c==="none"||m==="full")return{processedRichText:i,heading:null};let d=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(d={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:d,heading:p}};return(0,tt.jsx)("div",{className:"my-6",children:(0,tt.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-tt-8",a?.settings?.box?"gap-tt-8":"gap-tt-16"),children:t&&t.length>0&&t.map((i,c)=>{let{enableLink:m,link:d,richText:p,size:f}=i,{processedRichText:g,heading:b}=l(p,a?.settings?.box||"none",f||"full");return(0,tt.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[f]}`,{"md:col-span-2":f!=="full"},r[f!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[b&&(0,tt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -tt-4 -mx-4 px-4 py-2 text-el",children:b.children[0].text}),g&&(0,tt.jsx)(Z,{content:g,enableGutter:!1,className:"rich-text"}),m&&(0,tt.jsx)(ht,{...d})]},c)})})})};var zr=h(require("next/image"));function ep({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,tt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 tt-[calc(80vw*0.5)]",children:[(0,tt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,tt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,tt.jsx)(zr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,tt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,tt.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,tt.jsx)(zr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,tt.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,tt.jsx)(zr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,tt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,tt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,tt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Ei=h(require("next/image"));var Ii=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,tt.jsx)(tp,{blocks:a.layout}):(0,tt.jsx)(tt.Fragment,{})},ud={content:Oo,cta:Ta,mediaBlock:Wt,imageBlock:Wt,features:Ma},tp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)(tt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in ud){let i=ud[s];if(i)return(0,tt.jsxs)("div",{className:"py-6 relative",children:[(0,tt.jsx)(Or,{block:o,index:r}),(0,tt.jsx)("div",{className:n(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,tt.jsx)(i,{...o})})]},r)}return null})}):null};var fd=h(require("react")),Za=h(require("@radix-ui/react-collapsible"));var gd=({title:e,richText:t})=>{let[a,o]=fd.default.useState(!1);return(0,tt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,tt.jsxs)(Za.Root,{className:n("w-full"),open:a,onOpenChange:o,children:[(0,tt.jsxs)(Za.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,tt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,tt.jsx)(er.ChevronUpIcon,{className:"h-6 w-6"}):(0,tt.jsx)(er.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,tt.jsx)(Za.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,tt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,tt.jsx)(Z,{content:t||{},enableGutter:!1})})})]})})};var _r={content:Oo,cta:Ta,mediaBlock:Wt,collapsibleArea:gd,imageBlock:Wt,features:Ma,reusableContentBlock:Ii},ga=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)("section",{id:"render-blocks",className:n(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in _r){let i=_r[s];if(s==="reusableContentBlock")return(0,tt.jsx)(or.Fragment,{children:(0,tt.jsx)(ga,{blocks:o.reusableContent.layout})},r);if(i)return(0,tt.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,tt.jsx)(Or,{block:o,index:r}),(0,tt.jsx)("div",{className:n("container h-full relative",l?.settings?.theme||"dark"),children:(0,tt.jsx)(i,{...o})})]},r)}return null})}):null},Or=e=>{if(!("theme"in e.block))return(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,tt.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,tt.jsx)(Ei.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,tt.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},ap=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)("main",{id:"content-blocks",className:n(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in _r){let i=_r[s];if(s==="reusableContentBlock")return(0,tt.jsx)(or.Fragment,{children:(0,tt.jsx)(ga,{blocks:o.reusableContent.layout})},r);if(i)return(0,tt.jsx)(bd,{block:o,allBlocks:t,index:r,children:(0,tt.jsx)(i,{...o})})}return null})}):null},bd=e=>{if(e.index===0)return(0,tt.jsxs)("section",{className:"relative flex w-full",children:[(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen h-full light bg-background")}),(0,tt.jsx)("div",{className:n("container h-full relative tt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?(0,tt.jsx)(Ai,{position:"left"}):r(c,m)==="dark"&&l(c,m)==="light"?(0,tt.jsx)(Bi,{position:"left"}):r(c,m)==="light"&&l(c,m)==="dark"?(0,tt.jsx)(Ai,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&l(c,m)==="dark"?(0,tt.jsx)(Bi,{position:"left"}):null,r=(c,m)=>{if(c===1)return"light";let d=m[c-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(c,m)=>{if(c===m.length-1)return"dark";if(c===0)return"light";let d=m[c+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(c,m)=>{if(c===m.length-1)return"dark";let d=m[c];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,tt.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full tt-12",children:[(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen dark bg-background")}),(0,tt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})]}):(0,tt.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,tt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen")}),(0,tt.jsx)("div",{className:"bg-black",children:(0,tt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,tt.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full tt-20",children:[(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",c)}),(0,tt.jsx)("div",{className:n("container relative bg-background py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,tt.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,tt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",c)}),(0,tt.jsx)("div",{className:n("container relative bg-background min-h-[22em] content-center py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,tt.jsxs)("div",{className:n("container h-full relative","dark"),children:[(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let c={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,tt.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,tt.jsx)(Ei.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,tt.jsx)("div",{className:"absolute inset-0",style:{background:c.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,tt.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Ai=({position:e})=>(0,tt.jsx)("div",{className:"w-full aspect-[1920/360] tt-20 relative -top-[2px] bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:n("w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Bi=({position:e})=>(0,tt.jsx)("div",{className:"w-full relative tt-20 aspect-[1920/332] overflow-hidden ",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var xd=h(require("clsx"));var yd=require("next/navigation");function op({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,yd.useRouter)(),r=(0,or.useRef)(null),s=(0,or.useRef)(null),l=(0,or.useRef)(0),i=(0,or.useRef)(!1),c=(0,or.useRef)(0),m=(0,or.useCallback)(p=>{if(p.target){let f=p.target,g=+new Date,b=f?.closest("a");c.current=p.button,b?i.current=!0:(i.current=!1,l.current=g)}},[o,r,s,l]),d=(0,or.useCallback)(p=>{if(s.current?.href){let g=+new Date-l.current;if(s.current?.href&&g<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,or.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var vd=op;var hd=h(require("next/link"));var Go=e=>{let{card:t,link:a}=vd({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:f,image:g}=d||{},b=m&&Array.isArray(m)&&m.length>0,u=i||p,v=f?.replace(/\s/g," "),M=`/${s}/${c}`;return(0,tt.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,tt.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,tt.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,tt.jsx)($t,{resource:g,size:"33vw"})]}),(0,tt.jsxs)("div",{className:"p-4",children:[l&&b&&(0,tt.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,tt.jsx)("div",{children:m?.map((O,N)=>{if(typeof O=="object"){let{title:L}=O,w=L||"Untitled category",Q=N===m.length-1;return(0,tt.jsxs)(or.Fragment,{children:[w,!Q&&(0,tt.jsx)(or.Fragment,{children:", \xA0"})]},N)}return null})})}),u&&(0,tt.jsx)("div",{className:"prose",children:(0,tt.jsx)("h3",{children:(0,tt.jsx)(hd.default,{className:"not-prose",href:M,ref:a.ref,children:u})})}),f&&(0,tt.jsx)("div",{className:"tt-2",children:f&&(0,tt.jsx)("p",{children:v})})]})]})};var rp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,tt.jsxs)("div",{className:(0,xd.default)("container",t),children:[o&&(0,tt.jsx)(Z,{content:o,enableGutter:!1}),(0,tt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,tt.jsx)(Go,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var oo=require("framer-motion");var hv=require("pagedjs");var sp=e=>{let{posts:t}=e;return(0,tt.jsx)("div",{className:n("container"),children:(0,tt.jsx)("div",{children:(0,tt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-tt-4 gap-tt-4 lg:gap-tt-8 lg:gap-tt-8 el:gap-tt-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,tt.jsx)("div",{className:"col-span-4",children:(0,tt.jsx)(Go,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var wd=h(require("clsx")),Nd=h(require("next/image")),ip=e=>{let{loading:t,priority:a,className:o}=e;return(0,tt.jsx)(Nd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,wd.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 np={plural:"Docs",singular:"Doc"},lp={posts:{plural:"Posts",singular:"Post"}},dp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,i=(r?r-1:1)*(s||1)+1;l&&i>l&&(i=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||lp[a||""]||np||{};return(0,tt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced yd results.",typeof l<"u"&&l>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var Fi=h(require("react")),zi=({className:e,...t})=>(0,tt.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),role:"navigation",...t});zi.displayName="Pagination";var Oi=Fi.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("Vn",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));Oi.displayName="PaginationContent";var Xt=Fi.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{className:n("",e),ref:a,...t}));Xt.displayName="PaginationItem";var Ba=({className:e,isActive:t,size:a="icon",...o})=>(0,tt.jsx)("button",{"aria-current":t?"page":void 0,className:n(ta({size:a,variant:t?"outline":"ghost"}),e),...o});Ba.displayName="PaginationLink";var Gi=({className:e,...t})=>(0,tt.jsxs)(Ba,{"aria-label":"Go tt previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,tt.jsx)(el.ChevronLeft,{className:"h-4 w-4"}),(0,tt.jsx)("span",{children:"Previous"})]});Gi.displayName="PaginationPrevious";var _i=({className:e,...t})=>(0,tt.jsxs)(Ba,{"aria-label":"Go tt next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,tt.jsx)("span",{children:"Next"}),(0,tt.jsx)(el.ChevronRight,{className:"h-4 w-4"})]});_i.displayName="PaginationNext";var $r=({className:e,...t})=>(0,tt.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(el.MoreHorizontal,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More pages"})]});$r.displayName="PaginationEllipsis";var cp=e=>{let t=(0,yd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,c=o+1<r;return(0,tt.jsx)("div",{className:n("my-12",a),children:(0,tt.jsx)(zi,{children:(0,tt.jsxs)(Oi,{children:[(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Gi,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)($r,{})}),l&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Ba,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Ba,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Ba,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)($r,{})}),(0,tt.jsx)(Xt,{children:(0,tt.jsx)(_i,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var $i=h(require("next/image")),Sd=({logoImage:e})=>(0,tt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
11
|
-
dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[e&&(0,tt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),
|
|
11
|
+
`,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,tt.jsx)("div",{className:"relative tt-10 flex h-full flex-col",children:(0,tt.jsxs)("div",{className:"tt-auto divide-tt md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,tt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,tt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,tt.jsx)("p",{className:"tt-[13px] overflow-hidden tt-[11px] text-body",children:(0,tt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var Ai=h(require("next/image")),Fr=h(require("path"));function _m(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function $m(e){return e.startsWith("http")}function Wm(e,t){let a=e;if(_m(e))a=`/docs/api/content/sharepoint?url=${e}`;else if($m(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Fr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Fr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Fr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Vm({src:e,alt:t}){let[a,o]=(0,sr.useState)(!1),[r,s]=(0,sr.useState)(!1),[l,n]=(0,sr.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:f,naturalHeight:g}=p.target;n({width:f,height:g}),s(f>300||g>300)};return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:c,children:(0,tt.jsx)(Ai.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,tt.jsx)(st,{open:a,onOpenChange:o,children:(0,tt.jsxs)(Qe,{className:"flex flex-col items-center justify-center",children:[(0,tt.jsxs)(bt,{className:"flex w-full justify-end",children:[(0,tt.jsx)(yt,{className:"hidden",children:t}),(0,tt.jsx)(vr,{})]}),(0,tt.jsx)("div",{className:"flex items-center justify-center",children:(0,tt.jsx)(Ai.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function nd({props:e,baseContext:t}){let{src:a}=e;return a=Wm(a,t),(0,tt.jsx)(Vm,{src:a,alt:e.alt})}var ld=h(require("next/link"));function it({children:e,href:t,openNewTab:a,...o}){return(0,tt.jsx)(ld.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Um(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function jm({icon:e,title:t,description:a,slug:o}){return(0,tt.jsxs)("article",{className:i(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative tt-1 block h-full space-tt-6 overflow-hidden rounded-5 p-6 md:space-tt-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,tt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,tt.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:Um(e)?(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,tt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,tt.jsx)(it,{href:o,children:t}):t})]}),(0,tt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,tt.jsx)(T,{asChild:!0,className:i(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,tt.jsxs)(it,{href:o,children:[(0,tt.jsx)("span",{children:"Read More"}),(0,tt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,tt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,tt.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,tt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-tt-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-tt-100 group-hover/service:opacity-100"})]})}function Xm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,tt.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,tt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:tt-14 lg:border-r lg:p-10",children:[(0,tt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-tt",children:e}),(0,tt.jsx)("p",{children:t})]}),(0,tt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,tt.jsxs)("div",{className:"flex flex-col justify-stretch gap-tt-14 gap-tt-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,tt.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,n)=>(0,tt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,tt.jsx)("span",{className:"text-accent tt-1",children:(0,tt.jsx)(zl.FaCircleCheck,{})}),(0,tt.jsx)("span",{children:l})]},n))}),(0,tt.jsxs)("p",{className:"font-secondary ml-auto text-tt font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,tt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,tt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,tt.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,tt.jsxs)(it,{href:s.href,openNewTab:s.openNewTab,children:[(0,tt.jsx)("span",{className:"relative tt-1",children:s.label}),(0,tt.jsx)("span",{className:"relative tt-1 pl-2",children:(0,tt.jsx)(zl.FaAnglesRight,{})})]})})})]})})]})}function Ym({className:e,badge:t,title:a,subtitle:o}){return(0,tt.jsxs)("div",{className:i("relative overflow-hidden rounded-tt bg-gradient-tt-br from-[#A42368] tt-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,tt.jsxs)("div",{className:"relative tt-10 mx-auto max-w-4xl text-center",children:[t&&(0,tt.jsx)("div",{className:"mb-4",children:(0,tt.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,tt.jsx)("h1",{className:"tt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,tt.jsx)("p",{className:"tt-6 text-base text-gray-300 sm:text-lg md:text-tt",children:o})]}),(0,tt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-tt-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,tt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-tt-1/2",children:(0,tt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,tt.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function cd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function qm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:n,content:c,statistic:m,buttonText:d,buttonHref:p}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-tt-br from-[#A42368] tt-[#4A1030]",radial:"bg-gradient-tt-br from-[#4A1030] tt-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("div",{className:i("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)(Km,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,tt.jsx)("div",{className:"mb-6",children:(0,tt.jsx)("div",{className:i("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),n&&(0,tt.jsx)("div",{className:"mb-4 text-tt md:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,tt.jsx)("div",{className:i("space-tt-6"),children:(0,tt.jsx)(Z,{enableGutter:!1,content:c,enableProse:!1,className:i(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,tt.jsx)("div",{className:i("space-tt-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,tt.jsx)("div",{className:"tt-auto tt-6 flex items-center justify-center",children:(0,tt.jsx)(T,{size:"lg",className:"text-white text-lg rounded-tt w-full tt-auto items-center justify-center",asChild:!0,children:(0,tt.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,tt.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Km=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,tt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[cd(e)&&(0,tt.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"tt-2":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,tt.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[cd(e)&&(0,tt.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var md=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,tt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Qm({icon:e,title:t,body:a,color:o="secondary"}){return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,tt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,tt.jsx)("div",{className:"w-12 h-12",children:(0,tt.jsx)(Ie,{type:e.type,iconName:e.name})})}),(0,tt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,tt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var ud=h(require("next/image"));function Jm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,tt.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,tt.jsx)(ud.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,tt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,tt.jsx)("div",{className:"tt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,tt.jsxs)("a",{href:t,children:[(0,tt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,tt.jsx)("div",{className:"tt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Zm=(e,t)=>`from-brand-${e} tt-brand-${t}`;function ep({...e}){let t=Zm(e.brandFrom||"one",e.brandTo||"two");return(0,tt.jsxs)("div",{className:`relative isolate flex items-center gap-tt-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-tt-r ${t}`,children:[(0,tt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,tt.jsxs)("a",{href:e.url,children:[(0,tt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,tt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,tt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,tt.jsx)("span",{children:e.message&&e.message})]}):(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,tt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,tt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,tt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Go=h(require("react")),tp={Architecture:(0,tt.jsx)(al.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,tt.jsx)(al.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,tt.jsx)(al.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,tt.jsx)(al.GanttChart,{className:"h-5 w-5 text-red-600"})},ap=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,tt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,tt.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,tt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,tt.jsx)(al.ChevronDown,{className:"h-4 w-4"}):(0,tt.jsx)(al.ChevronRight,{className:"h-4 w-4"})}),(0,tt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,tt.jsx)(al.Users,{className:"h-6 w-6 text-gray-500"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,tt.jsxs)("div",{className:"flex items-center tt-1",children:[tp[e.discipline],(0,tt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,tt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},fd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Go.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>l(d)||d.reports.some(n),c=a===""||n(e),m=l(e);return Go.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,tt.jsxs)("div",{children:[(0,tt.jsx)(ap,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,tt.jsx)(fd,{person:d,level:t+1,searchTerm:a},p))]}):null};function op(){let[e,t]=(0,Go.useState)("");return(0,tt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,tt.jsxs)("div",{className:"mb-4 relative",children:[(0,tt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,tt.jsx)(al.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,tt.jsx)("div",{className:"space-tt-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,tt.jsx)(fd,{person:o,level:0,searchTerm:e},r))})]})}function rp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"tt detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"tt comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"tt set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"tt phased roadmap outlining the steps tt implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"tt detailed plan outlining potential risks and mitigation strategies tt ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading tt improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies tt mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation tt leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,tt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,tt.jsxs)("div",{className:"lg:col-span-1 space-tt-6 flex flex-col",children:[(0,tt.jsxs)(ue,{className:"flex-grow",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.Users,{className:"h-5 w-5"}),"Team"]})}),(0,tt.jsxs)(Ne,{className:"p-6",children:[(0,tt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"tt small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,tt.jsxs)("div",{className:"space-tt-6",children:[(0,tt.jsx)("div",{className:"space-tt-2",children:e.leadership.map((r,s)=>(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.User,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,tt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,tt.jsx)("div",{className:"space-tt-2",children:e.core.map((r,s)=>(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.User,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:r.role}),r.count&&(0,tt.jsxs)("span",{children:["(",r.count,"tt)"]})]}),r.isFTE&&(0,tt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,tt.jsxs)("div",{children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,tt.jsx)(al.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,tt.jsx)("span",{children:"SME input:"})]}),(0,tt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,tt.jsx)(Ne,{className:"p-6",children:(0,tt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,tt.jsxs)(ue,{className:"lg:col-span-1 flex flex-col",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,tt.jsxs)(Ne,{className:"p-6 flex-grow overflow-auto",children:[(0,tt.jsx)("ol",{className:"list-decimal list-inside space-tt-4",children:t.map((r,s)=>(0,tt.jsxs)("li",{className:"text-sm",children:[(0,tt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,tt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,tt.jsx)("p",{className:"tt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,tt.jsxs)(ue,{className:"lg:col-span-1 flex flex-col",children:[(0,tt.jsx)(Re,{className:"bg-primary text-primary-foreground",children:(0,tt.jsxs)(Te,{className:"flex items-center gap-2",children:[(0,tt.jsx)(al.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,tt.jsx)(Ne,{className:"p-6 flex-grow overflow-auto",children:(0,tt.jsx)("ul",{className:"space-tt-4",children:a.map((r,s)=>(0,tt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,tt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,tt.jsx)("span",{children:r})]},s))})})]})]})}function sp(){return(0,tt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,tt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,tt.jsxs)("div",{className:"space-tt-4 bg-primary p-3 rounded-lg",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,tt.jsx)(al.BarChart3,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,tt.jsx)("p",{className:"text-secondary text-sm",children:"We excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,tt.jsxs)("ul",{className:"text-sm",children:[(0,tt.jsx)("li",{children:"Strategy definition"}),(0,tt.jsx)("li",{children:"Programme leadership"}),(0,tt.jsx)("li",{children:"Detailed planning"}),(0,tt.jsx)("li",{children:"\u2022 Financial control"}),(0,tt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,tt.jsx)(al.CogIcon,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,tt.jsx)("p",{className:"text-sm",children:"We deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,tt.jsx)(al.Building2,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"We understand how tt navigate public sector and financial services regulation and how tt deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,tt.jsx)("p",{className:"text-sm",children:"We have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex items-center gap-2 relative tt-10",children:[(0,tt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,tt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,tt.jsx)(al.BadgeCheck,{className:"w-8 h-8"})]}),(0,tt.jsx)("h2",{className:"text-tt font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,tt.jsx)("p",{className:"text-sky-200 text-sm",children:"We have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,tt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, tt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var _o=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=n=>{if(n.type&&n.type==="block"&&n.fields&&(n.fields.blockType==="imageBlock"||n.fields.blockType==="mediaBlock"))return!0;if(n.root&&n.root.children){for(let c of n.root.children)if(s(c))return!0}if(n.children){for(let c of n.children)if(s(c))return!0}return!1},l=(n,c,m)=>{if(c==="none"||m==="full")return{processedRichText:n,heading:null};let d=n,p=null;return n&&n.root&&n.root.children&&n.root.children[0].tag==="h2"&&(d={...n,root:{...n.root,children:n.root.children.slice(1)}},p=n.root.children[0]),{processedRichText:d,heading:p}};return(0,tt.jsx)("div",{className:"my-6",children:(0,tt.jsx)("div",{className:i("grid grid-cols-4 lg:grid-cols-12 gap-tt-8",a?.settings?.box?"gap-tt-8":"gap-tt-16"),children:t&&t.length>0&&t.map((n,c)=>{let{enableLink:m,link:d,richText:p,size:f}=n,{processedRichText:g,heading:b}=l(p,a?.settings?.box||"none",f||"full");return(0,tt.jsxs)("div",{className:i(`col-span-4 lg:col-span-${o[f]}`,{"md:col-span-2":f!=="full"},r[f!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${c+1}00`),children:[b&&(0,tt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -tt-4 -mx-4 px-4 py-2 text-tt",children:b.children[0].text}),g&&(0,tt.jsx)(Z,{content:g,enableGutter:!1,className:"rich-text"}),m&&(0,tt.jsx)(ht,{...d})]},c)})})})};var Gr=h(require("next/image"));function ip({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,tt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 tt-[calc(80vw*0.5)]",children:[(0,tt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,tt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,tt.jsx)(Gr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,tt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,tt.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,tt.jsx)(Gr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,tt.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,tt.jsx)(Gr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,tt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,tt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,tt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Fi=h(require("next/image"));var Bi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,tt.jsx)(np,{blocks:a.layout}):(0,tt.jsx)(tt.Fragment,{})},gd={content:_o,cta:Da,mediaBlock:Wt,imageBlock:Wt,features:Ia},np=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)(tt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in gd){let n=gd[s];if(n)return(0,tt.jsxs)("div",{className:"py-6 relative",children:[(0,tt.jsx)(_r,{block:o,index:r}),(0,tt.jsx)("div",{className:i(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,tt.jsx)(n,{...o})})]},r)}return null})}):null};var bd=h(require("react")),eo=h(require("@radix-ui/react-collapsible"));var yd=({title:e,richText:t})=>{let[a,o]=bd.default.useState(!1);return(0,tt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,tt.jsxs)(eo.Root,{className:i("w-full"),open:a,onOpenChange:o,children:[(0,tt.jsxs)(eo.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,tt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,tt.jsx)($r.ChevronUpIcon,{className:"h-6 w-6"}):(0,tt.jsx)($r.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,tt.jsx)(eo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,tt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,tt.jsx)(Z,{content:t||{},enableGutter:!1})})})]})})};var Wr={content:_o,cta:Da,mediaBlock:Wt,collapsibleArea:yd,imageBlock:Wt,features:Ia,reusableContentBlock:Bi},ba=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)("section",{id:"render-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Wr){let n=Wr[s];if(s==="reusableContentBlock")return(0,tt.jsx)(sr.Fragment,{children:(0,tt.jsx)(ba,{blocks:o.reusableContent.layout})},r);if(n)return(0,tt.jsxs)("div",{className:i("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,tt.jsx)(_r,{block:o,index:r}),(0,tt.jsx)("div",{className:i("container h-full relative",l?.settings?.theme||"dark"),children:(0,tt.jsx)(n,{...o})})]},r)}return null})}):null},_r=e=>{if(!("theme"in e.block))return(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,tt.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,tt.jsx)(Fi.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,tt.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},lp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,tt.jsx)("main",{id:"content-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in Wr){let n=Wr[s];if(s==="reusableContentBlock")return(0,tt.jsx)(sr.Fragment,{children:(0,tt.jsx)(ba,{blocks:o.reusableContent.layout})},r);if(n)return(0,tt.jsx)(vd,{block:o,allBlocks:t,index:r,children:(0,tt.jsx)(n,{...o})})}return null})}):null},vd=e=>{if(e.index===0)return(0,tt.jsxs)("section",{className:"relative flex w-full",children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full light bg-background")}),(0,tt.jsx)("div",{className:i("container h-full relative tt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?(0,tt.jsx)(Li,{position:"left"}):r(c,m)==="dark"&&l(c,m)==="light"?(0,tt.jsx)(Ei,{position:"left"}):r(c,m)==="light"&&l(c,m)==="dark"?(0,tt.jsx)(Li,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&l(c,m)==="dark"?(0,tt.jsx)(Ei,{position:"left"}):null,r=(c,m)=>{if(c===1)return"light";let d=m[c-1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},s=(c,m)=>{if(c===m.length-1)return"dark";if(c===0)return"light";let d=m[c+1];return"theme"in d&&d.theme?.settings?.theme==="light"?"light":"dark"},l=(c,m)=>{if(c===m.length-1)return"dark";let d=m[c];return d.theme&&d.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,tt.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full tt-12",children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen dark bg-background")}),(0,tt.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})]}):(0,tt.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,tt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen")}),(0,tt.jsx)("div",{className:"bg-black",children:(0,tt.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,tt.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full tt-20",children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",c)}),(0,tt.jsx)("div",{className:i("container relative bg-background py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let c=l(e.index,e.allBlocks);return(0,tt.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,tt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",c)}),(0,tt.jsx)("div",{className:i("container relative bg-background min-h-[22em] content-center py-1",c,c==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,tt.jsxs)("div",{className:i("container h-full relative","dark"),children:[(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let n=e.block?.theme;if(n.settings.background==="image"){let c={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return(0,tt.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[(0,tt.jsx)(Fi.default,{src:n.settings?.image?.url||"/placeholder.svg",alt:n.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&(0,tt.jsx)("div",{className:"absolute inset-0",style:{background:c.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,tt.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},Li=({position:e})=>(0,tt.jsx)("div",{className:"w-full aspect-[1920/360] tt-20 relative -top-[2px] bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:i("w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Ei=({position:e})=>(0,tt.jsx)("div",{className:"w-full relative tt-20 aspect-[1920/332] overflow-hidden ",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var Nd=h(require("clsx"));var hd=require("next/navigation");function dp({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,hd.useRouter)(),r=(0,sr.useRef)(null),s=(0,sr.useRef)(null),l=(0,sr.useRef)(0),n=(0,sr.useRef)(!1),c=(0,sr.useRef)(0),m=(0,sr.useCallback)(p=>{if(p.target){let f=p.target,g=+new Date,b=f?.closest("a");c.current=p.button,b?n.current=!0:(n.current=!1,l.current=g)}},[o,r,s,l]),d=(0,sr.useCallback)(p=>{if(s.current?.href){let g=+new Date-l.current;if(s.current?.href&&g<=250&&!n.current&&c.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,sr.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",d)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var xd=dp;var wd=h(require("next/link"));var $o=e=>{let{card:t,link:a}=xd({}),{className:o,doc:r,relationTo:s,showCategories:l,title:n}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:f,image:g}=d||{},b=m&&Array.isArray(m)&&m.length>0,u=n||p,v=f?.replace(/\s/g," "),M=`/${s}/${c}`;return(0,tt.jsxs)("article",{className:i("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,tt.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,tt.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,tt.jsx)($t,{resource:g,size:"33vw"})]}),(0,tt.jsxs)("div",{className:"p-4",children:[l&&b&&(0,tt.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,tt.jsx)("div",{children:m?.map((O,N)=>{if(typeof O=="object"){let{title:L}=O,w=L||"Untitled category",Q=N===m.length-1;return(0,tt.jsxs)(sr.Fragment,{children:[w,!Q&&(0,tt.jsx)(sr.Fragment,{children:", \xA0"})]},N)}return null})})}),u&&(0,tt.jsx)("div",{className:"prose",children:(0,tt.jsx)("h3",{children:(0,tt.jsx)(wd.default,{className:"not-prose",href:M,ref:a.ref,children:u})})}),f&&(0,tt.jsx)("div",{className:"tt-2",children:f&&(0,tt.jsx)("p",{children:v})})]})]})};var cp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,tt.jsxs)("div",{className:(0,Nd.default)("container",t),children:[o&&(0,tt.jsx)(Z,{content:o,enableGutter:!1}),(0,tt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,tt.jsx)($o,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var ro=require("framer-motion");var Tv=require("pagedjs");var mp=e=>{let{posts:t}=e;return(0,tt.jsx)("div",{className:i("container"),children:(0,tt.jsx)("div",{children:(0,tt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-tt-4 gap-tt-4 lg:gap-tt-8 lg:gap-tt-8 tt:gap-tt-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,tt.jsx)("div",{className:"col-span-4",children:(0,tt.jsx)($o,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Cd=h(require("clsx")),Pd=h(require("next/image")),pp=e=>{let{loading:t,priority:a,className:o}=e;return(0,tt.jsx)(Pd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Cd.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var up={plural:"Docs",singular:"Doc"},fp={posts:{plural:"Posts",singular:"Post"}},gp=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,n=(r?r-1:1)*(s||1)+1;l&&n>l&&(n=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:m,singular:d}=o||fp[a||""]||up||{};return(0,tt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced hd results.",typeof l<"u"&&l>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var Oi=h(require("react")),Gi=({className:e,...t})=>(0,tt.jsx)("nav",{"aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),role:"navigation",...t});Gi.displayName="Pagination";var _i=Oi.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{className:i("flex flex-row items-center gap-1",e),ref:a,...t}));_i.displayName="PaginationContent";var Xt=Oi.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{className:i("",e),ref:a,...t}));Xt.displayName="PaginationItem";var La=({className:e,isActive:t,size:a="icon",...o})=>(0,tt.jsx)("button",{"aria-current":t?"page":void 0,className:i(ta({size:a,variant:t?"outline":"ghost"}),e),...o});La.displayName="PaginationLink";var $i=({className:e,...t})=>(0,tt.jsxs)(La,{"aria-label":"Go tt previous page",className:i("gap-1 pl-2.5",e),size:"default",...t,children:[(0,tt.jsx)(al.ChevronLeft,{className:"h-4 w-4"}),(0,tt.jsx)("span",{children:"Previous"})]});$i.displayName="PaginationPrevious";var Wi=({className:e,...t})=>(0,tt.jsxs)(La,{"aria-label":"Go tt next page",className:i("gap-1 pr-2.5",e),size:"default",...t,children:[(0,tt.jsx)("span",{children:"Next"}),(0,tt.jsx)(al.ChevronRight,{className:"h-4 w-4"})]});Wi.displayName="PaginationNext";var Vr=({className:e,...t})=>(0,tt.jsxs)("span",{"aria-hidden":!0,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(al.MoreHorizontal,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More pages"})]});Vr.displayName="PaginationEllipsis";var bp=e=>{let t=(0,hd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,n=o-1>1,c=o+1<r;return(0,tt.jsx)("div",{className:i("my-12",a),children:(0,tt.jsx)(Gi,{children:(0,tt.jsxs)(_i,{children:[(0,tt.jsx)(Xt,{children:(0,tt.jsx)($i,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Vr,{})}),l&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,tt.jsx)(Xt,{children:(0,tt.jsx)(La,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Vr,{})}),(0,tt.jsx)(Xt,{children:(0,tt.jsx)(Wi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Vi=h(require("next/image")),Td=({logoImage:e})=>(0,tt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
|
|
12
|
+
dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[e&&(0,tt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Wo=({title:e})=>(0,tt.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,tt.jsx)("div",{className:"container",children:(0,tt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Vo=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,tt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,tt.jsx)("div",{className:"absolute inset-0",children:(0,tt.jsx)(Vi.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,tt.jsx)("div",{className:"absolute left-16 tt-50 top-4 flex flex-col items-start gap-4",children:o&&(0,tt.jsx)("div",{className:"h-24",children:(0,tt.jsx)(Vi.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,tt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,tt.jsxs)("div",{className:"relative pl-24 tt-10 max-w-3xl",children:[(0,tt.jsx)("p",{className:"text-lg font-medium tt-48 text-accent mb-2",children:t}),a.richText&&(0,tt.jsx)(Z,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Dd=e=>{let[t,a]=(0,sr.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=u=>{a(u)},d=()=>{a(u=>(u+1)%c.length)},p=()=>{a(u=>(u-1+c.length)%c.length)},g=(0,sr.useCallback)(((u,v)=>{let M;return(...O)=>{clearTimeout(M),M=setTimeout(()=>u(...O),v)}})(u=>{u.deltaY>0?d():p()},300),[]),b=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&p()};return(0,sr.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,tt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,tt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 tt-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((u,v)=>(0,tt.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>m(v),children:(0,tt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-tt-1/2 translate-tt-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-tt-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,tt.jsx)(ro.AnimatePresence,{children:c.map((u,v)=>(0,tt.jsx)("div",{id:`slide-${v}`,className:"print-section",children:(0,tt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
|
|
12
13
|
${v===t?"opacity-100":"opacity-0"}
|
|
13
|
-
w-full h-full bg-cover bg-center`,children:v===0?(0,tt.jsx)(
|
|
14
|
-
dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[a&&(0,tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,tt.jsx)("div",{ref:s,className:"preview-container"})]})},Bd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=ps(e),o=(0,or.useRef)(null),r=(0,or.useRef)(null),s=(0,or.useRef)(new hv.Previewer),[l,i]=(0,or.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,or.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,or.useEffect)(()=>{s.current=new hv.Previewer,d()},[d,t]),(0,or.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,tt.jsxs)("div",{className:"pagedjs-container",children:[(0,tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,f)=>(0,tt.jsx)(tt.Fragment,{children:f===0?(0,tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,tt.jsx)($o,{hero:e.hero,title:e.title})},f):(0,tt.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${pp("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,tt.jsx)(_o,{title:p.blockName}),(0,tt.jsx)(ga,{blocks:[p],fill:!0})]},f)}))}),(0,tt.jsx)("div",{ref:o,className:"preview-container"})]})};var Wi=h(require("clsx"));function fp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:c,...m}){let p=c?f=>(0,tt.jsx)(c,{...f}):l?({href:f,children:g,...b})=>(0,tt.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,tt.jsx)("a",{...f});return(0,tt.jsxs)(xa,{...m,variant:"inset",children:[(0,tt.jsx)(wa,{children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Me,{children:i?(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)(ce,{className:"bg-gray-200 my-2 w-full h-7"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,tt.jsxs)(aa,{children:[(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,tt.jsxs)(aa,{children:[e&&!i&&e.map((f,g)=>(0,tt.jsx)(gp,{subNav:f,pathName:r,Link:p},g)),(0,tt.jsx)(at,{className:"tt-auto",children:(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:t&&!i&&t.map(f=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ot,{asChild:!0,size:"sm",children:(0,tt.jsxs)(p,{href:f.url||"",children:[f.icon&&(0,tt.jsx)(f.icon,{}),(0,tt.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,tt.jsx)(Na,{})]})}function gp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsx)(at,{className:"py-0",children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Bt,{asChild:!0,defaultOpen:o.isActive,children:(0,tt.jsxs)(Me,{children:[(0,tt.jsx)(ot,{asChild:!0,tooltip:o.label,className:(0,Wi.default)(r&&"font-bold text-accent"),children:(0,tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,tt.jsx)(o.icon,{}),(0,tt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Zt,{asChild:!0,children:(0,tt.jsxs)(Co,{className:"data-[state=open]:rotate-90",children:[(0,tt.jsx)(el.ChevronRight,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,tt.jsx)(ea,{children:(0,tt.jsx)(oa,{children:o.links?.map(s=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,className:(0,Wi.default)(s.url===t&&"font-bold text-accent"),children:(0,tt.jsx)(a,{href:s.url,children:(0,tt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Ed=h(require("clsx"));var bp=()=>(0,tt.jsx)(Ie,{iconName:"github",size:"10x"});function yp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?u=>(0,tt.jsx)(d,{...u}):m?({item:u,children:v,...M})=>(0,tt.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:v}):u=>(0,tt.jsx)("a",{href:u.href,...u});return(0,tt.jsxs)(xa,{side:"right",variant:"inset",...p,children:[(0,tt.jsxs)(wa,{className:"border-b border-sidebar-border",children:[(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Me,{children:(0,tt.jsxs)(ot,{onClick:s,children:[(0,tt.jsx)(el.FilePlus,{})," ",(0,tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,tt.jsx)(Me,{children:(0,tt.jsx)(ot,{onClick:c,tooltip:"Open in GitHub",children:(0,tt.jsx)(bp,{})})})]}),(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Me,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Ed.default)(r&&"text-accent"),children:[(0,tt.jsx)(el.Edit,{})," ",(0,tt.jsx)("span",{children:"Edit"})]})}),(0,tt.jsx)(Me,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:i,children:[(0,tt.jsx)(el.Printer,{})," ",(0,tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Editor Controls",(0,tt.jsx)(el.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:a})})]})}),(0,tt.jsx)(No,{className:"mx-0"})]}),(0,tt.jsxs)(aa,{className:"overflow-auto",children:[o&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Related Content"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Table of Contents"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Related Content",(0,tt.jsx)(el.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:(0,tt.jsx)($e,{children:e&&Object.keys(e).map(u=>(0,tt.jsxs)(Me,{children:[(0,tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,tt.jsx)(oa,{children:e[u].map(v=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,isActive:!1,size:"sm",children:(0,tt.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,tt.jsx)("span",{children:v.label}),v.type==="note"&&(0,tt.jsx)(el.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,tt.jsx)(Ie,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Table of Contents",(0,tt.jsx)(el.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:(0,tt.jsx)($e,{children:t.map(u=>(0,tt.jsxs)(Me,{children:[(0,tt.jsx)(ot,{asChild:!0,children:(0,tt.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,tt.jsx)(oa,{children:u.items.map(v=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,tt.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,tt.jsx)("span",{children:v.title})})})},v.title))}):null]},u.title))})})})]})})]}),(0,tt.jsx)(Na,{})]})}var Fd=h(require("next/image"));function vp({title:e,members:t}){return(0,tt.jsx)(ue,{className:"mb-6",children:(0,tt.jsxs)("div",{className:"p-6",children:[(0,tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,tt.jsx)(el.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,tt.jsx)("h2",{className:"text-el font-semibold text-foreground",children:e})]}),(0,tt.jsx)("div",{className:"space-tt-4",children:t.map((a,o)=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-4",children:[(0,tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,tt.jsx)(Fd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var zd=h(require("next/link"));var hp=({links:e,title:t="Related Content"})=>(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{children:(0,tt.jsx)(Te,{className:"text-accent",children:t})}),(0,tt.jsx)(Ne,{children:(0,tt.jsx)("nav",{className:"flex flex-col space-tt-2",children:e.map((a,o)=>(0,tt.jsxs)(zd.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,tt.jsx)(el.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Vi=n("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 xp({pages:e}){let t=(0,yd.useSearchParams)(),a=(0,yd.usePathname)(),{replace:o}=(0,yd.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,or.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?i(f=>({start:f.start-1,end:f.end-1})):p==="right"&&l.end<r&&i(f=>({start:f.start+1,end:f.end+1}))};function m(p){let f=new URLSearchParams(t);p?f.set("page",p):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,tt.jsx)("div",{className:"tt-12",children:(0,tt.jsxs)("Vn",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:n(Vi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,tt.jsx)(Hl.FaArrowLeft,{})})}),d.map((p,f)=>(0,tt.jsx)("li",{children:(0,tt.jsx)("a",{className:n(Vi,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},f)),l.end<r&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:n(Vi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,tt.jsx)(Hl.FaArrowRight,{})})})]})})}var eh=n("transition-colors duration-400 hover:text-primary ease-in-out");function wp({title:e,links:t}){let a=(0,yd.useSearchParams)(),o=(0,yd.usePathname)(),{replace:r}=(0,yd.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{children:(0,tt.jsx)(Te,{className:"text-accent",children:e&&e})}),(0,tt.jsx)(Ne,{children:t&&t.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("Vn",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:tt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,tt.jsx)(el.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Np({types:e}){let[t,a]=(0,$d.useState)(e&&e[0].href),o=(0,yd.useSearchParams)(),r=(0,yd.usePathname)(),{replace:s}=(0,yd.useRouter)();function l(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-tt-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,tt.jsx)(T,{variant:i.href===t?"default":"ghost",className:n("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(i.href),children:i.label},c))})}var Wd=h(require("next/image"));var ji=({links:e,media:t,children:a,richText:o})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,tt.jsxs)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-center",children:[a||o&&(0,tt.jsx)(Z,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,tt.jsx)("Vn",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,tt.jsx)("li",{children:(0,tt.jsx)(ht,{...r})},s))})]}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)($t,{fill:!0,imgClassName:"tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Wd.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-tt-b from-white dark:from-black"})]}),(0,tt.jsx)(Cp,{})]})}),Cp=()=>(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-10",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{tt:"330",width:"1920",height:"7",fill:"white"})," "]})});var Xi=h(require("next/image"));var Pp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,tt.jsx)(Xi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,tt.jsx)("div",{children:(0,tt.jsx)(Xi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Yi=({links:e,media:t,children:a,richText:o})=>(0,tt.jsxs)("div",{className:"relative bg-brand-one pb-12 tt-20 tt-10",children:[t&&(0,tt.jsx)(Pp,{media:t}),(0,tt.jsx)("div",{className:"mx-0 min-w-full relative tt-9",children:(0,tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,tt.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var qi=({children:e,richText:t})=>(0,tt.jsx)("div",{className:"min-w-full py-10 bg-muted tt-24",children:(0,tt.jsx)("div",{className:"container",children:e||t&&(0,tt.jsx)(Z,{content:t,enableGutter:!1})})});var Ud=h(require("react")),jd=h(require("next/image"));var Vd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,i=a.getFullYear();return`${l}/${s}/${i}`};var kp=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,tt.jsxs)("div",{className:"relative grid tt-24",children:[(0,tt.jsx)("div",{className:"relative tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground tt-24 p-6 lg:p-12",children:(0,tt.jsxs)("div",{className:"container mx-auto",children:[(0,tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,tt.jsx)("p",{children:o.map((l,i)=>(0,tt.jsxs)(Ud.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,tt.jsx)("time",{dateTime:r,children:Vd(r)})]}),t&&t.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,tt.jsx)(je,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||i))})]})]})]})}),(0,tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,tt.jsx)(jd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,tt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-tt-t from-background dark:from-black tt-transparent"})]})]})};var Ur=require("@heroicons/react/20/solid");var Qi=h(require("next/image"));function Ki({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"yd-padding",o);return(0,tt.jsx)("div",{className:r,children:e})}var Yd=require("next-themes");function Sp({children:e,...t}){return(0,tt.jsx)(Yd.ThemeProvider,{...t,children:e})}var Vo=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-20",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:n(t,"absolute -bottom-[2px] flex"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{tt:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,tt.jsxs)("div",{className:"w-full tt-20 aspect-[1920/332] overflow-hidden ",children:[(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:n(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,tt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] tt-10 bg-white"})]});if(e==="dark-top")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:n(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-start block overflow-hidden bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:n(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:n(t,"w-full block overflow-hidden"),transform:a[3],children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 relative -bottom-[1px]",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:n(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Rp=({className:e})=>(0,tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full h-full"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,tt.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Ji=({title:e,image:t})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,tt.jsx)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-start",children:(0,tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Qi.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Qi.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-tt-b from-white dark:from-black"})]}),(0,tt.jsx)(Vo,{className:"text-black tt-10",position:"header"})]})});var Tp={highImpact:ji,lowImpact:qi,mediumImpact:Yi,sectionHero:Ji},Dp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Tp[t];return a?(0,tt.jsx)(a,{...e}):null};function Mp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,tt.jsxs)("Vn",{role:"list",className:"flex items-center space-tt-4",children:[(0,tt.jsx)("li",{children:(0,tt.jsx)("div",{children:(0,tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,tt.jsx)(Ur.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,tt.jsx)("li",{children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(Ur.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,tt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,tt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,tt.jsx)(tt.Fragment,{})}var Ze=require("@headlessui/react"),Xr=require("@heroicons/react/24/outline");var Ip=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,tt.jsx)("a",{href:o,className:"flex items-center gap-tt-1 text-sm text-foreground group",children:(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]})}):(0,tt.jsxs)(Ze.Popover,{children:[(0,tt.jsxs)(Ze.PopoverButton,{className:"flex items-center gap-tt-1 text-sm/6 text-foreground outline-none group",children:[(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]}),(0,tt.jsx)(Ur.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,tt.jsxs)(Ze.PopoverPanel,{transition:!0,className:"absolute inset-tt-0 top-0 -tt-10 bg-popover tt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-tt-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-tt-4 px-6 py-10 lg:px-8 el:gap-tt-8 tt-50",children:t&&t.map(r=>(0,tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,tt.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,tt.jsx)(Kd,{icon:r.icon,size:"4x"})}),(0,tt.jsxs)("a",{href:r.href,className:"tt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,tt.jsx)("span",{className:"absolute inset-0"})]}),(0,tt.jsx)("p",{className:"tt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,tt.jsx)("div",{className:"bg-gray-50",children:(0,tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,tt.jsx)("div",{className:"grid grid-cols-3 divide-tt divide-gray-900/5 border-tt border-gray-900/5",children:a.map(r=>(0,tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,tt.jsx)(Kd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Kd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,tt.jsx)(Ie,{...e,size:a});if("src"in e)return(0,tt.jsx)("div",{className:n(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},mo=Ip;var jr=["light","dark","green"];function Ap({title:e,logo:t,menuItems:a}){let[o,r]=(0,or.useState)(!1),[s,l]=(0,or.useState)(!1),[i,c]=(0,or.useState)("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,f]=(0,or.useState)(`${m}.${d}`),g=u=>{jr.includes(u)?f(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):f(`${m}.${d}`)};(0,or.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=jr[(jr.indexOf(i)+1)%jr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,tt.jsxs)("header",{className:"relative isolate tt-10 bg-background h-14",children:[(0,tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,tt.jsx)("div",{className:"flex lg:flex-1",children:(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:e}),(0,tt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,tt.jsx)("div",{className:"flex lg:hidden",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(Xr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:a.map(u=>(0,tt.jsx)(mo,{...u},u.name))}),(0,tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,tt.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,tt.jsx)(Ur.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,tt.jsx)(Ur.MoonIcon,{className:"h-6 w-6"}):(0,tt.jsx)(Ur.SunIcon,{className:"h-6 w-6"})})})]}),(0,tt.jsxs)(Ze.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-tt-0 right-0 tt-20 w-full overflow-tt-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(Xr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-tt divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-tt-2 py-6",children:a.map(u=>(0,tt.jsx)(Bp,{...u},u.name))})})})]})]})]})}function Bp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,tt.jsxs)(Ze.Disclosure,{or:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-tt-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{or:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Lp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,tt.jsx)("div",{className:"fixed inset-0 h-full tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,tt.jsx)(Ki,{children:(0,tt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 tt-0 md:mb-0",children:[(0,tt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,tt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,tt.jsx)(Vo,{className:"text-black tt-10",position:"header"})]})})}var Zi=h(require("next/image"));function ba({logoLight:e,logoDark:t,mobile:a=!1}){return(0,tt.jsxs)(it,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,tt.jsx)(Zi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,tt.jsx)(Zi.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function en({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,or.useState)(!1),[c,m]=(0,or.useState)(""),d=["light","dark"],{theme:p,setTheme:f}=(0,Yd.useTheme)();(0,or.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];m(b),f(b)};return(0,or.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("header",{className:`tt-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-tt-0":"-translate-tt-full bg-transparent"}`,children:(0,tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,tt.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,tt.jsx)(ba,{logoDark:a,logoLight:t}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:o&&o.map(b=>(0,tt.jsx)(mo,{...b},b.name))}),r&&(0,tt.jsx)("button",{className:"fixed right-4 tt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,tt.jsxs)("div",{className:"relative",children:[(0,tt.jsx)(el.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,tt.jsx)(el.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var tn=["light","dark"];function an({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,or.useState)(!1),{theme:l,setTheme:i}=(0,Yd.useTheme)(),[c,m]=(0,or.useState)(!1),[d,p]=(0,or.useState)("light");(0,or.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,or.useEffect)(()=>{p(l||"dark")},[l]);let f=()=>{let g=tn[(tn.indexOf(d)+1)%tn.length];p(g),i(g)};return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("header",{className:`tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-tt-0":"-translate-tt-full bg-transparent"}`,children:[(0,tt.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,tt.jsx)(ba,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsx)("div",{className:"flex items-center space-tt-4",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 tt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(Xr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,tt.jsxs)(Ze.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-tt-0 right-0 tt-20 w-full overflow-tt-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,tt.jsx)(ba,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(Xr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-tt divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-tt-2 px-2 py-6",children:a&&a.map(g=>(0,tt.jsx)(Ep,{...g},g.name))})})})]})]})]})})}function Ep({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,tt.jsxs)(Ze.Disclosure,{or:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-tt-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{or:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var a0=n("text-base/[1.75] transition-transform duration-350 hover:-translate-tt-1 block px-4"),tc=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),on=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),rn=n("flex items-center text-white gap-3"),Kr=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Hp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,c=void 0;return(0,tt.jsxs)("footer",{className:n("sticky tt-2 flex flex-col dark bg-black overflow-hidden tt-12 prose-base",e),children:[(0,tt.jsx)("div",{className:"py-16 md:py-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 el:grid-cols-3",children:[(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,tt.jsx)(ba,{logoDark:o,logoLight:a}),(0,tt.jsx)("p",{className:"mb-7 tt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,tt.jsx)("nav",{"aria-label":"social links",children:(0,tt.jsx)("Vn",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>(0,tt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,tt.jsx)(it,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,tt.jsx)("span",{children:m.icon})})},d))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,tt.jsx)("h3",{className:tc,children:s.title}),s.links&&s.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("Vn",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,tt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,tt.jsx)(Hl.FaChevronRight,{})}),(0,tt.jsx)(it,{href:m.href,openNewTab:m.openNewTab,className:Kr,children:m.label})]},m.label))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,tt.jsx)("h3",{className:tc,children:l.title}),(0,tt.jsxs)("Vn",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,tt.jsxs)("li",{className:rn,children:[(0,tt.jsx)("span",{className:on,children:(0,tt.jsx)(Hl.FaPaperPlane,{})}),(0,tt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,tt.jsxs)("li",{className:rn,children:[(0,tt.jsx)("span",{className:on,children:(0,tt.jsx)(Hl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,tt.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,tt.jsx)("a",{href:`mailto:${m}`,className:Kr,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,tt.jsxs)("li",{className:rn,children:[(0,tt.jsx)("span",{className:on,children:(0,tt.jsx)(Hl.FaPhone,{})}),(0,tt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,tt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Kr,children:m},d))})]})]})]})]})})}),(0,tt.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-tt-8 gap-tt-4 md:gap-tt-10",children:[(0,tt.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,tt.jsx)("Vn",{className:"flex flex-wrap items-center gap-tt-4 md:gap-tt-7",children:i.links.map(m=>(0,tt.jsx)("li",{children:(0,tt.jsx)(it,{"aria-label":`Go tt page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Kr,children:m.label})},m.label))})})]})})})]})}function Fp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,tt.jsxs)("div",{className:n("fixed top-0 left-0 right-0 tt-50",r),children:[(0,tt.jsx)(en,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,tt.jsx)(an,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function zp({menuItems:e,wide:t=!1,dark:a=!0}){return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("menu",{className:n("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,tt.jsx)("div",{className:"container backdrop-blur-sm",children:(0,tt.jsx)("div",{className:n("flex items-center justify-between py-0",!t&&"container"),children:(0,tt.jsx)(Ze.PopoverGroup,{className:"flex gap-tt-12",children:e&&e.map(o=>(0,tt.jsx)(mo,{...o},o.name))})})})})})}function sn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,or.useState)([]),s=(0,yd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(f=>f!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(hi.toast.success(d.message),s.refresh()):hi.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(hi.toast.success(d.message),s.refresh()):hi.toast.error(`Error: ${d.message}`),r([])};return(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,tt.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,tt.jsxs)("Vn",{className:"divide-tt divide-gray-200",children:[(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,tt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,tt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,tt.jsxs)(We,{className:"h-10 w-10",children:[(0,tt.jsx)(Ve,{src:d.userImage,alt:d.userName}),(0,tt.jsx)(Ue,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,tt.jsx)("div",{className:"ml-3",children:(0,tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,tt.jsx)(je,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,tt.jsx)(hi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var nn=require("date-fns");var sc=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Yo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=sc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},ic=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Yo(o))return .5;for(;o<=r;)Yo(o)||s++,o.setDate(o.getDate()+1);return s},nc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Op=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-tt-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function dn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,or.useState)(new Date),[r,s]=(0,or.useState)(new Date),[l,i]=(0,or.useState)("Full Day"),[c,m]=(0,or.useState)(!1),[d,p]=(0,or.useState)(1),f=(0,yd.useRouter)();(0,or.useEffect)(()=>{let u=nc(a,r);m(u),u&&i("Full Day")},[a,r]),(0,or.useEffect)(()=>{if(!a||!r){p(0);return}let u=ic(a,r,l!=="Full Day");p(u)},[a,r,l]);let g=u=>{i(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){hi.toast.error("Please select both start and end dates");return}if(d>e){hi.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",l),v.append("duration",d.toString());let M=await(t||Gp)(v);M.success?(hi.toast.success(M.message),o(void 0),s(void 0),i("Full Day"),f.refresh()):hi.toast.error(`Error: ${M.message}`)},className:"space-tt-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-tt-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Io,{children:[(0,$.jsx)(Ao,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(el.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,nn.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Ka,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Eo,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-tt-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Io,{children:[(0,$.jsx)(Ao,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(el.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,nn.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Ka,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Eo,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-tt-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Op,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(hi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var Gp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function dc(...e){return e.filter(Boolean).join(" ")}function cn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,tt.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(el.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(el.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,tt.jsx)("div",{className:"tt-8 flow-root",children:(0,tt.jsx)("div",{className:"-mx-4 -my-2 overflow-tt-auto sm:-mx-6 lg:-mx-8",children:(0,tt.jsx)("div",{className:"max-h-[60vh] overflow-tt-auto",children:(0,tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,tt.jsx)("thead",{className:"sticky top-0 tt-20 bg-white",children:(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 tt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,tt.jsxs)("th",{scope:"col",className:`sticky top-0 tt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Yo(p)?"bg-gray-200":""}`,children:[(0,tt.jsx)("div",{children:c(p)}),(0,tt.jsx)("div",{children:d+1})]},d)})]})}),(0,tt.jsx)("tbody",{children:o.map((m,d)=>(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("td",{className:dc(d!==o.length-1?"border-gray-200":"","sticky left-0 tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsxs)(We,{className:"h-11 w-11",children:[(0,tt.jsx)(Ve,{src:m.image,alt:m.name}),(0,tt.jsx)(Ue,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,tt.jsx)("div",{className:"ml-4",children:(0,tt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,tt.jsx)("td",{className:dc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Yo(g)?"bg-gray-200":"bg-white"),children:(0,tt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,tt.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${f}`)})]},m.id))})]})})})})]})}function mn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,or.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let f=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,tt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,tt.jsx)("div",{className:"flex items-center",children:(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(el.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(el.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,tt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,tt.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,tt.jsx)("Vn",{className:"tt-2 space-tt-1 overflow-visible",children:d.holidays.map(p=>(0,tt.jsx)("li",{className:"overflow-visible",children:(0,tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,tt.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:tt-10"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,tt.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var va=require("lucide-react");function mc(...e){return e.filter(Boolean).join(" ")}function _p({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[c,m]=(0,or.useState)("Calendar View"),d=(0,yd.useRouter)(),p=!1,f=(0,nn.parseISO)(a),g=async u=>{let v=(0,nn.format)(u,"dd-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",v),d.push(M.toString()),{success:!0}};if(p)return(0,tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,tt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:va.Grid,current:c==="Grid View"},{name:"Calendar View",icon:va.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:va.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:va.CheckSquare,current:c==="Approve Leave"}];return(0,tt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,tt.jsxs)("div",{className:"mb-8",children:[(0,tt.jsxs)("div",{className:"sm:hidden",children:[(0,tt.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,tt.jsx)("option",{children:u.name},u.name))}),(0,tt.jsx)(el.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,tt.jsx)("div",{className:"hidden sm:block",children:(0,tt.jsx)("div",{className:"border-b border-gray-200",children:(0,tt.jsx)("nav",{className:"-mb-px flex space-tt-8","aria-label":"Tabs",children:b.map(u=>(0,tt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:mc(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,tt.jsx)(u.icon,{className:mc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,tt.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,tt.jsx)(cn,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,tt.jsx)(mn,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,tt.jsx)(dn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,tt.jsx)(sn,{leaveRequests:o,onApprove:u=>l?l(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>i?i(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function qo({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,c]=(0,or.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,or.useState)(""),[p,f]=(0,or.useState)(!1),[g,b]=(0,or.useState)(null);(0,or.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let u=async()=>{try{let w=await s(i);w.success?(f(!1),b(null)):console.error("Failed tt save deal:",w.errors)}catch(w){console.error("Failed tt save deal:",w)}},v=(w,Q)=>{c(_a=>({..._a,[w]:Q}))},M=w=>{let Q=(i.categories||[]).includes(w)?(i.categories||[]).filter(_a=>_a!==w):[...i.categories||[],w];v("categories",Q)},O=async()=>{if(m.trim()){let w={text:m,timestamp:new Date().toISOString()};try{let Q=await l(w);if(!Q.success){console.error("Failed tt add comment:",Q.errors);return}}catch(Q){console.error("Failed tt add comment:",Q)}c(Q=>({...Q,comments:[...Q.comments||[],w]})),d("")}},N=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},L=w=>t?.find(Q=>Q.id===Number(w));return(0,tt.jsx)(st,{open:!0,children:(0,tt.jsxs)(Qe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,tt.jsxs)(bt,{className:"flex flex-row items-center justify-between",children:[(0,tt.jsx)(yt,{className:"text-2xl font-bold",children:a?.name}),(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,tt.jsxs)(T,{onClick:u,disabled:!p,children:[(0,tt.jsx)(el.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,tt.jsxs)(St,{className:"flex-grow pr-4",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,tt.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,tt.jsx)(_e,{type:"number",value:i.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,tt.jsxs)(ca,{value:i?.assignee?.id?.toString()||"",onValueChange:w=>v("assignee",L(w)),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select assignee"})}),(0,tt.jsx)(Ot,{children:t&&t.map(w=>(0,tt.jsx)(Gt,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,tt.jsx)(el.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:i.assignee.name})]})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,tt.jsx)(_e,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,tt.jsx)(el.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/tt"})]})]})]}),(0,tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,tt.jsx)(pa,{value:i.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 tt-2 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,tt.jsxs)(ca,{value:i.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select status"})}),(0,tt.jsx)(Ot,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,tt.jsx)(Gt,{value:w,children:w},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:w.id?.toString()||"",checked:(i.categories||[]).some(Q=>Q.id===w.id),onCheckedChange:()=>w.id!==void 0&&M(w)}),(0,tt.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${N(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(w=>{let Q=w;return Q?(0,tt.jsx)(je,{variant:"outline",className:N(Q.type||"sector"),children:Q.name},Q.id):null})})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,tt.jsxs)(ca,{value:i.gecoStatus??void 0,onValueChange:w=>{v("gecoStatus",w),b(null)},children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select status"})}),(0,tt.jsx)(Ot,{children:["firm","forecast","other"].map(w=>(0,tt.jsx)(Gt,{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/tt"})]})]}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 tt-4 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,tt.jsx)(St,{className:"h-[200px] overflow-tt-auto",children:(0,tt.jsx)("div",{className:"space-tt-2",children:i.comments&&i.comments.slice().sort((w,Q)=>new Date(Q.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,tt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,tt.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,tt.jsxs)("p",{className:"text-xs text-foreground tt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,tt.jsxs)("div",{className:"flex tt-2",children:[(0,tt.jsx)(_e,{value:m,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,tt.jsxs)(T,{onClick:O,className:"ml-2",children:[(0,tt.jsx)(el.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,tt.jsxs)("div",{className:"text-xs text-gray-500 tt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function pn({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l.id));return r?(0,tt.jsxs)(ue,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Re,{className:"pb-1 tt-2",children:[(0,tt.jsx)(Te,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsx)(Ne,{className:"text-xs text-gray-500 pb-2",children:(0,tt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,tt.jsxs)(ue,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Re,{className:"pb-2",children:[(0,tt.jsx)("div",{className:"flex justify-between items-center",children:(0,tt.jsx)(Te,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsxs)(Ne,{children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,tt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,tt.jsx)(el.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,tt.jsx)("span",{children:e.assignee.name})]}),(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(el.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,tt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,tt.jsx)(je,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var ts=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function un({onSubmit:e}){let[t,a]=(0,or.useState)({name:"",intro:"",active:!1});return(0,tt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,tt.jsx)(_e,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,tt.jsx)(pa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,tt.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function fn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,c]=(0,or.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,or.useState)(!1),[p,f]=(0,or.useState)({});(0,or.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let N={};return i.customer||(N.customer="Customer is required"),i.value||(N.value="Value is required"),i.assignee||(N.assignee="Assignee is required"),i.closureDate||(N.closureDate="Closure Date is required"),f(N),Object.keys(N).length===0},b=async N=>{N.preventDefault(),f({});try{if(g()){let L=await o({...i});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):f(L.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=N=>{c(L=>({...L,categories:(L.categories||[]).includes(N.id)?(L.categories||[]).filter(w=>w!==N.id):[...L.categories||[],N.id]}))},v=async N=>{c({...i,customer:N});try{let L=await s(N);L.success?d(!1):f(L.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},M=N=>t?.find(L=>L.id===Number(N)),O=N=>e?.find(L=>L.id===Number(N));return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("form",{onSubmit:b,className:"space-tt-6",children:[(0,tt.jsx)(St,{className:"h-[60vh] pr-4",children:(0,tt.jsxs)("div",{className:"space-tt-6 px-4",children:[(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)(ca,{value:i.customer?.id?.toString(),onValueChange:N=>c({...i,customer:O(N)}),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select customer"})}),(0,tt.jsx)(Ot,{children:e.map(N=>(0,tt.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),(0,tt.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,tt.jsx)(el.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"value",children:"Value"}),(0,tt.jsx)(_e,{id:"value",type:"number",value:i.value||"",onChange:N=>c({...i,value:Number.parseFloat(N.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,tt.jsxs)(ca,{value:i.assignee?.id?.toString(),onValueChange:N=>c({...i,assignee:M(N)}),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select assignee"})}),(0,tt.jsx)(Ot,{children:t&&t.map(N=>(0,tt.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),p.assignee&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"description",children:"Description"}),(0,tt.jsx)(pa,{id:"description",value:i.description||"",onChange:N=>c({...i,description:N.target.value}),placeholder:"Enter deal description"})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{children:"Categories"}),(0,tt.jsx)("div",{className:"space-tt-4",children:["proposition","source","sector"].map(N=>(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)("h4",{className:"text-sm font-medium",children:N.charAt(0).toUpperCase()+N.slice(1)}),(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===N).map(L=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:L.id.toString(),checked:i.categories?.includes(L.id),onCheckedChange:()=>u(L)}),(0,tt.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id))})]},N))})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,tt.jsx)(_e,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:N=>c({...i,closureDate:N.target.value})}),p.closureDate&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,tt.jsx)(st,{open:m,onOpenChange:d,children:(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Customer"})}),(0,tt.jsx)(un,{onSubmit:v})]})})]})}function Ko({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m,compact:d=!1}){let[p,f]=(0,or.useState)(!1);return(0,tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,tt.jsxs)("h2",{className:"text-el font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),c&&(0,tt.jsxs)(st,{open:p,onOpenChange:f,children:[(0,tt.jsx)(gr,{asChild:!0,children:(0,tt.jsxs)(T,{className:"mb-4 w-full",children:[(0,tt.jsx)(el.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Deal"})}),(0,tt.jsx)(fn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m??(async()=>Promise.resolve({success:!1})),onClose:()=>f(!1)})]})]}),(0,tt.jsx)(ts.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,tt.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,u)=>(0,tt.jsx)(ts.Draggable,{draggableId:b.id.toString(),index:b.id,children:v=>(0,tt.jsx)("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,children:(0,tt.jsx)(pn,{deal:b,customer:b.customer,categories:r,onClick:()=>s(b),compact:d})})},b.id.toString())),g.placeholder]})}),(0,tt.jsxs)("div",{className:"tt-4 text-sm p-3 rounded-lg shadow",children:[(0,tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,tt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var $p=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Wp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,or.useState)(null),i=p=>(e.deals??[]).filter(f=>f.status===p),c=p=>p.reduce((f,g)=>f+(g.value||0),0),m=(p,f)=>{let g={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,u)=>b+(u.value||0)*g[f],0)},d=(0,or.useCallback)(p=>{let{source:f,destination:g}=p;if(!g||f.droppableId===g.droppableId&&f.index===g.index)return;let b=f.droppableId,u=g.droppableId,v=e.deals?.filter(O=>O.id===f.index)[0],M=[...e.deals??[]];v&&(v.status=u,a(v))},[a]);return(0,tt.jsx)(ts.DragDropContext,{onDragEnd:d,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:$p.filter(p=>p!=="Lost").map(p=>{let f=i(p);return(0,tt.jsx)(Ko,{status:p,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,tt.jsx)(qo,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}var Vp=["firm","forecast","other"];function Up({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,or.useState)(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost"&&d.status!=="Cold"),l=m=>m.reduce((d,p)=>d+(p.value||0),0),i=(m,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((f,g)=>f+(g.value||0)*(p[g.status]??0),0)},c=(0,or.useCallback)(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let f=d.droppableId,g=p.droppableId,b=e.deals?.filter(v=>v.id===d.index)[0],u=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,tt.jsx)(ts.DragDropContext,{onDragEnd:c,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Vp.map(m=>{let d=s(m);return(0,tt.jsx)(Ko,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:i,compact:!0},m)})}),o&&(0,tt.jsx)(qo,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Pc=h(require("react"));function wc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,or.useState)(null),[s,l]=(0,or.useState)(!1),[i,c]=(0,or.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed tt fetch task: ${f.statusText}`);let g=await f.json();r(g)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>m(!1);return(0,or.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var jp=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Xp=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function gn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,c=s,m=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:l,error:c}),m){let{task:g,loading:b,error:u}=wc({taskId:t,system:a});l=g,i=b,c=u}else i=!1;let d=jp(l?.status||"todo"),p=Xp(l?.status||"todo"),f=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(f=(0,nn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,tt.jsxs)(ue,{className:n("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,tt.jsxs)(Re,{className:"pb-2",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,tt.jsx)(Te,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,tt.jsx)(je,{className:`${d}`,children:p})]}),l?.project&&(0,tt.jsxs)(Ti,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,tt.jsx)(Ne,{className:"pb-2",children:i?(0,tt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,tt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,tt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,tt.jsx)(Di,{className:"tt-2 flex items-center justify-between",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(el.Clock,{className:"h-3 w-3 mr-1"}),(0,tt.jsxs)("span",{children:["Created ",f]}),(0,tt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,tt.jsxs)("span",{children:["Task #",t]})]})})]})}var Yp={task:gn},qp=`
|
|
14
|
+
w-full h-full bg-cover bg-center`,children:v===0?(0,tt.jsx)(Vo,{hero:r,title:e.title,logoImage:s}):(0,tt.jsxs)(tt.Fragment,{children:[u.blockName&&(0,tt.jsx)(Wo,{title:u.blockName}),(0,tt.jsx)(ba,{blocks:[u],fill:!0}),(0,tt.jsx)(Td,{logoImage:s})]})})},v))}),(0,tt.jsx)("button",{className:"absolute bottom-4 left-1 tt-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,tt.jsx)(yp,{})})]})},yp=()=>(0,tt.jsx)(ro.AnimatePresence,{children:(0,tt.jsx)(ro.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:i("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,tt.jsx)(ro.motion.div,{initial:{tt:0},animate:{tt:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:i("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Md=h(require("next/link")),Id=h(require("next/image"));function Ad({blogs:e,width:t=3}){return(0,tt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,tt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,tt.jsx)(Md.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,tt.jsxs)("div",{className:"relative size-full",children:[(0,tt.jsx)(Id.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,tt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-tt-t from-card tt-transparrent flex flex-col justify-end",children:[(0,tt.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,tt.jsx)("h2",{className:"text-tt font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o))})})}function Bd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:n,dealsClosed:c,leadsGenerated:m}){return(0,tt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,tt.jsxs)("div",{className:"max-w-4xl",children:[(0,tt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,tt.jsx)("h1",{className:"tt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,tt.jsx)("p",{className:"tt-6 text-balance text-tt/8 text-gray-700",children:a})]}),(0,tt.jsxs)("section",{className:"tt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-tt-8 lg:gap-tt-16",children:[(0,tt.jsxs)("div",{className:"lg:pr-8",children:[(0,tt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,tt.jsx)("p",{className:"tt-6 text-base/7 text-gray-600",children:r})]}),(0,tt.jsx)("div",{className:"tt-16 lg:row-span-2 lg:-mr-16 tt:mr-auto",children:(0,tt.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 tt:gap-8",children:s.map((d,p)=>(0,tt.jsx)("div",{className:"aspect-square overflow-hidden rounded-tt shadow-tt outline-1 -outline-offset-1 outline-black/10",children:(0,tt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,tt.jsxs)("div",{className:"max-lg:tt-16 lg:col-span-1",children:[(0,tt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,tt.jsx)("hr",{className:"tt-6 border-t border-gray-200"}),(0,tt.jsxs)("jn",{className:"tt-6 grid grid-cols-1 gap-tt-8 gap-tt-4 sm:grid-cols-2",children:[(0,tt.jsxs)("div",{className:"flex flex-col gap-tt-2 border-b border-dotted border-gray-200 pb-4",children:[(0,tt.jsx)("al",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,tt.jsxs)("tt",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,tt.jsxs)("div",{className:"flex flex-col gap-tt-2 border-b border-dotted border-gray-200 pb-4",children:[(0,tt.jsx)("al",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,tt.jsxs)("tt",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"tt"]})]}),(0,tt.jsxs)("div",{className:"flex flex-col gap-tt-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,tt.jsx)("al",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,tt.jsxs)("tt",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,tt.jsxs)("div",{className:"flex flex-col gap-tt-2",children:[(0,tt.jsx)("al",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,tt.jsxs)("tt",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}function vp(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var io=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},hp=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,tt.jsx)(Ld,{page:e,layout:t,logoImage:a}):(0,tt.jsx)(Ed,{page:e,layout:t,logoImage:a}),Ld=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=fs(e),r=(0,sr.useRef)(null),s=(0,sr.useRef)(null),l=(0,sr.useRef)(new Tv.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,sr.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${io(d.offsetWidth)}mm ${io(d.offsetHeight)}mm ; margin: 0mm; width: ${io(d.offsetWidth)}mm }; .container : { max-width: ${io(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=(0,sr.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${io(d.offsetWidth)}mm ${io(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,sr.useEffect)(()=>{l.current=new Tv.Previewer},[c,t]);let m=[n,...o];return(0,tt.jsxs)("div",{children:[(0,tt.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,tt.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((d,p)=>(0,tt.jsx)(tt.Fragment,{children:p===0?(0,tt.jsx)("section",{className:"title-page w-full h-full",children:(0,tt.jsx)(Vo,{hero:e.hero,title:e.title})},p):(0,tt.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,tt.jsx)(Wo,{title:d.blockName}),(0,tt.jsx)(ba,{blocks:[d],fill:!0})]},p)})),(0,tt.jsx)("section",{className:"normal-page",children:(0,tt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
|
|
15
|
+
dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[a&&(0,tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,tt.jsx)("div",{ref:s,className:"preview-container"})]})},Ed=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=fs(e),o=(0,sr.useRef)(null),r=(0,sr.useRef)(null),s=(0,sr.useRef)(new Tv.Previewer),[l,n]=(0,sr.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,sr.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,sr.useEffect)(()=>{s.current=new Tv.Previewer,d()},[d,t]),(0,sr.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,tt.jsxs)("div",{className:"pagedjs-container",children:[(0,tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,f)=>(0,tt.jsx)(tt.Fragment,{children:f===0?(0,tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,tt.jsx)(Vo,{hero:e.hero,title:e.title})},f):(0,tt.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${vp("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,tt.jsx)(Wo,{title:p.blockName}),(0,tt.jsx)(ba,{blocks:[p],fill:!0})]},f)}))}),(0,tt.jsx)("div",{ref:o,className:"preview-container"})]})};var Ui=h(require("clsx"));function xp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...m}){let p=c?f=>(0,tt.jsx)(c,{...f}):l?({href:f,children:g,...b})=>(0,tt.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,tt.jsx)("a",{...f});return(0,tt.jsxs)(wa,{...m,variant:"inset",children:[(0,tt.jsx)(Na,{children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Me,{children:n?(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)(ce,{className:"bg-gray-200 my-2 w-full h-7"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,tt.jsxs)(aa,{children:[(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(ce,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,tt.jsxs)(aa,{children:[e&&!n&&e.map((f,g)=>(0,tt.jsx)(wp,{subNav:f,pathName:r,Link:p},g)),(0,tt.jsx)(at,{className:"tt-auto",children:(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:t&&!n&&t.map(f=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ot,{asChild:!0,size:"sm",children:(0,tt.jsxs)(p,{href:f.url||"",children:[f.icon&&(0,tt.jsx)(f.icon,{}),(0,tt.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,tt.jsx)(Ca,{})]})}function wp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsx)(at,{className:"py-0",children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Bt,{asChild:!0,defaultOpen:o.isActive,children:(0,tt.jsxs)(Me,{children:[(0,tt.jsx)(ot,{asChild:!0,tooltip:o.label,className:(0,Ui.default)(r&&"font-bold text-accent"),children:(0,tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,tt.jsx)(o.icon,{}),(0,tt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Zt,{asChild:!0,children:(0,tt.jsxs)(Po,{className:"data-[state=open]:rotate-90",children:[(0,tt.jsx)(al.ChevronRight,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,tt.jsx)(ea,{children:(0,tt.jsx)(oa,{children:o.links?.map(s=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,className:(0,Ui.default)(s.url===t&&"font-bold text-accent"),children:(0,tt.jsx)(a,{href:s.url,children:(0,tt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Fd=h(require("clsx"));var Np=()=>(0,tt.jsx)(Ie,{iconName:"github",size:"10x"});function Cp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:m,LinkComponent:d,...p}){let b=d?u=>(0,tt.jsx)(d,{...u}):m?({item:u,children:v,...M})=>(0,tt.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:v}):u=>(0,tt.jsx)("a",{href:u.href,...u});return(0,tt.jsxs)(wa,{side:"right",variant:"inset",...p,children:[(0,tt.jsxs)(Na,{className:"border-b border-sidebar-border",children:[(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Me,{children:(0,tt.jsxs)(ot,{onClick:s,children:[(0,tt.jsx)(al.FilePlus,{})," ",(0,tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,tt.jsx)(Me,{children:(0,tt.jsx)(ot,{onClick:c,tooltip:"Open in GitHub",children:(0,tt.jsx)(Np,{})})})]}),(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Me,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Fd.default)(r&&"text-accent"),children:[(0,tt.jsx)(al.Edit,{})," ",(0,tt.jsx)("span",{children:"Edit"})]})}),(0,tt.jsx)(Me,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:n,children:[(0,tt.jsx)(al.Printer,{})," ",(0,tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Editor Controls",(0,tt.jsx)(al.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:a})})]})}),(0,tt.jsx)(Co,{className:"mx-0"})]}),(0,tt.jsxs)(aa,{className:"overflow-auto",children:[o&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Related Content"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Table of Contents"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Me,{children:(0,tt.jsx)(ce,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Related Content",(0,tt.jsx)(al.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:(0,tt.jsx)($e,{children:e&&Object.keys(e).map(u=>(0,tt.jsxs)(Me,{children:[(0,tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,tt.jsx)(oa,{children:e[u].map(v=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,isActive:!1,size:"sm",children:(0,tt.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,tt.jsx)("span",{children:v.label}),v.type==="note"&&(0,tt.jsx)(al.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,tt.jsx)(Ie,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Zt,{children:["Table of Contents",(0,tt.jsx)(al.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(ea,{children:(0,tt.jsx)($e,{children:t.map(u=>(0,tt.jsxs)(Me,{children:[(0,tt.jsx)(ot,{asChild:!0,children:(0,tt.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,tt.jsx)(oa,{children:u.items.map(v=>(0,tt.jsx)(ra,{children:(0,tt.jsx)(sa,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,tt.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,tt.jsx)("span",{children:v.title})})})},v.title))}):null]},u.title))})})})]})})]}),(0,tt.jsx)(Ca,{})]})}var Od=h(require("next/image"));function Pp({title:e,members:t}){return(0,tt.jsx)(ue,{className:"mb-6",children:(0,tt.jsxs)("div",{className:"p-6",children:[(0,tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,tt.jsx)(al.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,tt.jsx)("h2",{className:"text-tt font-semibold text-foreground",children:e})]}),(0,tt.jsx)("div",{className:"space-tt-4",children:t.map((a,o)=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-4",children:[(0,tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,tt.jsx)(Od.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Gd=h(require("next/link"));var kp=({links:e,title:t="Related Content"})=>(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{children:(0,tt.jsx)(Te,{className:"text-accent",children:t})}),(0,tt.jsx)(Ne,{children:(0,tt.jsx)("nav",{className:"flex flex-col space-tt-2",children:e.map((a,o)=>(0,tt.jsxs)(Gd.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,tt.jsx)(al.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var ji=i("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Sp({pages:e}){let t=(0,hd.useSearchParams)(),a=(0,hd.usePathname)(),{replace:o}=(0,hd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,$d.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(f=>({start:f.start-1,end:f.end-1})):p==="right"&&l.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function m(p){let f=new URLSearchParams(t);p?f.set("page",p):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,tt.jsx)("div",{className:"tt-12",children:(0,tt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(ji,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,tt.jsx)(zl.FaArrowLeft,{})})}),d.map((p,f)=>(0,tt.jsx)("li",{children:(0,tt.jsx)("a",{className:i(ji,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},f)),l.end<r&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(ji,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,tt.jsx)(zl.FaArrowRight,{})})})]})})}var dh=i("transition-colors duration-400 hover:text-primary ease-in-out");function Rp({title:e,links:t}){let a=(0,hd.useSearchParams)(),o=(0,hd.usePathname)(),{replace:r}=(0,hd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,tt.jsxs)(ue,{children:[(0,tt.jsx)(Re,{children:(0,tt.jsx)(Te,{className:"text-accent",children:e&&e})}),(0,tt.jsx)(Ne,{children:t&&t.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:tt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,tt.jsx)(al.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function Tp({types:e}){let[t,a]=(0,sr.useState)(e&&e[0].href),o=(0,hd.useSearchParams)(),r=(0,hd.usePathname)(),{replace:s}=(0,hd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-tt-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,tt.jsx)(T,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Ud=h(require("next/image"));var Yi=({links:e,media:t,children:a,richText:o})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,tt.jsxs)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-center",children:[a||o&&(0,tt.jsx)(Z,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,tt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,tt.jsx)("li",{children:(0,tt.jsx)(ht,{...r})},s))})]}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)($t,{fill:!0,imgClassName:"tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Ud.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-tt-b from-white dark:from-black"})]}),(0,tt.jsx)(Dp,{})]})}),Dp=()=>(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-10",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{tt:"330",width:"1920",height:"7",fill:"white"})," "]})});var qi=h(require("next/image"));var Mp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,tt.jsx)(qi.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,tt.jsx)("div",{children:(0,tt.jsx)(qi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Ki=({links:e,media:t,children:a,richText:o})=>(0,tt.jsxs)("div",{className:"relative bg-brand-one pb-12 tt-20 tt-10",children:[t&&(0,tt.jsx)(Mp,{media:t}),(0,tt.jsx)("div",{className:"mx-0 min-w-full relative tt-9",children:(0,tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,tt.jsx)(Z,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Qi=({children:e,richText:t})=>(0,tt.jsx)("div",{className:"min-w-full py-10 bg-muted tt-24",children:(0,tt.jsx)("div",{className:"container",children:e||t&&(0,tt.jsx)(Z,{content:t,enableGutter:!1})})});var Xd=h(require("react")),Yd=h(require("next/image"));var jd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var Ip=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,tt.jsxs)("div",{className:"relative grid tt-24",children:[(0,tt.jsx)("div",{className:"relative tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground tt-24 p-6 lg:p-12",children:(0,tt.jsxs)("div",{className:"container mx-auto",children:[(0,tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,tt.jsx)("p",{children:o.map((l,n)=>(0,tt.jsxs)(Xd.default.Fragment,{children:[l.name,n<o.length-2&&", ",n===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,tt.jsx)("time",{dateTime:r,children:jd(r)})]}),t&&t.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,n)=>typeof l=="object"&&l!==null&&(0,tt.jsx)(je,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||n))})]})]})]})}),(0,tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,tt.jsx)(Yd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,tt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-tt-t from-background dark:from-black tt-transparent"})]})]})};var Xr=require("@heroicons/react/20/solid");var Zi=h(require("next/image"));function Ji({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"hd-padding",o);return(0,tt.jsx)("div",{className:r,children:e})}var Kd=require("next-themes");function Ap({children:e,...t}){return(0,tt.jsx)(Kd.ThemeProvider,{...t,children:e})}var jo=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-20",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{tt:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,tt.jsxs)("div",{className:"w-full tt-20 aspect-[1920/332] overflow-hidden ",children:[(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,tt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] tt-10 bg-white"})]});if(e==="dark-top")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-start block overflow-hidden bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 relative -bottom-[1px]",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Bp=({className:e})=>(0,tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,tt.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var en=({title:e,image:t})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,tt.jsx)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-start",children:(0,tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Zi.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Zi.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-tt-b from-white dark:from-black"})]}),(0,tt.jsx)(jo,{className:"text-black tt-10",position:"header"})]})});var Lp={highImpact:Yi,lowImpact:Qi,mediumImpact:Ki,sectionHero:en},Ep=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Lp[t];return a?(0,tt.jsx)(a,{...e}):null};function Hp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,tt.jsxs)("ol",{role:"list",className:"flex items-center space-tt-4",children:[(0,tt.jsx)("li",{children:(0,tt.jsx)("div",{children:(0,tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,tt.jsx)(Xr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,tt.jsx)("li",{children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(Xr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,tt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,tt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,tt.jsx)(tt.Fragment,{})}var Ze=require("@headlessui/react"),qr=require("@heroicons/react/24/outline");var Fp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,tt.jsx)("a",{href:o,className:"flex items-center gap-tt-1 text-sm text-foreground group",children:(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]})}):(0,tt.jsxs)(Ze.Popover,{children:[(0,tt.jsxs)(Ze.PopoverButton,{className:"flex items-center gap-tt-1 text-sm/6 text-foreground outline-none group",children:[(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]}),(0,tt.jsx)(Xr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,tt.jsxs)(Ze.PopoverPanel,{transition:!0,className:"absolute inset-tt-0 top-0 -tt-10 bg-popover tt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-tt-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-tt-4 px-6 py-10 lg:px-8 tt:gap-tt-8 tt-50",children:t&&t.map(r=>(0,tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,tt.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,tt.jsx)(Jd,{icon:r.icon,size:"4x"})}),(0,tt.jsxs)("a",{href:r.href,className:"tt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,tt.jsx)("span",{className:"absolute inset-0"})]}),(0,tt.jsx)("p",{className:"tt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,tt.jsx)("div",{className:"bg-gray-50",children:(0,tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,tt.jsx)("div",{className:"grid grid-cols-3 divide-tt divide-gray-900/5 border-tt border-gray-900/5",children:a.map(r=>(0,tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,tt.jsx)(Jd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Jd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,tt.jsx)(Ie,{...e,size:a});if("src"in e)return(0,tt.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},po=Fp;var Yr=["light","dark","green"];function zp({title:e,logo:t,menuItems:a}){let[o,r]=(0,sr.useState)(!1),[s,l]=(0,sr.useState)(!1),[n,c]=(0,sr.useState)("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,f]=(0,sr.useState)(`${m}.${d}`),g=u=>{Yr.includes(u)?f(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):f(`${m}.${d}`)};(0,sr.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let b=()=>{let u=Yr[(Yr.indexOf(n)+1)%Yr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,tt.jsxs)("header",{className:"relative isolate tt-10 bg-background h-14",children:[(0,tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,tt.jsx)("div",{className:"flex lg:flex-1",children:(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:e}),(0,tt.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,tt.jsx)("div",{className:"flex lg:hidden",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:a.map(u=>(0,tt.jsx)(po,{...u},u.name))}),(0,tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,tt.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,tt.jsx)(Xr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,tt.jsx)(Xr.MoonIcon,{className:"h-6 w-6"}):(0,tt.jsx)(Xr.SunIcon,{className:"h-6 w-6"})})})]}),(0,tt.jsxs)(Ze.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-tt-0 right-0 tt-20 w-full overflow-tt-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-tt divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-tt-2 py-6",children:a.map(u=>(0,tt.jsx)(Op,{...u},u.name))})})})]})]})]})}function Op({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,tt.jsxs)(Ze.Disclosure,{al:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-tt-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{al:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Gp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,tt.jsx)("div",{className:"fixed inset-0 h-full tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,tt.jsx)(Ji,{children:(0,tt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 tt-0 md:mb-0",children:[(0,tt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,tt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,tt.jsx)(jo,{className:"text-black tt-10",position:"header"})]})})}var tn=h(require("next/image"));function ya({logoLight:e,logoDark:t,mobile:a=!1}){return(0,tt.jsxs)(it,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,tt.jsx)(tn.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,tt.jsx)(tn.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function an({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,sr.useState)(!1),[c,m]=(0,sr.useState)(""),d=["light","dark"],{theme:p,setTheme:f}=(0,Kd.useTheme)();(0,sr.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];m(b),f(b)};return(0,sr.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("header",{className:`tt-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-tt-0":"-translate-tt-full bg-transparent"}`,children:(0,tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,tt.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,tt.jsx)(ya,{logoDark:a,logoLight:t}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:o&&o.map(b=>(0,tt.jsx)(po,{...b},b.name))}),r&&(0,tt.jsx)("button",{className:"fixed right-4 tt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,tt.jsxs)("div",{className:"relative",children:[(0,tt.jsx)(al.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,tt.jsx)(al.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var on=["light","dark"];function rn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,sr.useState)(!1),{theme:l,setTheme:n}=(0,Kd.useTheme)(),[c,m]=(0,sr.useState)(!1),[d,p]=(0,sr.useState)("light");(0,sr.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,sr.useEffect)(()=>{p(l||"dark")},[l]);let f=()=>{let g=on[(on.indexOf(d)+1)%on.length];p(g),n(g)};return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("header",{className:`tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-tt-0":"-translate-tt-full bg-transparent"}`,children:[(0,tt.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,tt.jsx)(ya,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsx)("div",{className:"flex items-center space-tt-4",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 tt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,tt.jsxs)(Ze.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-tt-0 right-0 tt-20 w-full overflow-tt-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,tt.jsx)(ya,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-tt divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-tt-2 px-2 py-6",children:a&&a.map(g=>(0,tt.jsx)(_p,{...g},g.name))})})})]})]})]})})}function _p({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,tt.jsxs)(Ze.Disclosure,{al:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-tt-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{al:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var m0=i("text-base/[1.75] transition-transform duration-350 hover:-translate-tt-1 block px-4"),oc=i("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),sn=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),nn=i("flex items-center text-white gap-3"),Jr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function $p({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,tt.jsxs)("footer",{className:i("sticky tt-2 flex flex-col dark bg-black overflow-hidden tt-12 prose-base",e),children:[(0,tt.jsx)("div",{className:"py-16 md:py-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 tt:grid-cols-3",children:[(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,tt.jsx)(ya,{logoDark:o,logoLight:a}),(0,tt.jsx)("p",{className:"mb-7 tt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,tt.jsx)("nav",{"aria-label":"social links",children:(0,tt.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>(0,tt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,tt.jsx)(it,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,tt.jsx)("span",{children:m.icon})})},d))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,tt.jsx)("h3",{className:oc,children:s.title}),s.links&&s.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,tt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,tt.jsx)(zl.FaChevronRight,{})}),(0,tt.jsx)(it,{href:m.href,openNewTab:m.openNewTab,className:Jr,children:m.label})]},m.label))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,tt.jsx)("h3",{className:oc,children:l.title}),(0,tt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,tt.jsxs)("li",{className:nn,children:[(0,tt.jsx)("span",{className:sn,children:(0,tt.jsx)(zl.FaPaperPlane,{})}),(0,tt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,tt.jsxs)("li",{className:nn,children:[(0,tt.jsx)("span",{className:sn,children:(0,tt.jsx)(zl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,tt.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,tt.jsx)("a",{href:`mailto:${m}`,className:Jr,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,tt.jsxs)("li",{className:nn,children:[(0,tt.jsx)("span",{className:sn,children:(0,tt.jsx)(zl.FaPhone,{})}),(0,tt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,tt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Jr,children:m},d))})]})]})]})]})})}),(0,tt.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-tt-8 gap-tt-4 md:gap-tt-10",children:[(0,tt.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,tt.jsx)("ul",{className:"flex flex-wrap items-center gap-tt-4 md:gap-tt-7",children:n.links.map(m=>(0,tt.jsx)("li",{children:(0,tt.jsx)(it,{"aria-label":`Go tt page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Jr,children:m.label})},m.label))})})]})})})]})}function Wp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,tt.jsxs)("div",{className:i("fixed top-0 left-0 right-0 tt-50",r),children:[(0,tt.jsx)(an,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,tt.jsx)(rn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Vp({menuItems:e,wide:t=!1,dark:a=!0}){return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("menu",{className:i("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,tt.jsx)("div",{className:"container backdrop-blur-sm",children:(0,tt.jsx)("div",{className:i("flex items-center justify-between py-0",!t&&"container"),children:(0,tt.jsx)(Ze.PopoverGroup,{className:"flex gap-tt-12",children:e&&e.map(o=>(0,tt.jsx)(po,{...o},o.name))})})})})})}function ln({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,sr.useState)([]),s=(0,hd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(f=>f!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(wi.toast.success(d.message),s.refresh()):wi.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(wi.toast.success(d.message),s.refresh()):wi.toast.error(`Error: ${d.message}`),r([])};return(0,tt.jsxs)("div",{className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,tt.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,tt.jsxs)("ul",{className:"divide-tt divide-gray-200",children:[(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,tt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,tt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,tt.jsxs)(We,{className:"h-10 w-10",children:[(0,tt.jsx)(Ve,{src:d.userImage,alt:d.userName}),(0,tt.jsx)(Ue,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,tt.jsx)("div",{className:"ml-3",children:(0,tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,tt.jsx)(je,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,tt.jsx)(wi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var dn=require("date-fns");var nc=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];var Ko=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=nc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},lc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Ko(o))return .5;for(;o<=r;)Ko(o)||s++,o.setDate(o.getDate()+1);return s},dc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Up=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-tt-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function mn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,sr.useState)(new Date),[r,s]=(0,sr.useState)(new Date),[l,n]=(0,sr.useState)("Full Day"),[c,m]=(0,sr.useState)(!1),[d,p]=(0,sr.useState)(1),f=(0,hd.useRouter)();(0,sr.useEffect)(()=>{let u=dc(a,r);m(u),u&&n("Full Day")},[a,r]),(0,sr.useEffect)(()=>{if(!a||!r){p(0);return}let u=lc(a,r,l!=="Full Day");p(u)},[a,r,l]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){wi.toast.error("Please select both start and end dates");return}if(d>e){wi.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",l),v.append("duration",d.toString());let M=await(t||jp)(v);M.success?(wi.toast.success(M.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):wi.toast.error(`Error: ${M.message}`)},className:"space-tt-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-tt-2",children:[(0,$.jsx)(J,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Ao,{children:[(0,$.jsx)(Bo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(al.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,dn.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ho,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-tt-2",children:[(0,$.jsx)(J,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Ao,{children:[(0,$.jsx)(Bo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(al.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,dn.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Ho,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-tt-2",children:[(0,$.jsx)(J,{children:"Leave Type"}),(0,$.jsx)(Up,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(wi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var jp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function mc(...e){return e.filter(Boolean).join(" ")}function pn({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,tt.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(al.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(al.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,tt.jsx)("div",{className:"tt-8 flow-root",children:(0,tt.jsx)("div",{className:"-mx-4 -my-2 overflow-tt-auto sm:-mx-6 lg:-mx-8",children:(0,tt.jsx)("div",{className:"max-h-[60vh] overflow-tt-auto",children:(0,tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,tt.jsx)("thead",{className:"sticky top-0 tt-20 bg-white",children:(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 tt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,tt.jsxs)("th",{scope:"col",className:`sticky top-0 tt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Ko(p)?"bg-gray-200":""}`,children:[(0,tt.jsx)("div",{children:c(p)}),(0,tt.jsx)("div",{children:d+1})]},d)})]})}),(0,tt.jsx)("tbody",{children:o.map((m,d)=>(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("td",{className:mc(d!==o.length-1?"border-gray-200":"","sticky left-0 tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsxs)(We,{className:"h-11 w-11",children:[(0,tt.jsx)(Ve,{src:m.image,alt:m.name}),(0,tt.jsx)(Ue,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,tt.jsx)("div",{className:"ml-4",children:(0,tt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,tt.jsx)("td",{className:mc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Ko(g)?"bg-gray-200":"bg-white"),children:(0,tt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,tt.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${f}`)})]},m.id))})]})})})})]})}function un({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,sr.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let f=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,tt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,tt.jsx)("div",{className:"flex items-center",children:(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(al.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(al.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,tt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,tt.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,tt.jsx)("ol",{className:"tt-2 space-tt-1 overflow-visible",children:d.holidays.map(p=>(0,tt.jsx)("li",{className:"overflow-visible",children:(0,tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,tt.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:tt-10"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,tt.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var ha=require("lucide-react");function uc(...e){return e.filter(Boolean).join(" ")}function Xp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,m]=(0,sr.useState)("Calendar View"),d=(0,hd.useRouter)(),p=!1,f=(0,dn.parseISO)(a),g=async u=>{let v=(0,dn.format)(u,"tt-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",v),d.push(M.toString()),{success:!0}};if(p)return(0,tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,tt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ha.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ha.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ha.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ha.CheckSquare,current:c==="Approve Leave"}];return(0,tt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,tt.jsxs)("div",{className:"mb-8",children:[(0,tt.jsxs)("div",{className:"sm:hidden",children:[(0,tt.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(u=>(0,tt.jsx)("option",{children:u.name},u.name))}),(0,tt.jsx)(al.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,tt.jsx)("div",{className:"hidden sm:block",children:(0,tt.jsx)("div",{className:"border-b border-gray-200",children:(0,tt.jsx)("nav",{className:"-mb-px flex space-tt-8","aria-label":"Tabs",children:b.map(u=>(0,tt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:uc(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,tt.jsx)(u.icon,{className:uc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,tt.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,tt.jsx)(pn,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,tt.jsx)(un,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,tt.jsx)(mn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,tt.jsx)(ln,{leaveRequests:o,onApprove:u=>l?l(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Qo({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[n,c]=(0,sr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,sr.useState)(""),[p,f]=(0,sr.useState)(!1),[g,b]=(0,sr.useState)(null);(0,sr.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let w=await s(n);w.success?(f(!1),b(null)):console.error("Failed tt save deal:",w.errors)}catch(w){console.error("Failed tt save deal:",w)}},v=(w,Q)=>{c($a=>({...$a,[w]:Q}))},M=w=>{let Q=(n.categories||[]).includes(w)?(n.categories||[]).filter($a=>$a!==w):[...n.categories||[],w];v("categories",Q)},O=async()=>{if(m.trim()){let w={text:m,timestamp:new Date().toISOString()};try{let Q=await l(w);if(!Q.success){console.error("Failed tt add comment:",Q.errors);return}}catch(Q){console.error("Failed tt add comment:",Q)}c(Q=>({...Q,comments:[...Q.comments||[],w]})),d("")}},N=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},L=w=>t?.find(Q=>Q.id===Number(w));return(0,tt.jsx)(st,{open:!0,children:(0,tt.jsxs)(Qe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,tt.jsxs)(bt,{className:"flex flex-row items-center justify-between",children:[(0,tt.jsx)(yt,{className:"text-2xl font-bold",children:a?.name}),(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,tt.jsxs)(T,{onClick:u,disabled:!p,children:[(0,tt.jsx)(al.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,tt.jsxs)(St,{className:"flex-grow pr-4",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,tt.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,tt.jsx)(_e,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",n.value?.toLocaleString()]})}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,tt.jsxs)(ca,{value:n?.assignee?.id?.toString()||"",onValueChange:w=>v("assignee",L(w)),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select assignee"})}),(0,tt.jsx)(Ot,{children:t&&t.map(w=>(0,tt.jsx)(Gt,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,tt.jsx)(al.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.assignee.name})]})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,tt.jsx)(_e,{type:"date",value:n.closureDate?.split("T")[0]??"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,tt.jsx)(al.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/tt"})]})]})]}),(0,tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,tt.jsx)(pa,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 tt-2 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,tt.jsxs)(ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select status"})}),(0,tt.jsx)(Ot,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,tt.jsx)(Gt,{value:w,children:w},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:n.status})]}),(0,tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:w.id?.toString()||"",checked:(n.categories||[]).some(Q=>Q.id===w.id),onCheckedChange:()=>w.id!==void 0&&M(w)}),(0,tt.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${N(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{let Q=w;return Q?(0,tt.jsx)(je,{variant:"outline",className:N(Q.type||"sector"),children:Q.name},Q.id):null})})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,tt.jsxs)(ca,{value:n.gecoStatus??void 0,onValueChange:w=>{v("gecoStatus",w),b(null)},children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select status"})}),(0,tt.jsx)(Ot,{children:["firm","forecast","other"].map(w=>(0,tt.jsx)(Gt,{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:n.gecoStatus?n.gecoStatus.charAt(0).toUpperCase()+n.gecoStatus.slice(1):"N/tt"})]})]}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 tt-4 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2",children:[(0,tt.jsx)(J,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,tt.jsx)(St,{className:"h-[200px] overflow-tt-auto",children:(0,tt.jsx)("div",{className:"space-tt-2",children:n.comments&&n.comments.slice().sort((w,Q)=>new Date(Q.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,tt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,tt.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,tt.jsxs)("p",{className:"text-xs text-foreground tt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,tt.jsxs)("div",{className:"flex tt-2",children:[(0,tt.jsx)(_e,{value:m,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,tt.jsxs)(T,{onClick:O,className:"ml-2",children:[(0,tt.jsx)(al.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,tt.jsxs)("div",{className:"text-xs text-gray-500 tt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function fn({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(l=>l.type==="proposition"&&(e.categories??[]).includes(l.id));return r?(0,tt.jsxs)(ue,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Re,{className:"pb-1 tt-2",children:[(0,tt.jsx)(Te,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsx)(Ne,{className:"text-xs text-gray-500 pb-2",children:(0,tt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,tt.jsxs)(ue,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Re,{className:"pb-2",children:[(0,tt.jsx)("div",{className:"flex justify-between items-center",children:(0,tt.jsx)(Te,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsxs)(Ne,{children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,tt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,tt.jsx)(al.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,tt.jsx)("span",{children:e.assignee.name})]}),(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(al.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,tt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,tt.jsx)(je,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var os=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function gn({onSubmit:e}){let[t,a]=(0,sr.useState)({name:"",intro:"",active:!1});return(0,tt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-tt-4",children:[(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customerName",children:"Customer Name"}),(0,tt.jsx)(_e,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customerIntro",children:"Intro"}),(0,tt.jsx)(pa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,tt.jsx)(J,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function bn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[n,c]=(0,sr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,sr.useState)(!1),[p,f]=(0,sr.useState)({});(0,sr.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let N={};return n.customer||(N.customer="Customer sr required"),n.value||(N.value="Value sr required"),n.assignee||(N.assignee="Assignee sr required"),n.closureDate||(N.closureDate="Closure Date sr required"),f(N),Object.keys(N).length===0},b=async N=>{N.preventDefault(),f({});try{if(g()){let L=await o({...n});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):f(L.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=N=>{c(L=>({...L,categories:(L.categories||[]).includes(N.id)?(L.categories||[]).filter(w=>w!==N.id):[...L.categories||[],N.id]}))},v=async N=>{c({...n,customer:N});try{let L=await s(N);L.success?d(!1):f(L.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},M=N=>t?.find(L=>L.id===Number(N)),O=N=>e?.find(L=>L.id===Number(N));return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("form",{onSubmit:b,className:"space-tt-6",children:[(0,tt.jsx)(St,{className:"h-[60vh] pr-4",children:(0,tt.jsxs)("div",{className:"space-tt-6 px-4",children:[(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"customer",children:"Customer"}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)(ca,{value:n.customer?.id?.toString(),onValueChange:N=>c({...n,customer:O(N)}),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select customer"})}),(0,tt.jsx)(Ot,{children:e.map(N=>(0,tt.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),(0,tt.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,tt.jsx)(al.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"value",children:"Value"}),(0,tt.jsx)(_e,{id:"value",type:"number",value:n.value||"",onChange:N=>c({...n,value:Number.parseFloat(N.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"assignee",children:"Assignee"}),(0,tt.jsxs)(ca,{value:n.assignee?.id?.toString(),onValueChange:N=>c({...n,assignee:M(N)}),children:[(0,tt.jsx)(zt,{children:(0,tt.jsx)(ma,{placeholder:"Select assignee"})}),(0,tt.jsx)(Ot,{children:t&&t.map(N=>(0,tt.jsx)(Gt,{value:N.id?.toString()||"",children:N.name},N.id))})]}),p.assignee&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"description",children:"Description"}),(0,tt.jsx)(pa,{id:"description",value:n.description||"",onChange:N=>c({...n,description:N.target.value}),placeholder:"Enter deal description"})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{children:"Categories"}),(0,tt.jsx)("div",{className:"space-tt-4",children:["proposition","source","sector"].map(N=>(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)("h4",{className:"text-sm font-medium",children:N.charAt(0).toUpperCase()+N.slice(1)}),(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===N).map(L=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:L.id.toString(),checked:n.categories?.includes(L.id),onCheckedChange:()=>u(L)}),(0,tt.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id))})]},N))})]}),(0,tt.jsxs)("div",{className:"space-tt-2 space-tt-2",children:[(0,tt.jsx)(J,{htmlFor:"closureDate",children:"Closure Date"}),(0,tt.jsx)(_e,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:N=>c({...n,closureDate:N.target.value})}),p.closureDate&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,tt.jsx)(st,{open:m,onOpenChange:d,children:(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Customer"})}),(0,tt.jsx)(gn,{onSubmit:v})]})})]})}function Jo({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:m,compact:d=!1}){let[p,f]=(0,sr.useState)(!1);return(0,tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,tt.jsxs)("h2",{className:"text-tt font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),c&&(0,tt.jsxs)(st,{open:p,onOpenChange:f,children:[(0,tt.jsx)(yr,{asChild:!0,children:(0,tt.jsxs)(T,{className:"mb-4 w-full",children:[(0,tt.jsx)(al.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Deal"})}),(0,tt.jsx)(bn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m??(async()=>Promise.resolve({success:!1})),onClose:()=>f(!1)})]})]}),(0,tt.jsx)(os.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,tt.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,u)=>(0,tt.jsx)(os.Draggable,{draggableId:b.id.toString(),index:b.id,children:v=>(0,tt.jsx)("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,children:(0,tt.jsx)(fn,{deal:b,customer:b.customer,categories:r,onClick:()=>s(b),compact:d})})},b.id.toString())),g.placeholder]})}),(0,tt.jsxs)("div",{className:"tt-4 text-sm p-3 rounded-lg shadow",children:[(0,tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,tt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Yp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function qp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,sr.useState)(null),n=p=>(e.deals??[]).filter(f=>f.status===p),c=p=>p.reduce((f,g)=>f+(g.value||0),0),m=(p,f)=>{let g={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((b,u)=>b+(u.value||0)*g[f],0)},d=(0,sr.useCallback)(p=>{let{source:f,destination:g}=p;if(!g||f.droppableId===g.droppableId&&f.index===g.index)return;let b=f.droppableId,u=g.droppableId,v=e.deals?.filter(O=>O.id===f.index)[0],M=[...e.deals??[]];v&&(v.status=u,a(v))},[a]);return(0,tt.jsx)(os.DragDropContext,{onDragEnd:d,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Yp.filter(p=>p!=="Lost").map(p=>{let f=n(p);return(0,tt.jsx)(Jo,{status:p,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,tt.jsx)(Qo,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}var Kp=["firm","forecast","other"];function Qp({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,sr.useState)(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost"&&d.status!=="Cold"),l=m=>m.reduce((d,p)=>d+(p.value||0),0),n=(m,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((f,g)=>f+(g.value||0)*(p[g.status]??0),0)},c=(0,sr.useCallback)(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let f=d.droppableId,g=p.droppableId,b=e.deals?.filter(v=>v.id===d.index)[0],u=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,tt.jsx)(os.DragDropContext,{onDragEnd:c,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Kp.map(m=>{let d=s(m);return(0,tt.jsx)(Jo,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:n,compact:!0},m)})}),o&&(0,tt.jsx)(Qo,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Sc=h(require("react"));function Cc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,sr.useState)(null),[s,l]=(0,sr.useState)(!1),[n,c]=(0,sr.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed tt fetch task: ${f.statusText}`);let g=await f.json();r(g)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>m(!1);return(0,sr.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(d,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:n}}var Jp=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Zp=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function yn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,n=!0,c=s,m=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:l,error:c}),m){let{task:g,loading:b,error:u}=Cc({taskId:t,system:a});l=g,n=b,c=u}else n=!1;let d=Jp(l?.status||"todo"),p=Zp(l?.status||"todo"),f=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(f=(0,dn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,tt.jsxs)(ue,{className:i("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,tt.jsxs)(Re,{className:"pb-2",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,tt.jsx)(Te,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,tt.jsx)(je,{className:`${d}`,children:p})]}),l?.project&&(0,tt.jsxs)(Mi,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,tt.jsx)(Ne,{className:"pb-2",children:n?(0,tt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,tt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,tt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,tt.jsx)(Ii,{className:"tt-2 flex items-center justify-between",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(al.Clock,{className:"h-3 w-3 mr-1"}),(0,tt.jsxs)("span",{children:["Created ",f]}),(0,tt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,tt.jsxs)("span",{children:["Task #",t]})]})})]})}var eu={task:yn},tu=`
|
|
15
16
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
|
|
16
17
|
<path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
|
|
17
|
-
</svg>`,
|
|
18
|
+
</svg>`,au=`data:image/svg+xml;utf8,${encodeURIComponent(tu)}`,vn=Sc.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,l=s==="user",n=l?r?.name||"You":r?.name||"AI Assistant",c=l?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,tt.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${l?"flex-row-reverse":""}`,children:["Forwarding tt ",o?.data?.content]},a);case"text":return(0,tt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,tt.jsxs)(We,{children:[(0,tt.jsx)(Ve,{src:c,alt:n}),(0,tt.jsx)(Ue,{children:n.substring(0,2).toUpperCase()})]}):(0,tt.jsx)("img",{src:au,alt:"AI Assistant",className:"w-10 h-10"}),(0,tt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,tt.jsx)("div",{className:"flex items-center gap-2",children:(0,tt.jsx)("span",{className:"font-medium",children:n})}),(0,tt.jsx)("div",{className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,tt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,tt.jsxs)(We,{className:l?"":"ai-border",children:[(0,tt.jsx)(Ve,{src:c,alt:n}),(0,tt.jsx)(Ue,{children:n.substring(0,2).toUpperCase()})]}),(0,tt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,tt.jsx)("div",{className:"flex items-center gap-2",children:(0,tt.jsx)("span",{className:"font-medium",children:n})}),(0,tt.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${l?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=eu[o.data.tool];return m?(0,tt.jsx)("div",{className:"tt-2",children:(0,tt.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} sr not defined.`),(0,tt.jsx)("div",{className:"tt-2",children:"......"}))}}});function ou({messages:e,isLoading:t}){let a=(0,sr.useRef)(null);return(0,sr.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,tt.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,tt.jsxs)(St,{className:"container flex-1 p-4",children:[(0,tt.jsxs)("div",{className:"space-tt-6",children:[e.length===0&&(0,tt.jsx)("div",{className:"flex items-center justify-center h-full tt-60",children:(0,tt.jsxs)("div",{className:"text-center max-w-md",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome tt Dexter"}),(0,tt.jsx)("p",{className:"text-zinc-400",children:"Ask me anything or direct your question tt a business function directly using the toolbar below."})]})}),t&&(0,tt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,tt.jsxs)(We,{className:"ai-border",children:[(0,tt.jsx)(Ve,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,tt.jsx)(Ue,{children:"AI"})]}),(0,tt.jsxs)("div",{className:"grid gap-1.5",children:[(0,tt.jsx)("div",{className:"flex items-center gap-2",children:(0,tt.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,tt.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,tt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,tt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,tt.jsx)(vn,{...o},r))]}),(0,tt.jsx)("div",{ref:a})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,Tabs,TabsContent,TabsList,TabsTrigger,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
|