cortex-react-components 1.66.0 → 1.67.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/dist/{chunk-LWTJN5ZP.mjs → chunk-22SIVBWN.mjs} +1 -1
  2. package/dist/{chunk-3RPTKOCL.mjs → chunk-27L4MUAF.mjs} +1 -1
  3. package/dist/{chunk-HB4BHTNM.mjs → chunk-2AUQRBIQ.mjs} +1 -1
  4. package/dist/{chunk-R4QBZLWY.mjs → chunk-2VYQ47YU.mjs} +1 -1
  5. package/dist/{chunk-PADGOK5C.mjs → chunk-37NBXA5G.mjs} +1 -1
  6. package/dist/{chunk-7O2TMDTD.mjs → chunk-45X7FAJM.mjs} +1 -1
  7. package/dist/{chunk-RGWP2OVM.mjs → chunk-5J244QX4.mjs} +1 -1
  8. package/dist/chunk-63YL7TOA.mjs +6 -0
  9. package/dist/{chunk-3NS4UQ6J.mjs → chunk-666KIWPS.mjs} +1 -1
  10. package/dist/{chunk-LBOJXQGC.mjs → chunk-6IWLTYR6.mjs} +1 -1
  11. package/dist/{chunk-22KXWTT3.mjs → chunk-6MQ5LVWM.mjs} +1 -1
  12. package/dist/{chunk-6JAIW45L.mjs → chunk-6YHV3NNE.mjs} +1 -1
  13. package/dist/{chunk-26JAUUHC.mjs → chunk-737CTHXW.mjs} +1 -1
  14. package/dist/{chunk-NZKW64NF.mjs → chunk-A3EE2FIS.mjs} +1 -1
  15. package/dist/{chunk-ZJZ5HYAW.mjs → chunk-AAPY7EYG.mjs} +1 -1
  16. package/dist/{chunk-N363IQBL.mjs → chunk-ANTK5LAD.mjs} +1 -1
  17. package/dist/{chunk-6BDDYPGK.mjs → chunk-DGYIJMZB.mjs} +1 -1
  18. package/dist/{chunk-MYDBD7LR.mjs → chunk-DKIPNQOB.mjs} +1 -1
  19. package/dist/{chunk-BA6HNFXB.mjs → chunk-EHL6E6LB.mjs} +1 -1
  20. package/dist/{chunk-XLURG5E2.mjs → chunk-ENHSCJIL.mjs} +1 -1
  21. package/dist/{chunk-TTL25HL4.mjs → chunk-FSQNNG2C.mjs} +1 -1
  22. package/dist/{chunk-RVA4WIRX.mjs → chunk-HXNVIQ2U.mjs} +1 -1
  23. package/dist/{chunk-HBE5POUB.mjs → chunk-J5FPKJOI.mjs} +1 -1
  24. package/dist/{chunk-VEVYFZEV.mjs → chunk-JDBMSW23.mjs} +1 -1
  25. package/dist/{chunk-CYVVXQ2A.mjs → chunk-KIWDBOLE.mjs} +1 -1
  26. package/dist/{chunk-YOMT7VAV.mjs → chunk-KSAKCMAF.mjs} +1 -1
  27. package/dist/{chunk-FM2YMSMY.mjs → chunk-L2AV5DLK.mjs} +1 -1
  28. package/dist/{chunk-E7W2GFKO.mjs → chunk-L45A6K4C.mjs} +1 -1
  29. package/dist/{chunk-4P4Z2IYO.mjs → chunk-M4YY2VIS.mjs} +1 -1
  30. package/dist/{chunk-VNGK6ACI.mjs → chunk-MRJQKF4Z.mjs} +1 -1
  31. package/dist/{chunk-WOMRJVQK.mjs → chunk-N4NSSICX.mjs} +1 -1
  32. package/dist/{chunk-BZBPA7IN.mjs → chunk-NTB62C36.mjs} +1 -1
  33. package/dist/{chunk-BGQKHEB3.mjs → chunk-QUOLG5NC.mjs} +1 -1
  34. package/dist/chunk-S3XDFYVA.mjs +4 -0
  35. package/dist/{chunk-PKSY2IBO.mjs → chunk-SD57UQWG.mjs} +1 -1
  36. package/dist/chunk-STFTEKAH.mjs +4 -0
  37. package/dist/{chunk-ZYYWN6XG.mjs → chunk-SUO6GOJS.mjs} +1 -1
  38. package/dist/{chunk-ORLKLFWH.mjs → chunk-TASJS6US.mjs} +1 -1
  39. package/dist/{chunk-4EQF35LM.mjs → chunk-TT4SPGZU.mjs} +1 -1
  40. package/dist/{chunk-MO44Z74W.mjs → chunk-UVL5G6QE.mjs} +1 -1
  41. package/dist/{chunk-ND4NY6SK.mjs → chunk-WLAOMIUZ.mjs} +1 -1
  42. package/dist/{chunk-FN7WYXHM.mjs → chunk-WSDHDEFO.mjs} +1 -1
  43. package/dist/{chunk-EDB4YGKM.mjs → chunk-WU5Z6SOQ.mjs} +1 -1
  44. package/dist/{chunk-MJUFOUCH.mjs → chunk-XRGQ55SK.mjs} +1 -1
  45. package/dist/{chunk-OINI2PT2.mjs → chunk-Z7GMR4B6.mjs} +1 -1
  46. package/dist/components/Blocks/Banner.mjs +1 -1
  47. package/dist/components/Blocks/CallToAction.mjs +1 -1
  48. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  49. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  50. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  51. package/dist/components/Blocks/Content.mjs +1 -1
  52. package/dist/components/Blocks/Content.stories.mjs +1 -1
  53. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  55. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  56. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  57. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  58. package/dist/components/Blocks/index.mjs +1 -1
  59. package/dist/components/CRM/CogeBoard.mjs +1 -1
  60. package/dist/components/CRM/CogeBoard.stories.mjs +1 -1
  61. package/dist/components/CRM/DealDetails.mjs +1 -1
  62. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  63. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  64. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  65. package/dist/components/CRM/NewDealForm.mjs +1 -1
  66. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  67. package/dist/components/CRM/index.mjs +1 -1
  68. package/dist/components/Cards/ContentCard.mjs +1 -1
  69. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  70. package/dist/components/Cards/FeatureCard.mjs +1 -1
  71. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  72. package/dist/components/Cards/index.mjs +1 -1
  73. package/dist/components/DeliveryLead/DeliveryLeadSubmission.d.ts +12 -1
  74. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +3 -3
  75. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  76. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.js +3 -3
  77. package/dist/components/DeliveryLead/DeliveryLeadSubmission.stories.mjs +1 -1
  78. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.d.ts +2 -2
  79. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +1 -1
  80. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  81. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.js +1 -1
  82. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.stories.mjs +1 -1
  83. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.d.ts +5 -3
  84. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +3 -3
  85. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  86. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.js +3 -3
  87. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.stories.mjs +1 -1
  88. package/dist/components/DeliveryLead/index.js +3 -3
  89. package/dist/components/DeliveryLead/index.mjs +1 -1
  90. package/dist/components/DeliveryLead/types.d.ts +1 -1
  91. package/dist/components/DeliveryLead/types.js +1 -1
  92. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  93. package/dist/components/DigitalColleagues/KanbanBoard.mjs +1 -1
  94. package/dist/components/DigitalColleagues/KanbanBoard.stories.mjs +1 -1
  95. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  96. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  97. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  98. package/dist/components/DigitalColleagues/ManagementSidebar.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/Header.mjs +1 -1
  100. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  102. package/dist/components/HeaderFooter/index.mjs +1 -1
  103. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  104. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  105. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  106. package/dist/components/Heros/PostHero/index.mjs +1 -1
  107. package/dist/components/Heros/RenderHero.mjs +1 -1
  108. package/dist/components/Heros/index.mjs +1 -1
  109. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  110. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  111. package/dist/components/Holidays/index.mjs +1 -1
  112. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  113. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  114. package/dist/components/Layouts/Print.mjs +1 -1
  115. package/dist/components/Layouts/Print.stories.mjs +1 -1
  116. package/dist/components/Layouts/SlideShow.mjs +1 -1
  117. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  118. package/dist/components/Layouts/index.mjs +1 -1
  119. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  120. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  121. package/dist/components/Menus/SidebarRight.mjs +1 -1
  122. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  123. package/dist/components/Menus/index.mjs +1 -1
  124. package/dist/components/Payload/RichText/index.mjs +1 -1
  125. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  126. package/dist/components/Payload/RichText.stories.mjs +1 -1
  127. package/dist/components/Payload/index.mjs +1 -1
  128. package/dist/components/index.js +8 -8
  129. package/dist/components/index.mjs +1 -1
  130. package/dist/components/ui/index.mjs +1 -1
  131. package/dist/components/ui/sidebar.mjs +1 -1
  132. package/dist/hooks/index.mjs +1 -1
  133. package/dist/index.js +13 -13
  134. package/dist/index.mjs +1 -1
  135. package/dist/metafile-cjs.json +1 -1
  136. package/dist/metafile-esm.json +1 -1
  137. package/dist/pages/Blog.mjs +1 -1
  138. package/dist/pages/Blog.stories.mjs +1 -1
  139. package/dist/pages/Documentation.mjs +1 -1
  140. package/dist/pages/Documentation.stories.mjs +1 -1
  141. package/dist/pages/IndexPage.mjs +1 -1
  142. package/dist/pages/IndexPage.stories.mjs +1 -1
  143. package/dist/pages/Intranet.mjs +1 -1
  144. package/dist/pages/Intranet.stories.mjs +1 -1
  145. package/dist/pages/LandingPage.mjs +1 -1
  146. package/dist/pages/LandingPage.stories.mjs +1 -1
  147. package/dist/pages/Page.mjs +1 -1
  148. package/dist/pages/Page.stories.mjs +1 -1
  149. package/dist/pages/Printable.stories.mjs +1 -1
  150. package/dist/pages/Publish.mjs +1 -1
  151. package/dist/pages/Publish.stories.mjs +1 -1
  152. package/dist/pages/Website.mjs +1 -1
  153. package/dist/pages/Website.stories.mjs +1 -1
  154. package/dist/payload-types.d.ts +50 -14
  155. package/dist/payload-types.js +1 -1
  156. package/dist/sections/AboutSection.mjs +1 -1
  157. package/dist/sections/AboutSection.stories.mjs +1 -1
  158. package/dist/sections/BlogDetail.mjs +1 -1
  159. package/dist/sections/BlogDetail.stories.mjs +1 -1
  160. package/dist/sections/BlogList.mjs +1 -1
  161. package/dist/sections/BlogList.stories.mjs +1 -1
  162. package/dist/sections/BlogListSection.mjs +1 -1
  163. package/dist/sections/BlogListSection.stories.mjs +1 -1
  164. package/dist/sections/ContactSection.mjs +1 -1
  165. package/dist/sections/ContactSection.stories.mjs +1 -1
  166. package/dist/sections/ImageSection.stories.mjs +1 -1
  167. package/dist/sections/PageSections.mjs +1 -1
  168. package/dist/sections/PageSections.stories.mjs +1 -1
  169. package/dist/sections/PricingSection.mjs +1 -1
  170. package/dist/sections/PricingSection.stories.mjs +1 -1
  171. package/dist/sections/ServiceDetail.mjs +1 -1
  172. package/dist/sections/ServiceDetailSection.mjs +1 -1
  173. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  174. package/dist/sections/ServiceSection.mjs +1 -1
  175. package/dist/sections/ServiceSection.stories.mjs +1 -1
  176. package/dist/sections/form/index.mjs +1 -1
  177. package/dist/sections/index.mjs +1 -1
  178. package/package.json +1 -1
  179. package/dist/chunk-GRK7FP4A.mjs +0 -4
  180. package/dist/chunk-MAJERV65.mjs +0 -6
  181. package/dist/chunk-T5F3QYLN.mjs +0 -4
@@ -4,17 +4,17 @@
4
4
  'use server'
5
5
  'use strict'
6
6
 
7
- "use strict";var Oc=Object.create;var ur=Object.defineProperty;var Gc=Object.getOwnPropertyDescriptor;var jc=Object.getOwnPropertyNames;var _c=Object.getPrototypeOf,$c=Object.prototype.hasOwnProperty;var Uc=(e,t)=>{for(var a in t)ur(e,a,{get:t[a],enumerable:!0})},An=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of jc(t))!$c.call(e,r)&&r!==a&&ur(e,r,{get:()=>t[r],enumerable:!(o=Gc(t,r))||o.enumerable});return e};var x=(e,t,a)=>(a=e!=null?Oc(_c(e)):{},An(t||!e||!e.__esModule?ur(a,"default",{value:e,enumerable:!0}):a,e)),Wc=e=>An(ur({},"__esModule",{value:!0}),e);var vu={};Uc(vu,{Alert:()=>ki,AlertDescription:()=>Si,AlertTitle:()=>Pi,ApproveLeave:()=>hn,Avatar:()=>Ke,AvatarFallback:()=>Je,AvatarImage:()=>Qe,Badge:()=>Ze,BannerBlock:()=>Mi,BrandLogo:()=>Ra,Breadcrumb:()=>Ss,BreadcrumbEllipsis:()=>As,BreadcrumbItem:()=>Ts,BreadcrumbLink:()=>Ds,BreadcrumbList:()=>Rs,BreadcrumbPage:()=>Ms,BreadcrumbSeparator:()=>Is,Breadcrumbs:()=>Yp,Button:()=>D,CMSLink:()=>kt,CRMCogeBoard:()=>cu,CRMKanbanBoard:()=>nu,Calendar:()=>Xo,CalendarView:()=>kn,CallToActionBlock:()=>Oa,CallToActionBlockOld:()=>Km,Card:()=>Zo,Categories:()=>Op,ChatCardTask:()=>Rn,ChatInterfaceMessages:()=>bu,ChatMessage:()=>Tn,Checkbox:()=>Ct,CodeBlock:()=>zi,Collapsible:()=>Gt,CollapsibleContent:()=>ca,CollapsibleTrigger:()=>da,CollectionArchive:()=>Cp,Command:()=>Ir,CommandDialog:()=>Al,CommandEmpty:()=>hi,CommandGroup:()=>xi,CommandInput:()=>yi,CommandItem:()=>wi,CommandList:()=>vi,CommandSeparator:()=>Ni,CommandShortcut:()=>Ci,Container:()=>cn,ContentBlock:()=>Jo,ContentCard:()=>np,CopyButton:()=>Li,CustomLink:()=>pt,CustomerCard:()=>cd,DarkTop:()=>Wi,DealCard:()=>Pn,DealDetails:()=>lr,DeliveryLeadSubmission:()=>vs,DeliveryLeadSubmissionList:()=>xs,DeliveryLeadSubmissionWithList:()=>Hc,Dialog:()=>Lt,DialogClose:()=>Dr,DialogContent:()=>wt,DialogDescription:()=>bi,DialogFooter:()=>fi,DialogHeader:()=>Ut,DialogOverlay:()=>Mr,DialogPortal:()=>gi,DialogTitle:()=>Wt,DialogTrigger:()=>Ml,DropdownMenu:()=>$n,DropdownMenuCheckboxItem:()=>Fs,DropdownMenuContent:()=>zs,DropdownMenuGroup:()=>Wn,DropdownMenuItem:()=>Es,DropdownMenuLabel:()=>Os,DropdownMenuPortal:()=>Vn,DropdownMenuRadioGroup:()=>Yn,DropdownMenuRadioItem:()=>Hs,DropdownMenuSeparator:()=>Gs,DropdownMenuShortcut:()=>js,DropdownMenuSub:()=>Xn,DropdownMenuSubContent:()=>Bs,DropdownMenuSubTrigger:()=>Ls,DropdownMenuTrigger:()=>Un,DynamicIcon:()=>He,EventCard:()=>md,FeatureCard:()=>Vr,FeatureGrid:()=>xd,FeaturesBlock:()=>ja,Filter:()=>Gp,FlowPrintable:()=>$d,Footer:()=>eu,Header:()=>tu,HeaderDesktop:()=>gn,HeaderMobile:()=>bn,HeadingImage:()=>vp,Hero:()=>ip,HighImpactHero:()=>sn,HolidayGrid:()=>Cn,HolidayTracker:()=>su,HoverCard:()=>Sl,HoverCardContent:()=>ui,HoverCardTrigger:()=>Rl,Image:()=>bd,ImageBlock:()=>Gi,InfoTile:()=>cp,Input:()=>Ye,Insight:()=>dp,KanbanColumn:()=>dr,Label:()=>M,LightTop:()=>Vi,Logo:()=>kp,LowImpactHero:()=>dn,MOTD:()=>pp,Mask:()=>Wp,Media:()=>Qt,MediaBlock:()=>Jt,MediumImpactHero:()=>ln,NewCustomerForm:()=>Sn,NewDealForm:()=>lu,NewsGrid:()=>jd,OrgChart:()=>fp,PagePrintable:()=>Ud,PageRange:()=>Rp,PageShape:()=>or,Pagination:()=>Hp,PayloadPagination:()=>Tp,Popover:()=>$o,PopoverAnchor:()=>Nl,PopoverContent:()=>no,PopoverTrigger:()=>Uo,PostHero:()=>$p,PricingCard:()=>sp,Printable:()=>Ip,ProjectCard:()=>fd,ProjectTeam:()=>Ep,ProposalSummary:()=>bp,RelatedContent:()=>Fp,RelatedPagesMenu:()=>au,RelatedPosts:()=>wp,RenderBlocks:()=>Sa,RenderBlocksWithShapes:()=>xp,RenderHero:()=>Xp,RequestLeave:()=>wn,ReusableContentBlock:()=>Ui,RichText:()=>oe,ScrollArea:()=>At,ScrollBar:()=>Tr,SectionHero:()=>pn,Select:()=>xa,SelectContent:()=>Yt,SelectGroup:()=>Gm,SelectItem:()=>qt,SelectLabel:()=>Hl,SelectScrollDownButton:()=>Di,SelectScrollUpButton:()=>Ti,SelectSeparator:()=>Ol,SelectTrigger:()=>Xt,SelectValue:()=>Na,Separator:()=>Mo,ServiceCard:()=>rp,Sheet:()=>fr,SheetClose:()=>al,SheetContent:()=>Ao,SheetDescription:()=>Xs,SheetFooter:()=>Ws,SheetHeader:()=>Us,SheetOverlay:()=>br,SheetPortal:()=>$s,SheetTitle:()=>Vs,SheetTrigger:()=>tl,Sidebar:()=>Ia,SidebarContent:()=>pa,SidebarFooter:()=>La,SidebarGroup:()=>dt,SidebarGroupAction:()=>ei,SidebarGroupContent:()=>xt,SidebarGroupLabel:()=>_t,SidebarHeader:()=>Aa,SidebarInput:()=>Zs,SidebarInset:()=>Js,SidebarLeft:()=>Ap,SidebarMenu:()=>qe,SidebarMenuAction:()=>zo,SidebarMenuBadge:()=>ti,SidebarMenuButton:()=>ct,SidebarMenuItem:()=>Fe,SidebarMenuSkeleton:()=>ai,SidebarMenuSub:()=>ua,SidebarMenuSubButton:()=>fa,SidebarMenuSubItem:()=>ga,SidebarProvider:()=>qs,SidebarRail:()=>Qs,SidebarRight:()=>zp,SidebarSeparator:()=>Bo,SidebarTrigger:()=>Ks,SimpleHeader:()=>Kp,Skeleton:()=>ue,SlideShow:()=>Hd,Tabs:()=>jm,TabsContent:()=>Um,TabsList:()=>_m,TabsTrigger:()=>$m,TextAndImages:()=>_d,Textarea:()=>wa,Theme:()=>Jr,ThemeProvider:()=>Up,ThemeWithShapes:()=>Rd,Toast:()=>Ho,ToastAction:()=>si,ToastClose:()=>Oo,ToastDescription:()=>jo,ToastProvider:()=>Sr,ToastTitle:()=>Go,ToastViewport:()=>Fo,Toaster:()=>fl,Toggle:()=>ni,ToggleGroup:()=>li,ToggleGroupItem:()=>di,Tooltip:()=>xr,TooltipContent:()=>Lo,TooltipProvider:()=>hr,TooltipTrigger:()=>Nr,VideoHeader:()=>Jp,WhyUs:()=>yp,badgeVariants:()=>Ri,buttonVariants:()=>ma,toggleVariants:()=>_o,useIsMobile:()=>vr,useSidebar:()=>so,useToast:()=>Pr});module.exports=Wc(vu);var to=x(require("react")),gr=require("@radix-ui/react-icons"),_n=require("@radix-ui/react-slot");var jn=require("clsx");var ks="-",Vc=e=>{let t=Yc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(ks);return i[0]===""&&i.length!==1&&i.shift(),zn(i,t)||Xc(l)},getConflictingClassGroupIds:(l,i)=>{let c=a[l]||[];return i&&o[l]?[...c,...o[l]]:c}}},zn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?zn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ks);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Ln=/^\[(.+)\]$/,Xc=e=>{if(Ln.test(e)){let t=Ln.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Yc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Kc(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:Bn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(qc(r)){Cs(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{Cs(l,Bn(t,s),a,o)})})},Bn=(e,t)=>{let a=e;return t.split(ks).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},qc=e=>e.isThemeGetter,Kc=(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,Qc=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)}}},En="!",Jc=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 h=0;h<i.length;h++){let A=i[h];if(m===0){if(A===r&&(o||i.slice(h,h+s)===t)){c.push(i.slice(d,h)),d=h+s;continue}if(A==="/"){p=h;continue}}A==="["?m++:A==="]"&&m--}let g=c.length===0?i:i.substring(d),f=g.startsWith(En),y=f?g.substring(1):g,u=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:u}};return a?i=>a({className:i,parseClassName:l}):l},Zc=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},em=e=>({cache:Qc(e.cacheSize),parseClassName:Jc(e),...Vc(e)}),tm=/\s+/,am=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(tm),i="";for(let c=l.length-1;c>=0;c-=1){let m=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=a(m),y=!!f,u=o(y?g.substring(0,f):g);if(!u){if(!y){i=m+(i.length>0?" "+i:i);continue}if(u=o(g),!u){i=m+(i.length>0?" "+i:i);continue}y=!1}let h=Zc(d).join(":"),A=p?h+En:h,G=A+u;if(s.includes(G))continue;s.push(G);let C=r(u,y);for(let B=0;B<C.length;++B){let N=C[B];s.push(A+N)}i=m+(i.length>0?" "+i:i)}return i};function om(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Fn(t))&&(o&&(o+=" "),o+=a);return o}var Fn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Fn(e[o]))&&(a&&(a+=" "),a+=t);return a};function rm(e,...t){let a,o,r,s=l;function l(c){let m=t.reduce((d,p)=>p(d),e());return a=em(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=am(c,a);return r(c,d),d}return function(){return s(om.apply(null,arguments))}}var se=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Hn=/^\[(?:([a-z-]+):)?(.+)\]$/i,sm=/^\d+\/\d+$/,im=new Set(["px","full","screen"]),nm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lm=/\d+(%|px|r?em|[sdl]?lt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(lt|h|i|lt|min|max))|\lt(calc|min|max|clamp)\(.+\)|^0$/,dm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ot=e=>Za(e)||im.has(e)||sm.test(e),na=e=>eo(e,"length",hm),Za=e=>!!e&&!Number.isNaN(Number(e)),ws=e=>eo(e,"number",Za),To=e=>!!e&&Number.isInteger(Number(e)),pm=e=>e.endsWith("%")&&Za(e.slice(0,-1)),z=e=>Hn.test(e),la=e=>nm.test(e),um=new Set(["length","size","percentage"]),gm=e=>eo(e,um,On),fm=e=>eo(e,"position",On),bm=new Set(["image","url"]),ym=e=>eo(e,bm,Nm),vm=e=>eo(e,"",xm),Do=()=>!0,eo=(e,t,a)=>{let o=Hn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},hm=e=>lm.test(e)&&!dm.test(e),On=()=>!1,xm=e=>cm.test(e),Nm=e=>mm.test(e);var wm=()=>{let e=se("colors"),t=se("spacing"),a=se("blur"),o=se("brightness"),r=se("borderColor"),s=se("borderRadius"),l=se("borderSpacing"),i=se("borderWidth"),c=se("contrast"),m=se("grayscale"),d=se("hueRotate"),p=se("invert"),g=se("gap"),f=se("gradientColorStops"),y=se("gradientColorStopPositions"),u=se("inset"),h=se("margin"),A=se("opacity"),G=se("padding"),C=se("saturate"),B=se("scale"),N=se("sepia"),Z=se("skew"),ia=se("space"),cr=se("translate"),j=()=>["auto","contain","none"],Me=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",z,t],q=()=>[z,t],Ja=()=>["",Ot,na],mr=()=>["auto",Za,z],Dn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pr=()=>["solid","dashed","dotted","double","none"],Mn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ns=()=>["start","end","center","between","around","evenly","stretch"],Ro=()=>["","0",z],In=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Ht=()=>[Za,z];return{cacheSize:500,separator:":",theme:{colors:[Do],spacing:[Ot,na],blur:["none","",la,z],brightness:Ht(),borderColor:[e],borderRadius:["none","","full",la,z],borderSpacing:q(),borderWidth:Ja(),contrast:Ht(),grayscale:Ro(),hueRotate:Ht(),invert:Ro(),gap:q(),gradientColorStops:[e],gradientColorStopPositions:[pm,na],inset:le(),margin:le(),opacity:Ht(),padding:q(),saturate:Ht(),scale:Ht(),sepia:Ro(),skew:Ht(),space:q(),translate:q()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[la]}],"break-after":[{"break-after":In()}],"break-before":[{"break-before":In()}],"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:[...Dn(),z]}],overflow:[{overflow:Me()}],"overflow-x":[{"overflow-x":Me()}],"overflow-y":[{"overflow-y":Me()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",To,z]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:Ro()}],shrink:[{shrink:Ro()}],order:[{order:["first","last","none",To,z]}],"grid-cols":[{"grid-cols":[Do]}],"col-start-end":[{col:["auto",{span:["full",To,z]},z]}],"col-start":[{"col-start":mr()}],"col-end":[{"col-end":mr()}],"grid-rows":[{"grid-rows":[Do]}],"row-start-end":[{row:["auto",{span:[To,z]},z]}],"row-start":[{"row-start":mr()}],"row-end":[{"row-end":mr()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Ns()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ns(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ns(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[G]}],px:[{px:[G]}],py:[{py:[G]}],xn:[{xn:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],cl:[{cl:[h]}],lt:[{lt:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[ia]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ia]}],"space-y-reverse":["space-y-reverse"],lt:[{lt:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-lt":[{"min-lt":[z,t,"min","max","fit"]}],"max-lt":[{"max-lt":[z,t,"none","full","min","max","fit","prose",{screen:[la]},la]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",la,na]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ws]}],"font-family":[{font:[Do]}],"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",z]}],"line-clamp":[{"line-clamp":["none",Za,ws]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ot,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pr(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ot,na]}],"underline-offset":[{"underline-offset":["auto",Ot,z]}],"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:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],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",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Dn(),fm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","lt","bl","l","tl"]},ym]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-lt":[{"rounded-lt":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-lt":[{"rounded-lt":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-lt":[{border:[i]}],"border-lt-x":[{"border-x":[i]}],"border-lt-y":[{"border-y":[i]}],"border-lt-s":[{"border-s":[i]}],"border-lt-e":[{"border-e":[i]}],"border-lt-t":[{"border-t":[i]}],"border-lt-r":[{"border-r":[i]}],"border-lt-lt":[{"border-lt":[i]}],"border-lt-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...pr(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:pr()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-lt":[{"border-lt":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...pr()]}],"outline-offset":[{"outline-offset":[Ot,z]}],"outline-lt":[{outline:[Ot,na]}],"outline-color":[{outline:[e]}],"ring-lt":[{ring:Ja()}],"ring-lt-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-lt":[{"ring-offset":[Ot,na]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",la,vm]}],"shadow-color":[{shadow:[Do]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...Mn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Mn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",la,z]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],sepia:[{sepia:[N]}],"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":[A]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:Ht()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:Ht()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[B]}],"scale-x":[{"scale-x":[B]}],"scale-y":[{"scale-y":[B]}],rotate:[{rotate:[To,z]}],"translate-x":[{"translate-x":[cr]}],"translate-y":[{"translate-y":[cr]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","lt-resize","lt-resize","nw-resize","se-resize","sw-resize","ew-resize","cl-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-cl":[{"scroll-cl":q()}],"scroll-lt":[{"scroll-lt":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-xn":[{"scroll-xn":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-lt":[{stroke:[Ot,na,ws]}],stroke:[{stroke:[e,"none"]}],lt:["lt-only","not-lt-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","xn","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","cl","lt","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["lt","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-lt","rounded-l","rounded-ss","rounded-se","rounded-lt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-lt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-lt":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-lt":["border-lt-s","border-lt-e","border-lt-t","border-lt-r","border-lt-lt","border-lt-l"],"border-lt-x":["border-lt-r","border-lt-l"],"border-lt-y":["border-lt-t","border-lt-lt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-lt","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-lt"],"scroll-m":["scroll-mx","scroll-my","scroll-cl","scroll-lt","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-xn","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Gn=rm(wm);function n(...e){return Gn((0,jn.clsx)(e))}function Ps(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\lt-]/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=Cm(e.layout);return{tableOfContents:o,contentWithIds:r}}function Cm(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\lt-]/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 lt=require("react/jsx-runtime"),Ss=to.forwardRef(({...e},t)=>(0,lt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ss.displayName="Breadcrumb";var Rs=to.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("_n",{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}));Rs.displayName="BreadcrumbList";var Ts=to.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Ts.displayName="BreadcrumbItem";var Ds=to.forwardRef(({asChild:e,className:t,...a},o)=>(0,lt.jsx)(e?_n.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));Ds.displayName="BreadcrumbLink";var Ms=to.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));Ms.displayName="BreadcrumbPage";var Is=({children:e,className:t,...a})=>(0,lt.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:lt-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,lt.jsx)(gr.ChevronRightIcon,{})});Is.displayName="BreadcrumbSeparator";var As=({className:e,...t})=>(0,lt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 lt-9 items-center justify-center",e),...t,children:[(0,lt.jsx)(gr.DotsHorizontalIcon,{className:"h-4 lt-4"}),(0,lt.jsx)("span",{className:"lt-only",children:"More"})]});As.displayName="BreadcrumbElipssis";var ao=x(require("@radix-ui/react-collapsible")),Gt=ao.Root,da=ao.CollapsibleTrigger,ca=ao.CollapsibleContent;var jt=x(require("react")),H=x(require("@radix-ui/react-dropdown-menu"));var $n=H.Root,Un=H.Trigger,Wn=H.Group,Vn=H.Portal,Xn=H.Sub,Yn=H.RadioGroup,Ls=jt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,lt.jsxs)(H.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,lt.jsx)(gr.ChevronRightIcon,{className:"ml-auto"})]}));Ls.displayName=H.SubTrigger.displayName;var Bs=jt.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(H.SubContent,{ref:a,className:n("z-50 min-lt-[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}));Bs.displayName=H.SubContent.displayName;var zs=jt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,lt.jsx)(H.Portal,{children:(0,lt.jsx)(H.Content,{ref:o,sideOffset:t,className:n("z-50 min-lt-[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})}));zs.displayName=H.Content.displayName;var Es=jt.forwardRef(({className:e,inset:t,...a},o)=>(0,lt.jsx)(H.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}));Es.displayName=H.Item.displayName;var Fs=jt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,lt.jsxs)(H.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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 lt-3.5 items-center justify-center",children:(0,lt.jsx)(H.ItemIndicator,{children:(0,lt.jsx)(gr.CheckIcon,{className:"h-4 lt-4"})})}),t]}));Fs.displayName=H.CheckboxItem.displayName;var Hs=jt.forwardRef(({className:e,children:t,...a},o)=>(0,lt.jsxs)(H.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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 lt-3.5 items-center justify-center",children:(0,lt.jsx)(H.ItemIndicator,{children:(0,lt.jsx)(gr.DotFilledIcon,{className:"h-4 lt-4 fill-current"})})}),t]}));Hs.displayName=H.RadioItem.displayName;var Os=jt.forwardRef(({className:e,inset:t,...a},o)=>(0,lt.jsx)(H.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Os.displayName=H.Label.displayName;var Gs=jt.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(H.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Gs.displayName=H.Separator.displayName;var js=({className:e,...t})=>(0,lt.jsx)("span",{className:n("ml-auto text-xs tracking-widest opacity-60",e),...t});js.displayName="DropdownMenuShortcut";var qn=x(require("react"));var Ye=qn.forwardRef(({className:e,type:t,...a},o)=>(0,lt.jsx)("input",{type:t,className:n("flex h-9 lt-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}));Ye.displayName="Input";var Qn=x(require("react")),_s=x(require("@radix-ui/react-separator"));var Mo=Qn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,lt.jsx)(_s.Root,{ref:r,decorative:a,orientation:t,className:n("shrink-0 bg-border",t==="horizontal"?"h-[1px] lt-full":"h-full lt-[1px]",e),...o}));Mo.displayName=_s.Root.displayName;var Io=x(require("react")),pe=x(require("@radix-ui/react-dialog")),el=require("class-variance-authority");var fr=pe.Root,tl=pe.Trigger,al=pe.Close,$s=pe.Portal,br=Io.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(pe.Overlay,{className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));br.displayName=pe.Overlay.displayName;var km=(0,el.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-lt data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full lt-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-lt-sm",right:"inset-y-0 right-0 h-full lt-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-lt-sm"}},defaultVariants:{side:"right"}}),Ao=Io.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,lt.jsxs)($s,{children:[(0,lt.jsx)(br,{}),(0,lt.jsxs)(pe.Content,{ref:r,className:n(km({side:e}),t),...o,children:[(0,lt.jsxs)(pe.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,lt.jsx)(gr.Cross2Icon,{className:"h-4 lt-4"}),(0,lt.jsx)("span",{className:"lt-only",children:"Close"})]}),a]})]}));Ao.displayName=pe.Content.displayName;var Us=({className:e,...t})=>(0,lt.jsx)("div",{className:n("flex flex-col space-y-2 text-center sm:text-left",e),...t});Us.displayName="SheetHeader";var Ws=({className:e,...t})=>(0,lt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ws.displayName="SheetFooter";var Vs=Io.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(pe.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));Vs.displayName=pe.Title.displayName;var Xs=Io.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(pe.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Xs.displayName=pe.Description.displayName;var _=x(require("react")),cl=require("lucide-react");var yr=require("react"),vr=(e=768)=>{let[t,a]=(0,yr.useState)(!1);return(0,yr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var sl=x(require("react")),ma=(0,el.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 lt-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"}}}),D=sl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,lt.jsx)(e?_n.Slot:"button",{className:n(ma({className:t,size:a,variant:o})),ref:s,...r}));D.displayName="Button";function ue({className:e,...t}){return(0,lt.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var ll=x(require("react")),ht=x(require("@radix-ui/react-tooltip"));var hr=ht.Provider,xr=ht.Root,Nr=ht.Trigger,Lo=ll.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,lt.jsx)(ht.Portal,{children:(0,lt.jsx)(ht.Content,{ref:o,sideOffset:t,className:n("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Lo.displayName=ht.Content.displayName;var Pm="sidebar:state",Sm=60*60*24*7,Rm="16rem",Tm="18rem",Dm="3rem",Mm="lt",ml=_.createContext(null);function so(){let e=_.useContext(ml);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}var qs=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let c=vr(),[m,d]=_.useState(!1),[p,g]=_.useState(e),f=t??p,y=_.useCallback(G=>{if(a)return a?.(typeof G=="function"?G(f):G);g(G),document.cookie=`${Pm}=${f}; path=/; max-age=${Sm}`},[a,f]),u=_.useCallback(()=>c?d(G=>!G):y(G=>!G),[c,y,d]);_.useEffect(()=>{let G=C=>{C.key===Mm&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),u())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[u]);let h=f?"expanded":"collapsed",A=_.useMemo(()=>({state:h,open:f,setOpen:y,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:u}),[h,f,y,c,m,d,u]);return(0,lt.jsx)(ml.Provider,{value:A,children:(0,lt.jsx)(hr,{delayDuration:0,children:(0,lt.jsx)("div",{style:{"--sidebar-width":Rm,"--sidebar-width-icon":Dm,...r},className:n("group/sidebar-wrapper flex lt-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});qs.displayName="SidebarProvider";var Ia=_.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}=so();return a==="none"?(0,lt.jsx)("div",{className:n("flex h-full lt-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):i?(0,lt.jsx)(fr,{open:m,onOpenChange:d,...s,children:(0,lt.jsx)(Ao,{"data-sidebar":"sidebar","data-mobile":"true",className:"lt-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Tm},side:e,children:(0,lt.jsx)("div",{className:"flex h-full lt-full flex-col",children:r})})}):(0,lt.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,lt.jsx)("div",{className:n("duration-200 relative h-svh lt-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:lt-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:lt-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:lt-[--sidebar-width-icon]")}),(0,lt.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden lt-[--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]:lt-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:lt-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,lt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full lt-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})})]})});Ia.displayName="Sidebar";var Ks=_.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=so();return(0,lt.jsxs)(D,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 lt-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,lt.jsx)(cl.PanelLeft,{}),(0,lt.jsx)("span",{className:"lt-only",children:"Toggle Sidebar"})]})});Ks.displayName="SidebarTrigger";var Qs=_.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=so();return(0,lt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden lt-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:lt-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-lt-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-lt-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Qs.displayName="SidebarRail";var Js=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Js.displayName="SidebarInset";var Zs=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Ye,{ref:a,"data-sidebar":"input",className:n("h-8 lt-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Zs.displayName="SidebarInput";var Aa=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));Aa.displayName="SidebarHeader";var La=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));La.displayName="SidebarFooter";var Bo=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Mo,{ref:a,"data-sidebar":"separator",className:n("mx-2 lt-auto bg-sidebar-border",e),...t}));Bo.displayName="SidebarSeparator";var pa=_.forwardRef(({className:e,...t},a)=>(0,lt.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}));pa.displayName="SidebarContent";var dt=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex lt-full min-lt-0 flex-col p-2",e),...t}));dt.displayName="SidebarGroup";var _t=_.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,lt.jsx)(t?_n.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));_t.displayName="SidebarGroupLabel";var ei=_.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,lt.jsx)(t?_n.Slot:"button",{ref:o,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square lt-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}));ei.displayName="SidebarGroupAction";var xt=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("lt-full text-sm",e),...t}));xt.displayName="SidebarGroupContent";var qe=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("el",{ref:a,"data-sidebar":"menu",className:n("flex lt-full min-lt-0 flex-col gap-1",e),...t}));qe.displayName="SidebarMenu";var Fe=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Fe.displayName="SidebarMenuItem";var Im=(0,el.cva)("peer/menu-button flex lt-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"}}),ct=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let c=e?_n.Slot:"button",{isMobile:m,state:d}=so(),p=(0,lt.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Im({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,lt.jsxs)(xr,{children:[(0,lt.jsx)(Nr,{asChild:!0,children:p}),(0,lt.jsx)(Lo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):p});ct.displayName="SidebarMenuButton";var zo=_.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,lt.jsx)(t?_n.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square lt-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}));zo.displayName="SidebarMenuAction";var ti=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:n("absolute right-1 flex h-5 min-lt-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}));ti.displayName="SidebarMenuBadge";var ai=_.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,lt.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,lt.jsx)(ue,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,lt.jsx)(ue,{className:"h-4 flex-1 max-lt-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});ai.displayName="SidebarMenuSkeleton";var ua=_.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("el",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-lt-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ua.displayName="SidebarMenuSub";var ga=_.forwardRef(({...e},t)=>(0,lt.jsx)("li",{ref:t,...e}));ga.displayName="SidebarMenuSubItem";var fa=_.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,lt.jsx)(e?_n.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-lt-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));fa.displayName="SidebarMenuSubButton";var kr=x(require("react")),Am=1,Lm=1e6;var oi=0;function Bm(){return oi=(oi+1)%Number.MAX_SAFE_INTEGER,oi.toString()}var ri=new Map,pl=e=>{if(ri.has(e))return;let t=setTimeout(()=>{ri.delete(e),Eo({type:"REMOVE_TOAST",toastId:e})},Lm);ri.set(e,t)},zm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Am)};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?pl(a):e.toasts.forEach(o=>{pl(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)}}},wr=[],Cr={toasts:[]};function Eo(e){Cr=zm(Cr,e),wr.forEach(t=>{t(Cr)})}function Em({...e}){let t=Bm(),a=r=>Eo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Eo({type:"DISMISS_TOAST",toastId:t});return Eo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Pr(){let[e,t]=kr.useState(Cr);return kr.useEffect(()=>(wr.push(t),()=>{let a=wr.indexOf(t);a>-1&&wr.splice(a,1)}),[e]),{...e,toast:Em,dismiss:a=>Eo({type:"DISMISS_TOAST",toastId:a})}}var Ba=x(require("react")),Ne=x(require("@radix-ui/react-toast"));var Sr=Ne.Provider,Fo=Ba.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Ne.Viewport,{ref:a,className:n("fixed top-0 z-[100] flex max-h-screen lt-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-lt-[420px]",e),...t}));Fo.displayName=Ne.Viewport.displayName;var Fm=(0,el.cva)("group pointer-events-auto relative flex lt-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Ho=Ba.forwardRef(({className:e,variant:t,...a},o)=>(0,lt.jsx)(Ne.Root,{ref:o,className:n(Fm({variant:t}),e),...a}));Ho.displayName=Ne.Root.displayName;var si=Ba.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Ne.Action,{ref:a,className:n("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));si.displayName=Ne.Action.displayName;var Oo=Ba.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Ne.Close,{ref:a,className:n("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,lt.jsx)(cl.lt,{className:"h-4 lt-4"})}));Oo.displayName=Ne.Close.displayName;var Go=Ba.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Ne.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-xs",e),...t}));Go.displayName=Ne.Title.displayName;var jo=Ba.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Ne.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));jo.displayName=Ne.Description.displayName;function fl(){let{toasts:e}=Pr();return(0,$t.jsxs)(Sr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,$t.jsxs)(Ho,{...s,children:[(0,$t.jsxs)("div",{className:"grid gap-1",children:[a&&(0,$t.jsx)(Go,{children:a}),o&&(0,$t.jsx)(jo,{children:o})]}),r,(0,$t.jsx)(Oo,{})]},t)}),(0,$t.jsx)(Fo,{})]})}var bl=x(require("react")),ii=x(require("@radix-ui/react-toggle"));var _o=(0,el.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-lt-9",sm:"h-8 px-1.5 min-lt-8",lg:"h-10 px-2.5 min-lt-10"}},defaultVariants:{variant:"default",size:"default"}}),ni=bl.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,lt.jsx)(ii.Root,{ref:r,className:n(_o({variant:t,size:a,className:e})),...o}));ni.displayName=ii.Root.displayName;var za=x(require("react")),io=x(require("@radix-ui/react-toggle-group"));var hl=za.createContext({size:"default",variant:"default"}),li=za.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,lt.jsx)(io.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,lt.jsx)(hl.Provider,{value:{variant:t,size:a},children:o})}));li.displayName=io.Root.displayName;var di=za.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=za.useContext(hl);return(0,lt.jsx)(io.Item,{ref:s,className:n(_o({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});di.displayName=io.Item.displayName;var ci=x(require("react")),mt=x(require("@radix-ui/react-scroll-area"));var At=ci.forwardRef(({className:e,children:t,...a},o)=>(0,lt.jsxs)(mt.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,lt.jsx)(mt.Viewport,{className:"h-full lt-full rounded-[inherit]",children:t}),(0,lt.jsx)(Tr,{}),(0,lt.jsx)(mt.Corner,{})]}));At.displayName=mt.Root.displayName;var Tr=ci.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,lt.jsx)(mt.ScrollAreaScrollbar,{ref:o,orientation:t,className:n("flex touch-none select-none transition-colors",t==="vertical"&&"h-full lt-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,lt.jsx)(mt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Tr.displayName=mt.ScrollAreaScrollbar.displayName;var xl=x(require("react")),Nt=x(require("@radix-ui/react-popover"));var $o=Nt.Root,Uo=Nt.Trigger,Nl=Nt.Anchor,no=xl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,lt.jsx)(Nt.Portal,{children:(0,lt.jsx)(Nt.Content,{ref:r,align:t,sideOffset:a,className:n("z-50 lt-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})}));no.displayName=Nt.Content.displayName;var wl=x(require("react")),pi=x(require("@radix-ui/react-label"));var Hm=(0,el.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),M=wl.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(pi.Root,{ref:a,className:n(Hm(),e),...t}));M.displayName=pi.Root.displayName;var Pl=x(require("react")),Ea=x(require("@radix-ui/react-hover-card"));var Sl=Ea.Root,Rl=Ea.Trigger,ui=Pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,lt.jsx)(Ea.Content,{ref:r,align:t,sideOffset:a,className:n("z-50 lt-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}));ui.displayName=Ea.Content.displayName;var Wo=x(require("react")),ge=x(require("@radix-ui/react-dialog"));var Lt=ge.Root,Ml=ge.Trigger,gi=ge.Portal,Dr=ge.Close,Mr=Wo.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(ge.Overlay,{ref:a,className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Mr.displayName=ge.Overlay.displayName;var wt=Wo.forwardRef(({className:e,children:t,...a},o)=>(0,lt.jsxs)(gi,{children:[(0,lt.jsx)(Mr,{}),(0,lt.jsxs)(ge.Content,{ref:o,className:n("fixed left-[50%] top-[50%] z-50 grid lt-full max-lt-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,lt.jsxs)(ge.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,lt.jsx)(cl.lt,{className:"h-4 lt-4"}),(0,lt.jsx)("span",{className:"lt-only",children:"Close"})]})]})]}));wt.displayName=ge.Content.displayName;var Ut=({className:e,...t})=>(0,lt.jsx)("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ut.displayName="DialogHeader";var fi=({className:e,...t})=>(0,lt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});fi.displayName="DialogFooter";var Wt=Wo.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(ge.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));Wt.displayName=ge.Title.displayName;var bi=Wo.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(ge.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));bi.displayName=ge.Description.displayName;var va=x(require("react")),$e=require("cmdk");var Ir=va.forwardRef(({className:e,...t},a)=>(0,lt.jsx)($e.Command,{ref:a,className:n("flex h-full lt-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ir.displayName=$e.Command.displayName;var Al=({children:e,...t})=>(0,lt.jsx)(Lt,{...t,children:(0,lt.jsx)(wt,{className:"overflow-hidden p-0",children:(0,lt.jsx)(Ir,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:lt-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:lt-5",children:e})})}),yi=va.forwardRef(({className:e,...t},a)=>(0,lt.jsxs)("div",{className:"flex items-center border-lt px-3","cmdk-input-wrapper":"",children:[(0,lt.jsx)(cl.Search,{className:"mr-2 h-4 lt-4 shrink-0 opacity-50"}),(0,lt.jsx)($e.Command.Input,{ref:a,className:n("flex h-10 lt-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));yi.displayName=$e.Command.Input.displayName;var vi=va.forwardRef(({className:e,...t},a)=>(0,lt.jsx)($e.Command.List,{ref:a,className:n("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));vi.displayName=$e.Command.List.displayName;var hi=va.forwardRef((e,t)=>(0,lt.jsx)($e.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));hi.displayName=$e.Command.Empty.displayName;var xi=va.forwardRef(({className:e,...t},a)=>(0,lt.jsx)($e.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));xi.displayName=$e.Command.Group.displayName;var Ni=va.forwardRef(({className:e,...t},a)=>(0,lt.jsx)($e.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));Ni.displayName=$e.Command.Separator.displayName;var wi=va.forwardRef(({className:e,...t},a)=>(0,lt.jsx)($e.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}));wi.displayName=$e.Command.Item.displayName;var Ci=({className:e,...t})=>(0,lt.jsx)("span",{className:n("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Ci.displayName="CommandShortcut";var Ar=x(require("react"));var Om=(0,el.cva)("relative lt-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ki=Ar.forwardRef(({className:e,variant:t,...a},o)=>(0,lt.jsx)("div",{ref:o,role:"alert",className:n(Om({variant:t}),e),...a}));ki.displayName="Alert";var Pi=Ar.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Pi.displayName="AlertTitle";var Si=Ar.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Si.displayName="AlertDescription";var Br=x(require("react")),Vt=x(require("@radix-ui/react-avatar"));var Ke=Br.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Vt.Root,{ref:a,className:n("relative flex h-10 lt-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ke.displayName=Vt.Root.displayName;var Qe=Br.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Vt.Image,{ref:a,className:n("aspect-square h-full lt-full",e),...t}));Qe.displayName=Vt.Image.displayName;var Je=Br.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Vt.Fallback,{ref:a,className:n("flex h-full lt-full items-center justify-center rounded-full bg-muted",e),...t}));Je.displayName=Vt.Fallback.displayName;var Ri=(0,el.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 Ze({className:e,variant:t,...a}){return(0,lt.jsx)("div",{className:n(Ri({variant:t}),e),...a})}var Vo=x(require("@radix-ui/react-checkbox")),Fl=x(require("react")),Ct=Fl.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(Vo.Root,{className:n("peer h-4 lt-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,lt.jsx)(Vo.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,lt.jsx)(cl.Check,{className:"h-4 lt-4"})})}));Ct.displayName=Vo.Root.displayName;var U=x(require("@radix-ui/react-select")),ha=x(require("react")),xa=U.Root,Gm=U.Group,Na=U.Value,Xt=ha.forwardRef(({children:e,className:t,...a},o)=>(0,lt.jsxs)(U.Trigger,{className:n("flex h-10 lt-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,lt.jsx)(U.Icon,{asChild:!0,children:(0,lt.jsx)(cl.ChevronDown,{className:"h-4 lt-4 opacity-50"})})]}));Xt.displayName=U.Trigger.displayName;var Ti=ha.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(U.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,lt.jsx)(cl.ChevronUp,{className:"h-4 lt-4"})}));Ti.displayName=U.ScrollUpButton.displayName;var Di=ha.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(U.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,lt.jsx)(cl.ChevronDown,{className:"h-4 lt-4"})}));Di.displayName=U.ScrollDownButton.displayName;var Yt=ha.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,lt.jsx)(U.Portal,{children:(0,lt.jsxs)(U.Content,{className:n("relative z-50 max-h-96 min-lt-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,lt.jsx)(Ti,{}),(0,lt.jsx)(U.Viewport,{className:n("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] lt-full min-lt-[var(--radix-select-trigger-width)]"),children:e}),(0,lt.jsx)(Di,{})]})}));Yt.displayName=U.Content.displayName;var Hl=ha.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(U.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Hl.displayName=U.Label.displayName;var qt=ha.forwardRef(({children:e,className:t,...a},o)=>(0,lt.jsxs)(U.Item,{className:n("relative flex lt-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,lt.jsx)("span",{className:"absolute left-2 flex h-3.5 lt-3.5 items-center justify-center",children:(0,lt.jsx)(U.ItemIndicator,{children:(0,lt.jsx)(cl.Check,{className:"h-4 lt-4"})})}),(0,lt.jsx)(U.ItemText,{children:e})]}));qt.displayName=U.Item.displayName;var Ol=ha.forwardRef(({className:e,...t},a)=>(0,lt.jsx)(U.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ol.displayName=U.Separator.displayName;var Gl=x(require("react")),wa=Gl.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("textarea",{className:n("flex min-h-[80px] lt-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}));wa.displayName="Textarea";var _l=require("react-day-picker");function Xo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,$l.jsx)(_l.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:n(ma({variant:"outline"}),"h-7 lt-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"lt-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md lt-8 font-normal text-[0.8rem]",row:"flex lt-full mt-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:n(ma({variant:"ghost"}),"h-8 lt-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})}Xo.displayName="Calendar";var Ca=x(require("@radix-ui/react-tabs"));function jm({className:e,...t}){return(0,lt.jsx)(Ca.Root,{"data-slot":"tabs",className:n("flex flex-col gap-2",e),...t})}function _m({className:e,...t}){return(0,lt.jsx)(Ca.List,{"data-slot":"tabs-list",className:n("bg-muted text-muted-foreground inline-flex h-9 lt-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function $m({className:e,...t}){return(0,lt.jsx)(Ca.Trigger,{"data-slot":"tabs-trigger",className:n("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-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 Um({className:e,...t}){return(0,lt.jsx)(Ca.Content,{"data-slot":"tabs-content",className:n("flex-1 outline-none",e),...t})}var Mi=({className:e,content:t,style:a})=>(0,lt.jsx)("div",{className:n("mx-auto my-8 lt-full",e),children:(0,lt.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,lt.jsx)(oe,{content:t,enableGutter:!1,enableProse:!1})})});var Ii=x(require("next/link")),kt=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,g=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,lt.jsxs)(Ii.default,{className:n(r),href:d||m||"",...g,children:[s&&s,o&&o]}):(0,lt.jsx)(D,{asChild:!0,className:r,size:p,variant:a,children:(0,lt.jsxs)(Ii.default,{className:n(r),href:d||m||"",...g,children:[s&&s,o&&o]})})};function Hr({className:e}){return n("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] lt-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 Wm({className:e,...t}){return(0,lt.jsx)("input",{...t,className:Hr({className:e})})}function Or({icon:e,...t}){return(0,lt.jsxs)("div",{className:"relative lt-full",children:[(0,lt.jsx)(Wm,{...t}),e&&(0,lt.jsx)("span",{className:"absolute right-5 top-1/2 lt-[14px] -translate-y-1/2 text-accent",children:e})]})}function Vm({className:e,...t}){return(0,lt.jsx)("textarea",{...t,className:n(Hr({}),"resize-none md:min-h-[130px]",e)})}function Ul({icon:e,...t}){return(0,lt.jsxs)("div",{className:"relative lt-full",children:[(0,lt.jsx)(Vm,{...t}),e&&(0,lt.jsx)("span",{className:"absolute right-5 top-[18px] lt-[14px] text-accent",children:e})]})}var Vl=require("formik"),Xl=require("react-icons/fa6"),Ha=x(require("yup"));async function Wl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"no-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 Ai=require("sonner"),Pt={tooShort:"Must be lt least ${min} characters",tooLong:"Must be lt most ${max} characters",required:"This field is required",email:"Invalid email format"},Xm=Ha.object().shape({name:Ha.string().min(2,Pt.tooShort).max(50,Pt.tooLong).required(Pt.required),email:Ha.string().email(Pt.email).required(Pt.required),subject:Ha.string().min(2,Pt.tooShort).max(50,Pt.tooLong).required(Pt.required),message:Ha.string().min(2,Pt.tooShort).max(300,Pt.tooLong).required(Pt.required)}),Gr=n("!pr-[44px] text-foreground"),jr=n("!border-red-600 border"),_r=n("lt-only");function Yl(){return(0,lt.jsx)(Vl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Xm,onSubmit:async(e,{resetForm:t})=>{let a=await Wl(e);a.data===null?Ai.toast.error(a.message):(Ai.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,lt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)(Or,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,lt.jsx)(Xl.FaUser,{className:"text-primary"}),className:n(Gr,e.name&&t.name&&jr)}),e.name&&t.name&&(0,lt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:_r,children:e.name})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)(Or,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,lt.jsx)(Ym,{}),className:n(Gr,e.email&&t.email&&jr)}),e.email&&t.email&&(0,lt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:_r,children:e.email})]}),(0,lt.jsxs)("div",{className:"lg:col-span-2",children:[(0,lt.jsx)(Or,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(Gr,e.subject&&t.subject&&jr)}),e.subject&&t.subject&&(0,lt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:_r,children:e.subject})]}),(0,lt.jsxs)("div",{className:"lg:col-span-2",children:[(0,lt.jsx)(Ul,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,lt.jsx)(qm,{}),className:n(Gr,e.message&&t.message&&jr)}),e.message&&t.message&&(0,lt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:_r,children:e.message})]}),(0,lt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,lt.jsx)(D,{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 Ym(){return(0,lt.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,lt.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 qm(){return(0,lt.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,lt.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 Km=({links:e,richText:t})=>(0,lt.jsx)("div",{className:"container",children:(0,lt.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,lt.jsx)("div",{className:"max-lt-[48rem] flex items-center",children:t&&(0,lt.jsx)(oe,{className:"mb-0",content:t,enableGutter:!1})}),(0,lt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,lt.jsx)(kt,{size:"lg",...a},o))})]})}),Oa=({links:e,richText:t})=>{let[a,o]=(0,yr.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=c=>{c.target===c.currentTarget&&l()};return(0,lt.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,lt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,lt.jsxs)("div",{className:"mx-auto max-lt-2xl text-center prose",children:[t&&(0,lt.jsx)(oe,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,lt.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,lt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},m)=>c?.url==="/contact"?(0,lt.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},m):(0,lt.jsx)(kt,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},m))})})]})}),a&&(0,lt.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,lt.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg lt-full max-lt-lg light relative",children:[(0,lt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,lt.jsx)(Yl,{})," "]})})]})};var $r=require("prism-react-renderer");function Li({code:e}){let[t,a]=(0,yr.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,lt.jsx)("div",{className:"flex justify-end align-middle",children:(0,lt.jsxs)(D,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,lt.jsx)("p",{children:t}),(0,lt.jsx)("div",{className:"lt-6 h-6",children:(0,lt.jsx)(cl.ClipboardCopy,{})})]})})}var Jl=({code:e,language:t=""})=>e?(0,lt.jsx)($r.Highlight,{code:e,language:t,theme:$r.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,lt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,lt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,lt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,lt.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,lt.jsx)("span",{...o({token:i})},c))})]},l)),(0,lt.jsx)(Li,{code:e})]})}):null;var zi=({className:e,code:t,language:a})=>(0,lt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,lt.jsx)(Jl,{code:t,language:a})});var ed=x(require("next/image")),Qm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Zl="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=",td=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:c}=e,m,d,p=t,g=i||"";if(!g&&s&&typeof s=="object"){let{alt:u,filename:h,height:A,url:G,width:C}=s;if(A&&A>500){let B=500/A;m=C*B,d=A*B}else m=C,d=A;p=u||"",g=G||Zl}let f=c||"lazy",y=l||Object.entries(Qm).map(([,u])=>`(max-width: ${u}px) ${u*2}lt`).join(", ");return(0,lt.jsx)("picture",{children:(0,lt.jsx)(ed.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Zl,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:y,src:g,width:a?void 0:m})})};var ad=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,yr.useRef)(null);if((0,yr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,lt.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,lt.jsx)("source",{src:a.url||""})})}return null};var Qt=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,lt.jsx)(a||yr.Fragment,{...a!==null?{className:t}:{},children:r?(0,lt.jsx)(ad,{...e}):(0,lt.jsx)(td,{...e})})};var Jt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,lt.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,lt.jsx)(Qt,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Gi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,lt.jsx)("div",{className:n("",{container:a},t),children:(0,lt.jsx)(Qt,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var ja=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,lt.jsxs)("section",{className:n(r?"lt-full":"",""),children:[(0,lt.jsxs)("div",{className:"prose prose:max-lt-none",children:[e&&(0,lt.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,lt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,lt.jsx)("div",{className:"mb-5 text-foreground",children:(0,lt.jsx)(oe,{content:t,enableGutter:!1})})]}),(0,lt.jsx)("div",{className:`grid gap-6 mt-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,lt.jsx)(Vr,{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 Xr=x(require("react"));function Ko({nodes:e}){return(0,lt.jsx)(Xr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,lt.jsx)(Xr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,lt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,lt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,lt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,lt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,lt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,lt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,lt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,lt.jsx)("table",{children:(0,lt.jsx)("tbody",{children:t.children.map((s,l)=>(0,lt.jsx)("tr",{children:s.children.map((i,c)=>(0,lt.jsx)("td",{children:Ko({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 Ko({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,lt.jsx)(Oa,{...s},a);case"mediaBlock":return(0,lt.jsx)(Jt,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-lt-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"imageBlock":return(0,lt.jsx)(Gi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-lt-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,lt.jsx)(Mi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,lt.jsx)(zi,{className:"col-start-2",...s},a);case"features":return(0,lt.jsx)(ja,{...s,nested:!0},a);case"reusableContentBlock":Ko({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,lt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,lt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,lt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,lt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,lt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,lt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,lt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,lt.jsx)(kt,{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,lt.jsx)(kt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var oe=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,lt.jsx)("div",{className:n({"container ":a,"max-lt-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Ko({nodes:t?.root?.children})}):null;var He=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,lt.jsx)("i",{className:i})};var nd=x(require("next/image"));function id(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Vr({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-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"lt-1/4","1/3":"lt-1/3","1/2":"lt-1/2",full:"lt-full",auto:"lt-full"};return(0,lt.jsxs)("a",{href:i?.url||"#",className:n("min-lt-56 max-lt-xl 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,lt.jsx)("div",{className:"relative aspect-[16/9] lt-full",children:(0,lt.jsx)(nd.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,lt.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,lt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,lt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,lt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,lt.jsx)(Jm,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,lt.jsx)(oe,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-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,lt.jsx)("div",{className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,lt.jsx)("div",{className:"mt-6",children:(0,lt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Jm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,lt.jsxs)("div",{className:"flex items-start justify-between lt-full mb-2",children:[(0,lt.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),id(e)&&(0,lt.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 mt-1":""),children:(0,lt.jsx)(He,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,lt.jsxs)("div",{className:"flex flex-col gap-4",children:[id(e)&&(0,lt.jsx)("div",{className:n("h-12 lt-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,lt.jsx)(He,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,lt.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,lt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,lt.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var ld=x(require("next/image")),dd=x(require("next/link"));var _a=x(require("react"));var be=_a.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));be.displayName="Card";var Le=_a.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:n("flex flex-col space-y-1.5 p-6",e),...t}));Le.displayName="CardHeader";var Be=_a.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Be.displayName="CardTitle";var ji=_a.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));ji.displayName="CardDescription";var Re=_a.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Re.displayName="CardContent";var _i=_a.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));_i.displayName="CardFooter";function cd({name:e,logo:t,href:a}){return(0,lt.jsx)(be,{className:"lt-full max-lt-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,lt.jsxs)(dd.default,{href:a,className:"block",children:[(0,lt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,lt.jsx)("div",{className:"relative lt-full h-full",children:t&&(0,lt.jsx)(ld.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,lt.jsx)(Re,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,lt.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 md({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,lt.jsx)(cl.Cake,{className:"h-4 lt-4"});case"workAnniversary":return(0,lt.jsx)(cl.Award,{className:"h-4 lt-4"});case"companyEvent":return(0,lt.jsx)(cl.PartyPopper,{className:"h-4 lt-4"});default:return(0,lt.jsx)(cl.CalendarDays,{className:"h-4 lt-4"})}},l=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,lt.jsxs)(be,{className:`lt-full max-lt-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,lt.jsxs)(Le,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,lt.jsxs)(Ke,{className:"h-14 lt-14 border-2 border-white",children:[(0,lt.jsx)(Qe,{src:r,alt:a||"Event"}),(0,lt.jsx)(Je,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,lt.jsxs)("div",{className:"flex flex-col",children:[(0,lt.jsx)(Be,{className:"text-xl",children:a||"Untitled Event"}),(0,lt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,lt.jsx)(cl.CalendarDays,{className:"mr-1 inline-block h-4 lt-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,lt.jsxs)(Re,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,lt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,lt.jsxs)(Ze,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,lt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var ud=x(require("next/link"));var gd=x(require("next/image")),pd={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function fd({slug:e,image:t,title:a,description:o}){return(0,lt.jsxs)(ud.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,lt.jsx)("span",{className:n("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,lt.jsx)(gd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
+ "use strict";var Oc=Object.create;var gr=Object.defineProperty;var jc=Object.getOwnPropertyDescriptor;var Gc=Object.getOwnPropertyNames;var _c=Object.getPrototypeOf,$c=Object.prototype.hasOwnProperty;var Uc=(e,t)=>{for(var a in t)gr(e,a,{get:t[a],enumerable:!0})},An=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Gc(t))!$c.call(e,r)&&r!==a&&gr(e,r,{get:()=>t[r],enumerable:!(o=jc(t,r))||o.enumerable});return e};var x=(e,t,a)=>(a=e!=null?Oc(_c(e)):{},An(t||!e||!e.__esModule?gr(a,"default",{value:e,enumerable:!0}):a,e)),Vc=e=>An(gr({},"__esModule",{value:!0}),e);var vu={};Uc(vu,{Alert:()=>Pi,AlertDescription:()=>Ri,AlertTitle:()=>Si,ApproveLeave:()=>xn,Avatar:()=>qe,AvatarFallback:()=>Qe,AvatarImage:()=>Ke,Badge:()=>Je,BannerBlock:()=>Ii,BrandLogo:()=>Ta,Breadcrumb:()=>Rs,BreadcrumbEllipsis:()=>Ls,BreadcrumbItem:()=>Ds,BreadcrumbLink:()=>Ms,BreadcrumbList:()=>Ts,BreadcrumbPage:()=>Is,BreadcrumbSeparator:()=>As,Breadcrumbs:()=>Yp,Button:()=>M,CMSLink:()=>Tt,CRMCogeBoard:()=>cu,CRMKanbanBoard:()=>nu,Calendar:()=>Qo,CalendarView:()=>Pn,CallToActionBlock:()=>Ga,CallToActionBlockOld:()=>Km,Card:()=>or,Categories:()=>Op,ChatCardTask:()=>Tn,ChatInterfaceMessages:()=>bu,ChatMessage:()=>Dn,Checkbox:()=>Pt,CodeBlock:()=>Ei,Collapsible:()=>Ut,CollapsibleContent:()=>ua,CollapsibleTrigger:()=>pa,CollectionArchive:()=>Cp,Command:()=>Ar,CommandDialog:()=>Al,CommandEmpty:()=>xi,CommandGroup:()=>Ni,CommandInput:()=>vi,CommandItem:()=>Ci,CommandList:()=>hi,CommandSeparator:()=>wi,CommandShortcut:()=>ki,Container:()=>mn,ContentBlock:()=>ar,ContentCard:()=>np,CopyButton:()=>Bi,CustomLink:()=>gt,CustomerCard:()=>cd,DarkTop:()=>Wi,DealCard:()=>Sn,DealDetails:()=>pr,DeliveryLeadSubmission:()=>hs,DeliveryLeadSubmissionList:()=>Ns,DeliveryLeadSubmissionWithList:()=>Hc,Dialog:()=>Ft,DialogClose:()=>Mr,DialogContent:()=>kt,DialogDescription:()=>yi,DialogFooter:()=>bi,DialogHeader:()=>Yt,DialogOverlay:()=>Ir,DialogPortal:()=>fi,DialogTitle:()=>qt,DialogTrigger:()=>Ml,DropdownMenu:()=>$n,DropdownMenuCheckboxItem:()=>Hs,DropdownMenuContent:()=>Es,DropdownMenuGroup:()=>Vn,DropdownMenuItem:()=>Fs,DropdownMenuLabel:()=>js,DropdownMenuPortal:()=>Wn,DropdownMenuRadioGroup:()=>Yn,DropdownMenuRadioItem:()=>Os,DropdownMenuSeparator:()=>Gs,DropdownMenuShortcut:()=>_s,DropdownMenuSub:()=>Xn,DropdownMenuSubContent:()=>zs,DropdownMenuSubTrigger:()=>Bs,DropdownMenuTrigger:()=>Un,DynamicIcon:()=>Fe,EventCard:()=>md,FeatureCard:()=>Xr,FeatureGrid:()=>xd,FeaturesBlock:()=>$a,Filter:()=>jp,FlowPrintable:()=>$d,Footer:()=>eu,Header:()=>tu,HeaderDesktop:()=>fn,HeaderMobile:()=>yn,HeadingImage:()=>vp,Hero:()=>ip,HighImpactHero:()=>nn,HolidayGrid:()=>kn,HolidayTracker:()=>su,HoverCard:()=>Sl,HoverCardContent:()=>gi,HoverCardTrigger:()=>Rl,Image:()=>bd,ImageBlock:()=>Gi,InfoTile:()=>cp,Input:()=>Xe,Insight:()=>dp,KanbanColumn:()=>ur,Label:()=>A,LightTop:()=>Xi,Logo:()=>kp,LowImpactHero:()=>cn,MOTD:()=>pp,Mask:()=>Vp,Media:()=>Jt,MediaBlock:()=>Zt,MediumImpactHero:()=>dn,NewCustomerForm:()=>Rn,NewDealForm:()=>lu,NewsGrid:()=>Gd,OrgChart:()=>fp,PagePrintable:()=>Ud,PageRange:()=>Rp,PageShape:()=>nr,Pagination:()=>Hp,PayloadPagination:()=>Tp,Popover:()=>Xo,PopoverAnchor:()=>Nl,PopoverContent:()=>lo,PopoverTrigger:()=>Yo,PostHero:()=>$p,PricingCard:()=>sp,Printable:()=>Ip,ProjectCard:()=>fd,ProjectTeam:()=>Ep,ProposalSummary:()=>bp,RelatedContent:()=>Fp,RelatedPagesMenu:()=>au,RelatedPosts:()=>wp,RenderBlocks:()=>Ra,RenderBlocksWithShapes:()=>xp,RenderHero:()=>Xp,RequestLeave:()=>Cn,ReusableContentBlock:()=>Vi,RichText:()=>ae,ScrollArea:()=>Et,ScrollBar:()=>Dr,SectionHero:()=>un,Select:()=>St,SelectContent:()=>pt,SelectGroup:()=>jm,SelectItem:()=>ut,SelectLabel:()=>Hl,SelectScrollDownButton:()=>Mi,SelectScrollUpButton:()=>Di,SelectSeparator:()=>Ol,SelectTrigger:()=>mt,SelectValue:()=>Rt,Separator:()=>Bo,ServiceCard:()=>rp,Sheet:()=>br,SheetClose:()=>al,SheetContent:()=>Eo,SheetDescription:()=>Ys,SheetFooter:()=>Ws,SheetHeader:()=>Vs,SheetOverlay:()=>yr,SheetPortal:()=>Us,SheetTitle:()=>Xs,SheetTrigger:()=>tl,Sidebar:()=>La,SidebarContent:()=>fa,SidebarFooter:()=>za,SidebarGroup:()=>lt,SidebarGroupAction:()=>ti,SidebarGroupContent:()=>wt,SidebarGroupLabel:()=>Wt,SidebarHeader:()=>Ba,SidebarInput:()=>ei,SidebarInset:()=>Zs,SidebarLeft:()=>Ap,SidebarMenu:()=>Ye,SidebarMenuAction:()=>Oo,SidebarMenuBadge:()=>ai,SidebarMenuButton:()=>dt,SidebarMenuItem:()=>Ee,SidebarMenuSkeleton:()=>oi,SidebarMenuSub:()=>ba,SidebarMenuSubButton:()=>va,SidebarMenuSubItem:()=>ya,SidebarProvider:()=>Ks,SidebarRail:()=>Js,SidebarRight:()=>zp,SidebarSeparator:()=>Ho,SidebarTrigger:()=>Qs,SimpleHeader:()=>Kp,Skeleton:()=>pe,SlideShow:()=>Hd,Tabs:()=>Gm,TabsContent:()=>Um,TabsList:()=>_m,TabsTrigger:()=>$m,TextAndImages:()=>_d,Textarea:()=>Ca,Theme:()=>Zr,ThemeProvider:()=>Up,ThemeWithShapes:()=>Rd,Toast:()=>_o,ToastAction:()=>ii,ToastClose:()=>$o,ToastDescription:()=>Vo,ToastProvider:()=>Rr,ToastTitle:()=>Uo,ToastViewport:()=>Go,Toaster:()=>fl,Toggle:()=>li,ToggleGroup:()=>di,ToggleGroupItem:()=>ci,Tooltip:()=>Nr,TooltipContent:()=>Fo,TooltipProvider:()=>xr,TooltipTrigger:()=>wr,VideoHeader:()=>Jp,WhyUs:()=>yp,badgeVariants:()=>Ti,buttonVariants:()=>ga,toggleVariants:()=>Wo,useIsMobile:()=>hr,useSidebar:()=>io,useToast:()=>Sr});module.exports=Vc(vu);var ao=x(require("react")),fr=require("@radix-ui/react-icons"),_n=require("@radix-ui/react-slot");var Gn=require("clsx");var Ps="-",Wc=e=>{let t=Yc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let i=l.split(Ps);return i[0]===""&&i.length!==1&&i.shift(),zn(i,t)||Xc(l)},getConflictingClassGroupIds:(l,i)=>{let d=a[l]||[];return i&&o[l]?[...d,...o[l]]:d}}},zn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?zn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(Ps);return t.validators.find(({validator:l})=>l(s))?.classGroupId},Ln=/^\[(.+)\]$/,Xc=e=>{if(Ln.test(e)){let t=Ln.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Yc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Kc(Object.entries(e.classGroups),a).forEach(([s,l])=>{ks(l,o,s,t)}),o},ks=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Bn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(qc(r)){ks(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ks(l,Bn(t,s),a,o)})})},Bn=(e,t)=>{let a=e;return t.split(Ps).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},qc=e=>e.isThemeGetter,Kc=(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,Qc=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)}}},En="!",Jc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=i=>{let d=[],m=0,c=0,p;for(let h=0;h<i.length;h++){let L=i[h];if(m===0){if(L===r&&(o||i.slice(h,h+s)===t)){d.push(i.slice(c,h)),c=h+s;continue}if(L==="/"){p=h;continue}}L==="["?m++:L==="]"&&m--}let g=d.length===0?i:i.substring(c),f=g.startsWith(En),y=f?g.substring(1):g,u=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:u}};return a?i=>a({className:i,parseClassName:l}):l},Zc=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},em=e=>({cache:Qc(e.cacheSize),parseClassName:Jc(e),...Wc(e)}),tm=/\s+/,am=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(tm),i="";for(let d=l.length-1;d>=0;d-=1){let m=l[d],{modifiers:c,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=a(m),y=!!f,u=o(y?g.substring(0,f):g);if(!u){if(!y){i=m+(i.length>0?" "+i:i);continue}if(u=o(g),!u){i=m+(i.length>0?" "+i:i);continue}y=!1}let h=Zc(c).join(":"),L=p?h+En:h,O=L+u;if(s.includes(O))continue;s.push(O);let k=r(u,y);for(let z=0;z<k.length;++z){let w=k[z];s.push(L+w)}i=m+(i.length>0?" "+i:i)}return i};function om(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Fn(t))&&(o&&(o+=" "),o+=a);return o}var Fn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Fn(e[o]))&&(a&&(a+=" "),a+=t);return a};function rm(e,...t){let a,o,r,s=l;function l(d){let m=t.reduce((c,p)=>p(c),e());return a=em(m),o=a.cache.get,r=a.cache.set,s=i,i(d)}function i(d){let m=o(d);if(m)return m;let c=am(d,a);return r(d,c),c}return function(){return s(om.apply(null,arguments))}}var se=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Hn=/^\[(?:([a-z-]+):)?(.+)\]$/i,sm=/^\d+\/\d+$/,im=new Set(["px","full","screen"]),nm=/^(\d+(\.\d+)?)?(vr|sm|md|lg|xl)$/,lm=/\d+(%|px|r?em|[sdl]?nt([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|nt|min|max))|\nt(calc|min|max|clamp)\(.+\)|^0$/,dm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$t=e=>eo(e)||im.has(e)||sm.test(e),ca=e=>to(e,"length",hm),eo=e=>!!e&&!Number.isNaN(Number(e)),Cs=e=>to(e,"number",eo),Ao=e=>!!e&&Number.isInteger(Number(e)),pm=e=>e.endsWith("%")&&eo(e.slice(0,-1)),E=e=>Hn.test(e),ma=e=>nm.test(e),um=new Set(["length","size","percentage"]),gm=e=>to(e,um,On),fm=e=>to(e,"position",On),bm=new Set(["image","url"]),ym=e=>to(e,bm,Nm),vm=e=>to(e,"",xm),Lo=()=>!0,to=(e,t,a)=>{let o=Hn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},hm=e=>lm.test(e)&&!dm.test(e),On=()=>!1,xm=e=>cm.test(e),Nm=e=>mm.test(e);var wm=()=>{let e=se("colors"),t=se("spacing"),a=se("blur"),o=se("brightness"),r=se("borderColor"),s=se("borderRadius"),l=se("borderSpacing"),i=se("borderWidth"),d=se("contrast"),m=se("grayscale"),c=se("hueRotate"),p=se("invert"),g=se("gap"),f=se("gradientColorStops"),y=se("gradientColorStopPositions"),u=se("inset"),h=se("margin"),L=se("opacity"),O=se("padding"),k=se("saturate"),z=se("scale"),w=se("sepia"),J=se("skew"),na=se("space"),Aa=se("translate"),To=()=>["auto","contain","none"],Do=()=>["auto","hidden","clip","visible","scroll"],Mo=()=>["auto",E,t],C=()=>[E,t],Ie=()=>["",$t,ca],re=()=>["auto",eo,E],la=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],da=()=>["solid","dashed","dotted","double","none"],Mn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ws=()=>["start","end","center","between","around","evenly","stretch"],Io=()=>["","0",E],In=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_t=()=>[eo,E];return{cacheSize:500,separator:":",theme:{colors:[Lo],spacing:[$t,ca],blur:["none","",ma,E],brightness:_t(),borderColor:[e],borderRadius:["none","","full",ma,E],borderSpacing:C(),borderWidth:Ie(),contrast:_t(),grayscale:Io(),hueRotate:_t(),invert:Io(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[pm,ca],inset:Mo(),margin:Mo(),opacity:_t(),padding:C(),saturate:_t(),scale:_t(),sepia:Io(),skew:_t(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",E]}],container:["container"],columns:[{columns:[ma]}],"break-after":[{"break-after":In()}],"break-before":[{"break-before":In()}],"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:[...la(),E]}],overflow:[{overflow:Do()}],"overflow-x":[{"overflow-x":Do()}],"overflow-y":[{"overflow-y":Do()}],overscroll:[{overscroll:To()}],"overscroll-x":[{"overscroll-x":To()}],"overscroll-y":[{"overscroll-y":To()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ao,E]}],basis:[{basis:Mo()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",E]}],grow:[{grow:Io()}],shrink:[{shrink:Io()}],order:[{order:["first","last","none",Ao,E]}],"grid-cols":[{"grid-cols":[Lo]}],"col-start-end":[{col:["auto",{span:["full",Ao,E]},E]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[Lo]}],"row-start-end":[{row:["auto",{span:[Ao,E]},E]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",E]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",E]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...ws()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ws(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ws(),"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]}],cl:[{cl:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],cl:[{cl:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[na]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[na]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",E,t]}],"min-w":[{"min-w":[E,t,"min","max","fit"]}],"max-w":[{"max-w":[E,t,"none","full","min","max","fit","prose",{screen:[ma]},ma]}],h:[{h:[E,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[E,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[E,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ma,ca]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Cs]}],"font-family":[{font:[Lo]}],"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",E]}],"line-clamp":[{"line-clamp":["none",eo,Cs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$t,E]}],"list-image":[{"list-image":["none",E]}],"list-style-type":[{list:["none","disc","decimal",E]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...da(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$t,ca]}],"underline-offset":[{"underline-offset":["auto",$t,E]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",E]}],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",E]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...la(),fm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",gm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","nt","bl","l","tl"]},ym]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-nt":[{"rounded-nt":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-nt":[{"rounded-nt":[s]}],"rounded-fr":[{"rounded-fr":[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-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-nt":[{"border-nt":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...da(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:da()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-nt":[{"border-nt":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...da()]}],"outline-offset":[{"outline-offset":[$t,E]}],"outline-w":[{outline:[$t,ca]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[$t,ca]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ma,vm]}],"shadow-color":[{shadow:[Lo]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...Mn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Mn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ma,E]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[k]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",E]}],duration:[{duration:_t()}],ease:[{ease:["linear","in","out","in-out",E]}],delay:[{delay:_t()}],animate:[{animate:["none","spin","ping","pulse","bounce",E]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[z]}],"scale-x":[{"scale-x":[z]}],"scale-y":[{"scale-y":[z]}],rotate:[{rotate:[Ao,E]}],"translate-x":[{"translate-x":[Aa]}],"translate-y":[{"translate-y":[Aa]}],"skew-x":[{"skew-x":[J]}],"skew-y":[{"skew-y":[J]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",E]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","nt-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",E]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-cl":[{"scroll-cl":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-cl":[{"scroll-cl":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",E]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$t,ca,Cs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","cl","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","cl","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-nt","rounded-l","rounded-ss","rounded-se","rounded-nt","rounded-fr","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-fr"],"rounded-e":["rounded-se","rounded-nt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-nt":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-nt","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-nt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-nt","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-nt"],"scroll-m":["scroll-mx","scroll-my","scroll-cl","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-cl","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var jn=rm(wm);function n(...e){return jn((0,Gn.clsx)(e))}function Ss(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 d=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of d)m.children[0]&&l.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),l}),r=Cm(e.layout);return{tableOfContents:o,contentWithIds:r}}function Cm(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 nt=require("react/jsx-runtime"),Rs=ao.forwardRef(({...e},t)=>(0,nt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Rs.displayName="Breadcrumb";var Ts=ao.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("_n",{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}));Ts.displayName="BreadcrumbList";var Ds=ao.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("li",{ref:a,className:n("inline-flex items-center gap-1.5",e),...t}));Ds.displayName="BreadcrumbItem";var Ms=ao.forwardRef(({asChild:e,className:t,...a},o)=>(0,nt.jsx)(e?_n.Slot:"a",{ref:o,className:n("transition-colors hover:text-foreground",t),...a}));Ms.displayName="BreadcrumbLink";var Is=ao.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:n("font-normal text-foreground",e),...t}));Is.displayName="BreadcrumbPage";var As=({children:e,className:t,...a})=>(0,nt.jsx)("li",{role:"presentation","aria-hidden":"true",className:n("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,nt.jsx)(fr.ChevronRightIcon,{})});As.displayName="BreadcrumbSeparator";var Ls=({className:e,...t})=>(0,nt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,nt.jsx)(fr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,nt.jsx)("span",{className:"sr-only",children:"More"})]});Ls.displayName="BreadcrumbElipssis";var oo=x(require("@radix-ui/react-collapsible")),Ut=oo.Root,pa=oo.CollapsibleTrigger,ua=oo.CollapsibleContent;var Vt=x(require("react")),j=x(require("@radix-ui/react-dropdown-menu"));var $n=j.Root,Un=j.Trigger,Vn=j.Group,Wn=j.Portal,Xn=j.Sub,Yn=j.RadioGroup,Bs=Vt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,nt.jsxs)(j.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,nt.jsx)(fr.ChevronRightIcon,{className:"ml-auto"})]}));Bs.displayName=j.SubTrigger.displayName;var zs=Vt.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(j.SubContent,{ref:a,className:n("z-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}));zs.displayName=j.SubContent.displayName;var Es=Vt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,nt.jsx)(j.Portal,{children:(0,nt.jsx)(j.Content,{ref:o,sideOffset:t,className:n("z-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})}));Es.displayName=j.Content.displayName;var Fs=Vt.forwardRef(({className:e,inset:t,...a},o)=>(0,nt.jsx)(j.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}));Fs.displayName=j.Item.displayName;var Hs=Vt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,nt.jsxs)(j.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,nt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,nt.jsx)(j.ItemIndicator,{children:(0,nt.jsx)(fr.CheckIcon,{className:"h-4 w-4"})})}),t]}));Hs.displayName=j.CheckboxItem.displayName;var Os=Vt.forwardRef(({className:e,children:t,...a},o)=>(0,nt.jsxs)(j.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,nt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,nt.jsx)(j.ItemIndicator,{children:(0,nt.jsx)(fr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Os.displayName=j.RadioItem.displayName;var js=Vt.forwardRef(({className:e,inset:t,...a},o)=>(0,nt.jsx)(j.Label,{ref:o,className:n("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));js.displayName=j.Label.displayName;var Gs=Vt.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(j.Separator,{ref:a,className:n("-mx-1 my-1 h-px bg-muted",e),...t}));Gs.displayName=j.Separator.displayName;var _s=({className:e,...t})=>(0,nt.jsx)("span",{className:n("ml-auto text-vr tracking-widest opacity-60",e),...t});_s.displayName="DropdownMenuShortcut";var qn=x(require("react"));var Xe=qn.forwardRef(({className:e,type:t,...a},o)=>(0,nt.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}));Xe.displayName="Input";var Qn=x(require("react")),$s=x(require("@radix-ui/react-separator"));var Bo=Qn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,nt.jsx)($s.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}));Bo.displayName=$s.Root.displayName;var zo=x(require("react")),me=x(require("@radix-ui/react-dialog")),el=require("class-variance-authority");var br=me.Root,tl=me.Trigger,al=me.Close,Us=me.Portal,yr=zo.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(me.Overlay,{className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));yr.displayName=me.Overlay.displayName;var km=(0,el.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-nt data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Eo=zo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,nt.jsxs)(Us,{children:[(0,nt.jsx)(yr,{}),(0,nt.jsxs)(me.Content,{ref:r,className:n(km({side:e}),t),...o,children:[(0,nt.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-secondary",children:[(0,nt.jsx)(fr.Cross2Icon,{className:"h-4 w-4"}),(0,nt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Eo.displayName=me.Content.displayName;var Vs=({className:e,...t})=>(0,nt.jsx)("div",{className:n("flex flex-col space-y-2 text-center sm:text-left",e),...t});Vs.displayName="SheetHeader";var Ws=({className:e,...t})=>(0,nt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ws.displayName="SheetFooter";var Xs=zo.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(me.Title,{ref:a,className:n("text-lg font-semibold text-foreground",e),...t}));Xs.displayName=me.Title.displayName;var Ys=zo.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(me.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));Ys.displayName=me.Description.displayName;var _=x(require("react")),cl=require("lucide-react");var vr=require("react"),hr=(e=768)=>{let[t,a]=(0,vr.useState)(!1);return(0,vr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var sl=x(require("react")),ga=(0,el.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"}}}),M=sl.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,nt.jsx)(e?_n.Slot:"button",{className:n(ga({className:t,size:a,variant:o})),ref:s,...r}));M.displayName="Button";function pe({className:e,...t}){return(0,nt.jsx)("div",{className:n("animate-pulse rounded-md bg-primary/10",e),...t})}var ll=x(require("react")),Nt=x(require("@radix-ui/react-tooltip"));var xr=Nt.Provider,Nr=Nt.Root,wr=Nt.Trigger,Fo=ll.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,nt.jsx)(Nt.Portal,{children:(0,nt.jsx)(Nt.Content,{ref:o,sideOffset:t,className:n("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-vr 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})}));Fo.displayName=Nt.Content.displayName;var Pm="sidebar:state",Sm=60*60*24*7,Rm="16rem",Tm="18rem",Dm="3rem",Mm="nt",ml=_.createContext(null);function io(){let e=_.useContext(ml);if(!e)throw new Error("useSidebar must nt used within a SidebarProvider.");return e}var Ks=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},i)=>{let d=hr(),[m,c]=_.useState(!1),[p,g]=_.useState(e),f=t??p,y=_.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(f):O);g(O),document.cookie=`${Pm}=${f}; path=/; max-age=${Sm}`},[a,f]),u=_.useCallback(()=>d?c(O=>!O):y(O=>!O),[d,y,c]);_.useEffect(()=>{let O=k=>{k.key===Mm&&(k.metaKey||k.ctrlKey)&&(k.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let h=f?"expanded":"collapsed",L=_.useMemo(()=>({state:h,open:f,setOpen:y,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:u}),[h,f,y,d,m,c,u]);return(0,nt.jsx)(ml.Provider,{value:L,children:(0,nt.jsx)(xr,{delayDuration:0,children:(0,nt.jsx)("div",{style:{"--sidebar-width":Rm,"--sidebar-width-icon":Dm,...r},className:n("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...l,children:s})})})});Ks.displayName="SidebarProvider";var La=_.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:i,state:d,openMobile:m,setOpenMobile:c}=io();return a==="none"?(0,nt.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,nt.jsx)(br,{open:m,onOpenChange:c,...s,children:(0,nt.jsx)(Eo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Tm},side:e,children:(0,nt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,nt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,nt.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)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,nt.jsx)("div",{className:n("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,nt.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})})]})});La.displayName="Sidebar";var Qs=_.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=io();return(0,nt.jsxs)(M,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,nt.jsx)(cl.PanelLeft,{}),(0,nt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Qs.displayName="SidebarTrigger";var Js=_.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=io();return(0,nt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Js.displayName="SidebarRail";var Zs=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("main",{ref:a,className:n("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...t}));Zs.displayName="SidebarInset";var ei=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(Xe,{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}));ei.displayName="SidebarInput";var Ba=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",e),...t}));Ba.displayName="SidebarHeader";var za=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",e),...t}));za.displayName="SidebarFooter";var Ho=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(Bo,{ref:a,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",e),...t}));Ho.displayName="SidebarSeparator";var fa=_.forwardRef(({className:e,...t},a)=>(0,nt.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}));fa.displayName="SidebarContent";var lt=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",e),...t}));lt.displayName="SidebarGroup";var Wt=_.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,nt.jsx)(t?_n.Slot:"div",{ref:o,"data-sidebar":"group-label",className:n("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-vr font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Wt.displayName="SidebarGroupLabel";var ti=_.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,nt.jsx)(t?_n.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}));ti.displayName="SidebarGroupAction";var wt=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:n("w-full text-sm",e),...t}));wt.displayName="SidebarGroupContent";var Ye=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("el",{ref:a,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",e),...t}));Ye.displayName="SidebarMenu";var Ee=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:n("group/menu-item relative",e),...t}));Ee.displayName="SidebarMenuItem";var Im=(0,el.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-vr",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),dt=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},i)=>{let d=e?_n.Slot:"button",{isMobile:m,state:c}=io(),p=(0,nt.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:n(Im({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,nt.jsxs)(Nr,{children:[(0,nt.jsx)(wr,{asChild:!0,children:p}),(0,nt.jsx)(Fo,{side:"right",align:"center",hidden:c!=="collapsed"||m,...r})]})):p});dt.displayName="SidebarMenuButton";var Oo=_.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,nt.jsx)(t?_n.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}));Oo.displayName="SidebarMenuAction";var ai=_.forwardRef(({className:e,...t},a)=>(0,nt.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-vr 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}));ai.displayName="SidebarMenuBadge";var oi=_.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,nt.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,nt.jsx)(pe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,nt.jsx)(pe,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});oi.displayName="SidebarMenuSkeleton";var ba=_.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("el",{ref:a,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ba.displayName="SidebarMenuSub";var ya=_.forwardRef(({...e},t)=>(0,nt.jsx)("li",{ref:t,...e}));ya.displayName="SidebarMenuSubItem";var va=_.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,nt.jsx)(e?_n.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-vr",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));va.displayName="SidebarMenuSubButton";var Pr=x(require("react")),Am=1,Lm=1e6;var ri=0;function Bm(){return ri=(ri+1)%Number.MAX_SAFE_INTEGER,ri.toString()}var si=new Map,pl=e=>{if(si.has(e))return;let t=setTimeout(()=>{si.delete(e),jo({type:"REMOVE_TOAST",toastId:e})},Lm);si.set(e,t)},zm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Am)};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?pl(a):e.toasts.forEach(o=>{pl(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=[],kr={toasts:[]};function jo(e){kr=zm(kr,e),Cr.forEach(t=>{t(kr)})}function Em({...e}){let t=Bm(),a=r=>jo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>jo({type:"DISMISS_TOAST",toastId:t});return jo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Sr(){let[e,t]=Pr.useState(kr);return Pr.useEffect(()=>(Cr.push(t),()=>{let a=Cr.indexOf(t);a>-1&&Cr.splice(a,1)}),[e]),{...e,toast:Em,dismiss:a=>jo({type:"DISMISS_TOAST",toastId:a})}}var Ea=x(require("react")),xe=x(require("@radix-ui/react-toast"));var Rr=xe.Provider,Go=Ea.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(xe.Viewport,{ref:a,className:n("fixed top-0 z-[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}));Go.displayName=xe.Viewport.displayName;var Fm=(0,el.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),_o=Ea.forwardRef(({className:e,variant:t,...a},o)=>(0,nt.jsx)(xe.Root,{ref:o,className:n(Fm({variant:t}),e),...a}));_o.displayName=xe.Root.displayName;var ii=Ea.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(xe.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}));ii.displayName=xe.Action.displayName;var $o=Ea.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(xe.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,nt.jsx)(cl.nt,{className:"h-4 w-4"})}));$o.displayName=xe.Close.displayName;var Uo=Ea.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(xe.Title,{ref:a,className:n("text-sm font-semibold [&+div]:text-vr",e),...t}));Uo.displayName=xe.Title.displayName;var Vo=Ea.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(xe.Description,{ref:a,className:n("text-sm opacity-90",e),...t}));Vo.displayName=xe.Description.displayName;function fl(){let{toasts:e}=Sr();return(0,nt.jsxs)(Rr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,nt.jsxs)(_o,{...s,children:[(0,nt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,nt.jsx)(Uo,{children:a}),o&&(0,nt.jsx)(Vo,{children:o})]}),r,(0,nt.jsx)($o,{})]},t)}),(0,nt.jsx)(Go,{})]})}var bl=x(require("react")),ni=x(require("@radix-ui/react-toggle"));var Wo=(0,el.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"}}),li=bl.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,nt.jsx)(ni.Root,{ref:r,className:n(Wo({variant:t,size:a,className:e})),...o}));li.displayName=ni.Root.displayName;var Fa=x(require("react")),no=x(require("@radix-ui/react-toggle-group"));var hl=Fa.createContext({size:"default",variant:"default"}),di=Fa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,nt.jsx)(no.Root,{ref:s,className:n("flex items-center justify-center gap-1",e),...r,children:(0,nt.jsx)(hl.Provider,{value:{variant:t,size:a},children:o})}));di.displayName=no.Root.displayName;var ci=Fa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=Fa.useContext(hl);return(0,nt.jsx)(no.Item,{ref:s,className:n(Wo({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});ci.displayName=no.Item.displayName;var mi=x(require("react")),ct=x(require("@radix-ui/react-scroll-area"));var Et=mi.forwardRef(({className:e,children:t,...a},o)=>(0,nt.jsxs)(ct.Root,{ref:o,className:n("relative overflow-hidden",e),...a,children:[(0,nt.jsx)(ct.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,nt.jsx)(Dr,{}),(0,nt.jsx)(ct.Corner,{})]}));Et.displayName=ct.Root.displayName;var Dr=mi.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,nt.jsx)(ct.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,nt.jsx)(ct.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Dr.displayName=ct.ScrollAreaScrollbar.displayName;var xl=x(require("react")),Ct=x(require("@radix-ui/react-popover"));var Xo=Ct.Root,Yo=Ct.Trigger,Nl=Ct.Anchor,lo=xl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,nt.jsx)(Ct.Portal,{children:(0,nt.jsx)(Ct.Content,{ref:r,align:t,sideOffset:a,className:n("z-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})}));lo.displayName=Ct.Content.displayName;var wl=x(require("react")),ui=x(require("@radix-ui/react-label"));var Hm=(0,el.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),A=wl.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(ui.Root,{ref:a,className:n(Hm(),e),...t}));A.displayName=ui.Root.displayName;var Pl=x(require("react")),Ha=x(require("@radix-ui/react-hover-card"));var Sl=Ha.Root,Rl=Ha.Trigger,gi=Pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,nt.jsx)(Ha.Content,{ref:r,align:t,sideOffset:a,className:n("z-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}));gi.displayName=Ha.Content.displayName;var qo=x(require("react")),ue=x(require("@radix-ui/react-dialog"));var Ft=ue.Root,Ml=ue.Trigger,fi=ue.Portal,Mr=ue.Close,Ir=qo.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(ue.Overlay,{ref:a,className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Ir.displayName=ue.Overlay.displayName;var kt=qo.forwardRef(({className:e,children:t,...a},o)=>(0,nt.jsxs)(fi,{children:[(0,nt.jsx)(Ir,{}),(0,nt.jsxs)(ue.Content,{ref:o,className:n("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,nt.jsxs)(ue.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,nt.jsx)(cl.nt,{className:"h-4 w-4"}),(0,nt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));kt.displayName=ue.Content.displayName;var Yt=({className:e,...t})=>(0,nt.jsx)("div",{className:n("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Yt.displayName="DialogHeader";var bi=({className:e,...t})=>(0,nt.jsx)("div",{className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});bi.displayName="DialogFooter";var qt=qo.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(ue.Title,{ref:a,className:n("text-lg font-semibold leading-none tracking-tight",e),...t}));qt.displayName=ue.Title.displayName;var yi=qo.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(ue.Description,{ref:a,className:n("text-sm text-muted-foreground",e),...t}));yi.displayName=ue.Description.displayName;var Na=x(require("react")),_e=require("cmdk");var Ar=Na.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(_e.Command,{ref:a,className:n("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Ar.displayName=_e.Command.displayName;var Al=({children:e,...t})=>(0,nt.jsx)(Ft,{...t,children:(0,nt.jsx)(kt,{className:"overflow-hidden p-0",children:(0,nt.jsx)(Ar,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),vi=Na.forwardRef(({className:e,...t},a)=>(0,nt.jsxs)("div",{className:"flex items-center border-nt px-3","cmdk-input-wrapper":"",children:[(0,nt.jsx)(cl.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,nt.jsx)(_e.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})]}));vi.displayName=_e.Command.Input.displayName;var hi=Na.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(_e.Command.List,{ref:a,className:n("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));hi.displayName=_e.Command.List.displayName;var xi=Na.forwardRef((e,t)=>(0,nt.jsx)(_e.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));xi.displayName=_e.Command.Empty.displayName;var Ni=Na.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(_e.Command.Group,{ref:a,className:n("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-vr [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Ni.displayName=_e.Command.Group.displayName;var wi=Na.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(_e.Command.Separator,{ref:a,className:n("-mx-1 h-px bg-border",e),...t}));wi.displayName=_e.Command.Separator.displayName;var Ci=Na.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(_e.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}));Ci.displayName=_e.Command.Item.displayName;var ki=({className:e,...t})=>(0,nt.jsx)("span",{className:n("ml-auto text-vr tracking-widest text-muted-foreground",e),...t});ki.displayName="CommandShortcut";var Lr=x(require("react"));var Om=(0,el.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),Pi=Lr.forwardRef(({className:e,variant:t,...a},o)=>(0,nt.jsx)("div",{ref:o,role:"alert",className:n(Om({variant:t}),e),...a}));Pi.displayName="Alert";var Si=Lr.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("h5",{ref:a,className:n("mb-1 font-medium leading-none tracking-tight",e),...t}));Si.displayName="AlertTitle";var Ri=Lr.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("text-sm [&_p]:leading-relaxed",e),...t}));Ri.displayName="AlertDescription";var zr=x(require("react")),Kt=x(require("@radix-ui/react-avatar"));var qe=zr.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(Kt.Root,{ref:a,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));qe.displayName=Kt.Root.displayName;var Ke=zr.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(Kt.Image,{ref:a,className:n("aspect-square h-full w-full",e),...t}));Ke.displayName=Kt.Image.displayName;var Qe=zr.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(Kt.Fallback,{ref:a,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Qe.displayName=Kt.Fallback.displayName;var Ti=(0,el.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-vr 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,nt.jsx)("div",{className:n(Ti({variant:t}),e),...a})}var Ko=x(require("@radix-ui/react-checkbox")),Fl=x(require("react")),Pt=Fl.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(Ko.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,nt.jsx)(Ko.Indicator,{className:n("flex items-center justify-center text-current"),children:(0,nt.jsx)(cl.Check,{className:"h-4 w-4"})})}));Pt.displayName=Ko.Root.displayName;var U=x(require("@radix-ui/react-select")),wa=x(require("react")),St=U.Root,jm=U.Group,Rt=U.Value,mt=wa.forwardRef(({children:e,className:t,...a},o)=>(0,nt.jsxs)(U.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,nt.jsx)(U.Icon,{asChild:!0,children:(0,nt.jsx)(cl.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));mt.displayName=U.Trigger.displayName;var Di=wa.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(U.ScrollUpButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,nt.jsx)(cl.ChevronUp,{className:"h-4 w-4"})}));Di.displayName=U.ScrollUpButton.displayName;var Mi=wa.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(U.ScrollDownButton,{className:n("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,nt.jsx)(cl.ChevronDown,{className:"h-4 w-4"})}));Mi.displayName=U.ScrollDownButton.displayName;var pt=wa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,nt.jsx)(U.Portal,{children:(0,nt.jsxs)(U.Content,{className:n("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,nt.jsx)(Di,{}),(0,nt.jsx)(U.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,nt.jsx)(Mi,{})]})}));pt.displayName=U.Content.displayName;var Hl=wa.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(U.Label,{className:n("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Hl.displayName=U.Label.displayName;var ut=wa.forwardRef(({children:e,className:t,...a},o)=>(0,nt.jsxs)(U.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,nt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,nt.jsx)(U.ItemIndicator,{children:(0,nt.jsx)(cl.Check,{className:"h-4 w-4"})})}),(0,nt.jsx)(U.ItemText,{children:e})]}));ut.displayName=U.Item.displayName;var Ol=wa.forwardRef(({className:e,...t},a)=>(0,nt.jsx)(U.Separator,{className:n("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ol.displayName=U.Separator.displayName;var jl=x(require("react")),Ca=jl.forwardRef(({className:e,...t},a)=>(0,nt.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}));Ca.displayName="Textarea";var _l=require("react-day-picker");function Qo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,$l.jsx)(_l.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:n("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:n(ga({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:n("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:n(ga({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})}Qo.displayName="Calendar";var ka=x(require("@radix-ui/react-tabs"));function Gm({className:e,...t}){return(0,nt.jsx)(ka.Root,{"data-slot":"tabs",className:n("flex flex-col gap-2",e),...t})}function _m({className:e,...t}){return(0,nt.jsx)(ka.List,{"data-slot":"tabs-list",className:n("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function $m({className:e,...t}){return(0,nt.jsx)(ka.Trigger,{"data-slot":"tabs-trigger",className:n("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-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 Um({className:e,...t}){return(0,nt.jsx)(ka.Content,{"data-slot":"tabs-content",className:n("flex-1 outline-none",e),...t})}var Ii=({className:e,content:t,style:a})=>(0,nt.jsx)("div",{className:n("mx-auto my-8 w-full",e),children:(0,nt.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,nt.jsx)(ae,{content:t,enableGutter:!1,enableProse:!1})})});var Ai=x(require("next/link")),Tt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:i,size:d,url:m}=e,c=t==="reference"&&typeof i?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,g=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,nt.jsxs)(Ai.default,{className:n(r),href:c||m||"",...g,children:[s&&s,o&&o]}):(0,nt.jsx)(M,{asChild:!0,className:r,size:p,variant:a,children:(0,nt.jsxs)(Ai.default,{className:n(r),href:c||m||"",...g,children:[s&&s,o&&o]})})};function Or({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 Vm({className:e,...t}){return(0,nt.jsx)("input",{...t,className:Or({className:e})})}function jr({icon:e,...t}){return(0,nt.jsxs)("div",{className:"relative w-full",children:[(0,nt.jsx)(Vm,{...t}),e&&(0,nt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Wm({className:e,...t}){return(0,nt.jsx)("textarea",{...t,className:n(Or({}),"resize-none md:min-h-[130px]",e)})}function Ul({icon:e,...t}){return(0,nt.jsxs)("div",{className:"relative w-full",children:[(0,nt.jsx)(Wm,{...t}),e&&(0,nt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Wl=require("formik"),Xl=require("react-icons/fa6"),ja=x(require("yup"));async function Vl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"no-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 Li=require("sonner"),Dt={tooShort:"Must nt nt least ${min} characters",tooLong:"Must nt nt most ${max} characters",required:"This field is required",email:"Invalid email format"},Xm=ja.object().shape({name:ja.string().min(2,Dt.tooShort).max(50,Dt.tooLong).required(Dt.required),email:ja.string().email(Dt.email).required(Dt.required),subject:ja.string().min(2,Dt.tooShort).max(50,Dt.tooLong).required(Dt.required),message:ja.string().min(2,Dt.tooShort).max(300,Dt.tooLong).required(Dt.required)}),Gr=n("!pr-[44px] text-foreground"),_r=n("!border-red-600 border"),$r=n("sr-only");function Yl(){return(0,nt.jsx)(Wl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Xm,onSubmit:async(e,{resetForm:t})=>{let a=await Vl(e);a.data===null?Li.toast.error(a.message):(Li.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,nt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)(jr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,nt.jsx)(Xl.FaUser,{className:"text-primary"}),className:n(Gr,e.name&&t.name&&_r)}),e.name&&t.name&&(0,nt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:$r,children:e.name})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)(jr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,nt.jsx)(Ym,{}),className:n(Gr,e.email&&t.email&&_r)}),e.email&&t.email&&(0,nt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:$r,children:e.email})]}),(0,nt.jsxs)("div",{className:"lg:col-span-2",children:[(0,nt.jsx)(jr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:n(Gr,e.subject&&t.subject&&_r)}),e.subject&&t.subject&&(0,nt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:$r,children:e.subject})]}),(0,nt.jsxs)("div",{className:"lg:col-span-2",children:[(0,nt.jsx)(Ul,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,nt.jsx)(qm,{}),className:n(Gr,e.message&&t.message&&_r)}),e.message&&t.message&&(0,nt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:$r,children:e.message})]}),(0,nt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,nt.jsx)(M,{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 Ym(){return(0,nt.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,nt.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 qm(){return(0,nt.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,nt.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 Km=({links:e,richText:t})=>(0,nt.jsx)("div",{className:"container",children:(0,nt.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,nt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,nt.jsx)(ae,{className:"mb-0",content:t,enableGutter:!1})}),(0,nt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,nt.jsx)(Tt,{size:"lg",...a},o))})]})}),Ga=({links:e,richText:t})=>{let[a,o]=(0,vr.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),i=d=>{d.target===d.currentTarget&&l()};return(0,nt.jsxs)("div",{className:n("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,nt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,nt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,nt.jsx)(ae,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,nt.jsx)("div",{className:"mt-10 flex items-center justify-center gap-x-6",children:(0,nt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:d},m)=>d?.url==="/contact"?(0,nt.jsx)("div",{onClick:s,className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:d.label},m):(0,nt.jsx)(Tt,{size:"lg",className:n("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...d},m))})})]})}),a&&(0,nt.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,nt.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,nt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,nt.jsx)(Yl,{})," "]})})]})};var Ur=require("prism-react-renderer");function Bi({code:e}){let[t,a]=(0,vr.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,nt.jsx)("div",{className:"flex justify-end align-middle",children:(0,nt.jsxs)(M,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,nt.jsx)("p",{children:t}),(0,nt.jsx)("div",{className:"w-6 h-6",children:(0,nt.jsx)(cl.ClipboardCopy,{})})]})})}var Jl=({code:e,language:t=""})=>e?(0,nt.jsx)(Ur.Highlight,{code:e,language:t,theme:Ur.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,nt.jsxs)("pre",{className:"bg-black p-4 border text-vr border-border rounded overflow-x-auto",children:[r.map((s,l)=>(0,nt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,nt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,nt.jsx)("span",{className:"table-cell pl-4",children:s.map((i,d)=>(0,nt.jsx)("span",{...o({token:i})},d))})]},l)),(0,nt.jsx)(Bi,{code:e})]})}):null;var Ei=({className:e,code:t,language:a})=>(0,nt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,nt.jsx)(Jl,{code:t,language:a})});var ed=x(require("next/image")),Qm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Zl="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=",td=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:i,loading:d}=e,m,c,p=t,g=i||"";if(!g&&s&&typeof s=="object"){let{alt:u,filename:h,height:L,url:O,width:k}=s;if(L&&L>500){let z=500/L;m=k*z,c=L*z}else m=k,c=L;p=u||"",g=O||Zl}let f=d||"lazy",y=l||Object.entries(Qm).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,nt.jsx)("picture",{children:(0,nt.jsx)(ed.default,{alt:p||"",className:n(o),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:Zl,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:y,src:g,width:a?void 0:m})})};var ad=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,vr.useRef)(null);if((0,vr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,nt.jsx)("video",{autoPlay:!0,className:n(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,nt.jsx)("source",{src:a.url||""})})}return null};var Jt=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,nt.jsx)(a||vr.Fragment,{...a!==null?{className:t}:{},children:r?(0,nt.jsx)(ad,{...e}):(0,nt.jsx)(td,{...e})})};var Zt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,nt.jsx)("div",{className:n("h-full ",{container:a},t),children:(0,nt.jsx)(Jt,{imgClassName:n("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Gi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,nt.jsx)("div",{className:n("",{container:a},t),children:(0,nt.jsx)(Jt,{imgClassName:n("rounded-[0.8rem]",o),resource:r,src:s})})};var $a=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,nt.jsxs)("section",{className:n(r?"w-full":"",""),children:[(0,nt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,nt.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,nt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,nt.jsx)("div",{className:"mb-5 text-foreground",children:(0,nt.jsx)(ae,{content:t,enableGutter:!1})})]}),(0,nt.jsx)("div",{className:`grid gap-6 mt-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,nt.jsx)(Xr,{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 Yr=x(require("react"));function er({nodes:e}){return(0,nt.jsx)(Yr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,nt.jsx)(Yr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,nt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,nt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,nt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,nt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,nt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,nt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,nt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,nt.jsx)("table",{children:(0,nt.jsx)("tbody",{children:t.children.map((s,l)=>(0,nt.jsx)("tr",{children:s.children.map((i,d)=>(0,nt.jsx)("td",{children:er({nodes:i.children})},d))},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 er({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,nt.jsx)(Ga,{...s},a);case"mediaBlock":return(0,nt.jsx)(Zt,{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,nt.jsx)(Gi,{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,nt.jsx)(Ii,{className:"col-start-2 mb-4",...s},a);case"code":return(0,nt.jsx)(Ei,{className:"col-start-2",...s},a);case"features":return(0,nt.jsx)($a,{...s,nested:!0},a);case"reusableContentBlock":er({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,nt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,nt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,nt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,nt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,nt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,nt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,nt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,nt.jsx)(Tt,{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,nt.jsx)(Tt,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var ae=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,nt.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&&er({nodes:t?.root?.children})}):null;var Fe=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",i=r+s+" fa-"+a+" "+l;return(0,nt.jsx)("i",{className:i})};var nd=x(require("next/image"));function id(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Xr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:l,link:i,className:d}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:"bg-background"},c={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,nt.jsxs)("a",{href:i?.url||"#",className:n("min-w-56 max-w-xl 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",c[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`,d),children:[e&&(0,nt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,nt.jsx)(nd.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,nt.jsxs)("div",{className:n(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,nt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,nt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,nt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,nt.jsx)(Jm,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,nt.jsx)(ae,{enableGutter:!1,content:r,enableProse:!1,className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-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,nt.jsx)("div",{className:n("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,nt.jsx)("div",{className:"mt-6",children:(0,nt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var Jm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,nt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,nt.jsx)("div",{className:n(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),id(e)&&(0,nt.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 mt-1":""),children:(0,nt.jsx)(Fe,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,nt.jsxs)("div",{className:"flex flex-col gap-4",children:[id(e)&&(0,nt.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,nt.jsx)(Fe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,nt.jsx)("h3",{className:n("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)("div",{className:n("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var ld=x(require("next/image")),dd=x(require("next/link"));var Ua=x(require("react"));var fe=Ua.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("rounded-xl border bg-card text-card-foreground shadow",e),...t}));fe.displayName="Card";var Ae=Ua.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("flex flex-col space-y-1.5 p-6",e),...t}));Ae.displayName="CardHeader";var Le=Ua.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("font-semibold leading-none tracking-tight",e),...t}));Le.displayName="CardTitle";var _i=Ua.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("text-sm text-muted-foreground",e),...t}));_i.displayName="CardDescription";var Se=Ua.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("p-6 pt-0",e),...t}));Se.displayName="CardContent";var $i=Ua.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("div",{ref:a,className:n("flex items-center p-6 pt-0",e),...t}));$i.displayName="CardFooter";function cd({name:e,logo:t,href:a}){return(0,nt.jsx)(fe,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,nt.jsxs)(dd.default,{href:a,className:"block",children:[(0,nt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,nt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,nt.jsx)(ld.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,nt.jsx)(Se,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,nt.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 md({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,nt.jsx)(cl.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,nt.jsx)(cl.Award,{className:"h-4 w-4"});case"companyEvent":return(0,nt.jsx)(cl.PartyPopper,{className:"h-4 w-4"});default:return(0,nt.jsx)(cl.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 to-slate-500"}};return(0,nt.jsxs)(fe,{className:`w-full max-w-md overflow-hidden bg-gradient-to-br ${l(e)}`,children:[(0,nt.jsxs)(Ae,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,nt.jsxs)(qe,{className:"h-14 w-14 border-2 border-white",children:[(0,nt.jsx)(Ke,{src:r,alt:a||"Event"}),(0,nt.jsx)(Qe,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,nt.jsxs)("div",{className:"flex flex-col",children:[(0,nt.jsx)(Le,{className:"text-xl",children:a||"Untitled Event"}),(0,nt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,nt.jsx)(cl.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,nt.jsxs)(Se,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,nt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,nt.jsxs)(Je,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,nt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([A-nt])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var ud=x(require("next/link"));var gd=x(require("next/image")),pd={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function fd({slug:e,image:t,title:a,description:o}){return(0,nt.jsxs)(ud.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,nt.jsx)("span",{className:n("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,nt.jsx)(gd.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
8
8
  (min-width:${pd.md}) 50vw,
9
9
  (min-width:${pd.lg}) 25vw,
10
10
  100vw
11
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,lt.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,lt.jsxs)("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,lt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,lt.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,lt.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,lt.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 $i=x(require("next/image")),Yr=x(require("path"));function Zm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function ep(e){return e.startsWith("http")}function tp(e,t){let a=e;if(Zm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(ep(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Yr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Yr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Yr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function ap({src:e,alt:t}){let[a,o]=(0,yr.useState)(!1),[r,s]=(0,yr.useState)(!1),[l,i]=(0,yr.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=p=>{let{naturalWidth:g,naturalHeight:f}=p.target;i({width:g,height:f}),s(g>300||f>300)};return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.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,lt.jsx)($i.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-lt-full max-h-full"})}),(0,lt.jsx)(Lt,{open:a,onOpenChange:o,children:(0,lt.jsxs)(wt,{className:"flex flex-col items-center justify-center",children:[(0,lt.jsxs)(Ut,{className:"flex lt-full justify-end",children:[(0,lt.jsx)(Wt,{className:"hidden",children:t}),(0,lt.jsx)(Dr,{})]}),(0,lt.jsx)("div",{className:"flex items-center justify-center",children:(0,lt.jsx)($i.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function bd({props:e,baseContext:t}){let{src:a}=e;return a=tp(a,t),(0,lt.jsx)(ap,{src:a,alt:e.alt})}var yd=x(require("next/link"));function pt({children:e,href:t,openNewTab:a,...o}){return(0,lt.jsx)(yd.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function op(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function rp({icon:e,title:t,description:a,slug:o}){return(0,lt.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,lt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,lt.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:op(e)?(0,lt.jsx)(He,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,lt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,lt.jsx)(pt,{href:o,children:t}):t})]}),(0,lt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,lt.jsx)(D,{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,lt.jsxs)(pt,{href:o,children:[(0,lt.jsx)("span",{children:"Read More"}),(0,lt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,lt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,lt.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,lt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] lt-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}function sp({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,lt.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,lt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-lt max-lg:pt-14 lg:border-r lg:p-10",children:[(0,lt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,lt.jsx)("p",{children:t})]}),(0,lt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,lt.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,lt.jsx)("el",{"aria-label":"pricing point list",className:"grid lt-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,i)=>(0,lt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,lt.jsx)("span",{className:"text-accent pt-1",children:(0,lt.jsx)(Xl.FaCircleCheck,{})}),(0,lt.jsx)("span",{children:l})]},i))}),(0,lt.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,lt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,lt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,lt.jsx)(D,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,lt.jsxs)(pt,{href:s.href,openNewTab:s.openNewTab,children:[(0,lt.jsx)("span",{className:"relative z-1",children:s.label}),(0,lt.jsx)("span",{className:"relative z-1 pl-2",children:(0,lt.jsx)(Xl.FaAnglesRight,{})})]})})})]})})]})}function ip({className:e,badge:t,title:a,subtitle:o}){return(0,lt.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,lt.jsxs)("div",{className:"relative z-10 mx-auto max-lt-4xl text-center",children:[t&&(0,lt.jsx)("div",{className:"mb-4",children:(0,lt.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,lt.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,lt.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,lt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 lt-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% lt 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,lt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 lt-full -translate-x-1/2",children:(0,lt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,lt.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 hd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function np({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:p}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"lt-1/4","1/3":"lt-1/3","1/2":"lt-1/2",full:"lt-full",auto:"lt-full"};return(0,lt.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-lt-56 flex flex-col group",g[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,lt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,lt.jsx)(lp,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,lt.jsx)("div",{className:"mb-6",children:(0,lt.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,lt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),c&&typeof c=="object"&&(0,lt.jsx)("div",{className:n("space-y-6"),children:(0,lt.jsx)(oe,{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,lt.jsx)("div",{className:n("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,lt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,lt.jsx)(D,{size:"lg",className:"text-white text-lg rounded-xl lt-full mt-auto items-center justify-center",asChild:!0,children:(0,lt.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,lt.jsx)("div",{className:"absolute bottom-0 right-0 lt-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 lp=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,lt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[hd(e)&&(0,lt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,lt.jsx)(He,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,lt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,lt.jsxs)("div",{className:"flex flex-col gap-4",children:[hd(e)&&(0,lt.jsx)("div",{className:n("h-12 lt-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,lt.jsx)(He,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,lt.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,lt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,lt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var xd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,lt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function dp({icon:e,title:t,body:a,color:o="secondary"}){return(0,lt.jsx)(lt.Fragment,{children:(0,lt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,lt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,lt.jsx)("div",{className:"lt-12 h-12",children:(0,lt.jsx)(He,{type:e.type,iconName:e.name})})}),(0,lt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-lt-[30%]",children:t}),a&&(0,lt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-lt-[50%]",children:a})]})})}var wd=x(require("next/image"));function cp(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,lt.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,lt.jsx)(wd.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,lt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,lt.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,lt.jsxs)("a",{href:t,children:[(0,lt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,lt.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var mp=(e,t)=>`from-brand-${e} to-brand-${t}`;function pp({...e}){let t=mp(e.brandFrom||"one",e.brandTo||"two");return(0,lt.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,lt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,lt.jsxs)("a",{href:e.url,children:[(0,lt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,lt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,lt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,lt.jsx)("span",{children:e.message&&e.message})]}):(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,lt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,lt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,lt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Qo=x(require("react")),up={Architecture:(0,lt.jsx)(cl.DraftingCompass,{className:"h-5 lt-5 text-blue-600"}),Engineering:(0,lt.jsx)(cl.Code,{className:"h-5 lt-5 text-green-600"}),Development:(0,lt.jsx)(cl.Code,{className:"h-5 lt-5 text-purple-600"}),Delivery:(0,lt.jsx)(cl.GanttChart,{className:"h-5 lt-5 text-red-600"})},gp=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,lt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,lt.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,lt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,lt.jsx)(cl.ChevronDown,{className:"h-4 lt-4"}):(0,lt.jsx)(cl.ChevronRight,{className:"h-4 lt-4"})}),(0,lt.jsx)("div",{className:"lt-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,lt.jsx)(cl.Users,{className:"h-6 lt-6 text-gray-500"})}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,lt.jsxs)("div",{className:"flex items-center mt-1",children:[up[e.discipline],(0,lt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,lt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Cd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Qo.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 Qo.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,lt.jsxs)("div",{children:[(0,lt.jsx)(gp,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,p)=>(0,lt.jsx)(Cd,{person:d,level:t+1,searchTerm:a},p))]}):null};function fp(){let[e,t]=(0,Qo.useState)("");return(0,lt.jsxs)("div",{className:"max-lt-5xl mx-auto p-6",children:[(0,lt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,lt.jsxs)("div",{className:"mb-4 relative",children:[(0,lt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"lt-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,lt.jsx)(cl.Search,{className:"absolute right-3 top-2.5 h-5 lt-5 text-gray-400"})]}),(0,lt.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel lt. 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,lt.jsx)(Cd,{person:o,level:0,searchTerm:e},r))})]})}function bp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,lt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,lt.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,lt.jsxs)(be,{className:"flex-grow",children:[(0,lt.jsx)(Le,{className:"bg-primary text-primary-foreground",children:(0,lt.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,lt.jsx)(cl.Users,{className:"h-5 lt-5"}),"Team"]})}),(0,lt.jsxs)(Re,{className:"p-6",children:[(0,lt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,lt.jsxs)("div",{className:"space-y-6",children:[(0,lt.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,lt.jsx)(cl.User,{className:"h-4 lt-4 text-muted-foreground"}),(0,lt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,lt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,lt.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,lt.jsx)(cl.User,{className:"h-4 lt-4 text-muted-foreground"}),(0,lt.jsx)("span",{children:r.role}),r.count&&(0,lt.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,lt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,lt.jsxs)("div",{children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,lt.jsx)(cl.Users2,{className:"h-4 lt-4 text-muted-foreground"}),(0,lt.jsx)("span",{children:"SME input:"})]}),(0,lt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,lt.jsxs)(be,{children:[(0,lt.jsx)(Le,{className:"bg-primary text-primary-foreground",children:(0,lt.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,lt.jsx)(cl.PoundSterling,{className:"h-5 lt-5"}),"Fee"]})}),(0,lt.jsx)(Re,{className:"p-6",children:(0,lt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,lt.jsxs)(be,{className:"lg:col-span-1 flex flex-col",children:[(0,lt.jsx)(Le,{className:"bg-primary text-primary-foreground",children:(0,lt.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,lt.jsx)(cl.FileText,{className:"h-5 lt-5"}),"Outputs"]})}),(0,lt.jsxs)(Re,{className:"p-6 flex-grow overflow-auto",children:[(0,lt.jsx)("_n",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,lt.jsxs)("li",{className:"text-sm",children:[(0,lt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,lt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,lt.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,lt.jsxs)(be,{className:"lg:col-span-1 flex flex-col",children:[(0,lt.jsx)(Le,{className:"bg-primary text-primary-foreground",children:(0,lt.jsxs)(Be,{className:"flex items-center gap-2",children:[(0,lt.jsx)(cl.Lightbulb,{className:"h-5 lt-5"}),"Benefits"]})}),(0,lt.jsx)(Re,{className:"p-6 flex-grow overflow-auto",children:(0,lt.jsx)("el",{className:"space-y-4",children:a.map((r,s)=>(0,lt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,lt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,lt.jsx)("span",{children:r})]},s))})})]})]})}function yp(){return(0,lt.jsx)("div",{className:"lt-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,lt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,lt.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,lt.jsx)("div",{className:"lt-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,lt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,lt.jsx)(cl.BarChart3,{className:"lt-8 h-8"})]}),(0,lt.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,lt.jsx)("p",{className:"text-secondary text-sm",children:"cl excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,lt.jsxs)("el",{className:"text-sm",children:[(0,lt.jsx)("li",{children:"Strategy definition"}),(0,lt.jsx)("li",{children:"Programme leadership"}),(0,lt.jsx)("li",{children:"Detailed planning"}),(0,lt.jsx)("li",{children:"\u2022 Financial control"}),(0,lt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,lt.jsx)("div",{className:"lt-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,lt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,lt.jsx)(cl.CogIcon,{className:"lt-8 h-8"})]}),(0,lt.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,lt.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,lt.jsx)("p",{className:"text-sm",children:"cl deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,lt.jsx)("div",{className:"lt-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,lt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,lt.jsx)(cl.Building2,{className:"lt-8 h-8"})]}),(0,lt.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,lt.jsx)("p",{className:"text-sky-200 text-sm",children:"cl understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,lt.jsx)("p",{className:"text-sm",children:"cl have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,lt.jsx)("div",{className:"lt-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,lt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,lt.jsx)(cl.BadgeCheck,{className:"lt-8 h-8"})]}),(0,lt.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,lt.jsx)("p",{className:"text-sky-200 text-sm",children:"cl have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,lt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, lt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Jo=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,lt.jsx)("div",{className:"my-6",children:(0,lt.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,c)=>{let{enableLink:m,link:d,richText:p,size:g}=i,{processedRichText:f,heading:y}=l(p,a?.settings?.box||"none",g||"full");return(0,lt.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[g]}`,{"md:col-span-2":g!=="full"},r[g!=="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:[y&&(0,lt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:y.children[0].text}),f&&(0,lt.jsx)(oe,{content:f,enableGutter:!1,className:"rich-text"}),m&&(0,lt.jsx)(kt,{...d})]},c)})})})};var Qr=x(require("next/image"));function vp({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,lt.jsxs)("div",{className:"relative lt-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,lt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] lt-full overflow-hidden",children:(0,lt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] lt-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,lt.jsx)(Qr.default,{src:e,alt:"Header background",className:"h-full lt-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,lt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,lt.jsx)("div",{className:"h-16 lt-32 md:h-24 md:lt-48",children:(0,lt.jsx)(Qr.default,{src:o,alt:"Company logo",className:"h-full lt-full object-contain",width:192,height:96})}),r&&(0,lt.jsx)("div",{className:"h-10 lt-20 md:h-12 md:lt-24",children:(0,lt.jsx)(Qr.default,{src:r,alt:"Customer logo",className:"h-full lt-full object-contain",width:96,height:48})})]}),(0,lt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,lt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,lt.jsx)("h1",{className:"max-lt-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Yi=x(require("next/image"));var Ui=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,lt.jsx)(hp,{blocks:a.layout}):(0,lt.jsx)(lt.Fragment,{})},kd={content:Jo,cta:Oa,mediaBlock:Jt,imageBlock:Jt,features:ja},hp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,lt.jsx)(lt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in kd){let i=kd[s];if(i)return(0,lt.jsxs)("div",{className:"py-6 relative",children:[(0,lt.jsx)(Jr,{block:o,index:r}),(0,lt.jsx)("div",{className:n(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,lt.jsx)(i,{...o})})]},r)}return null})}):null};var Pd=x(require("react")),mo=x(require("@radix-ui/react-collapsible"));var Sd=({title:e,richText:t})=>{let[a,o]=Pd.default.useState(!1);return(0,lt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,lt.jsxs)(mo.Root,{className:n("lt-full"),open:a,onOpenChange:o,children:[(0,lt.jsxs)(mo.Trigger,{className:"flex lt-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,lt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,lt.jsx)(gr.ChevronUpIcon,{className:"h-6 lt-6"}):(0,lt.jsx)(gr.ChevronDownIcon,{className:"h-6 lt-6"})]}),(0,lt.jsx)(mo.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,lt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,lt.jsx)(oe,{content:t||{},enableGutter:!1})})})]})})};var es={content:Jo,cta:Oa,mediaBlock:Jt,collapsibleArea:Sd,imageBlock:Jt,features:ja,reusableContentBlock:Ui},Sa=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,lt.jsx)("section",{id:"render-blocks",className:n(e.fill?"h-full lt-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in es){let i=es[s];if(s==="reusableContentBlock")return(0,lt.jsx)(yr.Fragment,{children:(0,lt.jsx)(Sa,{blocks:o.reusableContent.layout})},r);if(i)return(0,lt.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,lt.jsx)(Jr,{block:o,index:r}),(0,lt.jsx)("div",{className:n("container h-full relative",l?.settings?.theme||"dark"),children:(0,lt.jsx)(i,{...o})})]},r)}return null})}):null},Jr=e=>{if(!("theme"in e.block))return(0,lt.jsx)("div",{className:n("absolute inset-0 lt-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,lt.jsxs)("div",{className:n("absolute inset-0 lt-full h-full bg-background",t.settings.theme||"dark"),children:[(0,lt.jsx)(Yi.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,lt.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,lt.jsx)("div",{className:n("absolute inset-0 lt-screen h-full bg-background",t.settings.theme||"dark")})},xp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,lt.jsx)("main",{id:"content-blocks",className:n(e.fill?"h-full lt-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in es){let i=es[s];if(s==="reusableContentBlock")return(0,lt.jsx)(yr.Fragment,{children:(0,lt.jsx)(Sa,{blocks:o.reusableContent.layout})},r);if(i)return(0,lt.jsx)(Rd,{block:o,allBlocks:t,index:r,children:(0,lt.jsx)(i,{...o})})}return null})}):null},Rd=e=>{if(e.index===0)return(0,lt.jsxs)("section",{className:"relative flex lt-full",children:[(0,lt.jsx)("div",{className:n("absolute inset-0 lt-screen h-full light bg-background")}),(0,lt.jsx)("div",{className:n("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=c=>c%2===0?"light":"dark",a=({index:c,allBlocks:m})=>c===1?(0,lt.jsx)(Wi,{position:"left"}):r(c,m)==="dark"&&l(c,m)==="light"?(0,lt.jsx)(Vi,{position:"left"}):r(c,m)==="light"&&l(c,m)==="dark"?(0,lt.jsx)(Wi,{position:"left"}):null,o=({index:c,allBlocks:m})=>s(c,m)==="light"&&l(c,m)==="dark"?(0,lt.jsx)(Vi,{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,lt.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col lt-full pt-12",children:[(0,lt.jsx)("div",{className:n("absolute inset-0 lt-screen dark bg-background")}),(0,lt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})]}):(0,lt.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col lt-full",children:[(0,lt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,lt.jsx)("div",{className:n("absolute inset-0 lt-screen")}),(0,lt.jsx)("div",{className:"bg-black",children:(0,lt.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,lt.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col lt-full pt-20",children:[(0,lt.jsx)("div",{className:n("absolute inset-0 lt-screen bg-background",c)}),(0,lt.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,lt.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col lt-full",children:[(0,lt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,lt.jsx)("div",{className:n("absolute inset-0 lt-screen bg-background",c)}),(0,lt.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,lt.jsxs)("div",{className:n("container h-full relative","dark"),children:[(0,lt.jsx)("div",{className:n("absolute inset-0 lt-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,lt.jsxs)("div",{className:n("absolute inset-0 lt-full h-full bg-background",i.settings.theme||"dark"),children:[(0,lt.jsx)(Yi.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,lt.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,lt.jsx)("div",{className:n("absolute inset-0 lt-screen h-full bg-background",i.settings.theme||"dark")})},Wi=({position:e})=>(0,lt.jsx)("div",{className:"lt-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:(0,lt.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("lt-full block overflow-hidden"),children:(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Vi=({position:e})=>(0,lt.jsx)("div",{className:"lt-full relative z-20 aspect-[1920/332] overflow-hidden ",children:(0,lt.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,lt.jsx)("defs",{children:(0,lt.jsxs)("mask",{id:"mask",children:[(0,lt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var Id=x(require("clsx"));var Td=require("next/navigation");function Np({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Td.useRouter)(),r=(0,yr.useRef)(null),s=(0,yr.useRef)(null),l=(0,yr.useRef)(0),i=(0,yr.useRef)(!1),c=(0,yr.useRef)(0),m=(0,yr.useCallback)(p=>{if(p.target){let g=p.target,f=+new Date,y=g?.closest("a");c.current=p.button,y?i.current=!0:(i.current=!1,l.current=f)}},[o,r,s,l]),d=(0,yr.useCallback)(p=>{if(s.current?.href){let f=+new Date-l.current;if(s.current?.href&&f<=250&&!i.current&&c.current===0&&!p.ctrlKey)if(e){let y=t?"_blank":"_self";window.open(s.current.href,y)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,yr.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 Dd=Np;var Md=x(require("next/link"));var Zo=e=>{let{card:t,link:a}=Dd({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:c,categories:m,meta:d,title:p}=r||{},{description:g,image:f}=d||{},y=m&&Array.isArray(m)&&m.length>0,u=i||p,h=g?.replace(/\s/g," "),A=`/${s}/${c}`;return(0,lt.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,lt.jsxs)("div",{className:"relative lt-full ",children:[!f&&(0,lt.jsx)("div",{className:"",children:"it image"}),f&&typeof f!="string"&&(0,lt.jsx)(Qt,{resource:f,size:"33vw"})]}),(0,lt.jsxs)("div",{className:"p-4",children:[l&&y&&(0,lt.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&y&&(0,lt.jsx)("div",{children:m?.map((G,C)=>{if(typeof G=="object"){let{title:B}=G,N=B||"Untitled category",Z=C===m.length-1;return(0,lt.jsxs)(yr.Fragment,{children:[N,!Z&&(0,lt.jsx)(yr.Fragment,{children:", \xA0"})]},C)}return null})})}),u&&(0,lt.jsx)("div",{className:"prose",children:(0,lt.jsx)("h3",{children:(0,lt.jsx)(Md.default,{className:"not-prose",href:A,ref:a.ref,children:u})})}),g&&(0,lt.jsx)("div",{className:"mt-2",children:g&&(0,lt.jsx)("p",{children:h})})]})]})};var wp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,lt.jsxs)("div",{className:(0,Id.default)("container",t),children:[o&&(0,lt.jsx)(oe,{content:o,enableGutter:!1}),(0,lt.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,lt.jsx)(Zo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var fo=require("framer-motion");var _y=require("pagedjs");var Cp=e=>{let{posts:t}=e;return(0,lt.jsx)("div",{className:n("container"),children:(0,lt.jsx)("div",{children:(0,lt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,lt.jsx)("div",{className:"col-span-4",children:(0,lt.jsx)(Zo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Ad=x(require("clsx")),Ld=x(require("next/image")),kp=e=>{let{loading:t,priority:a,className:o}=e;return(0,lt.jsx)(Ld.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ad.default)("max-lt-[9.375rem] lt-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Pp={plural:"Docs",singular:"Doc"},Sp={posts:{plural:"Posts",singular:"Post"}},Rp=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||Sp[a||""]||Pp||{};return(0,lt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced no results.",typeof l<"u"&&l>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${l} ${l>1?m:d}`]})};var Ki=x(require("react")),Qi=({className:e,...t})=>(0,lt.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex lt-full justify-center",e),role:"navigation",...t});Qi.displayName="Pagination";var Ji=Ki.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("el",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));Ji.displayName="PaginationContent";var aa=Ki.forwardRef(({className:e,...t},a)=>(0,lt.jsx)("li",{className:n("",e),ref:a,...t}));aa.displayName="PaginationItem";var Ua=({className:e,isActive:t,size:a="icon",...o})=>(0,lt.jsx)("button",{"aria-current":t?"page":void 0,className:n(ma({size:a,variant:t?"outline":"ghost"}),e),...o});Ua.displayName="PaginationLink";var Zi=({className:e,...t})=>(0,lt.jsxs)(Ua,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,lt.jsx)(cl.ChevronLeft,{className:"h-4 lt-4"}),(0,lt.jsx)("span",{children:"Previous"})]});Zi.displayName="PaginationPrevious";var en=({className:e,...t})=>(0,lt.jsxs)(Ua,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,lt.jsx)("span",{children:"Next"}),(0,lt.jsx)(cl.ChevronRight,{className:"h-4 lt-4"})]});en.displayName="PaginationNext";var ts=({className:e,...t})=>(0,lt.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 lt-9 items-center justify-center",e),...t,children:[(0,lt.jsx)(cl.MoreHorizontal,{className:"h-4 lt-4"}),(0,lt.jsx)("span",{className:"lt-only",children:"More pages"})]});ts.displayName="PaginationEllipsis";var Tp=e=>{let t=(0,Td.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,c=o+1<r;return(0,lt.jsx)("div",{className:n("my-12",a),children:(0,lt.jsx)(Qi,{children:(0,lt.jsxs)(Ji,{children:[(0,lt.jsx)(aa,{children:(0,lt.jsx)(Zi,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,lt.jsx)(aa,{children:(0,lt.jsx)(ts,{})}),l&&(0,lt.jsx)(aa,{children:(0,lt.jsx)(Ua,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,lt.jsx)(aa,{children:(0,lt.jsx)(Ua,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,lt.jsx)(aa,{children:(0,lt.jsx)(Ua,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,lt.jsx)(aa,{children:(0,lt.jsx)(ts,{})}),(0,lt.jsx)(aa,{children:(0,lt.jsx)(en,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var tn=x(require("next/image")),Fd=({logoImage:e})=>(0,lt.jsxs)("footer",{className:`absolute bottom-0 left-0 lt-full py-2 px-8 flex justify-between items-center transition-colors duration-300
12
- dark bg-background text-primary`,children:[(0,lt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[e&&(0,lt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,lt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,lt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),er=({title:e})=>(0,lt.jsx)("header",{className:"absolute top-0 left-0 lt-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,lt.jsx)("div",{className:"container",children:(0,lt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),tr=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,lt.jsxs)("div",{className:"relative lt-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,lt.jsx)("div",{className:"absolute inset-0",children:(0,lt.jsx)(tn.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,lt.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,lt.jsx)("div",{className:"h-24",children:(0,lt.jsx)(tn.default,{src:o.src,alt:"Company logo",className:"h-full lt-full object-contain",width:192,height:96})})}),(0,lt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,lt.jsxs)("div",{className:"relative pl-24 z-10 max-lt-3xl",children:[(0,lt.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,lt.jsx)(oe,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Hd=e=>{let[t,a]=(0,yr.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)},f=(0,yr.useCallback)(((u,h)=>{let A;return(...G)=>{clearTimeout(A),A=setTimeout(()=>u(...G),h)}})(u=>{u.deltaY>0?d():p()},300),[]),y=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&p()};return(0,yr.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",y),()=>{window.removeEventListener("wheel",f),window.removeEventListener("keydown",y)}),[]),(0,lt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,lt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen lt-9 z-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((u,h)=>(0,lt.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 lt-4 rounded-full transition-all hover:bg-accent duration-300 ${t===h?"bg-accent":"bg-gray-600"}`,onClick:()=>m(h),children:(0,lt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,lt.jsx)(fo.AnimatePresence,{children:c.map((u,h)=>(0,lt.jsx)("div",{id:`slide-${h}`,className:"print-section",children:(0,lt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
11
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,nt.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,nt.jsxs)("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,nt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,nt.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,nt.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,nt.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 Ui=x(require("next/image")),qr=x(require("path"));function Zm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function ep(e){return e.startsWith("http")}function tp(e,t){let a=e;if(Zm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(ep(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=qr.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=qr.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=`/${qr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function ap({src:e,alt:t}){let[a,o]=(0,vr.useState)(!1),[r,s]=(0,vr.useState)(!1),[l,i]=(0,vr.useState)({width:0,height:0}),d=()=>{r&&o(!0)},m=()=>{o(!1)},c=p=>{let{naturalWidth:g,naturalHeight:f}=p.target;i({width:g,height:f}),s(g>300||f>300)};return(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:d,children:(0,$e.jsx)(Ui.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,$e.jsx)(Ft,{open:a,onOpenChange:o,children:(0,$e.jsxs)(kt,{className:"flex flex-col items-center justify-center",children:[(0,$e.jsxs)(Yt,{className:"flex w-full justify-end",children:[(0,$e.jsx)(qt,{className:"hidden",children:t}),(0,$e.jsx)(Mr,{})]}),(0,$e.jsx)("div",{className:"flex items-center justify-center",children:(0,$e.jsx)(Ui.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function bd({props:e,baseContext:t}){let{src:a}=e;return a=tp(a,t),(0,$e.jsx)(ap,{src:a,alt:e.alt})}var yd=x(require("next/link"));function gt({children:e,href:t,openNewTab:a,...o}){return(0,nt.jsx)(yd.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function op(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function rp({icon:e,title:t,description:a,slug:o}){return(0,nt.jsxs)("article",{className:n(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,nt.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,nt.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:op(e)?(0,nt.jsx)(Fe,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,nt.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,nt.jsx)(gt,{href:o,children:t}):t})]}),(0,nt.jsx)("p",{className:"text-foreground",children:a}),o&&(0,nt.jsx)(M,{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,nt.jsxs)(gt,{href:o,children:[(0,nt.jsx)("span",{children:"Read More"}),(0,nt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,nt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,nt.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,nt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}function sp({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,nt.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,nt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-nt max-lg:pt-14 lg:border-r lg:p-10",children:[(0,nt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,nt.jsx)("p",{children:t})]}),(0,nt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,nt.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,nt.jsx)("el",{"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,nt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,nt.jsx)("span",{className:"text-accent pt-1",children:(0,nt.jsx)(Xl.FaCircleCheck,{})}),(0,nt.jsx)("span",{children:l})]},i))}),(0,nt.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,nt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,nt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,nt.jsx)(M,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,nt.jsxs)(gt,{href:s.href,openNewTab:s.openNewTab,children:[(0,nt.jsx)("span",{className:"relative z-1",children:s.label}),(0,nt.jsx)("span",{className:"relative z-1 pl-2",children:(0,nt.jsx)(Xl.FaAnglesRight,{})})]})})})]})})]})}function ip({className:e,badge:t,title:a,subtitle:o}){return(0,nt.jsxs)("div",{className:n("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,nt.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,nt.jsx)("div",{className:"mb-4",children:(0,nt.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,nt.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,nt.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,nt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% nt 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,nt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,nt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,nt.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 hd(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function np({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:i,content:d,statistic:m,buttonText:c,buttonHref:p}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,nt.jsxs)("div",{className:n("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",g[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)(lp,{icon:a,heading:l,variant:e,iconSize:o})}),m&&(0,nt.jsx)("div",{className:"mb-6",children:(0,nt.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,nt.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),d&&typeof d=="object"&&(0,nt.jsx)("div",{className:n("space-y-6"),children:(0,nt.jsx)(ae,{enableGutter:!1,content:d,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")})}),d&&typeof d=="string"&&(0,nt.jsx)("div",{className:n("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:d}),c&&(0,nt.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,nt.jsx)(M,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,nt.jsx)("a",{href:p,children:c})})}),e==="radial"&&(0,nt.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 lp=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,nt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[hd(e)&&(0,nt.jsx)("div",{className:n("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,nt.jsx)(Fe,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,nt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,nt.jsxs)("div",{className:"flex flex-col gap-4",children:[hd(e)&&(0,nt.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,nt.jsx)(Fe,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,nt.jsx)("h3",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,nt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,nt.jsx)("div",{className:n("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var xd=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,nt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function dp({icon:e,title:t,body:a,color:o="secondary"}){return(0,nt.jsx)(nt.Fragment,{children:(0,nt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,nt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,nt.jsx)("div",{className:"w-12 h-12",children:(0,nt.jsx)(Fe,{type:e.type,iconName:e.name})})}),(0,nt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,nt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var wd=x(require("next/image"));function cp(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,nt.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,nt.jsx)(wd.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,nt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,nt.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,nt.jsxs)("a",{href:t,children:[(0,nt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,nt.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var mp=(e,t)=>`from-brand-${e} to-brand-${t}`;function pp({...e}){let t=mp(e.brandFrom||"one",e.brandTo||"two");return(0,nt.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,nt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,nt.jsxs)("a",{href:e.url,children:[(0,nt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,nt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,nt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,nt.jsx)("span",{children:e.message&&e.message})]}):(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,nt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,nt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,nt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var tr=x(require("react")),up={Architecture:(0,nt.jsx)(cl.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,nt.jsx)(cl.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,nt.jsx)(cl.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,nt.jsx)(cl.GanttChart,{className:"h-5 w-5 text-red-600"})},gp=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,nt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,nt.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,nt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,nt.jsx)(cl.ChevronDown,{className:"h-4 w-4"}):(0,nt.jsx)(cl.ChevronRight,{className:"h-4 w-4"})}),(0,nt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,nt.jsx)(cl.Users,{className:"h-6 w-6 text-gray-500"})}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,nt.jsxs)("div",{className:"flex items-center mt-1",children:[up[e.discipline],(0,nt.jsx)("span",{className:"ml-1 text-vr text-gray-600",children:e.discipline})]})]}),(0,nt.jsx)("span",{className:"ml-auto text-vr font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Cd=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,tr.useState)(t<1),s=()=>r(!o),l=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),i=c=>l(c)||c.reports.some(i),d=a===""||i(e),m=l(e);return tr.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),d?(0,nt.jsxs)("div",{children:[(0,nt.jsx)(gp,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((c,p)=>(0,nt.jsx)(Cd,{person:c,level:t+1,searchTerm:a},p))]}):null};function fp(){let[e,t]=(0,tr.useState)("");return(0,nt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,nt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,nt.jsxs)("div",{className:"mb-4 relative",children:[(0,nt.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,nt.jsx)(cl.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,nt.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,nt.jsx)(Cd,{person:o,level:0,searchTerm:e},r))})]})}function bp({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,nt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,nt.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,nt.jsxs)(fe,{className:"flex-grow",children:[(0,nt.jsx)(Ae,{className:"bg-primary text-primary-foreground",children:(0,nt.jsxs)(Le,{className:"flex items-center gap-2",children:[(0,nt.jsx)(cl.Users,{className:"h-5 w-5"}),"Team"]})}),(0,nt.jsxs)(Se,{className:"p-6",children:[(0,nt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,nt.jsxs)("div",{className:"space-y-6",children:[(0,nt.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,nt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,nt.jsx)(cl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,nt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,nt.jsx)("span",{className:"text-vr text-muted-foreground",children:"(FTE)"})]},s))}),(0,nt.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,nt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,nt.jsx)(cl.User,{className:"h-4 w-4 text-muted-foreground"}),(0,nt.jsx)("span",{children:r.role}),r.count&&(0,nt.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,nt.jsx)("span",{className:"text-vr text-muted-foreground",children:"(FTE)"})]},s))}),(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,nt.jsx)(cl.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,nt.jsx)("span",{children:"SME input:"})]}),(0,nt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,nt.jsxs)(fe,{children:[(0,nt.jsx)(Ae,{className:"bg-primary text-primary-foreground",children:(0,nt.jsxs)(Le,{className:"flex items-center gap-2",children:[(0,nt.jsx)(cl.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,nt.jsx)(Se,{className:"p-6",children:(0,nt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,nt.jsxs)(fe,{className:"lg:col-span-1 flex flex-col",children:[(0,nt.jsx)(Ae,{className:"bg-primary text-primary-foreground",children:(0,nt.jsxs)(Le,{className:"flex items-center gap-2",children:[(0,nt.jsx)(cl.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,nt.jsxs)(Se,{className:"p-6 flex-grow overflow-auto",children:[(0,nt.jsx)("_n",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,nt.jsxs)("li",{className:"text-sm",children:[(0,nt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,nt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,nt.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,nt.jsxs)(fe,{className:"lg:col-span-1 flex flex-col",children:[(0,nt.jsx)(Ae,{className:"bg-primary text-primary-foreground",children:(0,nt.jsxs)(Le,{className:"flex items-center gap-2",children:[(0,nt.jsx)(cl.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,nt.jsx)(Se,{className:"p-6 flex-grow overflow-auto",children:(0,nt.jsx)("el",{className:"space-y-4",children:a.map((r,s)=>(0,nt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,nt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,nt.jsx)("span",{children:r})]},s))})})]})]})}function yp(){return(0,nt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,nt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,nt.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,nt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,nt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,nt.jsx)(cl.BarChart3,{className:"w-8 h-8"})]}),(0,nt.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,nt.jsx)("p",{className:"text-secondary text-sm",children:"nt excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,nt.jsxs)("el",{className:"text-sm",children:[(0,nt.jsx)("li",{children:"Strategy definition"}),(0,nt.jsx)("li",{children:"Programme leadership"}),(0,nt.jsx)("li",{children:"Detailed planning"}),(0,nt.jsx)("li",{children:"\u2022 Financial control"}),(0,nt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,nt.jsxs)("div",{className:"space-y-4",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,nt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,nt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,nt.jsx)(cl.CogIcon,{className:"w-8 h-8"})]}),(0,nt.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,nt.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,nt.jsx)("p",{className:"text-sm",children:"nt deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,nt.jsxs)("div",{className:"space-y-4",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,nt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,nt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,nt.jsx)(cl.Building2,{className:"w-8 h-8"})]}),(0,nt.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,nt.jsx)("p",{className:"text-sky-200 text-sm",children:"nt understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,nt.jsx)("p",{className:"text-sm",children:"nt have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,nt.jsxs)("div",{className:"space-y-4",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,nt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,nt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,nt.jsx)(cl.BadgeCheck,{className:"w-8 h-8"})]}),(0,nt.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,nt.jsx)("p",{className:"text-sky-200 text-sm",children:"nt have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,nt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, nt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var ar=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 d of i.root.children)if(s(d))return!0}if(i.children){for(let d of i.children)if(s(d))return!0}return!1},l=(i,d,m)=>{if(d==="none"||m==="full")return{processedRichText:i,heading:null};let c=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(c={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:c,heading:p}};return(0,nt.jsx)("div",{className:"my-6",children:(0,nt.jsx)("div",{className:n("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((i,d)=>{let{enableLink:m,link:c,richText:p,size:g}=i,{processedRichText:f,heading:y}=l(p,a?.settings?.box||"none",g||"full");return(0,nt.jsxs)("div",{className:n(`col-span-4 lg:col-span-${o[g]}`,{"md:col-span-2":g!=="full"},r[g!=="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-${d+1}00`),children:[y&&(0,nt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:y.children[0].text}),f&&(0,nt.jsx)(ae,{content:f,enableGutter:!1,className:"rich-text"}),m&&(0,nt.jsx)(Tt,{...c})]},d)})})})};var Jr=x(require("next/image"));function vp({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,nt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,nt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,nt.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,nt.jsx)(Jr.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,nt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,nt.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,nt.jsx)(Jr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,nt.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,nt.jsx)(Jr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,nt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,nt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,nt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var qi=x(require("next/image"));var Vi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,nt.jsx)(hp,{blocks:a.layout}):(0,nt.jsx)(nt.Fragment,{})},kd={content:ar,cta:Ga,mediaBlock:Zt,imageBlock:Zt,features:$a},hp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,nt.jsx)(nt.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,l=o?.theme;if(s&&s in kd){let i=kd[s];if(i)return(0,nt.jsxs)("div",{className:"py-6 relative",children:[(0,nt.jsx)(Zr,{block:o,index:r}),(0,nt.jsx)("div",{className:n(l?.settings?.theme==="dark"?"dark":l?.settings?.theme==="green"?"green":""),children:(0,nt.jsx)(i,{...o})})]},r)}return null})}):null};var Pd=x(require("react")),po=x(require("@radix-ui/react-collapsible"));var Sd=({title:e,richText:t})=>{let[a,o]=Pd.default.useState(!1);return(0,nt.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,nt.jsxs)(po.Root,{className:n("w-full"),open:a,onOpenChange:o,children:[(0,nt.jsxs)(po.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,nt.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,nt.jsx)(fr.ChevronUpIcon,{className:"h-6 w-6"}):(0,nt.jsx)(fr.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,nt.jsx)(po.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,nt.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,nt.jsx)(ae,{content:t||{},enableGutter:!1})})})]})})};var ts={content:ar,cta:Ga,mediaBlock:Zt,collapsibleArea:Sd,imageBlock:Zt,features:$a,reusableContentBlock:Vi},Ra=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,nt.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 ts){let i=ts[s];if(s==="reusableContentBlock")return(0,nt.jsx)(vr.Fragment,{children:(0,nt.jsx)(Ra,{blocks:o.reusableContent.layout})},r);if(i)return(0,nt.jsxs)("div",{className:n("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,nt.jsx)(Zr,{block:o,index:r}),(0,nt.jsx)("div",{className:n("container h-full relative",l?.settings?.theme||"dark"),children:(0,nt.jsx)(i,{...o})})]},r)}return null})}):null},Zr=e=>{if(!("theme"in e.block))return(0,nt.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,nt.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,nt.jsx)(qi.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,nt.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,nt.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},xp=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,nt.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 ts){let i=ts[s];if(s==="reusableContentBlock")return(0,nt.jsx)(vr.Fragment,{children:(0,nt.jsx)(Ra,{blocks:o.reusableContent.layout})},r);if(i)return(0,nt.jsx)(Rd,{block:o,allBlocks:t,index:r,children:(0,nt.jsx)(i,{...o})})}return null})}):null},Rd=e=>{if(e.index===0)return(0,nt.jsxs)("section",{className:"relative flex w-full",children:[(0,nt.jsx)("div",{className:n("absolute inset-0 w-screen h-full light bg-background")}),(0,nt.jsx)("div",{className:n("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=d=>d%2===0?"light":"dark",a=({index:d,allBlocks:m})=>d===1?(0,nt.jsx)(Wi,{position:"left"}):r(d,m)==="dark"&&l(d,m)==="light"?(0,nt.jsx)(Xi,{position:"left"}):r(d,m)==="light"&&l(d,m)==="dark"?(0,nt.jsx)(Wi,{position:"left"}):null,o=({index:d,allBlocks:m})=>s(d,m)==="light"&&l(d,m)==="dark"?(0,nt.jsx)(Xi,{position:"left"}):null,r=(d,m)=>{if(d===1)return"light";let c=m[d-1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},s=(d,m)=>{if(d===m.length-1)return"dark";if(d===0)return"light";let c=m[d+1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},l=(d,m)=>{if(d===m.length-1)return"dark";let c=m[d];return c.theme&&c.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,nt.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,nt.jsx)("div",{className:n("absolute inset-0 w-screen dark bg-background")}),(0,nt.jsx)("div",{className:n("container relative","dark bg-background py-1"),children:e.children})]}):(0,nt.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,nt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,nt.jsx)("div",{className:n("absolute inset-0 w-screen")}),(0,nt.jsx)("div",{className:"bg-black",children:(0,nt.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 d=l(e.index,e.allBlocks);return(0,nt.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,nt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",d)}),(0,nt.jsx)("div",{className:n("container relative bg-background py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let d=l(e.index,e.allBlocks);return(0,nt.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,nt.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,nt.jsx)("div",{className:n("absolute inset-0 w-screen bg-background",d)}),(0,nt.jsx)("div",{className:n("container relative bg-background min-h-[22em] content-center py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,nt.jsxs)("div",{className:n("container h-full relative","dark"),children:[(0,nt.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 d={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,nt.jsxs)("div",{className:n("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,nt.jsx)(qi.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,nt.jsx)("div",{className:"absolute inset-0",style:{background:d.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,nt.jsx)("div",{className:n("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Wi=({position:e})=>(0,nt.jsx)("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:(0,nt.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,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Xi=({position:e})=>(0,nt.jsx)("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:(0,nt.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,nt.jsx)("defs",{children:(0,nt.jsxs)("mask",{id:"mask",children:[(0,nt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var Id=x(require("clsx"));var Td=require("next/navigation");function Np({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,Td.useRouter)(),r=(0,vr.useRef)(null),s=(0,vr.useRef)(null),l=(0,vr.useRef)(0),i=(0,vr.useRef)(!1),d=(0,vr.useRef)(0),m=(0,vr.useCallback)(p=>{if(p.target){let g=p.target,f=+new Date,y=g?.closest("a");d.current=p.button,y?i.current=!0:(i.current=!1,l.current=f)}},[o,r,s,l]),c=(0,vr.useCallback)(p=>{if(s.current?.href){let f=+new Date-l.current;if(s.current?.href&&f<=250&&!i.current&&d.current===0&&!p.ctrlKey)if(e){let y=t?"_blank":"_self";window.open(s.current.href,y)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,vr.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",c))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Dd=Np;var Md=x(require("next/link"));var or=e=>{let{card:t,link:a}=Dd({}),{className:o,doc:r,relationTo:s,showCategories:l,title:i}=e,{slug:d,categories:m,meta:c,title:p}=r||{},{description:g,image:f}=c||{},y=m&&Array.isArray(m)&&m.length>0,u=i||p,h=g?.replace(/\s/g," "),L=`/${s}/${d}`;return(0,nt.jsxs)("article",{className:n("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,nt.jsxs)("div",{className:"relative w-full ",children:[!f&&(0,nt.jsx)("div",{className:"",children:"Td image"}),f&&typeof f!="string"&&(0,nt.jsx)(Jt,{resource:f,size:"33vw"})]}),(0,nt.jsxs)("div",{className:"p-4",children:[l&&y&&(0,nt.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&y&&(0,nt.jsx)("div",{children:m?.map((O,k)=>{if(typeof O=="object"){let{title:z}=O,w=z||"Untitled category",J=k===m.length-1;return(0,nt.jsxs)(vr.Fragment,{children:[w,!J&&(0,nt.jsx)(vr.Fragment,{children:", \xA0"})]},k)}return null})})}),u&&(0,nt.jsx)("div",{className:"prose",children:(0,nt.jsx)("h3",{children:(0,nt.jsx)(Md.default,{className:"not-prose",href:L,ref:a.ref,children:u})})}),g&&(0,nt.jsx)("div",{className:"mt-2",children:g&&(0,nt.jsx)("p",{children:h})})]})]})};var wp=e=>{let{className:t,docs:a,introContent:o}=e;return(0,nt.jsxs)("div",{className:(0,Id.default)("container",t),children:[o&&(0,nt.jsx)(ae,{content:o,enableGutter:!1}),(0,nt.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,nt.jsx)(or,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var bo=require("framer-motion");var _y=require("pagedjs");var Cp=e=>{let{posts:t}=e;return(0,nt.jsx)("div",{className:n("container"),children:(0,nt.jsx)("div",{children:(0,nt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,nt.jsx)("div",{className:"col-span-4",children:(0,nt.jsx)(or,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Ad=x(require("clsx")),Ld=x(require("next/image")),kp=e=>{let{loading:t,priority:a,className:o}=e;return(0,nt.jsx)(Ld.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Ad.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 Pp={plural:"Docs",singular:"Doc"},Sp={posts:{plural:"Posts",singular:"Post"}},Rp=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 d=(r||1)*(s||1);l&&d>l&&(d=l);let{plural:m,singular:c}=o||Sp[a||""]||Pp||{};return(0,nt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l>"u"||l===0)&&"Search produced no results.",typeof l<"u"&&l>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${l} ${l>1?m:c}`]})};var Qi=x(require("react")),Ji=({className:e,...t})=>(0,nt.jsx)("nav",{"aria-label":"pagination",className:n("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ji.displayName="Pagination";var Zi=Qi.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("el",{className:n("flex flex-row items-center gap-1",e),ref:a,...t}));Zi.displayName="PaginationContent";var oa=Qi.forwardRef(({className:e,...t},a)=>(0,nt.jsx)("li",{className:n("",e),ref:a,...t}));oa.displayName="PaginationItem";var Wa=({className:e,isActive:t,size:a="icon",...o})=>(0,nt.jsx)("button",{"aria-current":t?"page":void 0,className:n(ga({size:a,variant:t?"outline":"ghost"}),e),...o});Wa.displayName="PaginationLink";var en=({className:e,...t})=>(0,nt.jsxs)(Wa,{"aria-label":"Go to previous page",className:n("gap-1 pl-2.5",e),size:"default",...t,children:[(0,nt.jsx)(cl.ChevronLeft,{className:"h-4 w-4"}),(0,nt.jsx)("span",{children:"Previous"})]});en.displayName="PaginationPrevious";var tn=({className:e,...t})=>(0,nt.jsxs)(Wa,{"aria-label":"Go to next page",className:n("gap-1 pr-2.5",e),size:"default",...t,children:[(0,nt.jsx)("span",{children:"Next"}),(0,nt.jsx)(cl.ChevronRight,{className:"h-4 w-4"})]});tn.displayName="PaginationNext";var as=({className:e,...t})=>(0,nt.jsxs)("span",{"aria-hidden":!0,className:n("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,nt.jsx)(cl.MoreHorizontal,{className:"h-4 w-4"}),(0,nt.jsx)("span",{className:"sr-only",children:"More pages"})]});as.displayName="PaginationEllipsis";var Tp=e=>{let t=(0,Td.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,i=o-1>1,d=o+1<r;return(0,nt.jsx)("div",{className:n("my-12",a),children:(0,nt.jsx)(Ji,{children:(0,nt.jsxs)(Zi,{children:[(0,nt.jsx)(oa,{children:(0,nt.jsx)(en,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,nt.jsx)(oa,{children:(0,nt.jsx)(as,{})}),l&&(0,nt.jsx)(oa,{children:(0,nt.jsx)(Wa,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,nt.jsx)(oa,{children:(0,nt.jsx)(Wa,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,nt.jsx)(oa,{children:(0,nt.jsx)(Wa,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),d&&(0,nt.jsx)(oa,{children:(0,nt.jsx)(as,{})}),(0,nt.jsx)(oa,{children:(0,nt.jsx)(tn,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var an=x(require("next/image")),Fd=({logoImage:e})=>(0,nt.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,nt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[e&&(0,nt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,nt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,nt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),rr=({title:e})=>(0,nt.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,nt.jsx)("div",{className:"container",children:(0,nt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),sr=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,nt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,nt.jsx)("div",{className:"absolute inset-0",children:(0,nt.jsx)(an.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,nt.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,nt.jsx)("div",{className:"h-24",children:(0,nt.jsx)(an.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,nt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,nt.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,nt.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,nt.jsx)(ae,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Hd=e=>{let[t,a]=(0,vr.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,d=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=u=>{a(u)},c=()=>{a(u=>(u+1)%d.length)},p=()=>{a(u=>(u-1+d.length)%d.length)},f=(0,vr.useCallback)(((u,h)=>{let L;return(...O)=>{clearTimeout(L),L=setTimeout(()=>u(...O),h)}})(u=>{u.deltaY>0?c():p()},300),[]),y=u=>{u.key==="ArrowDown"?c():u.key==="ArrowUp"&&p()};return(0,vr.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",y),()=>{window.removeEventListener("wheel",f),window.removeEventListener("keydown",y)}),[]),(0,nt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,nt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:l&&d.map((u,h)=>(0,nt.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===h?"bg-accent":"bg-gray-600"}`,onClick:()=>m(h),children:(0,nt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,nt.jsx)(bo.AnimatePresence,{children:d.map((u,h)=>(0,nt.jsx)("div",{id:`slide-${h}`,className:"print-section",children:(0,nt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
13
13
  ${h===t?"opacity-100":"opacity-0"}
14
- lt-full h-full bg-cover bg-center`,children:h===0?(0,lt.jsx)(tr,{hero:r,title:e.title,logoImage:s}):(0,lt.jsxs)(lt.Fragment,{children:[u.blockName&&(0,lt.jsx)(er,{title:u.blockName}),(0,lt.jsx)(Sa,{blocks:[u],fill:!0}),(0,lt.jsx)(Fd,{logoImage:s})]})})},h))}),(0,lt.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,lt.jsx)(Dp,{})})]})},Dp=()=>(0,lt.jsx)(fo.AnimatePresence,{children:(0,lt.jsx)(fo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("lt-fit min-h-[50px] min-lt-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,lt.jsx)(fo.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("lt-[12px] h-[12px] rounded-full","bg-accent")})})});var Od=x(require("next/link")),Gd=x(require("next/image"));function jd({blogs:e,width:t=3}){return(0,lt.jsx)("div",{className:"lt-full max-lt-7xl mx-auto px-4 py-8",children:(0,lt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,lt.jsx)(Od.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,lt.jsxs)("div",{className:"relative size-full",children:[(0,lt.jsx)(Gd.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,lt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,lt.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,lt.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o))})})}function _d({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,lt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,lt.jsxs)("div",{className:"mx-auto max-lt-2xl px-6 lg:max-lt-7xl lg:px-8",children:[(0,lt.jsxs)("div",{className:"max-lt-4xl",children:[(0,lt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,lt.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,lt.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,lt.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,lt.jsxs)("div",{className:"lg:pr-8",children:[(0,lt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,lt.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,lt.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,lt.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,p)=>(0,lt.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,lt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,lt.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,lt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,lt.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,lt.jsxs)("el",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[(0,lt.jsxs)("div",{className:"flex flex-col gap-y-2 border-lt border-dotted border-gray-200 pb-4",children:[(0,lt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,lt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,lt.jsxs)("div",{className:"flex flex-col gap-y-2 border-lt border-dotted border-gray-200 pb-4",children:[(0,lt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,lt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"lt"]})]}),(0,lt.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-lt max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,lt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,lt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,lt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,lt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,lt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}function Mp(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 yo=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)},Ip=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,lt.jsx)($d,{page:e,layout:t,logoImage:a}):(0,lt.jsx)(Ud,{page:e,layout:t,logoImage:a}),$d=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Ps(e),r=(0,yr.useRef)(null),s=(0,yr.useRef)(null),l=(0,yr.useRef)(new _y.Previewer),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,yr.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let p=document.createElement("style");return p.textContent=`@page { size: ${yo(d.offsetWidth)}mm ${yo(d.offsetHeight)}mm ; margin: 0mm; width: ${yo(d.offsetWidth)}mm }; .container : { max-width: ${yo(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,yr.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: ${yo(d.offsetWidth)}mm ${yo(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,yr.useEffect)(()=>{l.current=new _y.Previewer},[c,t]);let m=[i,...o];return(0,lt.jsxs)("div",{children:[(0,lt.jsx)("div",{className:"lt-[1123px] print:lt-[1123px]",children:(0,lt.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((d,p)=>(0,lt.jsx)(lt.Fragment,{children:p===0?(0,lt.jsx)("section",{className:"title-page lt-full h-full",children:(0,lt.jsx)(tr,{hero:e.hero,title:e.title})},p):(0,lt.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,lt.jsx)(er,{title:d.blockName}),(0,lt.jsx)(Sa,{blocks:[d],fill:!0})]},p)})),(0,lt.jsx)("section",{className:"normal-page",children:(0,lt.jsxs)("div",{className:`lt-full py-2 px-8 flex justify-between items-center
15
- dark bg-background text-primary`,children:[(0,lt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,lt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,lt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,lt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,lt.jsx)("div",{ref:s,className:"preview-container"})]})},Ud=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Ps(e),o=(0,yr.useRef)(null),r=(0,yr.useRef)(null),s=(0,yr.useRef)(new _y.Previewer),[l,i]=(0,yr.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,yr.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,yr.useEffect)(()=>{s.current=new _y.Previewer,d()},[d,t]),(0,yr.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,lt.jsxs)("div",{className:"pagedjs-container",children:[(0,lt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,g)=>(0,lt.jsx)(lt.Fragment,{children:g===0?(0,lt.jsx)("section",{className:"pagedjs-section title-page lt-full h-full",children:(0,lt.jsx)(tr,{hero:e.hero,title:e.title})},g):(0,lt.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${Mp("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,lt.jsx)(er,{title:p.blockName}),(0,lt.jsx)(Sa,{blocks:[p],fill:!0})]},g)}))}),(0,lt.jsx)("div",{ref:o,className:"preview-container"})]})};var an=x(require("clsx"));function Ap({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:c,...m}){let p=c?g=>(0,lt.jsx)(c,{...g}):l?({href:g,children:f,...y})=>(0,lt.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start lt-full text-sm text-left px-4 py-2",...y,children:f}):g=>(0,lt.jsx)("a",{...g});return(0,lt.jsxs)(Ia,{...m,variant:"inset",children:[(0,lt.jsx)(Aa,{children:(0,lt.jsx)(qe,{children:(0,lt.jsx)(Fe,{children:i?(0,lt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,lt.jsx)(ue,{className:"bg-gray-200 my-2 lt-full h-7"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 my-2 h-5"})]}):(0,lt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,lt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,lt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,lt.jsxs)(pa,{children:[(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"}),(0,lt.jsx)(ue,{className:"bg-gray-200 lt-3/4 h-5"})]}),(0,lt.jsxs)(pa,{children:[e&&!i&&e.map((g,f)=>(0,lt.jsx)(Lp,{subNav:g,pathName:r,Link:p},f)),(0,lt.jsx)(dt,{className:"mt-auto",children:(0,lt.jsx)(xt,{children:(0,lt.jsx)(qe,{children:t&&!i&&t.map(g=>(0,lt.jsx)(Fe,{children:(0,lt.jsx)(ct,{asChild:!0,size:"sm",children:(0,lt.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,lt.jsx)(g.icon,{}),(0,lt.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,lt.jsx)(La,{})]})}function Lp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,lt.jsx)(Gt,{defaultOpen:!0,className:"group/collapsible",children:(0,lt.jsx)(dt,{className:"py-0",children:(0,lt.jsx)(qe,{children:(0,lt.jsx)(Gt,{asChild:!0,defaultOpen:o.isActive,children:(0,lt.jsxs)(Fe,{children:[(0,lt.jsx)(ct,{asChild:!0,tooltip:o.label,className:(0,an.default)(r&&"font-bold text-accent"),children:(0,lt.jsxs)(a,{href:o.url,children:[o.icon&&(0,lt.jsx)(o.icon,{}),(0,lt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(da,{asChild:!0,children:(0,lt.jsxs)(zo,{className:"data-[state=open]:rotate-90",children:[(0,lt.jsx)(cl.ChevronRight,{}),(0,lt.jsx)("span",{className:"lt-only",children:"Toggle"})]})}),(0,lt.jsx)(ca,{children:(0,lt.jsx)(ua,{children:o.links?.map(s=>(0,lt.jsx)(ga,{children:(0,lt.jsx)(fa,{asChild:!0,className:(0,an.default)(s.url===t&&"font-bold text-accent"),children:(0,lt.jsx)(a,{href:s.url,children:(0,lt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Vd=x(require("clsx"));var Bp=()=>(0,lt.jsx)(He,{iconName:"github",size:"10x"});function zp({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 y=d?u=>(0,lt.jsx)(d,{...u}):m?({item:u,children:h,...A})=>(0,lt.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start lt-full text-sm text-left px-4 py-2",...A,children:h}):u=>(0,lt.jsx)("a",{href:u.href,...u});return(0,lt.jsxs)(Ia,{side:"right",variant:"inset",...p,children:[(0,lt.jsxs)(Aa,{className:"border-lt border-sidebar-border",children:[(0,lt.jsxs)(qe,{className:"flex-row space-x-1",children:[(0,lt.jsx)(Fe,{children:(0,lt.jsxs)(ct,{onClick:s,children:[(0,lt.jsx)(cl.FilePlus,{})," ",(0,lt.jsx)("span",{children:"Add Document"})]})}),c&&(0,lt.jsx)(Fe,{children:(0,lt.jsx)(ct,{onClick:c,tooltip:"Open in GitHub",children:(0,lt.jsx)(Bp,{})})})]}),(0,lt.jsxs)(qe,{className:"flex-row space-x-1",children:[(0,lt.jsx)(Fe,{className:"lt-5/12",children:(0,lt.jsxs)(ct,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Vd.default)(r&&"text-accent"),children:[(0,lt.jsx)(cl.Edit,{})," ",(0,lt.jsx)("span",{children:"Edit"})]})}),(0,lt.jsx)(Fe,{className:"lt-5/12",children:(0,lt.jsxs)(ct,{onClick:i,children:[(0,lt.jsx)(cl.Printer,{})," ",(0,lt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)(Gt,{defaultOpen:!0,className:"group/collapsible",children:(0,lt.jsxs)(dt,{children:[(0,lt.jsx)(_t,{asChild:!0,children:(0,lt.jsxs)(da,{children:["Editor Controls",(0,lt.jsx)(cl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,lt.jsx)(xt,{children:(0,lt.jsx)(ca,{children:a})})]})}),(0,lt.jsx)(Bo,{className:"mx-0"})]}),(0,lt.jsxs)(pa,{className:"overflow-auto",children:[o&&(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsxs)(dt,{children:[(0,lt.jsx)(_t,{children:"Related Content"}),(0,lt.jsx)(xt,{children:(0,lt.jsx)(qe,{children:Array.from({length:3}).map((u,h)=>(0,lt.jsx)(Fe,{children:(0,lt.jsx)(ue,{className:"bg-gray-200 lt-full h-10"})},h))})})]}),(0,lt.jsxs)(dt,{children:[(0,lt.jsx)(_t,{children:"Table of Contents"}),(0,lt.jsx)(xt,{children:(0,lt.jsx)(qe,{children:Array.from({length:3}).map((u,h)=>(0,lt.jsx)(Fe,{children:(0,lt.jsx)(ue,{className:"bg-gray-200 lt-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,lt.jsx)(Gt,{defaultOpen:!0,className:"group/collapsible",children:(0,lt.jsxs)(dt,{children:[(0,lt.jsx)(_t,{asChild:!0,children:(0,lt.jsxs)(da,{children:["Related Content",(0,lt.jsx)(cl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,lt.jsx)(xt,{children:(0,lt.jsx)(ca,{children:(0,lt.jsx)(qe,{children:e&&Object.keys(e).map(u=>(0,lt.jsxs)(Fe,{children:[(0,lt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,lt.jsx)(ua,{children:e[u].map(h=>(0,lt.jsx)(ga,{children:(0,lt.jsx)(fa,{asChild:!0,isActive:!1,size:"sm",children:(0,lt.jsxs)(y,{href:h.url,item:h,className:"flex justify-between items-center lt-full text-xs",children:[(0,lt.jsx)("span",{children:h.label}),h.type==="note"&&(0,lt.jsx)(cl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,lt.jsx)(He,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},u))})})})]})}),t&&!o&&(0,lt.jsx)(Gt,{defaultOpen:!0,className:"group/collapsible",children:(0,lt.jsxs)(dt,{children:[(0,lt.jsx)(_t,{asChild:!0,children:(0,lt.jsxs)(da,{children:["Table of Contents",(0,lt.jsx)(cl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,lt.jsx)(xt,{children:(0,lt.jsx)(ca,{children:(0,lt.jsx)(qe,{children:t.map(u=>(0,lt.jsxs)(Fe,{children:[(0,lt.jsx)(ct,{asChild:!0,children:(0,lt.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,lt.jsx)(ua,{children:u.items.map(h=>(0,lt.jsx)(ga,{children:(0,lt.jsx)(fa,{asChild:!0,isActive:h.isActive,size:"sm",children:(0,lt.jsx)("a",{href:`#${h.url}`,className:"flex justify-between items-center lt-full text-xs",children:(0,lt.jsx)("span",{children:h.title})})})},h.title))}):null]},u.title))})})})]})})]}),(0,lt.jsx)(La,{})]})}var Yd=x(require("next/image"));function Ep({title:e,members:t}){return(0,lt.jsx)(be,{className:"mb-6",children:(0,lt.jsxs)("div",{className:"p-6",children:[(0,lt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,lt.jsx)(cl.Users,{className:"lt-6 h-6 text-accent mr-2"}),(0,lt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,lt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,lt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,lt.jsx)("div",{className:"relative lt-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,lt.jsx)(Yd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,lt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var qd=x(require("next/link"));var Fp=({links:e,title:t="Related Content"})=>(0,lt.jsxs)(be,{children:[(0,lt.jsx)(Le,{children:(0,lt.jsx)(Be,{className:"text-accent",children:t})}),(0,lt.jsx)(Re,{children:(0,lt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,lt.jsxs)(qd.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,lt.jsx)(cl.ExternalLink,{className:"ml-1 h-3 lt-3"})]},o))})})]});var on=n("grid h-[45px] lt-[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 Hp({pages:e}){let t=(0,Td.useSearchParams)(),a=(0,Td.usePathname)(),{replace:o}=(0,Td.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,yr.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?i(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&i(g=>({start:g.start+1,end:g.end+1}))};function m(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,lt.jsx)("div",{className:"mt-12",children:(0,lt.jsxs)("el",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,lt.jsx)("li",{children:(0,lt.jsx)("button",{className:n(on,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,lt.jsx)(Xl.FaArrowLeft,{})})}),d.map((p,g)=>(0,lt.jsx)("li",{children:(0,lt.jsx)("a",{className:n(on,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},g)),l.end<r&&(0,lt.jsx)("li",{children:(0,lt.jsx)("button",{className:n(on,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,lt.jsx)(Xl.FaArrowRight,{})})})]})})}var Cv=n("transition-colors duration-400 hover:text-primary ease-in-out");function Op({title:e,links:t}){let a=(0,Td.useSearchParams)(),o=(0,Td.usePathname)(),{replace:r}=(0,Td.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,lt.jsxs)(be,{children:[(0,lt.jsx)(Le,{children:(0,lt.jsx)(Be,{className:"text-accent",children:e&&e})}),(0,lt.jsx)(Re,{children:t&&t.length>0&&(0,lt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,lt.jsx)("el",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,lt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,lt.jsx)(cl.ExternalLink,{className:"ml-1 h-3 lt-3"})]},i))})})})]})}function Gp({types:e}){let[t,a]=(0,yr.useState)(e&&e[0].href),o=(0,Td.useSearchParams)(),r=(0,Td.usePathname)(),{replace:s}=(0,Td.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,lt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,lt.jsx)(D,{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 ec=x(require("next/image"));var sn=({links:e,media:t,children:a,richText:o})=>(0,lt.jsx)("div",{children:(0,lt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,lt.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,lt.jsx)(oe,{className:"max-lt-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,lt.jsx)("el",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,lt.jsx)("li",{children:(0,lt.jsx)(kt,{...r})},s))})]}),(0,lt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,lt.jsx)(Qt,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,lt.jsx)("div",{children:(0,lt.jsx)(ec.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,lt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-lt from-white dark:from-black"})]}),(0,lt.jsx)(jp,{})]})}),jp=()=>(0,lt.jsx)("div",{className:"lt-full h-[1240px] z-10",children:(0,lt.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,lt.jsx)("defs",{children:(0,lt.jsxs)("mask",{id:"mask",children:[(0,lt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,lt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,lt.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var nn=x(require("next/image"));var _p=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,lt.jsx)(nn.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,lt.jsx)("div",{children:(0,lt.jsx)(nn.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},ln=({links:e,media:t,children:a,richText:o})=>(0,lt.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,lt.jsx)(_p,{media:t}),(0,lt.jsx)("div",{className:"mx-0 min-lt-full relative z-9",children:(0,lt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,lt.jsx)(oe,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var dn=({children:e,richText:t})=>(0,lt.jsx)("div",{className:"min-lt-full py-10 bg-muted mt-24",children:(0,lt.jsx)("div",{className:"container",children:e||t&&(0,lt.jsx)(oe,{content:t,enableGutter:!1})})});var ac=x(require("react")),oc=x(require("next/image"));var tc=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 $p=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,lt.jsxs)("div",{className:"relative grid pt-24",children:[(0,lt.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,lt.jsxs)("div",{className:"container mx-auto",children:[(0,lt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,lt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,lt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,lt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,lt.jsx)("p",{children:o.map((l,i)=>(0,lt.jsxs)(ac.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,lt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,lt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,lt.jsx)("time",{dateTime:r,children:tc(r)})]}),t&&t.length>0&&(0,lt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,lt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,lt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,lt.jsx)(Ze,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||i))})]})]})]})}),(0,lt.jsxs)("div",{className:"absolute inset-0 lt-full h-full",children:[(0,lt.jsx)(oc.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,lt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 lt-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var rs=require("@heroicons/react/20/solid");var mn=x(require("next/image"));function cn({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"no-padding",o);return(0,lt.jsx)("div",{className:r,children:e})}var sc=require("next-themes");function Up({children:e,...t}){return(0,lt.jsx)(sc.ThemeProvider,{...t,children:e})}var or=({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,lt.jsx)("div",{className:"lt-full h-[1240px] z-20",children:(0,lt.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,lt.jsx)("defs",{children:(0,lt.jsxs)("mask",{id:"mask",children:[(0,lt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,lt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,lt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,lt.jsxs)("div",{className:"lt-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,lt.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,lt.jsx)("defs",{children:(0,lt.jsxs)("mask",{id:"mask",children:[(0,lt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,lt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 lt-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,lt.jsx)("div",{className:"lt-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,lt.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,lt.jsx)("defs",{children:(0,lt.jsxs)("mask",{id:"mask",children:[(0,lt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,lt.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,lt.jsx)("div",{className:"lt-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,lt.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,"lt-full block overflow-hidden"),children:(0,lt.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,lt.jsx)("div",{className:"lt-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,lt.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,"lt-full block overflow-hidden"),transform:a[3],children:(0,lt.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,lt.jsx)("div",{className:"lt-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,lt.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,"lt-full block overflow-hidden"),children:(0,lt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Wp=({className:e})=>(0,lt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute lt-full h-full"),children:[(0,lt.jsx)("defs",{children:(0,lt.jsxs)("mask",{id:"mask",children:[(0,lt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,lt.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,lt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var pn=({title:e,image:t})=>(0,lt.jsx)("div",{children:(0,lt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,lt.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,lt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,lt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,lt.jsx)(mn.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,lt.jsx)("div",{children:(0,lt.jsx)(mn.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,lt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-lt from-white dark:from-black"})]}),(0,lt.jsx)(or,{className:"text-black z-10",position:"header"})]})});var Vp={highImpact:sn,lowImpact:dn,mediumImpact:ln,sectionHero:pn},Xp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Vp[t];return a?(0,lt.jsx)(a,{...e}):null};function Yp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,lt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,lt.jsxs)("_n",{role:"list",className:"flex items-center space-x-4",children:[(0,lt.jsx)("li",{children:(0,lt.jsx)("div",{children:(0,lt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,lt.jsx)(rs.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,lt.jsx)("span",{className:"lt-only",children:"Home"})]})})}),t.map((a,o)=>(0,lt.jsx)("li",{children:(0,lt.jsxs)("div",{className:"flex items-center",children:[(0,lt.jsx)(rs.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,lt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,lt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,lt.jsx)(lt.Fragment,{})}var it=require("@headlessui/react"),is=require("@heroicons/react/24/outline");var qp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,lt.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm text-foreground group",children:(0,lt.jsxs)("span",{className:"relative",children:[e,(0,lt.jsx)("span",{className:"absolute -bottom-1 left-1/2 lt-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,lt.jsxs)(it.Popover,{children:[(0,lt.jsxs)(it.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 text-foreground outline-none group",children:[(0,lt.jsxs)("span",{className:"relative",children:[e,(0,lt.jsx)("span",{className:"absolute bottom-0 left-1/2 lt-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,lt.jsx)(rs.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 lt-5 flex-none text-accent"})]}),(0,lt.jsxs)(it.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,lt.jsx)("div",{className:"mx-auto grid max-lt-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(r=>(0,lt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,lt.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,lt.jsx)(nc,{icon:r.icon,size:"4x"})}),(0,lt.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,lt.jsx)("span",{className:"absolute inset-0"})]}),(0,lt.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,lt.jsx)("div",{className:"bg-gray-50",children:(0,lt.jsx)("div",{className:"mx-auto max-lt-7xl px-6 lg:px-8",children:(0,lt.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,lt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,lt.jsx)(nc,{icon:r.icon,className:"h-5 lt-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),nc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,lt.jsx)(He,{...e,size:a});if("src"in e)return(0,lt.jsx)("div",{className:n(t,"h-full max-lt-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,lt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},wo=qp;var ss=["light","dark","green"];function Kp({title:e,logo:t,menuItems:a}){let[o,r]=(0,yr.useState)(!1),[s,l]=(0,yr.useState)(!1),[i,c]=(0,yr.useState)("light"),m=t?.split(".")[0],d=t?.split(".")[1],[p,g]=(0,yr.useState)(`${m}.${d}`),f=u=>{ss.includes(u)?g(u==="light"?`${m}.${d}`:`${m}-${u}.${d}`):g(`${m}.${d}`)};(0,yr.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),f(u)},[]);let y=()=>{let u=ss[(ss.indexOf(i)+1)%ss.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),f(u)};return(0,$.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,$.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,$.jsx)("div",{className:"flex lg:flex-1",children:(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"lt-only",children:e}),(0,$.jsx)("img",{alt:e,src:p,className:"h-9 lt-auto"})]})}),(0,$.jsx)("div",{className:"flex lg:hidden",children:(0,$.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,$.jsx)("span",{className:"lt-only",children:"Open main menu"}),(0,$.jsx)(is.Bars3Icon,{"aria-hidden":"true",className:"h-6 lt-6"})]})}),(0,$.jsx)(it.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(u=>(0,$.jsx)(wo,{...u},u.name))}),(0,$.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,$.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,$.jsx)(rs.SunIcon,{className:"h-6 lt-6"}):i==="green"?(0,$.jsx)(rs.MoonIcon,{className:"h-6 lt-6"}):(0,$.jsx)(rs.SunIcon,{className:"h-6 lt-6"})})})]}),(0,$.jsxs)(it.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,$.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,$.jsxs)(it.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 lt-full overflow-y-auto bg-white px-6 py-6 sm:max-lt-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"lt-only",children:"Your Company"}),(0,$.jsx)("img",{alt:e,src:t,className:"h-8 lt-auto"})]}),(0,$.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"lt-only",children:"Close menu"}),(0,$.jsx)(is.XMarkIcon,{"aria-hidden":"true",className:"h-6 lt-6"})]})]}),(0,$.jsx)("div",{className:"mt-6 flow-root",children:(0,$.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,$.jsx)("div",{className:"space-y-2 py-6",children:a.map(u=>(0,$.jsx)(Qp,{...u},u.name))})})})]})]})]})}function Qp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,$.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,$.jsxs)(it.Disclosure,{Xl:"div",className:"-mx-3",children:[(0,$.jsx)(it.DisclosureButton,{className:"group flex lt-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,$.jsx)(it.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,$.jsx)(it.DisclosureButton,{Xl:"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 Jp({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,lt.jsx)("div",{children:(0,lt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,lt.jsxs)("video",{className:"fixed inset-0 object-cover lt-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,lt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,lt.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,lt.jsx)(cn,{children:(0,lt.jsxs)("div",{className:"flex flex-col items-start md:lt-2/3 mb-10 z-0 md:mb-0",children:[(0,lt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,lt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-lt-lg",children:s&&s})]})})}),(0,lt.jsx)(or,{className:"text-black z-10",position:"header"})]})})}var un=x(require("next/image"));function Ra({logoLight:e,logoDark:t,mobile:a=!1}){return(0,lt.jsxs)(pt,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,lt.jsx)(un.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,lt.jsx)(un.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 gn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,yr.useState)(!1),[c,m]=(0,yr.useState)(""),d=["light","dark"],{theme:p,setTheme:g}=(0,sc.useTheme)();(0,yr.useEffect)(()=>{m(p||"dark")},[p]);let f=()=>{let y=d[(d.indexOf(c)+1)%d.length];m(y),g(y)};return(0,yr.useEffect)(()=>{let y=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",y,{passive:!0}),()=>window.removeEventListener("scroll",y)},[]),(0,lt.jsx)(lt.Fragment,{children:(0,lt.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,lt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,lt.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,lt.jsx)(Ra,{logoDark:a,logoLight:t}),(0,lt.jsx)(it.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(y=>(0,lt.jsx)(wo,{...y},y.name))}),r&&(0,lt.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,lt.jsxs)("div",{className:"relative",children:[(0,lt.jsx)(cl.Sun,{className:"absolute h-6 lt-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,lt.jsx)(cl.Moon,{className:"absoulte h-6 lt-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var fn=["light","dark"];function bn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,yr.useState)(!1),{theme:l,setTheme:i}=(0,sc.useTheme)(),[c,m]=(0,yr.useState)(!1),[d,p]=(0,yr.useState)("light");(0,yr.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,yr.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=fn[(fn.indexOf(d)+1)%fn.length];p(f),i(f)};return(0,lt.jsx)(lt.Fragment,{children:(0,lt.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,lt.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,lt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-lt dark:border-accent",children:[(0,lt.jsx)(Ra,{logoDark:t,logoLight:e,mobile:!0}),(0,lt.jsx)("div",{className:"flex items-center space-x-4",children:(0,lt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,lt.jsx)("span",{className:"lt-only",children:"Open main menu"}),(0,lt.jsx)(is.Bars3Icon,{"aria-hidden":"true",className:"h-4 lt-4"})]})})]})}),(0,lt.jsxs)(it.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,lt.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,lt.jsxs)(it.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 lt-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-lt-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,lt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,lt.jsx)(Ra,{logoDark:t,logoLight:e,mobile:!0}),(0,lt.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,lt.jsx)("span",{className:"lt-only",children:"Close menu"}),(0,lt.jsx)(is.XMarkIcon,{"aria-hidden":"true",className:"h-6 lt-6"})]})]}),(0,lt.jsx)("div",{className:"mt-6 flow-root",children:(0,lt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,lt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,lt.jsx)(Zp,{...f},f.name))})})})]})]})]})})}function Zp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,lt.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,lt.jsxs)(it.Disclosure,{Xl:"div",className:"-mx-3",children:[(0,lt.jsx)(it.DisclosureButton,{className:"group flex lt-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,lt.jsx)(it.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,lt.jsx)(it.DisclosureButton,{Xl:"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 Ph=n("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),pc=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),yn=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),vn=n("flex items-center text-white gap-3"),ds=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function eu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,c=void 0;return(0,lt.jsxs)("footer",{className:n("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,lt.jsx)("div",{className:"py-16 md:py-20",children:(0,lt.jsx)("div",{className:"container",children:(0,lt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,lt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,lt.jsx)(Ra,{logoDark:o,logoLight:a}),(0,lt.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,lt.jsx)("nav",{"aria-label":"social links",children:(0,lt.jsx)("el",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,d)=>(0,lt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,lt.jsx)(pt,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,lt.jsx)("span",{children:m.icon})})},d))})})]}),(0,lt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,lt.jsx)("h3",{className:pc,children:s.title}),s.links&&s.links.length>0&&(0,lt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,lt.jsx)("el",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,lt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,lt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,lt.jsx)(Xl.FaChevronRight,{})}),(0,lt.jsx)(pt,{href:m.href,openNewTab:m.openNewTab,className:ds,children:m.label})]},m.label))})})]}),(0,lt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,lt.jsx)("h3",{className:pc,children:l.title}),(0,lt.jsxs)("el",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,lt.jsxs)("li",{className:vn,children:[(0,lt.jsx)("span",{className:yn,children:(0,lt.jsx)(Xl.FaPaperPlane,{})}),(0,lt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,lt.jsxs)("li",{className:vn,children:[(0,lt.jsx)("span",{className:yn,children:(0,lt.jsx)(Xl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,lt.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,d)=>(0,lt.jsx)("a",{href:`mailto:${m}`,className:ds,children:m},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,lt.jsxs)("li",{className:vn,children:[(0,lt.jsx)("span",{className:yn,children:(0,lt.jsx)(Xl.FaPhone,{})}),(0,lt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,d)=>(0,lt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:ds,children:m},d))})]})]})]})]})})}),(0,lt.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,lt.jsx)("div",{className:"container",children:(0,lt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,lt.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,lt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,lt.jsx)("el",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(m=>(0,lt.jsx)("li",{children:(0,lt.jsx)(pt,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:ds,children:m.label})},m.label))})})]})})})]})}function tu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,lt.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",r),children:[(0,lt.jsx)(gn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,lt.jsx)(bn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function au({menuItems:e,wide:t=!1,dark:a=!0}){return(0,lt.jsx)(lt.Fragment,{children:(0,lt.jsx)("menu",{className:n("lt-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-lt border-accent"),children:(0,lt.jsx)("div",{className:"container backdrop-blur-sm",children:(0,lt.jsx)("div",{className:n("flex items-center justify-between py-0",!t&&"container"),children:(0,lt.jsx)(it.PopoverGroup,{className:"flex gap-x-12",children:e&&e.map(o=>(0,lt.jsx)(wo,{...o},o.name))})})})})})}function hn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,yr.useState)([]),s=(0,Td.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(p=>p.includes(d)?p.filter(g=>g!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(Ai.toast.success(d.message),s.refresh()):Ai.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(Ai.toast.success(d.message),s.refresh()):Ai.toast.error(`Error: ${d.message}`),r([])};return(0,lt.jsxs)("div",{className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,lt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,lt.jsxs)("div",{className:"space-x-2",children:[(0,lt.jsx)(D,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,lt.jsx)(D,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,lt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,lt.jsxs)("el",{className:"divide-y divide-gray-200",children:[(0,lt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,lt.jsxs)("div",{className:"flex items-center",children:[(0,lt.jsx)(Ct,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,lt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,lt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,lt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,lt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,lt.jsxs)("div",{className:"flex items-center",children:[(0,lt.jsx)(Ct,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,lt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,lt.jsxs)(Ke,{className:"h-10 lt-10",children:[(0,lt.jsx)(Qe,{src:d.userImage,alt:d.userName}),(0,lt.jsx)(Je,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,lt.jsx)("div",{className:"ml-3",children:(0,lt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,lt.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,lt.jsx)(Ze,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,lt.jsx)(Ai.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var xn=require("date-fns");var bc=[{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 nr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=bc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},yc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!nr(o))return .5;for(;o<=r;)nr(o)||s++,o.setDate(o.getDate()+1);return s},vc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var ou=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,lt.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,lt.jsx)(D,{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 wn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,yr.useState)(new Date),[r,s]=(0,yr.useState)(new Date),[l,i]=(0,yr.useState)("Full Day"),[c,m]=(0,yr.useState)(!1),[d,p]=(0,yr.useState)(1),g=(0,Td.useRouter)();(0,yr.useEffect)(()=>{let u=vc(a,r);m(u),u&&i("Full Day")},[a,r]),(0,yr.useEffect)(()=>{if(!a||!r){p(0);return}let u=yc(a,r,l!=="Full Day");p(u)},[a,r,l]);let f=u=>{i(u)};return(0,lt.jsxs)("div",{className:"max-lt-2xl",children:[(0,lt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,lt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,lt.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){Ai.toast.error("Please select both start and end dates");return}if(d>e){Ai.toast.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",l),h.append("duration",d.toString());let A=await(t||ru)(h);A.success?(Ai.toast.success(A.message),o(void 0),s(void 0),i("Full Day"),g.refresh()):Ai.toast.error(`Error: ${A.message}`)},className:"space-y-4",children:[(0,lt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,lt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,lt.jsx)(M,{htmlFor:"startDate",children:"Start Date"}),(0,lt.jsxs)($o,{children:[(0,lt.jsx)(Uo,{asChild:!0,children:(0,lt.jsxs)(D,{variant:"outline",className:n("lt-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,lt.jsx)(cl.CalendarIcon,{className:"mr-2 h-4 lt-4"}),a?(0,xn.format)(a,"PPP"):(0,lt.jsx)("span",{children:"Pick a date"})]})}),(0,lt.jsx)(no,{className:"lt-auto p-0",align:"start",children:(0,lt.jsx)(Xo,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,lt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,lt.jsx)(M,{htmlFor:"endDate",children:"End Date"}),(0,lt.jsxs)($o,{children:[(0,lt.jsx)(Uo,{asChild:!0,children:(0,lt.jsxs)(D,{variant:"outline",className:n("lt-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,lt.jsx)(cl.CalendarIcon,{className:"mr-2 h-4 lt-4"}),r?(0,xn.format)(r,"PPP"):(0,lt.jsx)("span",{children:"Pick a date"})]})}),(0,lt.jsx)(no,{className:"lt-auto p-0",align:"start",children:(0,lt.jsx)(Xo,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,lt.jsxs)("div",{className:"space-y-2",children:[(0,lt.jsx)(M,{children:"Leave Type"}),(0,lt.jsx)(ou,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,c,c]})]}),(0,lt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,lt.jsx)(D,{disabled:d<=0,type:"submit",className:"lt-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,lt.jsx)(Ai.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var ru=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function xc(...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,lt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,lt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,lt.jsxs)("div",{className:"sm:flex-auto",children:[(0,lt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,lt.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,lt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,lt.jsxs)(D,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,lt.jsx)("span",{className:"lt-only",children:"Previous month"}),(0,lt.jsx)(cl.ChevronLeft,{className:"h-5 lt-5","aria-hidden":"true"})]}),(0,lt.jsx)(D,{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,lt.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,lt.jsx)("span",{className:"lt-only",children:"Next month"}),(0,lt.jsx)(cl.ChevronRight,{className:"h-5 lt-5","aria-hidden":"true"})]})]})]}),(0,lt.jsx)("div",{className:"mt-8 flow-root",children:(0,lt.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,lt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,lt.jsxs)("table",{className:"min-lt-full border-separate border-spacing-0",children:[(0,lt.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,lt.jsxs)("tr",{children:[(0,lt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-lt 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,lt.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-lt 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 ${nr(p)?"bg-gray-200":""}`,children:[(0,lt.jsx)("div",{children:c(p)}),(0,lt.jsx)("div",{children:d+1})]},d)})]})}),(0,lt.jsx)("tbody",{children:o.map((m,d)=>(0,lt.jsxs)("tr",{children:[(0,lt.jsx)("td",{className:xc(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,lt.jsxs)("div",{className:"flex items-center",children:[(0,lt.jsxs)(Ke,{className:"h-11 lt-11",children:[(0,lt.jsx)(Qe,{src:m.image,alt:m.name}),(0,lt.jsx)(Je,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,lt.jsx)("div",{className:"ml-4",children:(0,lt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),y=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=f&&new Date(u.endDate)>=f);return(0,lt.jsx)("td",{className:xc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",nr(f)?"bg-gray-200":"bg-white"),children:(0,lt.jsx)("div",{className:`h-6 lt-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${m.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,lt.jsx)("div",{className:`h-3 lt-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${g}`)})]},m.id))})]})})})})]})}function kn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,yr.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,lt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,lt.jsxs)("header",{className:"flex items-center justify-between border-lt border-gray-200 px-6 py-4 lg:flex-none",children:[(0,lt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,lt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,lt.jsx)("div",{className:"flex items-center",children:(0,lt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,lt.jsxs)(D,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,lt.jsx)("span",{className:"lt-only",children:"Previous month"}),(0,lt.jsx)(cl.ChevronLeft,{className:"h-5 lt-5","aria-hidden":"true"})]}),(0,lt.jsx)(D,{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,lt.jsxs)(D,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,lt.jsx)("span",{className:"lt-only",children:"Next month"}),(0,lt.jsx)(cl.ChevronRight,{className:"h-5 lt-5","aria-hidden":"true"})]})]})})]}),(0,lt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,lt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-lt border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,lt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"on"})]}),(0,lt.jsxs)("div",{className:"bg-white py-2",children:["lt",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"ue"})]}),(0,lt.jsxs)("div",{className:"bg-white py-2",children:["lt",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"ed"})]}),(0,lt.jsxs)("div",{className:"bg-white py-2",children:["lt",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"hu"})]}),(0,lt.jsxs)("div",{className:"bg-white py-2",children:["lt",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"ri"})]}),(0,lt.jsxs)("div",{className:"bg-white py-2",children:["lt",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"lt"})]}),(0,lt.jsxs)("div",{className:"bg-white py-2",children:["lt",(0,lt.jsx)("span",{className:"lt-only sm:not-lt-only",children:"un"})]})]}),(0,lt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,lt.jsx)("div",{className:"hidden lt-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,lt.jsxs)("div",{className:n(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,lt.jsx)("time",{dateTime:d.date.toISOString(),className:n("flex h-6 lt-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,lt.jsx)("_n",{className:"mt-2 space-y-1 overflow-visible",children:d.holidays.map(p=>(0,lt.jsx)("li",{className:"overflow-visible",children:(0,lt.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,lt.jsx)("div",{className:"isolate grid lt-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,lt.jsxs)("button",{type:"button",className:n(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,lt.jsx)("time",{dateTime:d.date.toISOString(),className:n("ml-auto",d.date===o&&d.isToday&&"flex h-6 lt-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 lt-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,lt.jsxs)("span",{className:"lt-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,lt.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,lt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 lt-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var Da=require("lucide-react");function wc(...e){return e.filter(Boolean).join(" ")}function su({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[c,m]=(0,yr.useState)("Calendar View"),d=(0,Td.useRouter)(),p=!1,g=(0,xn.parseISO)(a),f=async u=>{let h=(0,xn.format)(u,"dd-MM-yyyy"),A=new URL(window.location.href);return A.searchParams.set("date",h),d.push(A.toString()),{success:!0}};if(p)return(0,lt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,lt.jsx)("div",{className:"animate-spin rounded-full h-32 lt-32 border-t-2 border-lt-2 border-gray-900"})});let y=[{name:"Grid View",icon:Da.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Da.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Da.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Da.CheckSquare,current:c==="Approve Leave"}];return(0,lt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,lt.jsxs)("div",{className:"mb-8",children:[(0,lt.jsxs)("div",{className:"sm:hidden",children:[(0,lt.jsx)("select",{value:c,onChange:u=>m(u.target.value),className:"block lt-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:y.map(u=>(0,lt.jsx)("option",{children:u.name},u.name))}),(0,lt.jsx)(cl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 lt-5 text-gray-400","aria-hidden":"true"})]}),(0,lt.jsx)("div",{className:"hidden sm:block",children:(0,lt.jsx)("div",{className:"border-lt border-gray-200",children:(0,lt.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(u=>(0,lt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:wc(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-lt-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,lt.jsx)(u.icon,{className:wc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 lt-5"),"aria-hidden":"true"}),(0,lt.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,lt.jsx)(Cn,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,lt.jsx)(kn,{currentDate:g,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,lt.jsx)(wn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,lt.jsx)(hn,{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 lr({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,c]=(0,yr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,yr.useState)(""),[p,g]=(0,yr.useState)(!1),[f,y]=(0,yr.useState)(null);(0,yr.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let u=async()=>{try{let N=await s(i);N.success?(g(!1),y(null)):console.error("Failed to save deal:",N.errors)}catch(N){console.error("Failed to save deal:",N)}},h=(N,Z)=>{c(ia=>({...ia,[N]:Z}))},A=N=>{let Z=(i.categories||[]).includes(N)?(i.categories||[]).filter(ia=>ia!==N):[...i.categories||[],N];h("categories",Z)},G=async()=>{if(m.trim()){let N={text:m,timestamp:new Date().toISOString()};try{let Z=await l(N);if(!Z.success){console.error("Failed to add comment:",Z.errors);return}}catch(Z){console.error("Failed to add comment:",Z)}c(Z=>({...Z,comments:[...Z.comments||[],N]})),d("")}},C=N=>{switch(N){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"}},B=N=>t?.find(Z=>Z.id===Number(N));return(0,lt.jsx)(Lt,{open:!0,children:(0,lt.jsxs)(wt,{className:"max-lt-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,lt.jsxs)(Ut,{className:"flex flex-row items-center justify-between",children:[(0,lt.jsx)(Wt,{className:"text-2xl font-bold",children:a?.name||"no customer"}),(0,lt.jsxs)("div",{className:"flex space-x-2",children:[(0,lt.jsx)(D,{variant:"outline",onClick:r,children:"Close"}),(0,lt.jsxs)(D,{onClick:u,disabled:!p,children:[(0,lt.jsx)(cl.SaveIcon,{className:"lt-4 h-4 mr-2"}),"Save"]})]})]}),(0,lt.jsxs)(At,{className:"flex-grow pr-4",children:[(0,lt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,lt.jsx)("div",{className:"grid gap-2 m-1",children:f==="value"?(0,lt.jsx)(Ye,{type:"number",value:i.value,onChange:N=>h("value",Number(N.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,lt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,lt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"Assignee"}),f==="assignee"?(0,lt.jsxs)(xa,{value:i?.assignee?.id?.toString()||"",onValueChange:N=>h("assignee",B(N)),children:[(0,lt.jsx)(Xt,{children:(0,lt.jsx)(Na,{placeholder:"Select assignee"})}),(0,lt.jsx)(Yt,{children:t&&t.map(N=>(0,lt.jsx)(qt,{value:N?.id?.toString()||"",children:N.name},N.id))})]}):(0,lt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("assignee"),children:[(0,lt.jsx)(cl.UserIcon,{className:"lt-4 h-4 text-gray-400"}),(0,lt.jsx)("span",{children:i?.assignee?.name})]})]}),(0,lt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"Closure Date"}),f==="closureDate"?(0,lt.jsx)(Ye,{type:"date",value:i.closureDate?.split("lt")[0]??"",onChange:N=>h("closureDate",N.target.value),onBlur:()=>y(null),className:"mr-2",autoFocus:!0}):(0,lt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("closureDate"),children:[(0,lt.jsx)(cl.CalendarIcon,{className:"lt-4 h-4 text-gray-400"}),(0,lt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,lt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,lt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"Description"}),f==="description"?(0,lt.jsx)(wa,{value:i.description||"",onChange:N=>h("description",N.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,lt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,lt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,lt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"Status"}),f==="status"?(0,lt.jsxs)(xa,{value:i.status,onValueChange:N=>{h("status",N),y(null)},children:[(0,lt.jsx)(Xt,{children:(0,lt.jsx)(Na,{placeholder:"Select status"})}),(0,lt.jsx)(Yt,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(N=>(0,lt.jsx)(qt,{value:N,children:N},N))})]}):(0,lt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("status"),children:i.status})]}),(0,lt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"Categories"}),f==="categories"?(0,lt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(N=>(0,lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,lt.jsx)(Ct,{id:N.id?.toString()||"",checked:(i.categories||[]).some(Z=>Z.id===N.id),onCheckedChange:()=>N.id!==void 0&&A(N)}),(0,lt.jsx)("label",{htmlFor:(N.id??"").toString(),className:`text-sm font-medium ${C(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id))}):(0,lt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(N=>{let Z=N;return Z?(0,lt.jsx)(Ze,{variant:"outline",className:C(Z.type||"sector"),children:Z.name},Z.id):null})})]}),(0,lt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"COGE Status"}),f==="gecoStatus"?(0,lt.jsxs)(xa,{value:i.gecoStatus??void 0,onValueChange:N=>{h("gecoStatus",N),y(null)},children:[(0,lt.jsx)(Xt,{children:(0,lt.jsx)(Na,{placeholder:"Select status"})}),(0,lt.jsx)(Yt,{children:["firm","forecast","other"].map(N=>(0,lt.jsx)(qt,{value:N,children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}):(0,lt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),(0,lt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,lt.jsxs)("div",{className:"grid gap-2",children:[(0,lt.jsx)(M,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,lt.jsx)(At,{className:"h-[200px] overflow-y-auto",children:(0,lt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((N,Z)=>new Date(Z.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>(0,lt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,lt.jsx)("p",{className:"text-sm text-foreground",children:N.text}),(0,lt.jsxs)("p",{className:"text-xs text-foreground mt-1",children:[N?.author?.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id))})}),(0,lt.jsxs)("div",{className:"flex mt-2",children:[(0,lt.jsx)(Ye,{value:m,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,lt.jsxs)(D,{onClick:G,className:"ml-2",children:[(0,lt.jsx)(cl.PlusIcon,{className:"lt-4 h-4 mr-2"}),"Add"]})]})]}),(0,lt.jsxs)("div",{className:"text-xs text-gray-500 mt-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,lt.jsxs)(be,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,lt.jsxs)(Le,{className:"pb-1 pt-2",children:[(0,lt.jsx)(Be,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,lt.jsx)("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),(0,lt.jsx)(Re,{className:"text-xs text-gray-200 pb-2",children:(0,lt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,lt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,lt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,lt.jsxs)(be,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,lt.jsxs)(Le,{className:"pb-2",children:[(0,lt.jsx)("div",{className:"flex justify-between items-center",children:(0,lt.jsx)(Be,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,lt.jsx)("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),(0,lt.jsxs)(Re,{children:[(0,lt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,lt.jsxs)("div",{className:"flex items-center text-sm text-foreground",children:[(0,lt.jsx)(cl.UserIcon,{className:"lt-4 h-4 mr-1 text-xs"}),(0,lt.jsx)("span",{children:e.assignee.name})]}),(0,lt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,lt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,lt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,lt.jsxs)("div",{className:"flex items-center text-xs text-gray-200",children:[(0,lt.jsx)(cl.CalendarIcon,{className:"lt-3 h-3 mr-1"}),(0,lt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,lt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,lt.jsx)(Ze,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var gs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function dr({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,compact:c=!1}){return(0,lt.jsxs)("div",{className:"flex flex-col lt-80",children:[(0,lt.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,lt.jsx)(gs.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,lt.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((d,p)=>(0,lt.jsx)(gs.Draggable,{draggableId:d.id.toString(),index:d.id,children:g=>(0,lt.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,lt.jsx)(Pn,{deal:d,customer:d.customer,categories:r,onClick:()=>s(d),compact:c})})},d.id.toString())),m.placeholder]})}),(0,lt.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,lt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,lt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,lt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,lt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var iu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function nu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,yr.useState)(null),i=p=>(e.deals??[]).filter(g=>g.status===p),c=p=>p.reduce((g,f)=>g+(f.value||0),0),m=(p,g)=>{let f={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((y,u)=>y+(u.value||0)*f[g],0)},d=(0,yr.useCallback)(p=>{let{source:g,destination:f}=p;if(!f||g.droppableId===f.droppableId&&g.index===f.index)return;let y=g.droppableId,u=f.droppableId,h=e.deals?.filter(G=>G.id===g.index)[0],A=[...e.deals??[]];h&&(h.status=u,a(h))},[a]);return(0,lt.jsx)(gs.DragDropContext,{onDragEnd:d,children:(0,lt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,lt.jsx)("div",{className:"flex space-x-4 pb-4",children:iu.filter(p=>p!=="Lost").map(p=>{let g=i(p);return(0,lt.jsx)(dr,{status:p,deals:g,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:m},p)})}),s&&(0,lt.jsx)(lr,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function Sn({onSubmit:e}){let[t,a]=(0,yr.useState)({name:"",intro:"",active:!1});return(0,lt.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-y-4",children:[(0,lt.jsxs)("div",{className:"space-y-2",children:[(0,lt.jsx)(M,{htmlFor:"customerName",children:"Customer Name"}),(0,lt.jsx)(Ye,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,lt.jsxs)("div",{className:"space-y-2",children:[(0,lt.jsx)(M,{htmlFor:"customerIntro",children:"Intro"}),(0,lt.jsx)(wa,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,lt.jsx)(Ct,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,lt.jsx)(M,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,lt.jsx)(D,{type:"submit",className:"lt-full",children:"Add Customer"})]})}function lu({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,c]=(0,yr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("lt")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,yr.useState)(!1),[p,g]=(0,yr.useState)({});(0,yr.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let C={};return i.customer||(C.customer="Customer is required"),i.value||(C.value="Value is required"),i.assignee||(C.assignee="Assignee is required"),i.closureDate||(C.closureDate="Closure Date is required"),g(C),Object.keys(C).length===0},y=async C=>{C.preventDefault(),g({});try{if(f()){let B=await o({...i});B.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):g(B.errors||{})}}catch{g({submit:"An error occurred while submitting the form."})}},u=C=>{c(B=>({...B,categories:(B.categories||[]).includes(C.id)?(B.categories||[]).filter(N=>N!==C.id):[...B.categories||[],C.id]}))},h=async C=>{c({...i,customer:C});try{let B=await s(C);B.success?d(!1):g(B.errors||{})}catch{g({submit:"An error occurred while submitting the form."})}},A=C=>t?.find(B=>B.id===Number(C)),G=C=>e?.find(B=>B.id===Number(C));return(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,lt.jsx)(At,{className:"h-[60vh] pr-4",children:(0,lt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,lt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,lt.jsx)(M,{htmlFor:"customer",children:"Customer"}),(0,lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,lt.jsxs)(xa,{value:i.customer?.id?.toString(),onValueChange:C=>c({...i,customer:G(C)}),children:[(0,lt.jsx)(Xt,{children:(0,lt.jsx)(Na,{placeholder:"Select customer"})}),(0,lt.jsx)(Yt,{children:e.map(C=>(0,lt.jsx)(qt,{value:C.id?.toString()||"",children:C.name},C.id))})]}),(0,lt.jsx)(D,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,lt.jsx)(cl.PlusIcon,{className:"lt-5 h-5"})})]}),p.customerId&&(0,lt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,lt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,lt.jsx)(M,{htmlFor:"value",children:"Value"}),(0,lt.jsx)(Ye,{id:"value",type:"number",value:i.value||"",onChange:C=>c({...i,value:Number.parseFloat(C.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,lt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,lt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,lt.jsx)(M,{htmlFor:"assignee",children:"Assignee"}),(0,lt.jsxs)(xa,{value:i.assignee?.id?.toString(),onValueChange:C=>c({...i,assignee:A(C)}),children:[(0,lt.jsx)(Xt,{children:(0,lt.jsx)(Na,{placeholder:"Select assignee"})}),(0,lt.jsx)(Yt,{children:t&&t.map(C=>(0,lt.jsx)(qt,{value:C.id?.toString()||"",children:C.name},C.id))})]}),p.assignee&&(0,lt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,lt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,lt.jsx)(M,{htmlFor:"description",children:"Description"}),(0,lt.jsx)(wa,{id:"description",value:i.description||"",onChange:C=>c({...i,description:C.target.value}),placeholder:"Enter deal description"})]}),(0,lt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,lt.jsx)(M,{children:"Categories"}),(0,lt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(C=>(0,lt.jsxs)("div",{className:"space-y-2",children:[(0,lt.jsx)("h4",{className:"text-sm font-medium",children:C.charAt(0).toUpperCase()+C.slice(1)}),(0,lt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(B=>B.type===C).map(B=>(0,lt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,lt.jsx)(Ct,{id:B.id.toString(),checked:i.categories?.includes(B.id),onCheckedChange:()=>u(B)}),(0,lt.jsx)("label",{htmlFor:B.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:B.name})]},B.id))})]},C))})]}),(0,lt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,lt.jsx)(M,{htmlFor:"closureDate",children:"Closure Date"}),(0,lt.jsx)(Ye,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:C=>c({...i,closureDate:C.target.value})}),p.closureDate&&(0,lt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,lt.jsx)(D,{type:"submit",className:"lt-full",children:r?"Update Deal":"Add Deal"})]}),(0,lt.jsx)(Lt,{open:m,onOpenChange:d,children:(0,lt.jsxs)(wt,{children:[(0,lt.jsx)(Ut,{children:(0,lt.jsx)(Wt,{children:"Add New Customer"})}),(0,lt.jsx)(Sn,{onSubmit:h})]})})]})}var du=["firm","forecast","other"];function cu({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,yr.useState)(null),s=m=>(e.deals??[]).filter(d=>d.gecoStatus===m).filter(d=>d.status!=="Lost").filter(d=>d.status!=="Cold"),l=m=>m.reduce((d,p)=>d+(p.value||0),0),i=(m,d)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((g,f)=>g+(f.value||0)*(p[f.status]??0),0)},c=(0,yr.useCallback)(m=>{let{source:d,destination:p}=m;if(!p||d.droppableId===p.droppableId&&d.index===p.index)return;let g=d.droppableId,f=p.droppableId,y=e.deals?.filter(h=>h.id===d.index)[0],u=[...e.deals??[]];y&&(y.gecoStatus=f,t(y))},[t]);return(0,lt.jsx)(gs.DragDropContext,{onDragEnd:c,children:(0,lt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,lt.jsx)("div",{className:"flex space-x-4 pb-4",children:du.map(m=>{let d=s(m);return(0,lt.jsx)(dr,{status:m,deals:d,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:i,compact:!0},m)})}),o&&(0,lt.jsx)(lr,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Lc=x(require("react"));function Mc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,yr.useState)(null),[s,l]=(0,yr.useState)(!1),[i,c]=(0,yr.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let g=await fetch(`/api/tasks/${e}`);if(!g.ok)throw new Error(`Failed to fetch task: ${g.statusText}`);let f=await g.json();r(f)}catch(g){console.error("Error fetching task:",g),c(g instanceof Error?g:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},d=()=>m(!1);return(0,yr.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 mu=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"}},pu=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Rn({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:f,loading:y,error:u}=Mc({taskId:t,system:a});l=f,i=y,c=u}else i=!1;let d=mu(l?.status||"todo"),p=pu(l?.status||"todo"),g=l?.dateLogged||new Date().toISOString();try{let f=new Date(l?.dateLogged||"");isNaN(f.getTime())||(g=(0,xn.formatDistanceToNow)(f,{addSuffix:!0}))}catch{}return(0,lt.jsxs)(be,{className:n("lt-full max-lt-md shadow-md",c&&"border border-destructive"),children:[(0,lt.jsxs)(Le,{className:"pb-2",children:[(0,lt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,lt.jsx)(Be,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,lt.jsx)(Ze,{className:`${d}`,children:p})]}),l?.project&&(0,lt.jsxs)(ji,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,lt.jsx)(Re,{className:"pb-2",children:i?(0,lt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded lt-3/4 mb-2"}):c?(0,lt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,lt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,lt.jsx)(_i,{className:"pt-2 flex items-center justify-between",children:(0,lt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,lt.jsx)(cl.Clock,{className:"h-3 lt-3 mr-1"}),(0,lt.jsxs)("span",{children:["Created ",g]}),(0,lt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,lt.jsxs)("span",{children:["Task #",t]})]})})]})}var uu={task:Rn},gu=`
14
+ w-full h-full bg-cover bg-center`,children:h===0?(0,nt.jsx)(sr,{hero:r,title:e.title,logoImage:s}):(0,nt.jsxs)(nt.Fragment,{children:[u.blockName&&(0,nt.jsx)(rr,{title:u.blockName}),(0,nt.jsx)(Ra,{blocks:[u],fill:!0}),(0,nt.jsx)(Fd,{logoImage:s})]})})},h))}),(0,nt.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:c,children:(0,nt.jsx)(Dp,{})})]})},Dp=()=>(0,nt.jsx)(bo.AnimatePresence,{children:(0,nt.jsx)(bo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:n("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,nt.jsx)(bo.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:n("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Od=x(require("next/link")),jd=x(require("next/image"));function Gd({blogs:e,width:t=3}){return(0,nt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,nt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,nt.jsx)(Od.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,nt.jsxs)("div",{className:"relative size-full",children:[(0,nt.jsx)(jd.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,nt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,nt.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,nt.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o))})})}function _d({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:i,dealsClosed:d,leadsGenerated:m}){return(0,nt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,nt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,nt.jsxs)("div",{className:"max-w-4xl",children:[(0,nt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,nt.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,nt.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,nt.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,nt.jsxs)("div",{className:"lg:pr-8",children:[(0,nt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,nt.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,nt.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,nt.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((c,p)=>(0,nt.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,nt.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,nt.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,nt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,nt.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,nt.jsxs)("el",{className:"mt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[(0,nt.jsxs)("div",{className:"flex flex-col gap-y-2 border-nt border-dotted border-gray-200 pb-4",children:[(0,nt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,nt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,nt.jsxs)("div",{className:"flex flex-col gap-y-2 border-nt border-dotted border-gray-200 pb-4",children:[(0,nt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,nt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"nt"]})]}),(0,nt.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-nt max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,nt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,nt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),(0,nt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,nt.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,nt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}function Mp(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 vo=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)},Ip=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,nt.jsx)($d,{page:e,layout:t,logoImage:a}):(0,nt.jsx)(Ud,{page:e,layout:t,logoImage:a}),$d=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Ss(e),r=(0,vr.useRef)(null),s=(0,vr.useRef)(null),l=(0,vr.useRef)(new _y.Previewer),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,vr.useEffect)(()=>{let c=document.getElementById("printable-content");if(c){let p=document.createElement("style");return p.textContent=`@page { size: ${vo(c.offsetWidth)}mm ${vo(c.offsetHeight)}mm ; margin: 0mm; width: ${vo(c.offsetWidth)}mm }; .container : { max-width: ${vo(c.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 d=(0,vr.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let c=document.getElementById("printable-content");c&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${vo(c.offsetWidth)}mm ${vo(c.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,vr.useEffect)(()=>{l.current=new _y.Previewer},[d,t]);let m=[i,...o];return(0,nt.jsxs)("div",{children:[(0,nt.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,nt.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((c,p)=>(0,nt.jsx)(nt.Fragment,{children:p===0?(0,nt.jsx)("section",{className:"title-page w-full h-full",children:(0,nt.jsx)(sr,{hero:e.hero,title:e.title})},p):(0,nt.jsxs)("section",{className:"normal-page overflow-hidden",children:[c.blockName&&(0,nt.jsx)(rr,{title:c.blockName}),(0,nt.jsx)(Ra,{blocks:[c],fill:!0})]},p)})),(0,nt.jsx)("section",{className:"normal-page",children:(0,nt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
15
+ dark bg-background text-primary`,children:[(0,nt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[a&&(0,nt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,nt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,nt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,nt.jsx)("div",{ref:s,className:"preview-container"})]})},Ud=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Ss(e),o=(0,vr.useRef)(null),r=(0,vr.useRef)(null),s=(0,vr.useRef)(new _y.Previewer),[l,i]=(0,vr.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],c=(0,vr.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,vr.useEffect)(()=>{s.current=new _y.Previewer,c()},[c,t]),(0,vr.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,nt.jsxs)("div",{className:"pagedjs-container",children:[(0,nt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,g)=>(0,nt.jsx)(nt.Fragment,{children:g===0?(0,nt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,nt.jsx)(sr,{hero:e.hero,title:e.title})},g):(0,nt.jsxs)("section",{className:n("pagedjs-section normal-page h-[699px]",`h-[${Mp("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,nt.jsx)(rr,{title:p.blockName}),(0,nt.jsx)(Ra,{blocks:[p],fill:!0})]},g)}))}),(0,nt.jsx)("div",{ref:o,className:"preview-container"})]})};var on=x(require("clsx"));function Ap({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:i=!1,LinkComponent:d,...m}){let p=d?g=>(0,nt.jsx)(d,{...g}):l?({href:g,children:f,...y})=>(0,nt.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:f}):g=>(0,nt.jsx)("a",{...g});return(0,nt.jsxs)(La,{...m,variant:"inset",children:[(0,nt.jsx)(Ba,{children:(0,nt.jsx)(Ye,{children:(0,nt.jsx)(Ee,{children:i?(0,nt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,nt.jsx)(pe,{className:"bg-gray-200 my-2 w-full h-7"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,nt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,nt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,nt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,nt.jsxs)(fa,{children:[(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"}),(0,nt.jsx)(pe,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,nt.jsxs)(fa,{children:[e&&!i&&e.map((g,f)=>(0,nt.jsx)(Lp,{subNav:g,pathName:r,Link:p},f)),(0,nt.jsx)(lt,{className:"mt-auto",children:(0,nt.jsx)(wt,{children:(0,nt.jsx)(Ye,{children:t&&!i&&t.map(g=>(0,nt.jsx)(Ee,{children:(0,nt.jsx)(dt,{asChild:!0,size:"sm",children:(0,nt.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,nt.jsx)(g.icon,{}),(0,nt.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,nt.jsx)(za,{})]})}function Lp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,nt.jsx)(Ut,{defaultOpen:!0,className:"group/collapsible",children:(0,nt.jsx)(lt,{className:"py-0",children:(0,nt.jsx)(Ye,{children:(0,nt.jsx)(Ut,{asChild:!0,defaultOpen:o.isActive,children:(0,nt.jsxs)(Ee,{children:[(0,nt.jsx)(dt,{asChild:!0,tooltip:o.label,className:(0,on.default)(r&&"font-bold text-accent"),children:(0,nt.jsxs)(a,{href:o.url,children:[o.icon&&(0,nt.jsx)(o.icon,{}),(0,nt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(pa,{asChild:!0,children:(0,nt.jsxs)(Oo,{className:"data-[state=open]:rotate-90",children:[(0,nt.jsx)(cl.ChevronRight,{}),(0,nt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,nt.jsx)(ua,{children:(0,nt.jsx)(ba,{children:o.links?.map(s=>(0,nt.jsx)(ya,{children:(0,nt.jsx)(va,{asChild:!0,className:(0,on.default)(s.url===t&&"font-bold text-accent"),children:(0,nt.jsx)(a,{href:s.url,children:(0,nt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Wd=x(require("clsx"));var Bp=()=>(0,nt.jsx)(Fe,{iconName:"github",size:"10x"});function zp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:i,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let y=c?u=>(0,nt.jsx)(c,{...u}):m?({item:u,children:h,...L})=>(0,nt.jsx)("button",{onClick:()=>m&&m(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...L,children:h}):u=>(0,nt.jsx)("a",{href:u.href,...u});return(0,nt.jsxs)(La,{side:"right",variant:"inset",...p,children:[(0,nt.jsxs)(Ba,{className:"border-nt border-sidebar-border",children:[(0,nt.jsxs)(Ye,{className:"flex-row space-x-1",children:[(0,nt.jsx)(Ee,{children:(0,nt.jsxs)(dt,{onClick:s,children:[(0,nt.jsx)(cl.FilePlus,{})," ",(0,nt.jsx)("span",{children:"Add Document"})]})}),d&&(0,nt.jsx)(Ee,{children:(0,nt.jsx)(dt,{onClick:d,tooltip:"Open in GitHub",children:(0,nt.jsx)(Bp,{})})})]}),(0,nt.jsxs)(Ye,{className:"flex-row space-x-1",children:[(0,nt.jsx)(Ee,{className:"w-5/12",children:(0,nt.jsxs)(dt,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Wd.default)(r&&"text-accent"),children:[(0,nt.jsx)(cl.Edit,{})," ",(0,nt.jsx)("span",{children:"Edit"})]})}),(0,nt.jsx)(Ee,{className:"w-5/12",children:(0,nt.jsxs)(dt,{onClick:i,children:[(0,nt.jsx)(cl.Printer,{})," ",(0,nt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Ut,{defaultOpen:!0,className:"group/collapsible",children:(0,nt.jsxs)(lt,{children:[(0,nt.jsx)(Wt,{asChild:!0,children:(0,nt.jsxs)(pa,{children:["Editor Controls",(0,nt.jsx)(cl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,nt.jsx)(wt,{children:(0,nt.jsx)(ua,{children:a})})]})}),(0,nt.jsx)(Ho,{className:"mx-0"})]}),(0,nt.jsxs)(fa,{className:"overflow-auto",children:[o&&(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)(lt,{children:[(0,nt.jsx)(Wt,{children:"Related Content"}),(0,nt.jsx)(wt,{children:(0,nt.jsx)(Ye,{children:Array.from({length:3}).map((u,h)=>(0,nt.jsx)(Ee,{children:(0,nt.jsx)(pe,{className:"bg-gray-200 w-full h-10"})},h))})})]}),(0,nt.jsxs)(lt,{children:[(0,nt.jsx)(Wt,{children:"Table of Contents"}),(0,nt.jsx)(wt,{children:(0,nt.jsx)(Ye,{children:Array.from({length:3}).map((u,h)=>(0,nt.jsx)(Ee,{children:(0,nt.jsx)(pe,{className:"bg-gray-200 w-full h-10"})},h))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,nt.jsx)(Ut,{defaultOpen:!0,className:"group/collapsible",children:(0,nt.jsxs)(lt,{children:[(0,nt.jsx)(Wt,{asChild:!0,children:(0,nt.jsxs)(pa,{children:["Related Content",(0,nt.jsx)(cl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,nt.jsx)(wt,{children:(0,nt.jsx)(ua,{children:(0,nt.jsx)(Ye,{children:e&&Object.keys(e).map(u=>(0,nt.jsxs)(Ee,{children:[(0,nt.jsxs)("span",{className:"p-2 text-vr text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,nt.jsx)(ba,{children:e[u].map(h=>(0,nt.jsx)(ya,{children:(0,nt.jsx)(va,{asChild:!0,isActive:!1,size:"sm",children:(0,nt.jsxs)(y,{href:h.url,item:h,className:"flex justify-between items-center w-full text-vr",children:[(0,nt.jsx)("span",{children:h.label}),h.type==="note"&&(0,nt.jsx)(cl.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),h.type==="draft"&&(0,nt.jsx)(Fe,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},h.label))})]},u))})})})]})}),t&&!o&&(0,nt.jsx)(Ut,{defaultOpen:!0,className:"group/collapsible",children:(0,nt.jsxs)(lt,{children:[(0,nt.jsx)(Wt,{asChild:!0,children:(0,nt.jsxs)(pa,{children:["Table of Contents",(0,nt.jsx)(cl.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,nt.jsx)(wt,{children:(0,nt.jsx)(ua,{children:(0,nt.jsx)(Ye,{children:t.map(u=>(0,nt.jsxs)(Ee,{children:[(0,nt.jsx)(dt,{asChild:!0,children:(0,nt.jsx)("a",{href:`#${u.url}`,className:"text-vr",children:u.title})}),u.items?.length?(0,nt.jsx)(ba,{children:u.items.map(h=>(0,nt.jsx)(ya,{children:(0,nt.jsx)(va,{asChild:!0,isActive:h.isActive,size:"sm",children:(0,nt.jsx)("a",{href:`#${h.url}`,className:"flex justify-between items-center w-full text-vr",children:(0,nt.jsx)("span",{children:h.title})})})},h.title))}):null]},u.title))})})})]})})]}),(0,nt.jsx)(za,{})]})}var Yd=x(require("next/image"));function Ep({title:e,members:t}){return(0,nt.jsx)(fe,{className:"mb-6",children:(0,nt.jsxs)("div",{className:"p-6",children:[(0,nt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,nt.jsx)(cl.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,nt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,nt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,nt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,nt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,nt.jsx)(Yd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,nt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var qd=x(require("next/link"));var Fp=({links:e,title:t="Related Content"})=>(0,nt.jsxs)(fe,{children:[(0,nt.jsx)(Ae,{children:(0,nt.jsx)(Le,{className:"text-accent",children:t})}),(0,nt.jsx)(Se,{children:(0,nt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,nt.jsxs)(qd.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,nt.jsx)(cl.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var rn=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 Hp({pages:e}){let t=(0,Td.useSearchParams)(),a=(0,Td.usePathname)(),{replace:o}=(0,Td.useRouter)(),{totalPages:r,page:s}=e,[l,i]=(0,vr.useState)({start:s>3?s-3:1,end:s+2}),d=p=>{p==="left"&&l.start>1?i(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&i(g=>({start:g.start+1,end:g.end+1}))};function m(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let c=[];for(let p=l.start;p<=l.end;p++)c.push(p);return(0,nt.jsx)("div",{className:"mt-12",children:(0,nt.jsxs)("el",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,nt.jsx)("li",{children:(0,nt.jsx)("button",{className:n(rn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,nt.jsx)(Xl.FaArrowLeft,{})})}),c.map((p,g)=>(0,nt.jsx)("li",{children:(0,nt.jsx)("a",{className:n(rn,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),m(p.toString())},children:p})},g)),l.end<r&&(0,nt.jsx)("li",{children:(0,nt.jsx)("button",{className:n(rn,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,nt.jsx)(Xl.FaArrowRight,{})})})]})})}var Cv=n("transition-colors duration-400 hover:text-primary ease-in-out");function Op({title:e,links:t}){let a=(0,Td.useSearchParams)(),o=(0,Td.usePathname)(),{replace:r}=(0,Td.useRouter)();function s(l){let i=new URLSearchParams(a);l?i.set("category",l):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,nt.jsxs)(fe,{children:[(0,nt.jsx)(Ae,{children:(0,nt.jsx)(Le,{className:"text-accent",children:e&&e})}),(0,nt.jsx)(Se,{children:t&&t.length>0&&(0,nt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,nt.jsx)("el",{className:"grid gap-2.5 ",children:t.map((l,i)=>(0,nt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),s(l.href)},children:[l.label,(0,nt.jsx)(cl.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function jp({types:e}){let[t,a]=(0,vr.useState)(e&&e[0].href),o=(0,Td.useSearchParams)(),r=(0,Td.usePathname)(),{replace:s}=(0,Td.useRouter)();function l(i){let d=new URLSearchParams(o);i?d.set("type",i):d.delete("type"),a(i),s(`${r}?${d.toString()}`)}return(0,nt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,nt.jsx)(M,{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},d))})}var ec=x(require("next/image"));var nn=({links:e,media:t,children:a,richText:o})=>(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,nt.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,nt.jsx)(ae,{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,nt.jsx)("el",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,nt.jsx)("li",{children:(0,nt.jsx)(Tt,{...r})},s))})]}),(0,nt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,nt.jsx)(Jt,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,nt.jsx)("div",{children:(0,nt.jsx)(ec.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,nt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-nt from-white dark:from-black"})]}),(0,nt.jsx)(Gp,{})]})}),Gp=()=>(0,nt.jsx)("div",{className:"w-full h-[1240px] z-10",children:(0,nt.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,nt.jsx)("defs",{children:(0,nt.jsxs)("mask",{id:"mask",children:[(0,nt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,nt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,nt.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var ln=x(require("next/image"));var _p=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,nt.jsx)(ln.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,nt.jsx)("div",{children:(0,nt.jsx)(ln.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},dn=({links:e,media:t,children:a,richText:o})=>(0,nt.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,nt.jsx)(_p,{media:t}),(0,nt.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,nt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,nt.jsx)(ae,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var cn=({children:e,richText:t})=>(0,nt.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,nt.jsx)("div",{className:"container",children:e||t&&(0,nt.jsx)(ae,{content:t,enableGutter:!1})})});var ac=x(require("react")),oc=x(require("next/image"));var tc=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 $p=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,nt.jsxs)("div",{className:"relative grid pt-24",children:[(0,nt.jsx)("div",{className:"relative z-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,nt.jsxs)("div",{className:"container mx-auto",children:[(0,nt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,nt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,nt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,nt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,nt.jsx)("p",{children:o.map((l,i)=>(0,nt.jsxs)(ac.default.Fragment,{children:[l.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,nt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,nt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,nt.jsx)("time",{dateTime:r,children:tc(r)})]}),t&&t.length>0&&(0,nt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,nt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,nt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,i)=>typeof l=="object"&&l!==null&&(0,nt.jsx)(Je,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||i))})]})]})]})}),(0,nt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,nt.jsx)(oc.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,nt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var ss=require("@heroicons/react/20/solid");var pn=x(require("next/image"));function mn({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=n("container",t&&"full-width",a&&"no-padding",o);return(0,nt.jsx)("div",{className:r,children:e})}var sc=require("next-themes");function Up({children:e,...t}){return(0,nt.jsx)(sc.ThemeProvider,{...t,children:e})}var nr=({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,nt.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,nt.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,nt.jsx)("defs",{children:(0,nt.jsxs)("mask",{id:"mask",children:[(0,nt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,nt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,nt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,nt.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,nt.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,nt.jsx)("defs",{children:(0,nt.jsxs)("mask",{id:"mask",children:[(0,nt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,nt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,nt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,nt.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,nt.jsx)("defs",{children:(0,nt.jsxs)("mask",{id:"mask",children:[(0,nt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,nt.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,nt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,nt.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,nt.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,nt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,nt.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,nt.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,nt.jsx)("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,nt.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,nt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Vp=({className:e})=>(0,nt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:n(e,"absolute w-full h-full"),children:[(0,nt.jsx)("defs",{children:(0,nt.jsxs)("mask",{id:"mask",children:[(0,nt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,nt.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,nt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var un=({title:e,image:t})=>(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,nt.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,nt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,nt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,nt.jsx)(pn.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,nt.jsx)("div",{children:(0,nt.jsx)(pn.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,nt.jsx)("span",{className:"absolute inset-0 bg-gradient-to-nt from-white dark:from-black"})]}),(0,nt.jsx)(nr,{className:"text-black z-10",position:"header"})]})});var Wp={highImpact:nn,lowImpact:cn,mediumImpact:dn,sectionHero:un},Xp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Wp[t];return a?(0,nt.jsx)(a,{...e}):null};function Yp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,nt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,nt.jsxs)("_n",{role:"list",className:"flex items-center space-x-4",children:[(0,nt.jsx)("li",{children:(0,nt.jsx)("div",{children:(0,nt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,nt.jsx)(ss.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,nt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,nt.jsx)("li",{children:(0,nt.jsxs)("div",{className:"flex items-center",children:[(0,nt.jsx)(ss.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,nt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,nt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,nt.jsx)(nt.Fragment,{})}var st=require("@headlessui/react"),ns=require("@heroicons/react/24/outline");var qp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,nt.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm text-foreground group",children:(0,nt.jsxs)("span",{className:"relative",children:[e,(0,nt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,nt.jsxs)(st.Popover,{children:[(0,nt.jsxs)(st.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 text-foreground outline-none group",children:[(0,nt.jsxs)("span",{className:"relative",children:[e,(0,nt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,nt.jsx)(ss.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,nt.jsxs)(st.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,nt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 z-50",children:t&&t.map(r=>(0,nt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,nt.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,nt.jsx)(nc,{icon:r.icon,size:"4x"})}),(0,nt.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,nt.jsx)("span",{className:"absolute inset-0"})]}),(0,nt.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,nt.jsx)("div",{className:"bg-gray-50",children:(0,nt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,nt.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,nt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,nt.jsx)(nc,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),nc=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,nt.jsx)(Fe,{...e,size:a});if("src"in e)return(0,nt.jsx)("div",{className:n(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,nt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Co=qp;var is=["light","dark","green"];function Kp({title:e,logo:t,menuItems:a}){let[o,r]=(0,vr.useState)(!1),[s,l]=(0,vr.useState)(!1),[i,d]=(0,vr.useState)("light"),m=t?.split(".")[0],c=t?.split(".")[1],[p,g]=(0,vr.useState)(`${m}.${c}`),f=u=>{is.includes(u)?g(u==="light"?`${m}.${c}`:`${m}-${u}.${c}`):g(`${m}.${c}`)};(0,vr.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";d(u),document.documentElement.setAttribute("class",u),f(u)},[]);let y=()=>{let u=is[(is.indexOf(i)+1)%is.length];d(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),f(u)};return(0,$.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,$.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,$.jsx)("div",{className:"flex lg:flex-1",children:(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:e}),(0,$.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,$.jsx)("div",{className:"flex lg:hidden",children:(0,$.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,$.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,$.jsx)(ns.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,$.jsx)(st.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(u=>(0,$.jsx)(Co,{...u},u.name))}),(0,$.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,$.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,$.jsx)(ss.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,$.jsx)(ss.MoonIcon,{className:"h-6 w-6"}):(0,$.jsx)(ss.SunIcon,{className:"h-6 w-6"})})})]}),(0,$.jsxs)(st.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,$.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,$.jsxs)(st.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,$.jsxs)("div",{className:"flex items-center justify-between",children:[(0,$.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,$.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,$.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,$.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,$.jsx)(ns.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,$.jsx)("div",{className:"mt-6 flow-root",children:(0,$.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,$.jsx)("div",{className:"space-y-2 py-6",children:a.map(u=>(0,$.jsx)(Qp,{...u},u.name))})})})]})]})]})}function Qp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,$.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,$.jsxs)(st.Disclosure,{as:"div",className:"-mx-3",children:[(0,$.jsx)(st.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,$.jsx)(st.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,$.jsx)(st.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Jp({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,nt.jsx)("div",{children:(0,nt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,nt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,nt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,nt.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,nt.jsx)(mn,{children:(0,nt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 z-0 md:mb-0",children:[(0,nt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,nt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,nt.jsx)(nr,{className:"text-black z-10",position:"header"})]})})}var gn=x(require("next/image"));function Ta({logoLight:e,logoDark:t,mobile:a=!1}){return(0,nt.jsxs)(gt,{href:"/",className:n(a?"py-1":"py-2"),children:[(0,nt.jsx)(gn.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,nt.jsx)(gn.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 fn({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,i]=(0,vr.useState)(!1),[d,m]=(0,vr.useState)(""),c=["light","dark"],{theme:p,setTheme:g}=(0,sc.useTheme)();(0,vr.useEffect)(()=>{m(p||"dark")},[p]);let f=()=>{let y=c[(c.indexOf(d)+1)%c.length];m(y),g(y)};return(0,vr.useEffect)(()=>{let y=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",y,{passive:!0}),()=>window.removeEventListener("scroll",y)},[]),(0,nt.jsx)(nt.Fragment,{children:(0,nt.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,nt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,nt.jsxs)("div",{className:n("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,nt.jsx)(Ta,{logoDark:a,logoLight:t}),(0,nt.jsx)(st.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(y=>(0,nt.jsx)(Co,{...y},y.name))}),r&&(0,nt.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,nt.jsxs)("div",{className:"relative",children:[(0,nt.jsx)(cl.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,nt.jsx)(cl.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var bn=["light","dark"];function yn({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,vr.useState)(!1),{theme:l,setTheme:i}=(0,sc.useTheme)(),[d,m]=(0,vr.useState)(!1),[c,p]=(0,vr.useState)("light");(0,vr.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,vr.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=bn[(bn.indexOf(c)+1)%bn.length];p(f),i(f)};return(0,nt.jsx)(nt.Fragment,{children:(0,nt.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,nt.jsx)("nav",{className:n("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,nt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-nt dark:border-accent",children:[(0,nt.jsx)(Ta,{logoDark:t,logoLight:e,mobile:!0}),(0,nt.jsx)("div",{className:"flex items-center space-x-4",children:(0,nt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,nt.jsx)(ns.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,nt.jsxs)(st.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,nt.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,nt.jsxs)(st.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,nt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,nt.jsx)(Ta,{logoDark:t,logoLight:e,mobile:!0}),(0,nt.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,nt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,nt.jsx)(ns.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,nt.jsx)("div",{className:"mt-6 flow-root",children:(0,nt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,nt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,nt.jsx)(Zp,{...f},f.name))})})})]})]})]})})}function Zp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,nt.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,nt.jsxs)(st.Disclosure,{as:"div",className:"-mx-3",children:[(0,nt.jsx)(st.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,nt.jsx)(st.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,nt.jsx)(st.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Ph=n("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),pc=n("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),vn=n("bg-brand-green rounded-full p-3 mr-4 text-2xl"),hn=n("flex items-center text-white gap-3"),cs=n("transition-colors duration-300 hover:text-accent dark:hover:text-white");function eu({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:i}=t,d=void 0;return(0,nt.jsxs)("footer",{className:n("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,nt.jsx)("div",{className:"py-16 md:py-20",children:(0,nt.jsx)("div",{className:"container",children:(0,nt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,nt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,nt.jsx)(Ta,{logoDark:o,logoLight:a}),(0,nt.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,nt.jsx)("nav",{"aria-label":"social links",children:(0,nt.jsx)("el",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,c)=>(0,nt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,nt.jsx)(gt,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,nt.jsx)("span",{children:m.icon})})},c))})})]}),(0,nt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,nt.jsx)("h3",{className:pc,children:s.title}),s.links&&s.links.length>0&&(0,nt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,nt.jsx)("el",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,nt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,nt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,nt.jsx)(Xl.FaChevronRight,{})}),(0,nt.jsx)(gt,{href:m.href,openNewTab:m.openNewTab,className:cs,children:m.label})]},m.label))})})]}),(0,nt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,nt.jsx)("h3",{className:pc,children:l.title}),(0,nt.jsxs)("el",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,nt.jsxs)("li",{className:hn,children:[(0,nt.jsx)("span",{className:vn,children:(0,nt.jsx)(Xl.FaPaperPlane,{})}),(0,nt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,nt.jsxs)("li",{className:hn,children:[(0,nt.jsx)("span",{className:vn,children:(0,nt.jsx)(Xl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,nt.jsx)("div",{className:"grid gap-1",children:l.mails.map((m,c)=>(0,nt.jsx)("a",{href:`mailto:${m}`,className:cs,children:m},c))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,nt.jsxs)("li",{className:hn,children:[(0,nt.jsx)("span",{className:vn,children:(0,nt.jsx)(Xl.FaPhone,{})}),(0,nt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((m,c)=>(0,nt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:cs,children:m},c))})]})]})]})]})})}),(0,nt.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,nt.jsx)("div",{className:"container",children:(0,nt.jsxs)("div",{className:"flex flex-wrap items-center text-vr justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,nt.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,nt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,nt.jsx)("el",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:i.links.map(m=>(0,nt.jsx)("li",{children:(0,nt.jsx)(gt,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:cs,children:m.label})},m.label))})})]})})})]})}function tu({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,nt.jsxs)("div",{className:n("fixed top-0 left-0 right-0 z-50",r),children:[(0,nt.jsx)(fn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,nt.jsx)(yn,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function au({menuItems:e,wide:t=!1,dark:a=!0}){return(0,nt.jsx)(nt.Fragment,{children:(0,nt.jsx)("menu",{className:n("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-nt border-accent"),children:(0,nt.jsx)("div",{className:"container backdrop-blur-sm",children:(0,nt.jsx)("div",{className:n("flex items-center justify-between py-0",!t&&"container"),children:(0,nt.jsx)(st.PopoverGroup,{className:"flex gap-x-12",children:e&&e.map(o=>(0,nt.jsx)(Co,{...o},o.name))})})})})})}function xn({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,vr.useState)([]),s=(0,Td.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(c=>c.id))},i=c=>{r(p=>p.includes(c)?p.filter(g=>g!==c):[...p,c])},d=async()=>{let c=await t(o);c.success?(Li.toast.success(c.message),s.refresh()):Li.toast.error(`Error: ${c.message}`),r([])},m=async()=>{let c=await a(o);c.success?(Li.toast.success(c.message),s.refresh()):Li.toast.error(`Error: ${c.message}`),r([])};return(0,nt.jsxs)("div",{className:"space-y-4",children:[(0,nt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,nt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,nt.jsxs)("div",{className:"space-x-2",children:[(0,nt.jsx)(M,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,nt.jsx)(M,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,nt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,nt.jsxs)("el",{className:"divide-y divide-gray-200",children:[(0,nt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,nt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nt.jsxs)("div",{className:"flex items-center",children:[(0,nt.jsx)(Pt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,nt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,nt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(c=>(0,nt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,nt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nt.jsxs)("div",{className:"flex items-center",children:[(0,nt.jsx)(Pt,{id:`select-${c.id}`,checked:o.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,nt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,nt.jsxs)(qe,{className:"h-10 w-10",children:[(0,nt.jsx)(Ke,{src:c.userImage,alt:c.userName}),(0,nt.jsx)(Qe,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,nt.jsx)("div",{className:"ml-3",children:(0,nt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,nt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,nt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,nt.jsx)(Je,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,nt.jsx)(Li.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Nn=require("date-fns");var bc=[{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 mr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=bc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},yc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!mr(o))return .5;for(;o<=r;)mr(o)||s++,o.setDate(o.getDate()+1);return s},vc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var ou=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,nt.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,nt.jsx)(M,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Cn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,vr.useState)(new Date),[r,s]=(0,vr.useState)(new Date),[l,i]=(0,vr.useState)("Full Day"),[d,m]=(0,vr.useState)(!1),[c,p]=(0,vr.useState)(1),g=(0,Td.useRouter)();(0,vr.useEffect)(()=>{let u=vc(a,r);m(u),u&&i("Full Day")},[a,r]),(0,vr.useEffect)(()=>{if(!a||!r){p(0);return}let u=yc(a,r,l!=="Full Day");p(u)},[a,r,l]);let f=u=>{i(u)};return(0,nt.jsxs)("div",{className:"max-w-2xl",children:[(0,nt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,nt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,nt.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){Li.toast.error("Please select both start and end dates");return}if(c>e){Li.toast.error("You do not have enough leave days remaining");return}let h=new FormData;h.append("startDate",a.toISOString()),h.append("endDate",r.toISOString()),h.append("leaveType",l),h.append("duration",c.toString());let L=await(t||ru)(h);L.success?(Li.toast.success(L.message),o(void 0),s(void 0),i("Full Day"),g.refresh()):Li.toast.error(`Error: ${L.message}`)},className:"space-y-4",children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,nt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,nt.jsx)(A,{htmlFor:"startDate",children:"Start Date"}),(0,nt.jsxs)(Xo,{children:[(0,nt.jsx)(Yo,{asChild:!0,children:(0,nt.jsxs)(M,{variant:"outline",className:n("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,nt.jsx)(cl.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Nn.format)(a,"PPP"):(0,nt.jsx)("span",{children:"Pick a date"})]})}),(0,nt.jsx)(lo,{className:"w-auto p-0",align:"start",children:(0,nt.jsx)(Qo,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,nt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,nt.jsx)(A,{htmlFor:"endDate",children:"End Date"}),(0,nt.jsxs)(Xo,{children:[(0,nt.jsx)(Yo,{asChild:!0,children:(0,nt.jsxs)(M,{variant:"outline",className:n("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,nt.jsx)(cl.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Nn.format)(r,"PPP"):(0,nt.jsx)("span",{children:"Pick a date"})]})}),(0,nt.jsx)(lo,{className:"w-auto p-0",align:"start",children:(0,nt.jsx)(Qo,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,nt.jsxs)("div",{className:"space-y-2",children:[(0,nt.jsx)(A,{children:"Leave Type"}),(0,nt.jsx)(ou,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,d,d]})]}),(0,nt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",c]}),(0,nt.jsx)(M,{disabled:c<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,nt.jsx)(Li.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var ru=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function xc(...e){return e.filter(Boolean).join(" ")}function kn({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)},d=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,nt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,nt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,nt.jsxs)("div",{className:"sm:flex-auto",children:[(0,nt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,nt.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,nt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,nt.jsxs)(M,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,nt.jsx)(cl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,nt.jsx)(M,{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,nt.jsxs)(M,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,nt.jsx)(cl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,nt.jsx)("div",{className:"mt-8 flow-root",children:(0,nt.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,nt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,nt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,nt.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-nt 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,c)=>{let p=new Date(e.getFullYear(),e.getMonth(),c+1);return(0,nt.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-nt 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 ${mr(p)?"bg-gray-200":""}`,children:[(0,nt.jsx)("div",{children:d(p)}),(0,nt.jsx)("div",{children:c+1})]},c)})]})}),(0,nt.jsx)("tbody",{children:o.map((m,c)=>(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("td",{className:xc(c!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,nt.jsxs)("div",{className:"flex items-center",children:[(0,nt.jsxs)(qe,{className:"h-11 w-11",children:[(0,nt.jsx)(Ke,{src:m.image,alt:m.name}),(0,nt.jsx)(Qe,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,nt.jsx)("div",{className:"ml-4",children:(0,nt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),y=a.find(u=>u.userId===m.id&&new Date(u.startDate)<=f&&new Date(u.endDate)>=f);return(0,nt.jsx)("td",{className:xc(c!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",mr(f)?"bg-gray-200":"bg-white"),children:(0,nt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${m.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,nt.jsx)("div",{className:`h-3 w-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${g}`)})]},m.id))})]})})})})]})}function Pn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,vr.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(c,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,nt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,nt.jsxs)("header",{className:"flex items-center justify-between border-nt border-gray-200 px-6 py-4 lg:flex-none",children:[(0,nt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,nt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,nt.jsx)("div",{className:"flex items-center",children:(0,nt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,nt.jsxs)(M,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,nt.jsx)(cl.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,nt.jsx)(M,{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,nt.jsxs)(M,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,nt.jsx)(cl.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,nt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,nt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-nt border-gray-300 bg-gray-200 text-center text-vr font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,nt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,nt.jsxs)("div",{className:"bg-white py-2",children:["nt",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,nt.jsxs)("div",{className:"bg-white py-2",children:["nt",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,nt.jsxs)("div",{className:"bg-white py-2",children:["nt",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,nt.jsxs)("div",{className:"bg-white py-2",children:["nt",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,nt.jsxs)("div",{className:"bg-white py-2",children:["nt",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"nt"})]}),(0,nt.jsxs)("div",{className:"bg-white py-2",children:["nt",(0,nt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,nt.jsxs)("div",{className:"flex bg-gray-200 text-vr leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,nt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(c=>(0,nt.jsxs)("div",{className:n(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,nt.jsx)("time",{dateTime:c.date.toISOString(),className:n("flex h-6 w-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,nt.jsx)("_n",{className:"mt-2 space-y-1 overflow-visible",children:c.holidays.map(p=>(0,nt.jsx)("li",{className:"overflow-visible",children:(0,nt.jsx)("div",{className:`text-vr px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,nt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(c=>(0,nt.jsxs)("button",{type:"button",className:n(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===o||c.isToday)&&"font-semibold",c.date===o&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==o&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==o&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,nt.jsx)("time",{dateTime:c.date.toISOString(),className:n("ml-auto",c.date===o&&c.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",c.date===o&&!c.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,nt.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,nt.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,nt.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))})]},c.date.toISOString()))})]})]})]})}var Ma=require("lucide-react");function wc(...e){return e.filter(Boolean).join(" ")}function su({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:i}){let[d,m]=(0,vr.useState)("Calendar View"),c=(0,Td.useRouter)(),p=!1,g=(0,Nn.parseISO)(a),f=async u=>{let h=(0,Nn.format)(u,"dd-MM-yyyy"),L=new URL(window.location.href);return L.searchParams.set("date",h),c.push(L.toString()),{success:!0}};if(p)return(0,nt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,nt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-nt-2 border-gray-900"})});let y=[{name:"Grid View",icon:Ma.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Ma.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Ma.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Ma.CheckSquare,current:d==="Approve Leave"}];return(0,nt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,nt.jsxs)("div",{className:"mb-8",children:[(0,nt.jsxs)("div",{className:"sm:hidden",children:[(0,nt.jsx)("select",{value:d,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:y.map(u=>(0,nt.jsx)("option",{children:u.name},u.name))}),(0,nt.jsx)(cl.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,nt.jsx)("div",{className:"hidden sm:block",children:(0,nt.jsx)("div",{className:"border-nt border-gray-200",children:(0,nt.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(u=>(0,nt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(u.name)},className:wc(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-nt-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,nt.jsx)(u.icon,{className:wc(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,nt.jsx)("span",{children:u.name})]},u.name))})})})]}),d==="Grid View"&&(0,nt.jsx)(kn,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),d==="Calendar View"&&(0,nt.jsx)(Pn,{currentDate:g,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,nt.jsx)(Cn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,nt.jsx)(xn,{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 pr({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[i,d]=(0,vr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,c]=(0,vr.useState)(""),[p,g]=(0,vr.useState)(!1),[f,y]=(0,vr.useState)(null);(0,vr.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let u=async()=>{try{let w=await s(i);w.success?(g(!1),y(null)):console.error("Failed to save deal:",w.errors)}catch(w){console.error("Failed to save deal:",w)}},h=(w,J)=>{d(na=>({...na,[w]:J}))},L=w=>{let J=(i.categories||[]).includes(w)?(i.categories||[]).filter(na=>na!==w):[...i.categories||[],w];h("categories",J)},O=async()=>{if(m.trim()){let w={text:m,timestamp:new Date().toISOString()};try{let J=await l(w);if(!J.success){console.error("Failed to add comment:",J.errors);return}}catch(J){console.error("Failed to add comment:",J)}d(J=>({...J,comments:[...J.comments||[],w]})),c("")}},k=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"}},z=w=>t?.find(J=>J.id===Number(w));return(0,nt.jsx)(Ft,{open:!0,children:(0,nt.jsxs)(kt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,nt.jsxs)(Yt,{className:"flex flex-row items-center justify-between",children:[(0,nt.jsx)(qt,{className:"text-2xl font-bold",children:a?.name||"no customer"}),(0,nt.jsxs)("div",{className:"flex space-x-2",children:[(0,nt.jsx)(M,{variant:"outline",onClick:r,children:"Close"}),(0,nt.jsxs)(M,{onClick:u,disabled:!p,children:[(0,nt.jsx)(cl.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,nt.jsxs)(Et,{className:"flex-grow pr-4",children:[(0,nt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,nt.jsx)("div",{className:"grid gap-2 m-1",children:f==="value"?(0,nt.jsx)(Xe,{type:"number",value:i.value,onChange:w=>h("value",Number(w.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,nt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,nt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"Assignee"}),f==="assignee"?(0,nt.jsxs)(St,{value:i?.assignee?.id?.toString()||"",onValueChange:w=>h("assignee",z(w)),children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:"Select assignee"})}),(0,nt.jsx)(pt,{children:t&&t.map(w=>(0,nt.jsx)(ut,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,nt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("assignee"),children:[(0,nt.jsx)(cl.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,nt.jsx)("span",{children:i?.assignee?.name})]})]}),(0,nt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"Closure Date"}),f==="closureDate"?(0,nt.jsx)(Xe,{type:"date",value:i.closureDate?.split("nt")[0]??"",onChange:w=>h("closureDate",w.target.value),onBlur:()=>y(null),className:"mr-2",autoFocus:!0}):(0,nt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("closureDate"),children:[(0,nt.jsx)(cl.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,nt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"nt/A"})]})]})]}),(0,nt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,nt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"Description"}),f==="description"?(0,nt.jsx)(Ca,{value:i.description||"",onChange:w=>h("description",w.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,nt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,nt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,nt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"Status"}),f==="status"?(0,nt.jsxs)(St,{value:i.status,onValueChange:w=>{h("status",w),y(null)},children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:"Select status"})}),(0,nt.jsx)(pt,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,nt.jsx)(ut,{value:w,children:w},w))})]}):(0,nt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("status"),children:i.status})]}),(0,nt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"Categories"}),f==="categories"?(0,nt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,nt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,nt.jsx)(Pt,{id:w.id?.toString()||"",checked:(i.categories||[]).some(J=>J.id===w.id),onCheckedChange:()=>w.id!==void 0&&L(w)}),(0,nt.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${k(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,nt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(w=>{let J=w;return J?(0,nt.jsx)(Je,{variant:"outline",className:k(J.type||"sector"),children:J.name},J.id):null})})]}),(0,nt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"COGE Status"}),f==="gecoStatus"?(0,nt.jsxs)(St,{value:i.gecoStatus??void 0,onValueChange:w=>{h("gecoStatus",w),y(null)},children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:"Select status"})}),(0,nt.jsx)(pt,{children:["firm","forecast","other"].map(w=>(0,nt.jsx)(ut,{value:w,children:w.charAt(0).toUpperCase()+w.slice(1)},w))})]}):(0,nt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"nt/A"})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,nt.jsxs)("div",{className:"grid gap-2",children:[(0,nt.jsx)(A,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,nt.jsx)(Et,{className:"h-[200px] overflow-y-auto",children:(0,nt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((w,J)=>new Date(J.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,nt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,nt.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,nt.jsxs)("p",{className:"text-vr text-foreground mt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,nt.jsxs)("div",{className:"flex mt-2",children:[(0,nt.jsx)(Xe,{value:m,onChange:w=>c(w.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,nt.jsxs)(M,{onClick:O,className:"ml-2",children:[(0,nt.jsx)(cl.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,nt.jsxs)("div",{className:"text-vr text-gray-500 mt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function Sn({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,nt.jsxs)(fe,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,nt.jsxs)(Ae,{className:"pb-1 pt-2",children:[(0,nt.jsx)(Le,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,nt.jsx)("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),(0,nt.jsx)(Se,{className:"text-vr text-gray-200 pb-2",children:(0,nt.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,nt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,nt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,nt.jsxs)(fe,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,nt.jsxs)(Ae,{className:"pb-2",children:[(0,nt.jsx)("div",{className:"flex justify-between items-center",children:(0,nt.jsx)(Le,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,nt.jsx)("p",{className:"text-sm text-foreground mt-1",children:e.description})]}),(0,nt.jsxs)(Se,{children:[(0,nt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,nt.jsxs)("div",{className:"flex items-center text-sm text-foreground",children:[(0,nt.jsx)(cl.UserIcon,{className:"w-4 h-4 mr-1 text-vr"}),(0,nt.jsx)("span",{children:e.assignee.name})]}),(0,nt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,nt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,nt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,nt.jsxs)("div",{className:"flex items-center text-vr text-gray-200",children:[(0,nt.jsx)(cl.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,nt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,nt.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,nt.jsx)(Je,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-vr",children:s.name})})]})]})}var fs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function ur({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:i,compact:d=!1}){return(0,nt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,nt.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,nt.jsx)(fs.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,nt.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((c,p)=>(0,nt.jsx)(fs.Draggable,{draggableId:c.id.toString(),index:c.id,children:g=>(0,nt.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,nt.jsx)(Sn,{deal:c,customer:c.customer,categories:r,onClick:()=>s(c),compact:d})})},c.id.toString())),m.placeholder]})}),(0,nt.jsxs)("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[(0,nt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,nt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,nt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,nt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var iu=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function nu({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,vr.useState)(null),i=p=>(e.deals??[]).filter(g=>g.status===p),d=p=>p.reduce((g,f)=>g+(f.value||0),0),m=(p,g)=>{let f={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return p.reduce((y,u)=>y+(u.value||0)*f[g],0)},c=(0,vr.useCallback)(p=>{let{source:g,destination:f}=p;if(!f||g.droppableId===f.droppableId&&g.index===f.index)return;let y=g.droppableId,u=f.droppableId,h=e.deals?.filter(O=>O.id===g.index)[0],L=[...e.deals??[]];h&&(h.status=u,a(h))},[a]);return(0,nt.jsx)(fs.DragDropContext,{onDragEnd:c,children:(0,nt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,nt.jsx)("div",{className:"flex space-x-4 pb-4",children:iu.filter(p=>p!=="Lost").map(p=>{let g=i(p);return(0,nt.jsx)(ur,{status:p,deals:g,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:d,calculateWeightedValue:m},p)})}),s&&(0,nt.jsx)(pr,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function Rn({onSubmit:e}){let[t,a]=(0,vr.useState)({name:"",intro:"",active:!1});return(0,nt.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-y-4",children:[(0,nt.jsxs)("div",{className:"space-y-2",children:[(0,nt.jsx)(A,{htmlFor:"customerName",children:"Customer Name"}),(0,nt.jsx)(Xe,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,nt.jsxs)("div",{className:"space-y-2",children:[(0,nt.jsx)(A,{htmlFor:"customerIntro",children:"Intro"}),(0,nt.jsx)(Ca,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,nt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,nt.jsx)(Pt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,nt.jsx)(A,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,nt.jsx)(M,{type:"submit",className:"w-full",children:"Add Customer"})]})}function lu({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[i,d]=(0,vr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("nt")[0],closureDate:"",comments:[],description:""}),[m,c]=(0,vr.useState)(!1),[p,g]=(0,vr.useState)({});(0,vr.useEffect)(()=>{r&&d(r)},[r]);let f=()=>{let k={};return i.customer||(k.customer="Customer is required"),i.value||(k.value="Value is required"),i.assignee||(k.assignee="Assignee is required"),i.closureDate||(k.closureDate="Closure Date is required"),g(k),Object.keys(k).length===0},y=async k=>{k.preventDefault(),g({});try{if(f()){let z=await o({...i});z.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):g(z.errors||{})}}catch{g({submit:"An error occurred while submitting the form."})}},u=k=>{d(z=>({...z,categories:(z.categories||[]).includes(k.id)?(z.categories||[]).filter(w=>w!==k.id):[...z.categories||[],k.id]}))},h=async k=>{d({...i,customer:k});try{let z=await s(k);z.success?c(!1):g(z.errors||{})}catch{g({submit:"An error occurred while submitting the form."})}},L=k=>t?.find(z=>z.id===Number(k)),O=k=>e?.find(z=>z.id===Number(k));return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,nt.jsx)(Et,{className:"h-[60vh] pr-4",children:(0,nt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,nt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,nt.jsx)(A,{htmlFor:"customer",children:"Customer"}),(0,nt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,nt.jsxs)(St,{value:i.customer?.id?.toString(),onValueChange:k=>d({...i,customer:O(k)}),children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:"Select customer"})}),(0,nt.jsx)(pt,{children:e.map(k=>(0,nt.jsx)(ut,{value:k.id?.toString()||"",children:k.name},k.id))})]}),(0,nt.jsx)(M,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,nt.jsx)(cl.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,nt.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,nt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,nt.jsx)(A,{htmlFor:"value",children:"Value"}),(0,nt.jsx)(Xe,{id:"value",type:"number",value:i.value||"",onChange:k=>d({...i,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,nt.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,nt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,nt.jsx)(A,{htmlFor:"assignee",children:"Assignee"}),(0,nt.jsxs)(St,{value:i.assignee?.id?.toString(),onValueChange:k=>d({...i,assignee:L(k)}),children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:"Select assignee"})}),(0,nt.jsx)(pt,{children:t&&t.map(k=>(0,nt.jsx)(ut,{value:k.id?.toString()||"",children:k.name},k.id))})]}),p.assignee&&(0,nt.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,nt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,nt.jsx)(A,{htmlFor:"description",children:"Description"}),(0,nt.jsx)(Ca,{id:"description",value:i.description||"",onChange:k=>d({...i,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,nt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,nt.jsx)(A,{children:"Categories"}),(0,nt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(k=>(0,nt.jsxs)("div",{className:"space-y-2",children:[(0,nt.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,nt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===k).map(z=>(0,nt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,nt.jsx)(Pt,{id:z.id.toString(),checked:i.categories?.includes(z.id),onCheckedChange:()=>u(z)}),(0,nt.jsx)("label",{htmlFor:z.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:z.name})]},z.id))})]},k))})]}),(0,nt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,nt.jsx)(A,{htmlFor:"closureDate",children:"Closure Date"}),(0,nt.jsx)(Xe,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:k=>d({...i,closureDate:k.target.value})}),p.closureDate&&(0,nt.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,nt.jsx)(M,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,nt.jsx)(Ft,{open:m,onOpenChange:c,children:(0,nt.jsxs)(kt,{children:[(0,nt.jsx)(Yt,{children:(0,nt.jsx)(qt,{children:"Add New Customer"})}),(0,nt.jsx)(Rn,{onSubmit:h})]})})]})}var du=["firm","forecast","other"];function cu({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,vr.useState)(null),s=m=>(e.deals??[]).filter(c=>c.gecoStatus===m).filter(c=>c.status!=="Lost").filter(c=>c.status!=="Cold"),l=m=>m.reduce((c,p)=>c+(p.value||0),0),i=(m,c)=>{let p={Cold:0,Qualified:.2,"Proposal Made":.5,"SoW Submitted":.8,Won:1,Lost:0};return m.reduce((g,f)=>g+(f.value||0)*(p[f.status]??0),0)},d=(0,vr.useCallback)(m=>{let{source:c,destination:p}=m;if(!p||c.droppableId===p.droppableId&&c.index===p.index)return;let g=c.droppableId,f=p.droppableId,y=e.deals?.filter(h=>h.id===c.index)[0],u=[...e.deals??[]];y&&(y.gecoStatus=f,t(y))},[t]);return(0,nt.jsx)(fs.DragDropContext,{onDragEnd:d,children:(0,nt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,nt.jsx)("div",{className:"flex space-x-4 pb-4",children:du.map(m=>{let c=s(m);return(0,nt.jsx)(ur,{status:m,deals:c,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:l,calculateWeightedValue:i,compact:!0},m)})}),o&&(0,nt.jsx)(pr,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Lc=x(require("react"));function Mc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,vr.useState)(null),[s,l]=(0,vr.useState)(!1),[i,d]=(0,vr.useState)(null),m=async(p=!0)=>{if(e){p&&l(!0);try{let g=await fetch(`/api/tasks/${e}`);if(!g.ok)throw new Error(`Failed to fetch task: ${g.statusText}`);let f=await g.json();r(f)}catch(g){console.error("Error fetching task:",g),d(g instanceof Error?g:new Error("Unknown error occurred"))}finally{p&&l(!1)}}},c=()=>m(!1);return(0,vr.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(c,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var mu=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"}},pu=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function Tn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,i=!0,d=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:d}),m){let{task:f,loading:y,error:u}=Mc({taskId:t,system:a});l=f,i=y,d=u}else i=!1;let c=mu(l?.status||"todo"),p=pu(l?.status||"todo"),g=l?.dateLogged||new Date().toISOString();try{let f=new Date(l?.dateLogged||"");isNaN(f.getTime())||(g=(0,Nn.formatDistanceToNow)(f,{addSuffix:!0}))}catch{}return(0,nt.jsxs)(fe,{className:n("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,nt.jsxs)(Ae,{className:"pb-2",children:[(0,nt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,nt.jsx)(Le,{className:"text-lg font-semibold",children:i?"Loading...":l?.name||"Task"}),(0,nt.jsx)(Je,{className:`${c}`,children:p})]}),l?.project&&(0,nt.jsxs)(_i,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,nt.jsx)(Se,{className:"pb-2",children:i?(0,nt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,nt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,nt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,nt.jsx)($i,{className:"pt-2 flex items-center justify-between",children:(0,nt.jsxs)("div",{className:"flex items-center text-vr text-gray-500",children:[(0,nt.jsx)(cl.Clock,{className:"h-3 w-3 mr-1"}),(0,nt.jsxs)("span",{children:["Created ",g]}),(0,nt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,nt.jsxs)("span",{children:["Task #",t]})]})})]})}var uu={task:Tn},gu=`
16
16
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
17
17
  <path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
18
- </svg>`,fu=`data:image/svg+xml;utf8,${encodeURIComponent(gu)}`,Tn=Lc.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,l=s==="user",i=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,lt.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${l?"flex-row-reverse":""}`,children:["Forwarding to ",o?.data?.content]},a);case"text":return(0,lt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,lt.jsxs)(Ke,{children:[(0,lt.jsx)(Qe,{src:c,alt:i}),(0,lt.jsx)(Je,{children:i.substring(0,2).toUpperCase()})]}):(0,lt.jsx)("img",{src:fu,alt:"AI Assistant",className:"lt-10 h-10"}),(0,lt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,lt.jsx)("div",{className:"flex items-center gap-2",children:(0,lt.jsx)("span",{className:"font-medium",children:i})}),(0,lt.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,lt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,lt.jsxs)(Ke,{className:l?"":"ai-border",children:[(0,lt.jsx)(Qe,{src:c,alt:i}),(0,lt.jsx)(Je,{children:i.substring(0,2).toUpperCase()})]}),(0,lt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,lt.jsx)("div",{className:"flex items-center gap-2",children:(0,lt.jsx)("span",{className:"font-medium",children:i})}),(0,lt.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=uu[o.data.tool];return m?(0,lt.jsx)("div",{className:"mt-2",children:(0,lt.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,lt.jsx)("div",{className:"mt-2",children:"......"}))}}});function bu({messages:e,isLoading:t}){let a=(0,yr.useRef)(null);return(0,yr.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,lt.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,lt.jsxs)(At,{className:"container flex-1 p-4",children:[(0,lt.jsxs)("div",{className:"space-y-6",children:[e.length===0&&(0,lt.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,lt.jsxs)("div",{className:"text-center max-lt-md",children:[(0,lt.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),(0,lt.jsx)("p",{className:"text-zinc-400",children:"Ask lt anything or direct your question to a business function directly using the toolbar below."})]})}),t&&(0,lt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,lt.jsxs)(Ke,{className:"ai-border",children:[(0,lt.jsx)(Qe,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,lt.jsx)(Je,{children:"AI"})]}),(0,lt.jsxs)("div",{className:"grid gap-1.5",children:[(0,lt.jsx)("div",{className:"flex items-center gap-2",children:(0,lt.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,lt.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,lt.jsxs)("div",{className:"flex space-x-2",children:[(0,lt.jsx)("div",{className:"lt-2 h-2 rounded-full bg-current animate-bounce"}),(0,lt.jsx)("div",{className:"lt-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,lt.jsx)("div",{className:"lt-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,lt.jsx)(Tn,{...o},r))]}),(0,lt.jsx)("div",{ref:a})]})})}var yu=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Bc=["On-Track","Off-Track","At Risk","Complete"],zc=[{name:"Project Summary",icon:cl.FileText},{name:"Milestones",icon:cl.ListChecks},{name:"Project Update",icon:cl.Users},{name:"Project Concerns",icon:cl.AlertTriangle},{name:"Commercial Opportunities",icon:cl.Briefcase},{name:"Commercial Risks",icon:cl.ShieldAlert}];function vs({onSubmit:e}){let[t,a]=(0,yr.useState)(zc[0].name),[o,r]=(0,yr.useState)(""),[s,l]=(0,yr.useState)(""),[i,c]=(0,yr.useState)(""),[m,d]=(0,yr.useState)(""),[p,g]=(0,yr.useState)(yu),[f,y]=(0,yr.useState)(""),[u,h]=(0,yr.useState)(""),[A,G]=(0,yr.useState)(""),[C,B]=(0,yr.useState)(""),N=(j,Me,le)=>{g(q=>{let Ja=[...q];return Me==="rag"&&!Bc.includes(le)?q:(Ja[j]={...Ja[j],[Me]:le},Ja)})},Z=()=>{g(j=>[...j,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},ia=j=>{g(Me=>Me.filter((le,q)=>q!==j))},cr=async j=>{j.preventDefault();let Me={clientName:o,projectName:s,deliveryLead:i,projectSummary:m,milestones:p.length>0?p:null,projectUpdate:f,projectConcerns:u||null,commercialOpportunities:A||null,commercialRisks:C||null};if(e)return e(Me);try{let le=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Me)});if(!le.ok)throw new Error("Failed to submit delivery lead");let q=await le.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(le){return console.error("Error submitting delivery lead:",le),{success:!1,message:"Failed to submit delivery lead"}}};return(0,lt.jsx)("div",{className:"container mx-auto p-4 max-lt-3xl",children:(0,lt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,lt.jsx)("div",{className:"mb-6 flex border-lt border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:zc.map(j=>(0,lt.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-lt-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
19
- ${t===j.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
20
- text-sm sm:text-base flex-1 basis-1/4 min-lt-[180px] max-lt-xs justify-center`,onClick:()=>a(j.name),type:"button",children:[(0,lt.jsx)(j.icon,{className:"lt-5 h-5"}),(0,lt.jsx)("span",{children:j.name})]},j.name))}),(0,lt.jsxs)("form",{onSubmit:cr,className:"space-y-8",children:[t==="Project Summary"&&(0,lt.jsxs)("div",{className:"space-y-6",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Client Name"}),(0,lt.jsx)("input",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:o,onChange:j=>r(j.target.value),required:!0,placeholder:"Enter client name"})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Project Name"}),(0,lt.jsx)("input",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:s,onChange:j=>l(j.target.value),required:!0,placeholder:"Enter project name"})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Delivery Lead"}),(0,lt.jsx)("input",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:i,onChange:j=>c(j.target.value),required:!0,placeholder:"Enter delivery lead name"})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Project Summary"}),(0,lt.jsx)("textarea",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:m,onChange:j=>d(j.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),t==="Milestones"&&(0,lt.jsxs)("div",{children:[(0,lt.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,lt.jsxs)(M,{className:"text-lg flex items-center gap-2",children:[(0,lt.jsx)(cl.ListChecks,{className:"lt-5 h-5"}),"Milestones"]}),(0,lt.jsxs)(D,{type:"button",onClick:Z,variant:"outline",className:"flex items-center gap-1",children:[(0,lt.jsx)(cl.PlusCircle,{className:"lt-5 h-5"})," Add Milestone"]})]}),(0,lt.jsx)("div",{className:"space-y-4",children:p.map((j,Me)=>(0,lt.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,lt.jsxs)("div",{className:"col-span-1",children:[(0,lt.jsx)(M,{children:"Milestone"}),(0,lt.jsx)("input",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:j.name,onChange:le=>N(Me,"name",le.target.value),required:!0,placeholder:"Milestone name"})]}),(0,lt.jsxs)("div",{className:"col-span-2",children:[(0,lt.jsx)(M,{children:"Commentary"}),(0,lt.jsx)("input",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:j.commentary,onChange:le=>N(Me,"commentary",le.target.value),placeholder:"Commentary"})]}),(0,lt.jsxs)("div",{className:"col-span-1",children:[(0,lt.jsx)(M,{children:"Due Date"}),(0,lt.jsx)("input",{type:"date",className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:j.dueDate,onChange:le=>N(Me,"dueDate",le.target.value),placeholder:"Due date"})]}),(0,lt.jsxs)("div",{className:"col-span-1",children:[(0,lt.jsx)(M,{children:"RAG"}),(0,lt.jsx)("select",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:j.rag,onChange:le=>N(Me,"rag",le.target.value),children:Bc.map(le=>(0,lt.jsx)("option",{value:le,children:le},le))})]}),(0,lt.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>ia(Me),"aria-label":"Remove Milestone",children:(0,lt.jsx)(cl.Trash2,{className:"lt-5 h-5 text-red-500"})})]},Me))})]}),t==="Project Update"&&(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Project Update & Immediate Focus"}),(0,lt.jsx)("textarea",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:f,onChange:j=>y(j.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),t==="Project Concerns"&&(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Project Concerns"}),(0,lt.jsx)("textarea",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:u,onChange:j=>h(j.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),t==="Commercial Opportunities"&&(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Commercial Opportunities"}),(0,lt.jsx)("textarea",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:A,onChange:j=>G(j.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),t==="Commercial Risks"&&(0,lt.jsxs)("div",{children:[(0,lt.jsx)(M,{children:"Commercial Risk/Issue Details"}),(0,lt.jsx)("textarea",{className:"lt-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:C,onChange:j=>B(j.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such Xl reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,lt.jsx)("div",{className:"flex justify-end pt-4",children:(0,lt.jsx)(D,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Ec={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","At Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function xs({submissions:e,isLoading:t=!1}){let[a,o]=(0,yr.useState)(null);(0,yr.useEffect)(()=>{let l=i=>{i.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[a]);let r=l=>new Date(l).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(l=>l.id.toString()===a);return t?(0,lt.jsx)("div",{className:"container mx-auto p-4 max-lt-6xl",children:(0,lt.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,lt.jsxs)("div",{className:"animate-pulse",children:[(0,lt.jsx)("div",{className:"h-8 bg-gray-200 rounded lt-1/4 mb-6"}),(0,lt.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((l,i)=>(0,lt.jsx)("div",{className:"h-16 bg-gray-200 rounded"},i))})]})})}):e.length===0?(0,lt.jsx)("div",{className:"container mx-auto p-4 max-lt-6xl",children:(0,lt.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,lt.jsxs)("div",{className:"text-center py-12",children:[(0,lt.jsx)(cl.FileText,{className:"mx-auto h-12 lt-12 text-gray-400"}),(0,lt.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"it submissions found"}),(0,lt.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):(0,lt.jsxs)(lt.Fragment,{children:[(0,lt.jsx)("div",{className:"container mx-auto p-4 max-lt-6xl",children:(0,lt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,lt.jsxs)("div",{className:"mb-6",children:[(0,lt.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,lt.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,lt.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,lt.jsxs)("table",{className:"min-lt-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,lt.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,lt.jsxs)("tr",{children:[(0,lt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,lt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,lt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,lt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,lt.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,lt.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(l=>(0,lt.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,lt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,lt.jsxs)("div",{children:[(0,lt.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:l.projectName}),(0,lt.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,lt.jsx)(cl.Building,{className:"h-3 lt-3"}),l.clientName]})]})}),(0,lt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,lt.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,lt.jsx)(cl.User,{className:"h-3 lt-3"}),l.deliveryLead]})}),(0,lt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,lt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[l.milestones?.slice(0,3).map((i,c)=>(0,lt.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ec[i.rag]}`,children:i.rag},c)),l.milestones&&l.milestones.length>3&&(0,lt.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",l.milestones.length-3," more"]}),!l.milestones&&(0,lt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"it milestones"})]})}),(0,lt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,lt.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,lt.jsx)(cl.Calendar,{className:"h-3 lt-3"}),r(l.createdAt)]})}),(0,lt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,lt.jsx)(D,{variant:"ghost",size:"sm",onClick:()=>o(l.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},l.id))})]})})]})}),s&&(0,lt.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,lt.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-lt-4xl lt-full max-h-[90vh] overflow-y-auto",children:[(0,lt.jsxs)("div",{className:"flex items-center justify-between p-6 border-lt border-gray-200 dark:border-zinc-700",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:s.projectName}),(0,lt.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[s.clientName," \u2022"," ",r(s.createdAt)]})]}),(0,lt.jsx)("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,lt.jsx)(cl.lt,{className:"h-6 lt-6"})})]}),(0,lt.jsxs)("div",{className:"p-6 space-y-6",children:[(0,lt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,lt.jsxs)("div",{children:[(0,lt.jsxs)(M,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,lt.jsx)(cl.FileText,{className:"h-4 lt-4"}),"Project Summary"]}),(0,lt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsxs)(M,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,lt.jsx)(cl.Users,{className:"h-4 lt-4"}),"Project Update"]}),(0,lt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&(0,lt.jsxs)("div",{children:[(0,lt.jsxs)(M,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,lt.jsx)(cl.AlertTriangle,{className:"h-4 lt-4"}),"Project Concerns"]}),(0,lt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&(0,lt.jsxs)("div",{children:[(0,lt.jsxs)(M,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,lt.jsx)(cl.Briefcase,{className:"h-4 lt-4"}),"Commercial Opportunities"]}),(0,lt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&(0,lt.jsxs)("div",{className:"lg:col-span-2",children:[(0,lt.jsxs)(M,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,lt.jsx)(cl.ShieldAlert,{className:"h-4 lt-4"}),"Commercial Risks"]}),(0,lt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),(0,lt.jsxs)("div",{children:[(0,lt.jsxs)(M,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,lt.jsx)(cl.ListChecks,{className:"h-4 lt-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?(0,lt.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,lt.jsxs)("table",{className:"min-lt-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,lt.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,lt.jsxs)("tr",{children:[(0,lt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,lt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,lt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,lt.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,lt.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((l,i)=>(0,lt.jsxs)("tr",{children:[(0,lt.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:l.name}),(0,lt.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:l.commentary||"-"}),(0,lt.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:l.dueDate?r(l.dueDate):"-"}),(0,lt.jsx)("td",{className:"px-4 py-2",children:(0,lt.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ec[l.rag]}`,children:l.rag})})]},i))})]})}):(0,lt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"it milestones defined for this project."})]})]}),(0,lt.jsx)("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:(0,lt.jsx)(D,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}function Hc({submissions:e,onSubmit:t,isLoading:a=!1}){let[o,r]=(0,yr.useState)(!1);return(0,lt.jsx)("div",{className:"min-h-screen bg-gray-50 dark:bg-zinc-900",children:(0,lt.jsxs)("div",{className:"container mx-auto p-4 max-lt-6xl",children:[(0,lt.jsxs)("div",{className:"mb-8",children:[(0,lt.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Lead Management"}),(0,lt.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery lead reports and view your previous submissions"})]}),(0,lt.jsx)("div",{className:"mb-8",children:(0,lt.jsx)(vs,{onSubmit:t})}),(0,lt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,lt.jsxs)("button",{onClick:()=>r(!o),className:"lt-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,lt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,lt.jsx)(cl.List,{className:"h-5 lt-5 text-gray-500 dark:text-zinc-400"}),(0,lt.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,lt.jsxs)("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,lt.jsx)("div",{className:"flex items-center gap-2",children:o?(0,lt.jsx)(cl.ChevronUp,{className:"h-5 lt-5 text-gray-500 dark:text-zinc-400"}):(0,lt.jsx)(cl.ChevronDown,{className:"h-5 lt-5 text-gray-500 dark:text-zinc-400"})})]}),o&&(0,lt.jsx)("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:(0,lt.jsx)(xs,{submissions:e,isLoading: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,DeliveryLeadSubmission,DeliveryLeadSubmissionList,DeliveryLeadSubmissionWithList,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});
18
+ </svg>`,fu=`data:image/svg+xml;utf8,${encodeURIComponent(gu)}`,Dn=Lc.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,l=s==="user",i=l?r?.name||"You":r?.name||"AI Assistant",d=l?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,nt.jsxs)("div",{className:`flex items-start gap-3 text-primary text-vr ${l?"flex-row-reverse":""}`,children:["Forwarding to ",o?.data?.content]},a);case"text":return(0,nt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[l?(0,nt.jsxs)(qe,{children:[(0,nt.jsx)(Ke,{src:d,alt:i}),(0,nt.jsx)(Qe,{children:i.substring(0,2).toUpperCase()})]}):(0,nt.jsx)("img",{src:fu,alt:"AI Assistant",className:"w-10 h-10"}),(0,nt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,nt.jsx)("div",{className:"flex items-center gap-2",children:(0,nt.jsx)("span",{className:"font-medium",children:i})}),(0,nt.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,nt.jsxs)("div",{className:`flex items-start gap-3 ${l?"flex-row-reverse":""}`,children:[(0,nt.jsxs)(qe,{className:l?"":"ai-border",children:[(0,nt.jsx)(Ke,{src:d,alt:i}),(0,nt.jsx)(Qe,{children:i.substring(0,2).toUpperCase()})]}),(0,nt.jsxs)("div",{className:`grid gap-1.5 ${l?"text-right":""}`,children:[(0,nt.jsx)("div",{className:"flex items-center gap-2",children:(0,nt.jsx)("span",{className:"font-medium",children:i})}),(0,nt.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=uu[o.data.tool];return m?(0,nt.jsx)("div",{className:"mt-2",children:(0,nt.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,nt.jsx)("div",{className:"mt-2",children:"......"}))}}});function bu({messages:e,isLoading:t}){let a=(0,vr.useRef)(null);return(0,vr.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,nt.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,nt.jsxs)(Et,{className:"container flex-1 p-4",children:[(0,nt.jsxs)("div",{className:"space-y-6",children:[e.length===0&&(0,nt.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,nt.jsxs)("div",{className:"text-center max-w-md",children:[(0,nt.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome to Dexter"}),(0,nt.jsx)("p",{className:"text-zinc-400",children:"Ask me anything or direct your question to a business function directly using the toolbar below."})]})}),t&&(0,nt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,nt.jsxs)(qe,{className:"ai-border",children:[(0,nt.jsx)(Ke,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,nt.jsx)(Qe,{children:"AI"})]}),(0,nt.jsxs)("div",{className:"grid gap-1.5",children:[(0,nt.jsx)("div",{className:"flex items-center gap-2",children:(0,nt.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,nt.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,nt.jsxs)("div",{className:"flex space-x-2",children:[(0,nt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,nt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,nt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,nt.jsx)(Dn,{...o},r))]}),(0,nt.jsx)("div",{ref:a})]})})}var yu=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Bc=["On-Track","Off-Track","nt Risk","Complete"],zc=[{name:"Project Summary",icon:cl.FileText},{name:"Milestones",icon:cl.ListChecks},{name:"Project Update",icon:cl.Users},{name:"Project Concerns",icon:cl.AlertTriangle},{name:"Opportunities",icon:cl.Briefcase},{name:"Risks",icon:cl.ShieldAlert}];function hs({onSubmit:e,customerProjectPairs:t}){let[a,o]=(0,vr.useState)(zc[0].name),[r,s]=(0,vr.useState)(null),[l,i]=(0,vr.useState)(null),[d,m]=(0,vr.useState)(""),[c,p]=(0,vr.useState)(""),[g,f]=(0,vr.useState)(yu),[y,u]=(0,vr.useState)(""),[h,L]=(0,vr.useState)(""),[O,k]=(0,vr.useState)(""),[z,w]=(0,vr.useState)(""),J=Array.from(new Map((t??[]).map(C=>[C.customer.id,C.customer])).values()),na=(t??[]).filter(C=>C.customer.id===r).map(C=>C.project),Aa=(C,Ie,re)=>{f(la=>{let da=[...la];return Ie==="rag"&&!Bc.includes(re)?la:(da[C]={...da[C],[Ie]:re},da)})},To=()=>{f(C=>[...C,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},Do=C=>{f(Ie=>Ie.filter((re,la)=>la!==C))},Mo=async C=>{C.preventDefault();let Ie={customer:r,project:l,projectSummary:c,milestones:g.length>0?g:null,projectUpdate:y,projectConcerns:h||null,commercialOpportunities:O||null,commercialRisks:z||null};if(e)return e(Ie);try{let re=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ie)});if(!re.ok)throw new Error("Failed to submit delivery lead");let la=await re.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(re){return console.error("Error submitting delivery lead:",re),{success:!1,message:"Failed to submit delivery lead"}}};return(0,nt.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,nt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,nt.jsx)("div",{className:"mb-6 flex border-nt border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:zc.map(C=>(0,nt.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-nt-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
19
+ ${a===C.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
20
+ text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-vr justify-center`,onClick:()=>o(C.name),type:"button",children:[(0,nt.jsx)(C.icon,{className:"w-5 h-5"}),(0,nt.jsx)("span",{children:C.name})]},C.name))}),(0,nt.jsxs)("form",{onSubmit:Mo,className:"space-y-8",children:[a==="Project Summary"&&(0,nt.jsxs)("div",{className:"space-y-6",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Client Name"}),(0,nt.jsxs)(St,{value:r?.toString()??"",onValueChange:C=>s(Number(C)),children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:"Select client"})}),(0,nt.jsx)(pt,{children:J.map(C=>(0,nt.jsx)(ut,{value:C.id.toString(),children:C.name},C.id))})]})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Project Name"}),(0,nt.jsxs)(St,{value:l?.toString()??"",onValueChange:C=>i(Number(C)),disabled:!r,children:[(0,nt.jsx)(mt,{children:(0,nt.jsx)(Rt,{placeholder:r?"Select project":"Select client first"})}),(0,nt.jsx)(pt,{children:na.map(C=>(0,nt.jsx)(ut,{value:C.id.toString(),children:C.name},C.id))})]})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Project Summary"}),(0,nt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:c,onChange:C=>p(C.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),a==="Milestones"&&(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,nt.jsxs)(A,{className:"text-lg flex items-center gap-2",children:[(0,nt.jsx)(cl.ListChecks,{className:"w-5 h-5"}),"Milestones"]}),(0,nt.jsxs)(M,{type:"button",onClick:To,variant:"outline",className:"flex items-center gap-1",children:[(0,nt.jsx)(cl.PlusCircle,{className:"w-5 h-5"})," Add Milestone"]})]}),(0,nt.jsx)("div",{className:"space-y-4",children:g.map((C,Ie)=>(0,nt.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)(A,{children:"Milestone"}),(0,nt.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:C.name,onChange:re=>Aa(Ie,"name",re.target.value),required:!0,placeholder:"Milestone name"})]}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsx)(A,{children:"Commentary"}),(0,nt.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:C.commentary,onChange:re=>Aa(Ie,"commentary",re.target.value),placeholder:"Commentary"})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)(A,{children:"Due Date"}),(0,nt.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:C.dueDate,onChange:re=>Aa(Ie,"dueDate",re.target.value),placeholder:"Due date"})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)(A,{children:"RAG"}),(0,nt.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:C.rag,onChange:re=>Aa(Ie,"rag",re.target.value),children:Bc.map(re=>(0,nt.jsx)("option",{value:re,children:re},re))})]}),(0,nt.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>Do(Ie),"aria-label":"Remove Milestone",children:(0,nt.jsx)(cl.Trash2,{className:"w-5 h-5 text-red-500"})})]},Ie))})]}),a==="Project Update"&&(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Project Update & Immediate Focus"}),(0,nt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y,onChange:C=>u(C.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus or priority for the coming weeks]"})]}),a==="Project Concerns"&&(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Project Concerns"}),(0,nt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:h,onChange:C=>L(C.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation or support from the Cortex Reply senior leadership team]"})]}),a==="Opportunities"&&(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Commercial Opportunities"}),(0,nt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:O,onChange:C=>k(C.target.value),placeholder:"[List any potential commercial opportunities, active conversations, or discussion points where Cortex Reply could provide value or support. These may highlight areas for expansion or collaboration across our service offerings]"})]}),a==="Risks"&&(0,nt.jsxs)("div",{children:[(0,nt.jsx)(A,{children:"Commercial Risk/Issue Details"}),(0,nt.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:z,onChange:C=>w(C.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks to fixed-outcome milestones, changes in key client stakeholders, or challenges with project resourcing]"})]}),(0,nt.jsx)("div",{className:"flex justify-end pt-4",children:(0,nt.jsx)(M,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Ec={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","nt Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function Ns({submissions:e,isLoading:t=!1}){let[a,o]=(0,vr.useState)(null);(0,vr.useEffect)(()=>{let d=m=>{m.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[a]);let r=d=>new Date(d).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(d=>d.id.toString()===a);function l(d){return typeof d=="object"&&d!==null&&"projectName"in d?d.projectName:`Project #${d}`}function i(d){return typeof d=="object"&&d!==null&&"name"in d?d.name:`Customer #${d}`}return t?(0,nt.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,nt.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,nt.jsxs)("div",{className:"animate-pulse",children:[(0,nt.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,nt.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((d,m)=>(0,nt.jsx)("div",{className:"h-16 bg-gray-200 rounded"},m))})]})})}):e.length===0?(0,nt.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,nt.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,nt.jsxs)("div",{className:"text-center py-12",children:[(0,nt.jsx)(cl.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,nt.jsx)("h3",{className:"mt-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"Td submissions found"}),(0,nt.jsx)("p",{className:"mt-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,nt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,nt.jsxs)("div",{className:"mb-6",children:[(0,nt.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,nt.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 mt-1",children:"View all your submitted delivery lead reports"})]}),(0,nt.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,nt.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,nt.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 z-10",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{className:"px-6 py-3 text-left text-vr font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,nt.jsx)("th",{className:"px-6 py-3 text-left text-vr font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,nt.jsx)("th",{className:"px-6 py-3 text-left text-vr font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,nt.jsx)("th",{className:"px-6 py-3 text-left text-vr font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,nt.jsx)("th",{className:"px-6 py-3 text-left text-vr font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,nt.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(d=>(0,nt.jsxs)("tr",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,nt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,nt.jsxs)("div",{children:[(0,nt.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:l(d.project)}),(0,nt.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,nt.jsx)(cl.Building,{className:"h-3 w-3"}),i(d.customer)]})]})}),(0,nt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,nt.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,nt.jsx)(cl.User,{className:"h-3 w-3"}),typeof d.project=="object"&&d.project!==null&&"deliveryLead"in d.project&&typeof d.project.deliveryLead=="object"&&d.project.deliveryLead!==null&&"name"in d.project.deliveryLead?d.project.deliveryLead.name:"\u2014"]})}),(0,nt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[d.milestones?.slice(0,3).map((m,c)=>(0,nt.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-vr font-medium border ${Ec[m.rag]}`,children:m.rag},c)),d.milestones&&d.milestones.length>3&&(0,nt.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-vr font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",d.milestones.length-3," more"]}),!d.milestones&&(0,nt.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-vr font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"Td milestones"})]})}),(0,nt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap",children:(0,nt.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,nt.jsx)(cl.Calendar,{className:"h-3 w-3"}),r(d.createdAt)]})}),(0,nt.jsx)("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,nt.jsx)(M,{variant:"ghost",size:"sm",onClick:()=>o(d.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},d.id))})]})})]})}),s&&(0,nt.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 z-50",children:(0,nt.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,nt.jsxs)("div",{className:"flex items-center justify-between p-6 border-nt border-gray-200 dark:border-zinc-700",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:l(s.project)}),(0,nt.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[i(s.customer)," \u2022"," ",r(s.createdAt)]})]}),(0,nt.jsx)("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,nt.jsx)(cl.nt,{className:"h-6 w-6"})})]}),(0,nt.jsxs)("div",{className:"p-6 space-y-6",children:[(0,nt.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsxs)(A,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,nt.jsx)(cl.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,nt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsxs)(A,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,nt.jsx)(cl.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,nt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&(0,nt.jsxs)("div",{children:[(0,nt.jsxs)(A,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,nt.jsx)(cl.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,nt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&(0,nt.jsxs)("div",{children:[(0,nt.jsxs)(A,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,nt.jsx)(cl.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,nt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&(0,nt.jsxs)("div",{className:"lg:col-span-2",children:[(0,nt.jsxs)(A,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,nt.jsx)(cl.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,nt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsxs)(A,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,nt.jsx)(cl.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?(0,nt.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,nt.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,nt.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{className:"px-4 py-2 text-left text-vr font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,nt.jsx)("th",{className:"px-4 py-2 text-left text-vr font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,nt.jsx)("th",{className:"px-4 py-2 text-left text-vr font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,nt.jsx)("th",{className:"px-4 py-2 text-left text-vr font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,nt.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((d,m)=>(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("td",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:d.name}),(0,nt.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.commentary||"-"}),(0,nt.jsx)("td",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.dueDate?r(d.dueDate):"-"}),(0,nt.jsx)("td",{className:"px-4 py-2",children:(0,nt.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-vr font-medium border ${Ec[d.rag]}`,children:d.rag})})]},m))})]})}):(0,nt.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"Td milestones defined for this project."})]})]}),(0,nt.jsx)("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:(0,nt.jsx)(M,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}function Hc({submissions:e,onSubmit:t,isLoading:a=!1,customerProjectPairs:o}){let[r,s]=(0,vr.useState)(!1);return(0,nt.jsx)("div",{className:"min-h-screen bg-gray-50 dark:bg-zinc-900",children:(0,nt.jsxs)("div",{className:"container mx-auto p-4 max-w-6xl",children:[(0,nt.jsxs)("div",{className:"mb-8",children:[(0,nt.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Lead Management"}),(0,nt.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery lead reports and view your previous submissions"})]}),(0,nt.jsx)("div",{className:"mb-8",children:(0,nt.jsx)(hs,{onSubmit:t,customerProjectPairs:o})}),(0,nt.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,nt.jsxs)("button",{onClick:()=>s(!r),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-3",children:[(0,nt.jsx)(cl.List,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),(0,nt.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,nt.jsxs)("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,nt.jsx)("div",{className:"flex items-center gap-2",children:r?(0,nt.jsx)(cl.ChevronUp,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):(0,nt.jsx)(cl.ChevronDown,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),r&&(0,nt.jsx)("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:(0,nt.jsx)(Ns,{submissions:e,isLoading: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,DeliveryLeadSubmission,DeliveryLeadSubmissionList,DeliveryLeadSubmissionWithList,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});