cortex-react-components 1.56.4 → 1.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/{chunk-KIICLHKI.mjs → chunk-23BDC5JG.mjs} +1 -1
  2. package/dist/{chunk-43TBC2ZH.mjs → chunk-266LJXBZ.mjs} +1 -1
  3. package/dist/{chunk-KB6PO4K4.mjs → chunk-2IKC7MAP.mjs} +1 -1
  4. package/dist/{chunk-ILTBXZKO.mjs → chunk-2PGNGIFG.mjs} +1 -1
  5. package/dist/chunk-34BK5A3H.mjs +1 -0
  6. package/dist/{chunk-Z7P4QOKT.mjs → chunk-4TCLIMFP.mjs} +1 -1
  7. package/dist/{chunk-IUW2STPH.mjs → chunk-65KHY3N2.mjs} +1 -1
  8. package/dist/{chunk-3GYJDXNA.mjs → chunk-6YWAX7NS.mjs} +1 -1
  9. package/dist/{chunk-CSNKYRV5.mjs → chunk-7XB4Y3U2.mjs} +1 -1
  10. package/dist/{chunk-F7WTJLZQ.mjs → chunk-BGOXSZO2.mjs} +1 -1
  11. package/dist/{chunk-T4I5D4XZ.mjs → chunk-D44ZXHH4.mjs} +1 -1
  12. package/dist/{chunk-5RBQ77B3.mjs → chunk-D7A7EUEW.mjs} +1 -1
  13. package/dist/{chunk-ZR2EHFQ7.mjs → chunk-DCNOQTXQ.mjs} +1 -1
  14. package/dist/{chunk-7UKMCL5L.mjs → chunk-DQEHH4CP.mjs} +1 -1
  15. package/dist/{chunk-NV6DJCV4.mjs → chunk-E2GQ2UH4.mjs} +1 -1
  16. package/dist/{chunk-MG76MN3Q.mjs → chunk-F6DSJZ6G.mjs} +1 -1
  17. package/dist/{chunk-4RAPLTKA.mjs → chunk-FSYU6GF6.mjs} +1 -1
  18. package/dist/{chunk-XFNVJTZJ.mjs → chunk-GFBRIWHO.mjs} +1 -1
  19. package/dist/{chunk-7F7S63JI.mjs → chunk-GHWZZAOE.mjs} +1 -1
  20. package/dist/{chunk-SBAFXZVU.mjs → chunk-IO222G5L.mjs} +1 -1
  21. package/dist/{chunk-6DRKICKB.mjs → chunk-KGFHW5KZ.mjs} +1 -1
  22. package/dist/{chunk-LLJZRF3C.mjs → chunk-KLCZHZKQ.mjs} +1 -1
  23. package/dist/{chunk-ZNHNOPYF.mjs → chunk-NLU4IHO6.mjs} +1 -1
  24. package/dist/{chunk-Z2HNL6F6.mjs → chunk-NUKPO5ZV.mjs} +1 -1
  25. package/dist/{chunk-GYUMEOL2.mjs → chunk-OJPHYSRN.mjs} +1 -1
  26. package/dist/{chunk-56GKZ4U2.mjs → chunk-OPCNQTDN.mjs} +1 -1
  27. package/dist/{chunk-PFASTV4A.mjs → chunk-OPV35HTE.mjs} +1 -1
  28. package/dist/chunk-P5QTMPTP.mjs +1 -0
  29. package/dist/chunk-PDUZAE2B.mjs +4 -0
  30. package/dist/{chunk-OUKKI47A.mjs → chunk-PIM2JQYT.mjs} +1 -1
  31. package/dist/chunk-PKAWVXZZ.mjs +4 -0
  32. package/dist/{chunk-PY53YVFX.mjs → chunk-QMFZRG7O.mjs} +1 -1
  33. package/dist/{chunk-F55C2C5H.mjs → chunk-RQ23CZK5.mjs} +1 -1
  34. package/dist/{chunk-ZRUQIDWQ.mjs → chunk-RXNOA32M.mjs} +1 -1
  35. package/dist/{chunk-UEY6HPXN.mjs → chunk-SEYRH7IM.mjs} +1 -1
  36. package/dist/{chunk-V5N56VWG.mjs → chunk-TZE7RZAV.mjs} +1 -1
  37. package/dist/{chunk-V7EILEQH.mjs → chunk-WFGGJBQS.mjs} +1 -1
  38. package/dist/{chunk-XLWVEKEK.mjs → chunk-XDWPQKFP.mjs} +1 -1
  39. package/dist/{chunk-J7HJZ7IS.mjs → chunk-XZLY4ZDO.mjs} +2 -2
  40. package/dist/{chunk-Z6AOKSZU.mjs → chunk-YC53LS6B.mjs} +1 -1
  41. package/dist/{chunk-7ZKGCT6M.mjs → chunk-Z7GQVIJO.mjs} +1 -1
  42. package/dist/{chunk-NVFHMFFW.mjs → chunk-ZWII7FHR.mjs} +1 -1
  43. package/dist/components/Blocks/Banner.js +2 -1
  44. package/dist/components/Blocks/Banner.mjs +1 -1
  45. package/dist/components/Blocks/CallToAction.d.ts +1 -0
  46. package/dist/components/Blocks/CallToAction.js +2 -1
  47. package/dist/components/Blocks/CallToAction.mjs +2 -1
  48. package/dist/components/Blocks/CallToAction.stories.js +2 -1
  49. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  50. package/dist/components/Blocks/CollapsibleArea.js +2 -1
  51. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  52. package/dist/components/Blocks/CollapsibleArea.stories.js +2 -1
  53. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  54. package/dist/components/Blocks/Content.js +2 -1
  55. package/dist/components/Blocks/Content.mjs +1 -1
  56. package/dist/components/Blocks/Content.stories.js +2 -1
  57. package/dist/components/Blocks/Content.stories.mjs +1 -1
  58. package/dist/components/Blocks/FeaturesBlock.js +2 -1
  59. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  60. package/dist/components/Blocks/FeaturesBlock.stories.js +2 -1
  61. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  62. package/dist/components/Blocks/RelatedPosts.js +2 -1
  63. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  64. package/dist/components/Blocks/RenderBlocks.js +2 -1
  65. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  66. package/dist/components/Blocks/ReusableContentBlock.js +2 -1
  67. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  68. package/dist/components/Blocks/index.js +2 -1
  69. package/dist/components/Blocks/index.mjs +1 -1
  70. package/dist/components/CRM/DealDetails.mjs +1 -1
  71. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  72. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  73. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  74. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  75. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  76. package/dist/components/CRM/NewDealForm.mjs +1 -1
  77. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  78. package/dist/components/CRM/index.mjs +1 -1
  79. package/dist/components/Cards/ContentCard.js +2 -1
  80. package/dist/components/Cards/ContentCard.mjs +1 -1
  81. package/dist/components/Cards/ContentCard.stories.js +2 -1
  82. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.js +2 -1
  84. package/dist/components/Cards/FeatureCard.mjs +1 -1
  85. package/dist/components/Cards/FeatureCard.stories.js +2 -1
  86. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  87. package/dist/components/Cards/index.js +5 -4
  88. package/dist/components/Cards/index.mjs +1 -1
  89. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  90. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  91. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  92. package/dist/components/HeaderFooter/Header.mjs +1 -1
  93. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  94. package/dist/components/HeaderFooter/SectionHeading.js +2 -1
  95. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  96. package/dist/components/HeaderFooter/VideoHeader.js +1 -1
  97. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  98. package/dist/components/HeaderFooter/index.js +1 -1
  99. package/dist/components/HeaderFooter/index.mjs +1 -1
  100. package/dist/components/Heros/HighImpact/index.js +2 -1
  101. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  102. package/dist/components/Heros/LowImpact/index.js +2 -1
  103. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  104. package/dist/components/Heros/MediumImpact/index.js +2 -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.js +2 -1
  108. package/dist/components/Heros/RenderHero.mjs +1 -1
  109. package/dist/components/Heros/index.js +2 -1
  110. package/dist/components/Heros/index.mjs +1 -1
  111. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  112. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  113. package/dist/components/Holidays/index.mjs +1 -1
  114. package/dist/components/Layouts/FeatureGrid.stories.js +2 -1
  115. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  116. package/dist/components/Layouts/OutputHeaderFooter.js +3 -2
  117. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  118. package/dist/components/Layouts/Print.js +3 -2
  119. package/dist/components/Layouts/Print.mjs +1 -1
  120. package/dist/components/Layouts/Print.stories.js +2 -1
  121. package/dist/components/Layouts/Print.stories.mjs +1 -1
  122. package/dist/components/Layouts/SlideShow.js +4 -3
  123. package/dist/components/Layouts/SlideShow.mjs +1 -1
  124. package/dist/components/Layouts/SlideShow.stories.js +4 -3
  125. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  126. package/dist/components/Layouts/index.js +6 -5
  127. package/dist/components/Layouts/index.mjs +1 -1
  128. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  129. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  130. package/dist/components/Menus/SidebarRight.mjs +1 -1
  131. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  132. package/dist/components/Menus/index.mjs +1 -1
  133. package/dist/components/Payload/RichText/index.js +2 -1
  134. package/dist/components/Payload/RichText/index.mjs +1 -1
  135. package/dist/components/Payload/RichText/serialize.js +2 -1
  136. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  137. package/dist/components/Payload/RichText.stories.js +2 -1
  138. package/dist/components/Payload/RichText.stories.mjs +1 -1
  139. package/dist/components/Payload/index.js +2 -1
  140. package/dist/components/Payload/index.mjs +1 -1
  141. package/dist/components/index.js +8 -7
  142. package/dist/components/index.mjs +1 -1
  143. package/dist/components/ui/index.mjs +1 -1
  144. package/dist/components/ui/sidebar.mjs +1 -1
  145. package/dist/globals.css +1 -1
  146. package/dist/hooks/index.mjs +1 -1
  147. package/dist/index.js +13 -13
  148. package/dist/index.mjs +1 -1
  149. package/dist/metafile-cjs.json +1 -1
  150. package/dist/metafile-esm.json +1 -1
  151. package/dist/pages/Blog.js +2 -1
  152. package/dist/pages/Blog.mjs +1 -1
  153. package/dist/pages/Blog.stories.js +2 -1
  154. package/dist/pages/Blog.stories.mjs +1 -1
  155. package/dist/pages/Documentation.mjs +1 -1
  156. package/dist/pages/Documentation.stories.mjs +1 -1
  157. package/dist/pages/IndexPage.mjs +1 -1
  158. package/dist/pages/IndexPage.stories.mjs +1 -1
  159. package/dist/pages/Intranet.mjs +1 -1
  160. package/dist/pages/Intranet.stories.mjs +1 -1
  161. package/dist/pages/LandingPage.js +3 -3
  162. package/dist/pages/LandingPage.mjs +1 -1
  163. package/dist/pages/LandingPage.stories.js +3 -3
  164. package/dist/pages/LandingPage.stories.mjs +1 -1
  165. package/dist/pages/Page.js +2 -1
  166. package/dist/pages/Page.mjs +1 -1
  167. package/dist/pages/Page.stories.js +222 -221
  168. package/dist/pages/Page.stories.mjs +1 -1
  169. package/dist/pages/Printable.stories.js +6 -5
  170. package/dist/pages/Printable.stories.mjs +1 -1
  171. package/dist/pages/Publish.js +6 -5
  172. package/dist/pages/Publish.mjs +1 -1
  173. package/dist/pages/Publish.stories.js +6 -5
  174. package/dist/pages/Publish.stories.mjs +1 -1
  175. package/dist/pages/Website.js +2 -1
  176. package/dist/pages/Website.mjs +1 -1
  177. package/dist/pages/Website.stories.js +2 -1
  178. package/dist/pages/Website.stories.mjs +1 -1
  179. package/dist/sections/AboutSection.js +2 -1
  180. package/dist/sections/AboutSection.mjs +1 -1
  181. package/dist/sections/AboutSection.stories.js +2 -1
  182. package/dist/sections/AboutSection.stories.mjs +1 -1
  183. package/dist/sections/BlogDetail.js +2 -1
  184. package/dist/sections/BlogDetail.mjs +1 -1
  185. package/dist/sections/BlogDetail.stories.js +2 -1
  186. package/dist/sections/BlogDetail.stories.mjs +1 -1
  187. package/dist/sections/BlogList.js +4 -3
  188. package/dist/sections/BlogList.mjs +1 -1
  189. package/dist/sections/BlogList.stories.js +4 -3
  190. package/dist/sections/BlogList.stories.mjs +1 -1
  191. package/dist/sections/BlogListSection.mjs +1 -1
  192. package/dist/sections/BlogListSection.stories.mjs +1 -1
  193. package/dist/sections/ContactSection.js +1 -1
  194. package/dist/sections/ContactSection.mjs +1 -1
  195. package/dist/sections/ContactSection.stories.js +1 -1
  196. package/dist/sections/ContactSection.stories.mjs +1 -1
  197. package/dist/sections/ImageSection.stories.js +2 -1
  198. package/dist/sections/ImageSection.stories.mjs +1 -1
  199. package/dist/sections/PageSections.js +3 -3
  200. package/dist/sections/PageSections.mjs +1 -1
  201. package/dist/sections/PageSections.stories.js +3 -3
  202. package/dist/sections/PageSections.stories.mjs +1 -1
  203. package/dist/sections/PricingSection.js +2 -1
  204. package/dist/sections/PricingSection.mjs +1 -1
  205. package/dist/sections/PricingSection.stories.js +2 -1
  206. package/dist/sections/PricingSection.stories.mjs +1 -1
  207. package/dist/sections/ServiceDetailList.js +2 -1
  208. package/dist/sections/ServiceDetailList.mjs +1 -1
  209. package/dist/sections/ServiceDetailSection.js +2 -1
  210. package/dist/sections/ServiceDetailSection.mjs +1 -1
  211. package/dist/sections/ServiceDetailSection.stories.js +2 -1
  212. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  213. package/dist/sections/ServiceSection.js +2 -1
  214. package/dist/sections/ServiceSection.mjs +1 -1
  215. package/dist/sections/ServiceSection.stories.js +2 -1
  216. package/dist/sections/ServiceSection.stories.mjs +1 -1
  217. package/dist/sections/form/index.mjs +1 -1
  218. package/dist/sections/index.js +3 -3
  219. package/dist/sections/index.mjs +1 -1
  220. package/package.json +1 -1
  221. package/dist/chunk-3LUYXQWZ.mjs +0 -1
  222. package/dist/chunk-6IVK75UA.mjs +0 -1
  223. package/dist/chunk-HF7UYIME.mjs +0 -1
  224. package/dist/chunk-RZWTH6SF.mjs +0 -4
@@ -1,13 +1,14 @@
1
1
  "use client";
2
2
  "use strict";
3
+ 'use server'
3
4
  'use strict'
4
5
 
5
- "use strict";var Ud=Object.create;var Wo=Object.defineProperty;var jd=Object.getOwnPropertyDescriptor;var Xd=Object.getOwnPropertyNames;var Yd=Object.getPrototypeOf,qd=Object.prototype.hasOwnProperty;var Kd=(e,t)=>{for(var a in t)Wo(e,a,{get:t[a],enumerable:!0})},Yi=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Xd(t))!qd.call(e,r)&&r!==a&&Wo(e,r,{get:()=>t[r],enumerable:!(o=jd(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?Ud(Yd(e)):{},Yi(t||!e||!e.__esModule?Wo(a,"default",{value:e,enumerable:!0}):a,e)),Jd=e=>Yi(Wo({},"__esModule",{value:!0}),e);var rp={};Kd(rp,{Alert:()=>js,AlertDescription:()=>Ys,AlertTitle:()=>Xs,ApproveLeave:()=>Bi,Avatar:()=>Lt,AvatarFallback:()=>Et,AvatarImage:()=>Bt,Badge:()=>tt,BannerBlock:()=>Qs,BrandLogo:()=>ua,Breadcrumb:()=>Yr,BreadcrumbEllipsis:()=>es,BreadcrumbItem:()=>Kr,BreadcrumbLink:()=>Jr,BreadcrumbList:()=>qr,BreadcrumbPage:()=>Qr,BreadcrumbSeparator:()=>Zr,Breadcrumbs:()=>Wm,Button:()=>T,CMSLink:()=>wt,CRMKanbanBoard:()=>op,Calendar:()=>To,CalendarView:()=>Oi,CallToActionBlock:()=>Ra,Card:()=>Lo,Categories:()=>Hm,Checkbox:()=>ft,CodeBlock:()=>ai,Collapsible:()=>Tt,CollapsibleContent:()=>qt,CollapsibleTrigger:()=>Yt,CollectionArchive:()=>xm,Command:()=>dr,CommandDialog:()=>Yn,CommandEmpty:()=>_s,CommandGroup:()=>$s,CommandInput:()=>Os,CommandItem:()=>Ws,CommandList:()=>Gs,CommandSeparator:()=>Vs,CommandShortcut:()=>Us,Container:()=>xi,ContentBlock:()=>Ao,ContentCard:()=>sm,CopyButton:()=>ei,CustomLink:()=>je,CustomerCard:()=>Nl,DealCard:()=>_i,DealDetails:()=>Gi,Dialog:()=>et,DialogClose:()=>nr,DialogContent:()=>Ue,DialogDescription:()=>Fs,DialogFooter:()=>zs,DialogHeader:()=>pt,DialogOverlay:()=>lr,DialogPortal:()=>Hs,DialogTitle:()=>ut,DialogTrigger:()=>ir,DropdownMenu:()=>sn,DropdownMenuCheckboxItem:()=>ss,DropdownMenuContent:()=>os,DropdownMenuGroup:()=>ln,DropdownMenuItem:()=>rs,DropdownMenuLabel:()=>ns,DropdownMenuPortal:()=>dn,DropdownMenuRadioGroup:()=>mn,DropdownMenuRadioItem:()=>is,DropdownMenuSeparator:()=>ls,DropdownMenuShortcut:()=>ds,DropdownMenuSub:()=>cn,DropdownMenuSubContent:()=>as,DropdownMenuSubTrigger:()=>ts,DropdownMenuTrigger:()=>nn,DynamicIcon:()=>Ce,EventCard:()=>Cl,FeatureCard:()=>hr,FeatureGrid:()=>Al,FeaturesBlock:()=>ka,Filter:()=>zm,FlowPrintable:()=>od,Footer:()=>Jm,Header:()=>Qm,HeaderDesktop:()=>Ti,HeaderMobile:()=>Mi,HeadingImage:()=>bm,Hero:()=>rm,HighImpactHero:()=>wi,HolidayGrid:()=>Fi,HolidayTracker:()=>tp,HoverCard:()=>Vn,HoverCardContent:()=>Es,HoverCardTrigger:()=>Wn,Image:()=>Tl,ImageBlock:()=>ni,InfoTile:()=>lm,Input:()=>He,Insight:()=>nm,KanbanColumn:()=>Wi,Label:()=>ee,Logo:()=>wm,LowImpactHero:()=>Pi,MOTD:()=>cm,Mask:()=>Om,Media:()=>zt,MediaBlock:()=>Ft,MediumImpactHero:()=>Ci,NewCustomerForm:()=>$i,NewDealForm:()=>Vi,NewsGrid:()=>td,OrgChart:()=>um,PagePrintable:()=>rd,PageRange:()=>Pm,PageShape:()=>Aa,Pagination:()=>Em,PayloadPagination:()=>Rm,Popover:()=>Po,PopoverAnchor:()=>Fn,PopoverContent:()=>Xa,PopoverTrigger:()=>Ro,PostHero:()=>_m,PricingCard:()=>om,Printable:()=>Tm,ProjectCard:()=>kl,ProjectTeam:()=>Lm,ProposalSummary:()=>fm,RelatedContent:()=>Bm,RelatedPosts:()=>hm,RenderBlocks:()=>Ma,RenderHero:()=>Vm,RequestLeave:()=>zi,ReusableContentBlock:()=>di,RichText:()=>te,ScrollArea:()=>oa,ScrollBar:()=>sr,SectionHero:()=>Si,Select:()=>Ca,SelectContent:()=>na,SelectGroup:()=>jc,SelectItem:()=>la,SelectLabel:()=>el,SelectScrollDownButton:()=>Js,SelectScrollUpButton:()=>Ks,SelectSeparator:()=>tl,SelectTrigger:()=>ia,SelectValue:()=>Pa,Separator:()=>mo,ServiceCard:()=>am,Sheet:()=>jo,SheetClose:()=>hn,SheetContent:()=>uo,SheetDescription:()=>gs,SheetFooter:()=>us,SheetHeader:()=>ps,SheetOverlay:()=>Xo,SheetPortal:()=>ms,SheetTitle:()=>fs,SheetTrigger:()=>vn,Sidebar:()=>ba,SidebarContent:()=>Jt,SidebarFooter:()=>va,SidebarGroup:()=>Je,SidebarGroupAction:()=>Ns,SidebarGroupContent:()=>ct,SidebarGroupLabel:()=>Mt,SidebarHeader:()=>ya,SidebarInput:()=>ws,SidebarInset:()=>xs,SidebarLeft:()=>Dm,SidebarMenu:()=>ze,SidebarMenuAction:()=>bo,SidebarMenuBadge:()=>Cs,SidebarMenuButton:()=>Qe,SidebarMenuItem:()=>Ne,SidebarMenuSkeleton:()=>Ps,SidebarMenuSub:()=>Qt,SidebarMenuSubButton:()=>ea,SidebarMenuSubItem:()=>Zt,SidebarProvider:()=>ys,SidebarRail:()=>hs,SidebarRight:()=>Am,SidebarSeparator:()=>go,SidebarTrigger:()=>vs,SimpleHeader:()=>jm,Skeleton:()=>se,SlideShow:()=>Ql,TextAndImages:()=>ad,Textarea:()=>da,Theme:()=>Rr,ThemeProvider:()=>Fm,Toast:()=>ho,ToastAction:()=>ks,ToastClose:()=>xo,ToastDescription:()=>No,ToastProvider:()=>or,ToastTitle:()=>wo,ToastViewport:()=>vo,Toaster:()=>An,Toggle:()=>Ds,ToggleGroup:()=>Ms,ToggleGroupItem:()=>Is,Tooltip:()=>Jo,TooltipContent:()=>fo,TooltipProvider:()=>Ko,TooltipTrigger:()=>Qo,VideoHeader:()=>Ym,WhyUs:()=>gm,badgeVariants:()=>qs,buttonVariants:()=>Kt,toggleVariants:()=>Co,useIsMobile:()=>qo,useSidebar:()=>Ua,useToast:()=>ar});module.exports=Jd(rp);var _a=h(require("react")),Uo=require("@radix-ui/react-icons"),rn=require("@radix-ui/react-slot");var on=require("clsx");var jr="-",Qd=e=>{let t=ec(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(jr);return n[0]===""&&n.length!==1&&n.shift(),Ji(n,t)||Zd(i)},getConflictingClassGroupIds:(i,n)=>{let c=a[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},Ji=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Ji(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(jr);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},qi=/^\[(.+)\]$/,Zd=e=>{if(qi.test(e)){let t=qi.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},ec=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return ac(Object.entries(e.classGroups),a).forEach(([s,i])=>{Ur(i,o,s,t)}),o},Ur=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Ki(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(tc(r)){Ur(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,i])=>{Ur(i,Ki(t,s),a,o)})})},Ki=(e,t)=>{let a=e;return t.split(jr).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},tc=e=>e.isThemeGetter,ac=(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(([i,n])=>[t+i,n])):s);return[a,r]}):e,oc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,i)=>{a.set(s,i),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let i=a.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){a.has(s)?a.set(s,i):r(s,i)}}},Qi="!",rc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,i=n=>{let c=[],u=0,d=0,m;for(let v=0;v<n.length;v++){let P=n[v];if(u===0){if(P===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(P==="/"){m=v;continue}}P==="["?u++:P==="]"&&u--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Qi),b=g?f.substring(1):f,p=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:p}};return a?n=>a({className:n,parseClassName:i}):i},sc=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},ic=e=>({cache:oc(e.cacheSize),parseClassName:rc(e),...Qd(e)}),nc=/\s+/,lc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(nc),n="";for(let c=i.length-1;c>=0;c-=1){let u=i[c],{modifiers:d,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:g}=a(u),b=!!g,p=o(b?f.substring(0,g):f);if(!p){if(!b){n=u+(n.length>0?" "+n:n);continue}if(p=o(f),!p){n=u+(n.length>0?" "+n:n);continue}b=!1}let v=sc(d).join(":"),P=m?v+Qi:v,G=P+p;if(s.includes(G))continue;s.push(G);let Q=r(p,b);for(let me=0;me<Q.length;++me){let Ee=Q[me];s.push(P+Ee)}n=u+(n.length>0?" "+n:n)}return n};function dc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Zi(t))&&(o&&(o+=" "),o+=a);return o}var Zi=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Zi(e[o]))&&(a&&(a+=" "),a+=t);return a};function cc(e,...t){let a,o,r,s=i;function i(c){let u=t.reduce((d,m)=>m(d),e());return a=ic(u),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let u=o(c);if(u)return u;let d=lc(c,a);return r(c,d),d}return function(){return s(dc.apply(null,arguments))}}var Z=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},en=/^\[(?:([a-z-]+):)?(.+)\]$/i,mc=/^\d+\/\d+$/,pc=new Set(["px","full","screen"]),uc=/^(\d+(\.\d+)?)?(xs|sm|Yo|lg|xl)$/,fc=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,bc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,kt=e=>Oa(e)||pc.has(e)||mc.test(e),jt=e=>Ga(e,"length",Rc),Oa=e=>!!e&&!Number.isNaN(Number(e)),Wr=e=>Ga(e,"number",Oa),lo=e=>!!e&&Number.isInteger(Number(e)),vc=e=>e.endsWith("%")&&Oa(e.slice(0,-1)),M=e=>en.test(e),Xt=e=>uc.test(e),hc=new Set(["length","size","percentage"]),xc=e=>Ga(e,hc,tn),wc=e=>Ga(e,"position",tn),Nc=new Set(["image","url"]),Cc=e=>Ga(e,Nc,kc),Pc=e=>Ga(e,"",Sc),co=()=>!0,Ga=(e,t,a)=>{let o=en.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Rc=e=>fc.test(e)&&!gc.test(e),tn=()=>!1,Sc=e=>bc.test(e),kc=e=>yc.test(e);var Tc=()=>{let e=Z("colors"),t=Z("spacing"),a=Z("blur"),o=Z("brightness"),r=Z("borderColor"),s=Z("borderRadius"),i=Z("borderSpacing"),n=Z("borderWidth"),c=Z("contrast"),u=Z("grayscale"),d=Z("hueRotate"),m=Z("invert"),f=Z("gap"),g=Z("gradientColorStops"),b=Z("gradientColorStopPositions"),p=Z("inset"),v=Z("margin"),P=Z("opacity"),G=Z("padding"),Q=Z("saturate"),me=Z("scale"),Ee=Z("sepia"),xt=Z("skew"),k=Z("space"),z=Z("translate"),lt=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",M,t],U=()=>[M,t],_o=()=>["",kt,jt],$o=()=>["auto",Oa,M],Ui=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Vo=()=>["solid","dashed","dotted","double","none"],ji=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Vr=()=>["start","end","center","between","around","evenly","stretch"],no=()=>["","0",M],Xi=()=>["auto","avoid","all","avoid-page","page","left","right","column"],St=()=>[Oa,M];return{cacheSize:500,separator:":",theme:{colors:[co],spacing:[kt,jt],blur:["none","",Xt,M],brightness:St(),borderColor:[e],borderRadius:["none","","full",Xt,M],borderSpacing:U(),borderWidth:_o(),contrast:St(),grayscale:no(),hueRotate:St(),invert:no(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[vc,jt],inset:_(),margin:_(),opacity:St(),padding:U(),saturate:St(),scale:St(),sepia:no(),skew:St(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Xt]}],"break-after":[{"break-after":Xi()}],"break-before":[{"break-before":Xi()}],"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:[...Ui(),M]}],overflow:[{overflow:w()}],"overflow-Ke":[{"overflow-Ke":w()}],"overflow-Ke":[{"overflow-Ke":w()}],overscroll:[{overscroll:lt()}],"overscroll-Ke":[{"overscroll-Ke":lt()}],"overscroll-Ke":[{"overscroll-Ke":lt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-Ke":[{"inset-Ke":[p]}],"inset-Ke":[{"inset-Ke":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lo,M]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:no()}],shrink:[{shrink:no()}],order:[{order:["first","last","none",lo,M]}],"grid-cols":[{"grid-cols":[co]}],"col-start-end":[{col:["auto",{span:["full",lo,M]},M]}],"col-start":[{"col-start":$o()}],"col-end":[{"col-end":$o()}],"grid-rows":[{"grid-rows":[co]}],"row-start-end":[{row:["auto",{span:[lo,M]},M]}],"row-start":[{"row-start":$o()}],"row-end":[{"row-end":$o()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","Ke",M]}],"auto-rows":[{"auto-rows":["auto","min","max","Ke",M]}],gap:[{gap:[f]}],"gap-Ke":[{"gap-Ke":[f]}],"gap-Ke":[{"gap-Ke":[f]}],"justify-content":[{justify:["normal",...Vr()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Vr(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Vr(),"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]}],ps:[{ps:[G]}],pe:[{pe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],Ke:[{Ke:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-Ke":[{"space-Ke":[k]}],"space-Ke-reverse":["space-Ke-reverse"],"space-Ke":[{"space-Ke":[k]}],"space-Ke-reverse":["space-Ke-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[Xt]},Xt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xt,jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Wr]}],"font-family":[{font:[co]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",Oa,Wr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",kt,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Vo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",kt,jt]}],"underline-offset":[{"underline-offset":["auto",kt,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ui(),wc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ke","Ke","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xc]}],"bg-image":[{bg:["none",{"gradient-$l":["t","tr","r","br","b","Ke","l","tl"]},Cc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-$l-pos":[{$l:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-$l":[{$l:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-Ke":[{"rounded-Ke":[s]}],"border-w":[{border:[n]}],"border-w-Ke":[{"border-Ke":[n]}],"border-w-Ke":[{"border-Ke":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Vo(),"hidden"]}],"divide-Ke":[{"divide-Ke":[n]}],"divide-Ke-reverse":["divide-Ke-reverse"],"divide-Ke":[{"divide-Ke":[n]}],"divide-Ke-reverse":["divide-Ke-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Vo()}],"border-color":[{border:[r]}],"border-color-Ke":[{"border-Ke":[r]}],"border-color-Ke":[{"border-Ke":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Vo()]}],"outline-offset":[{"outline-offset":[kt,M]}],"outline-w":[{outline:[kt,jt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:_o()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[kt,jt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xt,Pc]}],"shadow-color":[{shadow:[co]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...ji(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ji()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Xt,M]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[Q]}],sepia:[{sepia:[Ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[Q]}],"backdrop-sepia":[{"backdrop-sepia":[Ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Ke":[{"border-spacing-Ke":[i]}],"border-spacing-Ke":[{"border-spacing-Ke":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:St()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:St()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[me]}],"scale-Ke":[{"scale-Ke":[me]}],"scale-Ke":[{"scale-Ke":[me]}],rotate:[{rotate:[lo,M]}],"translate-Ke":[{"translate-Ke":[z]}],"translate-Ke":[{"translate-Ke":[z]}],"skew-Ke":[{"skew-Ke":[xt]}],"skew-Ke":[{"skew-Ke":[xt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","Ke-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ke","Ke",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-Ke":[{"scroll-Ke":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ke","Ke","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ke":[{"touch-pan":["Ke","left","right"]}],"touch-Ke":[{"touch-pan":["Ke","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[kt,jt,Wr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ke","overflow-Ke"],overscroll:["overscroll-Ke","overscroll-Ke"],inset:["inset-Ke","inset-Ke","start","end","top","right","bottom","left"],"inset-Ke":["right","left"],"inset-Ke":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ke","gap-Ke"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","Ke","mb","ml"],mx:["Ke","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-Ke"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-Ke"],"rounded-l":["rounded-tl","rounded-Ke"],"border-spacing":["border-spacing-Ke","border-spacing-Ke"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Ke":["border-w-r","border-w-l"],"border-w-Ke":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ke":["border-color-r","border-color-l"],"border-color-Ke":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-Ke","scroll-mb","scroll-ml"],"scroll-mx":["scroll-Ke","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ke","touch-Ke","touch-pz"],"touch-Ke":["touch"],"touch-Ke":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var an=cc(Tc);function l(...e){return an((0,on.clsx)(e))}function Xr(e){let t=0,a=(s,i)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,o=e.layout.flatMap(s=>{let i=[];return"title"in s&&s.title&&i.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,u,d,m,f;if(n.title&&i.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(u=(c=n.richText)==null?void 0:c.root)!=null&&u.children&&((m=(d=n.richText)==null?void 0:d.root)==null?void 0:m.children.length)===1){let g=n.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of g)b.children[0]&&i.push({text:(f=b.children[0].text)!=null?f:"",id:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),i}),r=Dc(e.layout);return{tableOfContents:o,contentWithIds:r}}function Dc(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).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Ke=require("react/jsx-runtime"),Yr=_a.forwardRef(({...e},t)=>(0,Ke.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));Yr.displayName="Breadcrumb";var qr=_a.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("Ke",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));qr.displayName="BreadcrumbList";var Kr=_a.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));Kr.displayName="BreadcrumbItem";var Jr=_a.forwardRef(({asChild:e,className:t,...a},o)=>(0,Ke.jsx)(e?rn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));Jr.displayName="BreadcrumbLink";var Qr=_a.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));Qr.displayName="BreadcrumbPage";var Zr=({children:e,className:t,...a})=>(0,Ke.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Ke.jsx)(Uo.ChevronRightIcon,{})});Zr.displayName="BreadcrumbSeparator";var es=({className:e,...t})=>(0,Ke.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Ke.jsx)(Uo.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"More"})]});es.displayName="BreadcrumbElipssis";var $a=h(require("@radix-ui/react-collapsible")),Tt=$a.Root,Yt=$a.CollapsibleTrigger,qt=$a.CollapsibleContent;var Dt=h(require("react")),L=h(require("@radix-ui/react-dropdown-menu"));var sn=L.Root,nn=L.Trigger,ln=L.Group,dn=L.Portal,cn=L.Sub,mn=L.RadioGroup,ts=Dt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Ke.jsxs)(L.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Ke.jsx)(Uo.ChevronRightIcon,{className:"ml-auto"})]}));ts.displayName=L.SubTrigger.displayName;var as=Dt.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(L.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-Yo 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}));as.displayName=L.SubContent.displayName;var os=Dt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(L.Portal,{children:(0,Ke.jsx)(L.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-Yo border bg-popover p-1 text-popover-foreground shadow-Yo","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})}));os.displayName=L.Content.displayName;var rs=Dt.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(L.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));rs.displayName=L.Item.displayName;var ss=Dt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Ke.jsxs)(L.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ke.jsx)(L.ItemIndicator,{children:(0,Ke.jsx)(Uo.CheckIcon,{className:"h-4 w-4"})})}),t]}));ss.displayName=L.CheckboxItem.displayName;var is=Dt.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(L.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ke.jsx)(L.ItemIndicator,{children:(0,Ke.jsx)(Uo.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));is.displayName=L.RadioItem.displayName;var ns=Dt.forwardRef(({className:e,inset:t,...a},o)=>(0,Ke.jsx)(L.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ns.displayName=L.Label.displayName;var ls=Dt.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(L.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));ls.displayName=L.Separator.displayName;var ds=({className:e,...t})=>(0,Ke.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});ds.displayName="DropdownMenuShortcut";var pn=h(require("react"));var He=pn.forwardRef(({className:e,type:t,...a},o)=>(0,Ke.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-Yo border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));He.displayName="Input";var fn=h(require("react")),cs=h(require("@radix-ui/react-separator"));var mo=fn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Ke.jsx)(cs.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));mo.displayName=cs.Root.displayName;var po=h(require("react")),re=h(require("@radix-ui/react-dialog")),yn=require("class-variance-authority");var jo=re.Root,vn=re.Trigger,hn=re.Close,ms=re.Portal,Xo=po.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(re.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Xo.displayName=re.Overlay.displayName;var Mc=(0,yn.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-Ke-0 top-0 border-b data-[state=closed]:slide-out-$l-top data-[state=open]:slide-in-from-top",bottom:"inset-Ke-0 bottom-0 border-t data-[state=closed]:slide-out-$l-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Ke-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-$l-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-Ke-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-$l-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),uo=po.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Ke.jsxs)(ms,{children:[(0,Ke.jsx)(Xo,{}),(0,Ke.jsxs)(re.Content,{ref:r,className:l(Mc({side:e}),t),...o,children:[(0,Ke.jsxs)(re.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Ke.jsx)(Uo.Cross2Icon,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));uo.displayName=re.Content.displayName;var ps=({className:e,...t})=>(0,Ke.jsx)("div",{className:l("flex flex-col space-Ke-2 text-center sm:text-left",e),...t});ps.displayName="SheetHeader";var us=({className:e,...t})=>(0,Ke.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ke-2",e),...t});us.displayName="SheetFooter";var fs=po.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(re.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));fs.displayName=re.Title.displayName;var gs=po.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(re.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));gs.displayName=re.Description.displayName;var B=h(require("react")),kn=require("lucide-react");var Yo=require("react"),qo=(e=768)=>{let[t,a]=(0,Yo.useState)(!1);return(0,Yo.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Nn=h(require("react")),Kt=(0,yn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Nn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Ke.jsx)(e?rn.Slot:"button",{className:l(Kt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function se({className:e,...t}){return(0,Ke.jsx)("div",{className:l("animate-pulse rounded-Yo bg-primary/10",e),...t})}var Rn=h(require("react")),dt=h(require("@radix-ui/react-tooltip"));var Ko=dt.Provider,Jo=dt.Root,Qo=dt.Trigger,fo=Rn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Ke.jsx)(dt.Portal,{children:(0,Ke.jsx)(dt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-Yo 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})}));fo.displayName=dt.Content.displayName;var Ic="sidebar:state",Ac=60*60*24*7,Lc="16rem",Bc="18rem",Ec="3rem",Hc="b",Tn=B.createContext(null);function Ua(){let e=B.useContext(Tn);if(!e)throw new Error("useSidebar must Ke used within a SidebarProvider.");return e}var ys=B.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...i},n)=>{let c=qo(),[u,d]=B.useState(!1),[m,f]=B.useState(e),g=t!=null?t:m,b=B.useCallback(G=>{if(a)return a==null?void 0:a(typeof G=="function"?G(g):G);f(G),document.cookie=`${Ic}=${g}; path=/; max-age=${Ac}`},[a,g]),p=B.useCallback(()=>c?d(G=>!G):b(G=>!G),[c,b,d]);B.useEffect(()=>{let G=Q=>{Q.key===Hc&&(Q.metaKey||Q.ctrlKey)&&(Q.preventDefault(),p())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[p]);let v=g?"expanded":"collapsed",P=B.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:u,setOpenMobile:d,toggleSidebar:p}),[v,g,b,c,u,d,p]);return(0,Ke.jsx)(Tn.Provider,{value:P,children:(0,Ke.jsx)(Ko,{delayDuration:0,children:(0,Ke.jsx)("div",{style:{"--sidebar-width":Lc,"--sidebar-width-icon":Ec,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...i,children:s})})})});ys.displayName="SidebarProvider";var ba=B.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},i)=>{let{isMobile:n,state:c,openMobile:u,setOpenMobile:d}=Ua();return a==="none"?(0,Ke.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:i,...s,children:r}):n?(0,Ke.jsx)(jo,{open:u,onOpenChange:d,...s,children:(0,Ke.jsx)(uo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Bc},side:e,children:(0,Ke.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Ke.jsxs)("div",{ref:i,className:"group peer hidden Yo:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Ke.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Ke.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear Yo: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,Ke.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})})]})});ba.displayName="Sidebar";var vs=B.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Ua();return(0,Ke.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Ke.jsx)(kn.PanelLeft,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});vs.displayName="SidebarTrigger";var hs=B.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Ua();return(0,Ke.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-Ke-0 z-20 hidden w-4 -translate-Ke-1/2 transition-all ease-linear after:absolute after:inset-Ke-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-Ke-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})});hs.displayName="SidebarRail";var xs=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-Ke-auto relative max-h-full","Yo:peer-data-[variant=inset]:m-2 Yo:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 Yo:peer-data-[variant=inset]:ml-0 Yo:peer-data-[variant=inset]:rounded-xl Yo:peer-data-[variant=inset]:shadow",e),...t}));xs.displayName="SidebarInset";var ws=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(He,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));ws.displayName="SidebarInput";var ya=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ya.displayName="SidebarHeader";var va=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));va.displayName="SidebarFooter";var go=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(mo,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));go.displayName="SidebarSeparator";var Jt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Jt.displayName="SidebarContent";var Je=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));Je.displayName="SidebarGroup";var Mt=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ke.jsx)(t?rn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-Yo 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}));Mt.displayName="SidebarGroupLabel";var Ns=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Ke.jsx)(t?rn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-Yo 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:Yo:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Ns.displayName="SidebarGroupAction";var ct=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));ct.displayName="SidebarGroupContent";var ze=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));ze.displayName="SidebarMenu";var Ne=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Ne.displayName="SidebarMenuItem";var zc=(0,yn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-Yo p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Qe=B.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...i},n)=>{let c=e?rn.Slot:"button",{isMobile:u,state:d}=Ua(),m=(0,Ke.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(zc({variant:a,size:o}),s),...i});return r?(typeof r=="string"&&(r={children:r}),(0,Ke.jsxs)(Jo,{children:[(0,Ke.jsx)(Qo,{asChild:!0,children:m}),(0,Ke.jsx)(fo,{side:"right",align:"center",hidden:d!=="collapsed"||u,...r})]})):m});Qe.displayName="SidebarMenuButton";var bo=B.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Ke.jsx)(t?rn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-Yo 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:Yo: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 Yo:opacity-0",e),...o}));bo.displayName="SidebarMenuAction";var Cs=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-Yo 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}));Cs.displayName="SidebarMenuBadge";var Ps=B.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Ke.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-Yo h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Ke.jsx)(se,{className:"size-4 rounded-Yo","data-sidebar":"menu-skeleton-icon"}),(0,Ke.jsx)(se,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Ps.displayName="SidebarMenuSkeleton";var Qt=B.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-Ke-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));Qt.displayName="SidebarMenuSub";var Zt=B.forwardRef(({...e},t)=>(0,Ke.jsx)("li",{ref:t,...e}));Zt.displayName="SidebarMenuSubItem";var ea=B.forwardRef(({asChild:e=!1,size:t="Yo",isActive:a,className:o,...r},s)=>(0,Ke.jsx)(e?rn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-Ke-px items-center gap-2 overflow-hidden rounded-Yo 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==="Yo"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));ea.displayName="SidebarMenuSubButton";var tr=h(require("react")),Fc=1,Oc=1e6;var Rs=0;function Gc(){return Rs=(Rs+1)%Number.MAX_SAFE_INTEGER,Rs.toString()}var Ss=new Map,Dn=e=>{if(Ss.has(e))return;let t=setTimeout(()=>{Ss.delete(e),yo({type:"REMOVE_TOAST",toastId:e})},Oc);Ss.set(e,t)},_c=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Fc)};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?Dn(a):e.toasts.forEach(o=>{Dn(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)}}},Zo=[],er={toasts:[]};function yo(e){er=_c(er,e),Zo.forEach(t=>{t(er)})}function $c({...e}){let t=Gc(),a=r=>yo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>yo({type:"DISMISS_TOAST",toastId:t});return yo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function ar(){let[e,t]=tr.useState(er);return tr.useEffect(()=>(Zo.push(t),()=>{let a=Zo.indexOf(t);a>-1&&Zo.splice(a,1)}),[e]),{...e,toast:$c,dismiss:a=>yo({type:"DISMISS_TOAST",toastId:a})}}var ha=h(require("react")),pe=h(require("@radix-ui/react-toast"));var or=pe.Provider,vo=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Viewport,{ref:a,className:l("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 Yo:max-w-[420px]",e),...t}));vo.displayName=pe.Viewport.displayName;var Vc=(0,yn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-Ke-2 overflow-hidden rounded-Yo border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Ke-0 data-[swipe=end]:translate-Ke-[var(--radix-toast-swipe-end-Ke)] data-[swipe=move]:translate-Ke-[var(--radix-toast-swipe-move-Ke)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-$l-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),ho=ha.forwardRef(({className:e,variant:t,...a},o)=>(0,Ke.jsx)(pe.Root,{ref:o,className:l(Vc({variant:t}),e),...a}));ho.displayName=pe.Root.displayName;var ks=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-Yo 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}));ks.displayName=pe.Action.displayName;var xo=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Close,{ref:a,className:l("absolute right-1 top-1 rounded-Yo p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Ke.jsx)(kn.Ke,{className:"h-4 w-4"})}));xo.displayName=pe.Close.displayName;var wo=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));wo.displayName=pe.Title.displayName;var No=ha.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(pe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));No.displayName=pe.Description.displayName;function An(){let{toasts:e}=ar();return(0,Ke.jsxs)(or,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Ke.jsxs)(ho,{...s,children:[(0,Ke.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Ke.jsx)(wo,{children:a}),o&&(0,Ke.jsx)(No,{children:o})]}),r,(0,Ke.jsx)(xo,{})]},t)}),(0,Ke.jsx)(vo,{})]})}var Ln=h(require("react")),Ts=h(require("@radix-ui/react-toggle"));var Co=(0,yn.cva)("inline-flex items-center justify-center gap-2 rounded-Yo 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"}}),Ds=Ln.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Ke.jsx)(Ts.Root,{ref:r,className:l(Co({variant:t,size:a,className:e})),...o}));Ds.displayName=Ts.Root.displayName;var xa=h(require("react")),ja=h(require("@radix-ui/react-toggle-group"));var Hn=xa.createContext({size:"default",variant:"default"}),Ms=xa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Ke.jsx)(ja.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Ke.jsx)(Hn.Provider,{value:{variant:t,size:a},children:o})}));Ms.displayName=ja.Root.displayName;var Is=xa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let i=xa.useContext(Hn);return(0,Ke.jsx)(ja.Item,{ref:s,className:l(Co({variant:i.variant||a,size:i.size||o}),e),...r,children:t})});Is.displayName=ja.Item.displayName;var As=h(require("react")),Ze=h(require("@radix-ui/react-scroll-area"));var oa=As.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(Ze.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Ke.jsx)(Ze.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ke.jsx)(sr,{}),(0,Ke.jsx)(Ze.Corner,{})]}));oa.displayName=Ze.Root.displayName;var sr=As.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Ke.jsx)(Ze.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Ke.jsx)(Ze.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));sr.displayName=Ze.ScrollAreaScrollbar.displayName;var zn=h(require("react")),mt=h(require("@radix-ui/react-popover"));var Po=mt.Root,Ro=mt.Trigger,Fn=mt.Anchor,Xa=zn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ke.jsx)(mt.Portal,{children:(0,Ke.jsx)(mt.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-Yo border bg-popover p-4 text-popover-foreground shadow-Yo 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})}));Xa.displayName=mt.Content.displayName;var On=h(require("react")),Bs=h(require("@radix-ui/react-label"));var Wc=(0,yn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ee=On.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(Bs.Root,{ref:a,className:l(Wc(),e),...t}));ee.displayName=Bs.Root.displayName;var $n=h(require("react")),wa=h(require("@radix-ui/react-hover-card"));var Vn=wa.Root,Wn=wa.Trigger,Es=$n.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Ke.jsx)(wa.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-Yo border bg-popover p-4 text-popover-foreground shadow-Yo 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}));Es.displayName=wa.Content.displayName;var So=h(require("react")),ie=h(require("@radix-ui/react-dialog"));var et=ie.Root,ir=ie.Trigger,Hs=ie.Portal,nr=ie.Close,lr=So.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ie.Overlay,{ref:a,className:l("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}));lr.displayName=ie.Overlay.displayName;var Ue=So.forwardRef(({className:e,children:t,...a},o)=>(0,Ke.jsxs)(Hs,{children:[(0,Ke.jsx)(lr,{}),(0,Ke.jsxs)(ie.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Ke-[-50%] translate-Ke-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-$l-left-1/2 data-[state=closed]:slide-out-$l-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Ke.jsxs)(ie.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Ke.jsx)(kn.Ke,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Ue.displayName=ie.Content.displayName;var pt=({className:e,...t})=>(0,Ke.jsx)("div",{className:l("flex flex-col space-Ke-1.5 text-center sm:text-left",e),...t});pt.displayName="DialogHeader";var zs=({className:e,...t})=>(0,Ke.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Ke-2",e),...t});zs.displayName="DialogFooter";var ut=So.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ie.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));ut.displayName=ie.Title.displayName;var Fs=So.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ie.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Fs.displayName=ie.Description.displayName;var ra=h(require("react")),De=require("cmdk");var dr=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-Yo bg-popover text-popover-foreground",e),...t}));dr.displayName=De.Command.displayName;var Yn=({children:e,...t})=>(0,Ke.jsx)(et,{...t,children:(0,Ke.jsx)(Ue,{className:"overflow-hidden p-0",children:(0,Ke.jsx)(dr,{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})})}),Os=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Ke.jsx)(kn.Search,{className:"Ke-2 h-4 w-4 shrink-0 opacity-50"}),(0,Ke.jsx)(De.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-Yo bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Os.displayName=De.Command.Input.displayName;var Gs=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.List,{ref:a,className:l("max-h-[300px] overflow-Ke-auto overflow-Ke-hidden",e),...t}));Gs.displayName=De.Command.List.displayName;var _s=ra.forwardRef((e,t)=>(0,Ke.jsx)(De.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));_s.displayName=De.Command.Empty.displayName;var $s=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));$s.displayName=De.Command.Group.displayName;var Vs=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Vs.displayName=De.Command.Separator.displayName;var Ws=ra.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(De.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));Ws.displayName=De.Command.Item.displayName;var Us=({className:e,...t})=>(0,Ke.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Us.displayName="CommandShortcut";var cr=h(require("react"));var Uc=(0,yn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Ke-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),js=cr.forwardRef(({className:e,variant:t,...a},o)=>(0,Ke.jsx)("div",{ref:o,role:"alert",className:l(Uc({variant:t}),e),...a}));js.displayName="Alert";var Xs=cr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));Xs.displayName="AlertTitle";var Ys=cr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));Ys.displayName="AlertDescription";var pr=h(require("react")),At=h(require("@radix-ui/react-avatar"));var Lt=pr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(At.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Lt.displayName=At.Root.displayName;var Bt=pr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(At.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Bt.displayName=At.Image.displayName;var Et=pr.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(At.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Et.displayName=At.Fallback.displayName;var qs=(0,yn.cva)("inline-flex items-center rounded-Yo border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function tt({className:e,variant:t,...a}){return(0,Ke.jsx)("div",{className:l(qs({variant:t}),e),...a})}var ko=h(require("@radix-ui/react-checkbox")),Zn=h(require("react")),ft=Zn.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(ko.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Ke.jsx)(ko.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Ke.jsx)(kn.Check,{className:"h-4 w-4"})})}));ft.displayName=ko.Root.displayName;var F=h(require("@radix-ui/react-select")),sa=h(require("react")),Ca=F.Root,jc=F.Group,Pa=F.Value,ia=sa.forwardRef(({children:e,className:t,...a},o)=>(0,Ke.jsxs)(F.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Ke.jsx)(F.Icon,{asChild:!0,children:(0,Ke.jsx)(kn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ia.displayName=F.Trigger.displayName;var Ks=sa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ke.jsx)(kn.ChevronUp,{className:"h-4 w-4"})}));Ks.displayName=F.ScrollUpButton.displayName;var Js=sa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Ke.jsx)(kn.ChevronDown,{className:"h-4 w-4"})}));Js.displayName=F.ScrollDownButton.displayName;var na=sa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Ke.jsx)(F.Portal,{children:(0,Ke.jsxs)(F.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-Yo data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-Ke-1 data-[side=left]:-translate-Ke-1 data-[side=right]:translate-Ke-1 data-[side=top]:-translate-Ke-1",t),position:a,ref:r,...o,children:[(0,Ke.jsx)(Ks,{}),(0,Ke.jsx)(F.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Ke.jsx)(Js,{})]})}));na.displayName=F.Content.displayName;var el=sa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));el.displayName=F.Label.displayName;var la=sa.forwardRef(({children:e,className:t,...a},o)=>(0,Ke.jsxs)(F.Item,{className:l("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,Ke.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Ke.jsx)(F.ItemIndicator,{children:(0,Ke.jsx)(kn.Check,{className:"h-4 w-4"})})}),(0,Ke.jsx)(F.ItemText,{children:e})]}));la.displayName=F.Item.displayName;var tl=sa.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)(F.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));tl.displayName=F.Separator.displayName;var al=h(require("react")),da=al.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));da.displayName="Textarea";var rl=require("react-day-picker");function To({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Ke.jsx)(rl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Ke-4 sm:space-Ke-4 sm:space-Ke-0",month:"space-Ke-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Ke-1 flex items-center",nav_button:l(Kt({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-Ke-1",head_row:"flex",head_cell:"text-muted-foreground rounded-Yo w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-Yo",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-Yo [&:has(>.day-range-start)]:rounded-l-Yo first:[&:has([aria-selected])]:rounded-l-Yo last:[&:has([aria-selected])]:rounded-r-Yo":"[&:has([aria-selected])]:rounded-Yo"),day:l(Kt({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})}To.displayName="Calendar";var Qs=({className:e,content:t,style:a})=>(0,Ke.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,Ke.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Ke.jsx)(te,{content:t,enableGutter:!1,enableProse:!1})})});var Zs=h(require("next/link")),wt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:i,reference:n,size:c,url:u}=e,d=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:u;if(!d)return null;let m=a==="link"?"clear":c,f=i?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Ke.jsxs)(Zs.default,{className:l(r),href:d||u||"",...f,children:[s&&s,o&&o]}):(0,Ke.jsx)(T,{asChild:!0,className:r,size:m,variant:a,children:(0,Ke.jsxs)(Zs.default,{className:l(r),href:d||u||"",...f,children:[s&&s,o&&o]})})};var Ra=({links:e,richText:t})=>(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 Yo:flex-row Yo:justify-between Yo:items-center",children:[(0,Ke.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Ke.jsx)(te,{className:"mb-0",content:t,enableGutter:!1})}),(0,Ke.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Ke.jsx)(wt,{size:"lg",...a},o))})]})});var br=require("prism-react-renderer");function ei({code:e}){let[t,a]=(0,Yo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Ke.jsx)("div",{className:"flex justify-end align-middle",children:(0,Ke.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Ke.jsx)("p",{children:t}),(0,Ke.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Ke.jsx)(kn.ClipboardCopy,{})})]})})}var ll=({code:e,language:t=""})=>e?(0,Ke.jsx)(br.Highlight,{code:e,language:t,theme:br.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Ke.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Ke-auto",children:[r.map((s,i)=>(0,Ke.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Ke.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Ke.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,Ke.jsx)("span",{...o({token:n})},c))})]},i)),(0,Ke.jsx)(ei,{code:e})]})}):null;var ai=({className:e,code:t,language:a})=>(0,Ke.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Ke.jsx)(ll,{code:t,language:a})});var cl=h(require("next/image")),Xc={"3xl":1920,"2xl":1536,xl:1280,lg:1024,Yo:768,sm:640},dl="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=",ml=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:i,src:n,loading:c}=e,u,d,m=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:p,filename:v,height:P,url:G,width:Q}=s;if(P&&P>500){let me=500/P;u=Q*me,d=P*me}else u=Q,d=P;m=p||"",f=G||dl}let g=c||"lazy",b=i||Object.entries(Xc).map(([,p])=>`(max-width: ${p}px) ${p*2}w`).join(", ");return(0,Ke.jsx)("picture",{children:(0,Ke.jsx)(cl.default,{alt:m||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:dl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:u})})};var pl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var ul=()=>{if(pl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var fl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Yo.useRef)(null);if((0,Yo.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Ke.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Ke.jsx)("source",{src:`${ul()}/media/${s}`})})}return null};var zt=e=>{var i;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Ke.jsx)(a||Yo.Fragment,{...a!==null?{className:t}:{},children:r?(0,Ke.jsx)(fl,{...e}):(0,Ke.jsx)(ml,{...e})})};var Ft=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ke.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Ke.jsx)(zt,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var ni=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Ke.jsx)("div",{className:l("",{container:a},t),children:(0,Ke.jsx)(zt,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var ka=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Ke.jsxs)("section",{className:l(!r&&"container","w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,Ke.jsx)("h2",{className:"mb-6 mt-0 text-2xl font-bold Yo:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Ke.jsx)("p",{className:"mb-5 text-xl tracking-tight Yo:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,Ke.jsx)("p",{className:"mb-5 text-xl tracking-tight Yo:text-xl text-foreground",children:(0,Ke.jsx)(te,{content:t,enableGutter:!1})}),(0,Ke.jsx)("div",{className:`grid gap-8 mt-10 Yo: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,i)=>{var c;let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Ke.jsx)(hr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:i},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:(c=n())!=null?c:{type:"none",icon:null}},i)})})]});var xr=h(require("react"));function Mo({nodes:e}){return(0,Ke.jsx)(xr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Ke.jsx)(xr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Ke.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Ke.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Ke.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Ke.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Ke.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Ke.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Ke.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Ke.jsx)("table",{children:(0,Ke.jsx)("tbody",{children:t.children.map((s,i)=>(0,Ke.jsx)("tr",{children:s.children.map((n,c)=>(0,Ke.jsx)("td",{children:Mo({nodes:n.children})},c))},i))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let i of s.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return Mo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,i=s==null?void 0:s.blockType;if(!s||!i)return null;switch(i){case"cta":return(0,Ke.jsx)(Ra,{...s},a);case"mediaBlock":return(0,Ke.jsx)(Ft,{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,Ke.jsx)(ni,{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,Ke.jsx)(Qs,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Ke.jsx)(ai,{className:"col-start-2",...s},a);case"features":return(0,Ke.jsx)(ka,{...s,nested:!0},a);case"reusableContentBlock":Mo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Ke.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,Ke.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Ke.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Ke.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Ke.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Ke.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Ke.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Ke.jsx)(wt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Ke.jsx)(wt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var te=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Ke.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Mo({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var Ce=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,i=o!=null?o:"",n=r+s+" fa-"+a+" "+i;return(0,Ke.jsx)("i",{className:n})};var hl=h(require("next/image"));function vl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function hr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:i,link:n,className:c}){var m,f;let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-$l-br from-[#A42368] $l-[#4A1030]",radial:"bg-gradient-$l-br from-[#4A1030] $l-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Ke.jsxs)("div",{className:l("min-w-56 max-w-xl h-full flex flex-col group",e?"p-0 Yo:p-0":"p-8 Yo:p-8",i&&!e&&u[(i==null?void 0:i.card)==="default"?"solid":i==null?void 0:i.card],e&&"bg-foreground",i&&(i==null?void 0:i.card)==="outline"?"text-gray-900":"text-white",d[(m=i==null?void 0:i.width)!=null?m:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",i&&`intersect:animate-delay-${i.order||1}00`,c),children:[e&&(0,Ke.jsx)("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:(0,Ke.jsx)(hl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Ke.jsxs)("div",{className:l(e?"p-4 Yo:p-1 Yo:px-8":"p-0 Yo:p-0","flex h-2/5 Yo:max-h-1/2 flex-col flex-grow"),children:[o&&(0,Ke.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:o}),(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2 Yo:mb-0",children:(0,Ke.jsx)(Yc,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"no-icon-error"},heading:a!=null?a:"",variant:(i==null?void 0:i.card)==="default"?"solid":(f=i==null?void 0:i.card)!=null?f:"solid",iconSize:(i==null?void 0:i.iconSize)||"large"})}),s&&(0,Ke.jsx)("div",{className:"mb-6",children:(0,Ke.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"text-brand-green":"text-white"),children:s})}),r&&typeof r=="object"&&(0,Ke.jsx)(te,{enableGutter:!1,content:r,enableProse:!1,className:l("space-Ke-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Ke.jsx)("div",{className:l("space-Ke-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r}),n&&n.url&&(0,Ke.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,Ke.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(i==null?void 0:i.card)==="radial"&&(0,Ke.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 Yc=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,Ke.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Ke.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),vl(e)&&(0,Ke.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-Ke-2 ml-1 mt-1":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,Ke.jsxs)("div",{className:"flex flex-col gap-4",children:[vl(e)&&(0,Ke.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ke.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var xl=h(require("next/image")),wl=h(require("next/link"));var Ta=h(require("react"));var he=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));he.displayName="Card";var Fe=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("flex flex-col space-Ke-1.5 p-6",e),...t}));Fe.displayName="CardHeader";var Oe=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Oe.displayName="CardTitle";var qc=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));qc.displayName="CardDescription";var Pe=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Pe.displayName="CardContent";var Kc=Ta.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Kc.displayName="CardFooter";function Nl({name:e,logo:t,href:a}){return(0,Ke.jsx)(he,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Ke.jsxs)(wl.default,{href:a,className:"block",children:[(0,Ke.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Ke.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Ke.jsx)(xl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Ke.jsx)(Pe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-$l-br from-gray-900 via-brand-one $l-gray-900",children:(0,Ke.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function Cl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Ke.jsx)(kn.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Ke.jsx)(kn.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Ke.jsx)(kn.PartyPopper,{className:"h-4 w-4"});default:return(0,Ke.jsx)(kn.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 $l-slate-500"}};return(0,Ke.jsxs)(he,{className:`w-full max-w-Yo overflow-hidden bg-gradient-$l-br ${i(e)}`,children:[(0,Ke.jsxs)(Fe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Ke.jsxs)(Lt,{className:"h-14 w-14 border-2 border-white",children:[(0,Ke.jsx)(Bt,{src:r,alt:a||"Event"}),(0,Ke.jsx)(Et,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Ke.jsxs)("div",{className:"flex flex-col",children:[(0,Ke.jsx)(Oe,{className:"text-xl",children:a||"Untitled Event"}),(0,Ke.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Ke.jsx)(kn.CalendarDays,{className:"Ke-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Ke.jsxs)(Pe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Ke.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Ke.jsxs)(tt,{variant:"secondary",className:`${i(e)} text-white/80`,children:[s(e),(0,Ke.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([Ke-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Rl=h(require("next/link"));var Sl=h(require("next/image")),Pl={sm:"640px",Yo:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function kl({slug:e,image:t,title:a,description:o}){return(0,Ke.jsxs)(Rl.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 Yo:p-[1.875rem]",children:[(0,Ke.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 $l-primary [transition:all_500ms_ease] Yo:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","Yo:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] Yo:group-hover/portfolio:[transition-delay:.1s] Yo:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Ke.jsx)(Sl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
6
- (min-width:${Pl.Yo}) 50vw,
7
- (min-width:${Pl.lg}) 25vw,
6
+ "use strict";var lc=Object.create;var qo=Object.defineProperty;var dc=Object.getOwnPropertyDescriptor;var cc=Object.getOwnPropertyNames;var mc=Object.getPrototypeOf,pc=Object.prototype.hasOwnProperty;var uc=(e,t)=>{for(var a in t)qo(e,a,{get:t[a],enumerable:!0})},sn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cc(t))!pc.call(e,r)&&r!==a&&qo(e,r,{get:()=>t[r],enumerable:!(o=dc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?lc(mc(e)):{},sn(t||!e||!e.__esModule?qo(a,"default",{value:e,enumerable:!0}):a,e)),fc=e=>sn(qo({},"__esModule",{value:!0}),e);var kp={};uc(kp,{Alert:()=>ai,AlertDescription:()=>ri,AlertTitle:()=>oi,ApproveLeave:()=>Wi,Avatar:()=>Ft,AvatarFallback:()=>Ot,AvatarImage:()=>zt,Badge:()=>ot,BannerBlock:()=>li,BrandLogo:()=>ga,Breadcrumb:()=>rs,BreadcrumbEllipsis:()=>cs,BreadcrumbItem:()=>is,BreadcrumbLink:()=>ns,BreadcrumbList:()=>ss,BreadcrumbPage:()=>ls,BreadcrumbSeparator:()=>ds,Breadcrumbs:()=>up,Button:()=>T,CMSLink:()=>yt,CRMKanbanBoard:()=>Sp,Calendar:()=>Lo,CalendarView:()=>Ki,CallToActionBlock:()=>Ta,CallToActionBlockOld:()=>gm,Card:()=>zo,Categories:()=>sp,Checkbox:()=>bt,CodeBlock:()=>ui,Collapsible:()=>At,CollapsibleContent:()=>Qt,CollapsibleTrigger:()=>Jt,CollectionArchive:()=>Vm,Command:()=>fr,CommandDialog:()=>sl,CommandEmpty:()=>Js,CommandGroup:()=>Qs,CommandInput:()=>qs,CommandItem:()=>ei,CommandList:()=>Ks,CommandSeparator:()=>Zs,CommandShortcut:()=>ti,Container:()=>Ii,ContentBlock:()=>Fo,ContentCard:()=>Tm,CopyButton:()=>mi,CustomLink:()=>Ye,CustomerCard:()=>Ol,DealCard:()=>Qi,DealDetails:()=>Ji,Dialog:()=>at,DialogClose:()=>pr,DialogContent:()=>Xe,DialogDescription:()=>Ys,DialogFooter:()=>Xs,DialogHeader:()=>ft,DialogOverlay:()=>ur,DialogPortal:()=>js,DialogTitle:()=>gt,DialogTrigger:()=>mr,DropdownMenu:()=>yn,DropdownMenuCheckboxItem:()=>gs,DropdownMenuContent:()=>us,DropdownMenuGroup:()=>hn,DropdownMenuItem:()=>fs,DropdownMenuLabel:()=>ys,DropdownMenuPortal:()=>xn,DropdownMenuRadioGroup:()=>Nn,DropdownMenuRadioItem:()=>bs,DropdownMenuSeparator:()=>vs,DropdownMenuShortcut:()=>hs,DropdownMenuSub:()=>wn,DropdownMenuSubContent:()=>ps,DropdownMenuSubTrigger:()=>ms,DropdownMenuTrigger:()=>vn,DynamicIcon:()=>Re,EventCard:()=>Gl,FeatureCard:()=>Dr,FeatureGrid:()=>ql,FeaturesBlock:()=>Ma,Filter:()=>ip,FlowPrintable:()=>xd,Footer:()=>xp,Header:()=>wp,HeaderDesktop:()=>Oi,HeaderMobile:()=>_i,HeadingImage:()=>Om,Hero:()=>km,HighImpactHero:()=>Ai,HolidayGrid:()=>qi,HolidayTracker:()=>Pp,HoverCard:()=>el,HoverCardContent:()=>Ws,HoverCardTrigger:()=>tl,Image:()=>Wl,ImageBlock:()=>vi,InfoTile:()=>Im,Input:()=>ze,Insight:()=>Mm,KanbanColumn:()=>tn,Label:()=>oe,Logo:()=>Um,LowImpactHero:()=>Ei,MOTD:()=>Lm,Mask:()=>lp,Media:()=>_t,MediaBlock:()=>$t,MediumImpactHero:()=>Bi,NewCustomerForm:()=>Zi,NewDealForm:()=>en,NewsGrid:()=>vd,OrgChart:()=>Hm,PagePrintable:()=>wd,PageRange:()=>Xm,PageShape:()=>Ea,Pagination:()=>rp,PayloadPagination:()=>Ym,Popover:()=>Do,PopoverAnchor:()=>qn,PopoverContent:()=>Ka,PopoverTrigger:()=>Mo,PostHero:()=>cp,PricingCard:()=>Sm,Printable:()=>Jm,ProjectCard:()=>Ul,ProjectTeam:()=>ap,ProposalSummary:()=>Fm,RelatedContent:()=>op,RelatedPosts:()=>$m,RenderBlocks:()=>La,RenderHero:()=>pp,RequestLeave:()=>Yi,ReusableContentBlock:()=>xi,RichText:()=>K,ScrollArea:()=>ia,ScrollBar:()=>cr,SectionHero:()=>Fi,Select:()=>Ra,SelectContent:()=>ca,SelectGroup:()=>dm,SelectItem:()=>ma,SelectLabel:()=>ml,SelectScrollDownButton:()=>ni,SelectScrollUpButton:()=>ii,SelectSeparator:()=>pl,SelectTrigger:()=>da,SelectValue:()=>Sa,Separator:()=>bo,ServiceCard:()=>Rm,Sheet:()=>Jo,SheetClose:()=>Mn,SheetContent:()=>vo,SheetDescription:()=>Rs,SheetFooter:()=>Cs,SheetHeader:()=>Ns,SheetOverlay:()=>Qo,SheetPortal:()=>ws,SheetTitle:()=>Ps,SheetTrigger:()=>Dn,Sidebar:()=>va,SidebarContent:()=>ea,SidebarFooter:()=>xa,SidebarGroup:()=>Ze,SidebarGroupAction:()=>As,SidebarGroupContent:()=>pt,SidebarGroupLabel:()=>Bt,SidebarHeader:()=>ha,SidebarInput:()=>Is,SidebarInset:()=>Ms,SidebarLeft:()=>Qm,SidebarMenu:()=>Oe,SidebarMenuAction:()=>wo,SidebarMenuBadge:()=>Ls,SidebarMenuButton:()=>et,SidebarMenuItem:()=>Pe,SidebarMenuSkeleton:()=>Bs,SidebarMenuSub:()=>ta,SidebarMenuSubButton:()=>oa,SidebarMenuSubItem:()=>aa,SidebarProvider:()=>ks,SidebarRail:()=>Ds,SidebarRight:()=>tp,SidebarSeparator:()=>xo,SidebarTrigger:()=>Ts,SimpleHeader:()=>gp,Skeleton:()=>ne,SlideShow:()=>gd,TextAndImages:()=>hd,Textarea:()=>pa,Theme:()=>Er,ThemeProvider:()=>np,Toast:()=>Po,ToastAction:()=>Fs,ToastClose:()=>Ro,ToastDescription:()=>ko,ToastProvider:()=>lr,ToastTitle:()=>So,ToastViewport:()=>Co,Toaster:()=>Vn,Toggle:()=>Os,ToggleGroup:()=>Gs,ToggleGroupItem:()=>_s,Tooltip:()=>ar,TooltipContent:()=>ho,TooltipProvider:()=>tr,TooltipTrigger:()=>or,VideoHeader:()=>yp,WhyUs:()=>zm,badgeVariants:()=>si,buttonVariants:()=>Zt,toggleVariants:()=>To,useIsMobile:()=>er,useSidebar:()=>Ya,useToast:()=>nr});module.exports=fc(kp);var Ua=h(require("react")),Ko=require("@radix-ui/react-icons"),bn=require("@radix-ui/react-slot");var gn=require("clsx");var as="-",gc=e=>{let t=yc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{let n=i.split(as);return n[0]===""&&n.length!==1&&n.shift(),dn(n,t)||bc(i)},getConflictingClassGroupIds:(i,n)=>{let c=a[i]||[];return n&&o[i]?[...c,...o[i]]:c}}},dn=(e,t)=>{var i;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?dn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(as);return(i=t.validators.find(({validator:n})=>n(s)))==null?void 0:i.classGroupId},nn=/^\[(.+)\]$/,bc=e=>{if(nn.test(e)){let t=nn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},yc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return hc(Object.entries(e.classGroups),a).forEach(([s,i])=>{ts(i,o,s,t)}),o},ts=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:ln(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(vc(r)){ts(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,i])=>{ts(i,ln(t,s),a,o)})})},ln=(e,t)=>{let a=e;return t.split(as).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},vc=e=>e.isThemeGetter,hc=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,n])=>[t+i,n])):s);return[a,r]}):e,xc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,i)=>{a.set(s,i),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let i=a.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){a.has(s)?a.set(s,i):r(s,i)}}},cn="!",wc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,i=n=>{let c=[],u=0,d=0,m;for(let v=0;v<n.length;v++){let P=n[v];if(u===0){if(P===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(P==="/"){m=v;continue}}P==="["?u++:P==="]"&&u--}let f=c.length===0?n:n.substring(d),g=f.startsWith(cn),b=g?f.substring(1):f,p=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:p}};return a?n=>a({className:n,parseClassName:i}):i},Nc=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},Cc=e=>({cache:xc(e.cacheSize),parseClassName:wc(e),...gc(e)}),Pc=/\s+/,Rc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],i=e.trim().split(Pc),n="";for(let c=i.length-1;c>=0;c-=1){let u=i[c],{modifiers:d,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:g}=a(u),b=!!g,p=o(b?f.substring(0,g):f);if(!p){if(!b){n=u+(n.length>0?" "+n:n);continue}if(p=o(f),!p){n=u+(n.length>0?" "+n:n);continue}b=!1}let v=Nc(d).join(":"),P=m?v+cn:v,G=P+p;if(s.includes(G))continue;s.push(G);let te=r(p,b);for(let ue=0;ue<te.length;++ue){let Fe=te[ue];s.push(P+Fe)}n=u+(n.length>0?" "+n:n)}return n};function Sc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=mn(t))&&(o&&(o+=" "),o+=a);return o}var mn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=mn(e[o]))&&(a&&(a+=" "),a+=t);return a};function kc(e,...t){let a,o,r,s=i;function i(c){let u=t.reduce((d,m)=>m(d),e());return a=Cc(u),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let u=o(c);if(u)return u;let d=Rc(c,a);return r(c,d),d}return function(){return s(Sc.apply(null,arguments))}}var ae=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},pn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Tc=/^\d+\/\d+$/,Dc=new Set(["px","full","screen"]),Mc=/^(\d+(\.\d+)?)?(xs|sm|Qe|lg|xl)$/,Ic=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ac=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>$a(e)||Dc.has(e)||Tc.test(e),qt=e=>Va(e,"length",$c),$a=e=>!!e&&!Number.isNaN(Number(e)),es=e=>Va(e,"number",$a),fo=e=>!!e&&Number.isInteger(Number(e)),Ec=e=>e.endsWith("%")&&$a(e.slice(0,-1)),M=e=>pn.test(e),Kt=e=>Mc.test(e),Hc=new Set(["length","size","percentage"]),Fc=e=>Va(e,Hc,un),zc=e=>Va(e,"position",un),Oc=new Set(["image","url"]),Gc=e=>Va(e,Oc,Uc),_c=e=>Va(e,"",Vc),go=()=>!0,Va=(e,t,a)=>{let o=pn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},$c=e=>Ic.test(e)&&!Ac.test(e),un=()=>!1,Vc=e=>Lc.test(e),Uc=e=>Bc.test(e);var Wc=()=>{let e=ae("colors"),t=ae("spacing"),a=ae("blur"),o=ae("brightness"),r=ae("borderColor"),s=ae("borderRadius"),i=ae("borderSpacing"),n=ae("borderWidth"),c=ae("contrast"),u=ae("grayscale"),d=ae("hueRotate"),m=ae("invert"),f=ae("gap"),g=ae("gradientColorStops"),b=ae("gradientColorStopPositions"),p=ae("inset"),v=ae("margin"),P=ae("opacity"),G=ae("padding"),te=ae("saturate"),ue=ae("scale"),Fe=ae("sepia"),Pt=ae("skew"),k=ae("space"),F=ae("translate"),ct=()=>["auto","contain","none"],w=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto",M,t],W=()=>[M,t],jo=()=>["",It,qt],Xo=()=>["auto",$a,M],an=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Yo=()=>["solid","dashed","dotted","double","none"],on=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Zr=()=>["start","end","center","between","around","evenly","stretch"],uo=()=>["","0",M],rn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Mt=()=>[$a,M];return{cacheSize:500,separator:":",theme:{colors:[go],spacing:[It,qt],blur:["none","",Kt,M],brightness:Mt(),borderColor:[e],borderRadius:["none","","full",Kt,M],borderSpacing:W(),borderWidth:jo(),contrast:Mt(),grayscale:uo(),hueRotate:Mt(),invert:uo(),gap:W(),gradientColorStops:[e],gradientColorStopPositions:[Ec,qt],inset:_(),margin:_(),opacity:Mt(),padding:W(),saturate:Mt(),scale:Mt(),sepia:uo(),skew:Mt(),space:W(),translate:W()},classGroups:{aspect:[{aspect:["auto","square","video",M]}],container:["container"],columns:[{columns:[Kt]}],"break-after":[{"break-after":rn()}],"break-before":[{"break-before":rn()}],"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:[...an(),M]}],overflow:[{overflow:w()}],"overflow-Qe":[{"overflow-Qe":w()}],"overflow-Qe":[{"overflow-Qe":w()}],overscroll:[{overscroll:ct()}],"overscroll-Qe":[{"overscroll-Qe":ct()}],"overscroll-Qe":[{"overscroll-Qe":ct()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-Qe":[{"inset-Qe":[p]}],"inset-Qe":[{"inset-Qe":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",fo,M]}],basis:[{basis:_()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",M]}],grow:[{grow:uo()}],shrink:[{shrink:uo()}],order:[{order:["first","last","none",fo,M]}],"grid-cols":[{"grid-cols":[go]}],"col-start-end":[{col:["auto",{span:["full",fo,M]},M]}],"col-start":[{"col-start":Xo()}],"col-end":[{"col-end":Xo()}],"grid-rows":[{"grid-rows":[go]}],"row-start-end":[{row:["auto",{span:[fo,M]},M]}],"row-start":[{"row-start":Xo()}],"row-end":[{"row-end":Xo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",M]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",M]}],gap:[{gap:[f]}],"gap-Qe":[{"gap-Qe":[f]}],"gap-Qe":[{"gap-Qe":[f]}],"justify-content":[{justify:["normal",...Zr()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Zr(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Zr(),"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]}],ps:[{ps:[G]}],Qe:[{Qe:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],pl:[{pl:[G]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],Qe:[{Qe:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-Qe":[{"space-Qe":[k]}],"space-Qe-reverse":["space-Qe-reverse"],"space-Qe":[{"space-Qe":[k]}],"space-Qe-reverse":["space-Qe-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",M,t]}],"min-w":[{"min-w":[M,t,"min","max","fit"]}],"max-w":[{"max-w":[M,t,"none","full","min","max","fit","prose",{screen:[Kt]},Kt]}],h:[{h:[M,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[M,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[M,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Kt,qt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",es]}],"font-family":[{font:[go]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",M]}],"line-clamp":[{"line-clamp":["none",$a,es]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,M]}],"list-image":[{"list-image":["none",M]}],"list-style-type":[{list:["none","disc","decimal",M]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","sd-underline"],"text-decoration-style":[{decoration:[...Yo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,qt]}],"underline-offset":[{"underline-offset":["auto",It,M]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:W()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",M]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",M]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...an(),zc]}],"bg-repeat":[{bg:["sd-repeat",{repeat:["","Qe","Qe","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Fc]}],"bg-image":[{bg:["none",{"gradient-Qe":["t","tr","r","Qe","b","Qe","l","tl"]},Gc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Qe-pos":[{Qe:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Qe":[{Qe:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Qe":[{"rounded-Qe":[s]}],"rounded-Qe":[{"rounded-Qe":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-Qe":[{"rounded-Qe":[s]}],"rounded-Qe":[{"rounded-Qe":[s]}],"border-w":[{border:[n]}],"border-w-Qe":[{"border-Qe":[n]}],"border-w-Qe":[{"border-Qe":[n]}],"border-w-s":[{"border-s":[n]}],"border-w-e":[{"border-e":[n]}],"border-w-t":[{"border-t":[n]}],"border-w-r":[{"border-r":[n]}],"border-w-b":[{"border-b":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Yo(),"hidden"]}],"divide-Qe":[{"divide-Qe":[n]}],"divide-Qe-reverse":["divide-Qe-reverse"],"divide-Qe":[{"divide-Qe":[n]}],"divide-Qe-reverse":["divide-Qe-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Yo()}],"border-color":[{border:[r]}],"border-color-Qe":[{"border-Qe":[r]}],"border-color-Qe":[{"border-Qe":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Yo()]}],"outline-offset":[{"outline-offset":[It,M]}],"outline-w":[{outline:[It,qt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:jo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[It,qt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Kt,_c]}],"shadow-color":[{shadow:[go]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...on(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":on()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Kt,M]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[te]}],sepia:[{sepia:[Fe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[te]}],"backdrop-sepia":[{"backdrop-sepia":[Fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-Qe":[{"border-spacing-Qe":[i]}],"border-spacing-Qe":[{"border-spacing-Qe":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",M]}],duration:[{duration:Mt()}],ease:[{ease:["linear","in","out","in-out",M]}],delay:[{delay:Mt()}],animate:[{animate:["none","spin","ping","pulse","bounce",M]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ue]}],"scale-Qe":[{"scale-Qe":[ue]}],"scale-Qe":[{"scale-Qe":[ue]}],rotate:[{rotate:[fo,M]}],"translate-Qe":[{"translate-Qe":[F]}],"translate-Qe":[{"translate-Qe":[F]}],"skew-Qe":[{"skew-Qe":[Pt]}],"skew-Qe":[{"skew-Qe":[Pt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",M]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","sd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Qe-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",M]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Qe","Qe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":W()}],"scroll-mx":[{"scroll-mx":W()}],"scroll-my":[{"scroll-my":W()}],"scroll-ms":[{"scroll-ms":W()}],"scroll-Qe":[{"scroll-Qe":W()}],"scroll-mt":[{"scroll-mt":W()}],"scroll-mr":[{"scroll-mr":W()}],"scroll-mb":[{"scroll-mb":W()}],"scroll-ml":[{"scroll-ml":W()}],"scroll-p":[{"scroll-p":W()}],"scroll-px":[{"scroll-px":W()}],"scroll-py":[{"scroll-py":W()}],"scroll-ps":[{"scroll-ps":W()}],"scroll-Qe":[{"scroll-Qe":W()}],"scroll-pt":[{"scroll-pt":W()}],"scroll-pr":[{"scroll-pr":W()}],"scroll-pb":[{"scroll-pb":W()}],"scroll-pl":[{"scroll-pl":W()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Qe","Qe","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Qe":[{"touch-pan":["Qe","left","right"]}],"touch-Qe":[{"touch-pan":["Qe","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",M]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,qt,es]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Qe","overflow-Qe"],overscroll:["overscroll-Qe","overscroll-Qe"],inset:["inset-Qe","inset-Qe","start","end","top","right","bottom","left"],"inset-Qe":["right","left"],"inset-Qe":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Qe","gap-Qe"],p:["px","py","ps","Qe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","Qe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-Qe","rounded-Qe","rounded-es","rounded-tl","rounded-tr","rounded-Qe","rounded-Qe"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Qe","rounded-Qe"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-Qe"],"rounded-b":["rounded-Qe","rounded-Qe"],"rounded-l":["rounded-tl","rounded-Qe"],"border-spacing":["border-spacing-Qe","border-spacing-Qe"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Qe":["border-w-r","border-w-l"],"border-w-Qe":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Qe":["border-color-r","border-color-l"],"border-color-Qe":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Qe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Qe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Qe","touch-Qe","touch-pz"],"touch-Qe":["touch"],"touch-Qe":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var fn=kc(Wc);function l(...e){return fn((0,gn.clsx)(e))}function os(e){let t=0,a=(s,i)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${i}`,o=e.layout.flatMap(s=>{let i=[];return"title"in s&&s.title&&i.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,u,d,m,f;if(n.title&&i.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(u=(c=n.richText)==null?void 0:c.root)!=null&&u.children&&((m=(d=n.richText)==null?void 0:d.root)==null?void 0:m.children.length)===1){let g=n.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of g)b.children[0]&&i.push({text:(f=b.children[0].text)!=null?f:"",id:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),i}),r=jc(e.layout);return{tableOfContents:o,contentWithIds:r}}function jc(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).filter(s=>s.children!==void 0&&s.children.length>0).map(s=>(s.type==="heading"&&s.children[0].text&&(s.id=t(s.children[0].text,a++)),s))),r))),o))}var Qe=require("react/jsx-runtime"),rs=Ua.forwardRef(({...e},t)=>(0,Qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));rs.displayName="Breadcrumb";var ss=Ua.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("zn",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ss.displayName="BreadcrumbList";var is=Ua.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));is.displayName="BreadcrumbItem";var ns=Ua.forwardRef(({asChild:e,className:t,...a},o)=>(0,Qe.jsx)(e?bn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));ns.displayName="BreadcrumbLink";var ls=Ua.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));ls.displayName="BreadcrumbPage";var ds=({children:e,className:t,...a})=>(0,Qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Qe.jsx)(Ko.ChevronRightIcon,{})});ds.displayName="BreadcrumbSeparator";var cs=({className:e,...t})=>(0,Qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Qe.jsx)(Ko.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More"})]});cs.displayName="BreadcrumbElipssis";var Wa=h(require("@radix-ui/react-collapsible")),At=Wa.Root,Jt=Wa.CollapsibleTrigger,Qt=Wa.CollapsibleContent;var Lt=h(require("react")),L=h(require("@radix-ui/react-dropdown-menu"));var yn=L.Root,vn=L.Trigger,hn=L.Group,xn=L.Portal,wn=L.Sub,Nn=L.RadioGroup,ms=Lt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Qe.jsxs)(L.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,Qe.jsx)(Ko.ChevronRightIcon,{className:"ml-auto"})]}));ms.displayName=L.SubTrigger.displayName;var ps=Lt.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(L.SubContent,{ref:a,className:l("z-50 min-w-[8rem] overflow-hidden rounded-Qe border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ps.displayName=L.SubContent.displayName;var us=Lt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Qe.jsx)(L.Portal,{children:(0,Qe.jsx)(L.Content,{ref:o,sideOffset:t,className:l("z-50 min-w-[8rem] overflow-hidden rounded-Qe border bg-popover p-1 text-popover-foreground shadow-Qe","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));us.displayName=L.Content.displayName;var fs=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,Qe.jsx)(L.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));fs.displayName=L.Item.displayName;var gs=Lt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Qe.jsxs)(L.CheckboxItem,{ref:r,className:l("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,Qe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Qe.jsx)(L.ItemIndicator,{children:(0,Qe.jsx)(Ko.CheckIcon,{className:"h-4 w-4"})})}),t]}));gs.displayName=L.CheckboxItem.displayName;var bs=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,Qe.jsxs)(L.RadioItem,{ref:o,className:l("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,Qe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Qe.jsx)(L.ItemIndicator,{children:(0,Qe.jsx)(Ko.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));bs.displayName=L.RadioItem.displayName;var ys=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,Qe.jsx)(L.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ys.displayName=L.Label.displayName;var vs=Lt.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(L.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));vs.displayName=L.Separator.displayName;var hs=({className:e,...t})=>(0,Qe.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});hs.displayName="DropdownMenuShortcut";var Cn=h(require("react"));var ze=Cn.forwardRef(({className:e,type:t,...a},o)=>(0,Qe.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-Qe 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}));ze.displayName="Input";var Rn=h(require("react")),xs=h(require("@radix-ui/react-separator"));var bo=Rn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Qe.jsx)(xs.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));bo.displayName=xs.Root.displayName;var yo=h(require("react")),ie=h(require("@radix-ui/react-dialog")),Tn=require("class-variance-authority");var Jo=ie.Root,Dn=ie.Trigger,Mn=ie.Close,ws=ie.Portal,Qo=yo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ie.Overlay,{className:l("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Qo.displayName=ie.Overlay.displayName;var Xc=(0,Tn.cva)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-Qe-0 top-0 border-b data-[state=closed]:slide-out-Qe-top data-[state=open]:slide-in-from-top",bottom:"inset-Qe-0 bottom-0 border-t data-[state=closed]:slide-out-Qe-bottom data-[state=open]:slide-in-from-bottom",left:"inset-Qe-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-Qe-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-Qe-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-Qe-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vo=yo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Qe.jsxs)(ws,{children:[(0,Qe.jsx)(Qo,{}),(0,Qe.jsxs)(ie.Content,{ref:r,className:l(Xc({side:e}),t),...o,children:[(0,Qe.jsxs)(ie.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Qe.jsx)(Ko.Cross2Icon,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));vo.displayName=ie.Content.displayName;var Ns=({className:e,...t})=>(0,Qe.jsx)("div",{className:l("flex flex-col space-Qe-2 text-center sm:text-left",e),...t});Ns.displayName="SheetHeader";var Cs=({className:e,...t})=>(0,Qe.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Qe-2",e),...t});Cs.displayName="SheetFooter";var Ps=yo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ie.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Ps.displayName=ie.Title.displayName;var Rs=yo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ie.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Rs.displayName=ie.Description.displayName;var B=h(require("react")),zn=require("lucide-react");var Zo=require("react"),er=(e=768)=>{let[t,a]=(0,Zo.useState)(!1);return(0,Zo.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Ln=h(require("react")),Zt=(0,Tn.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Ln.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Qe.jsx)(e?bn.Slot:"button",{className:l(Zt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function ne({className:e,...t}){return(0,Qe.jsx)("div",{className:l("animate-pulse rounded-Qe bg-primary/10",e),...t})}var Hn=h(require("react")),mt=h(require("@radix-ui/react-tooltip"));var tr=mt.Provider,ar=mt.Root,or=mt.Trigger,ho=Hn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Qe.jsx)(mt.Portal,{children:(0,Qe.jsx)(mt.Content,{ref:o,sideOffset:t,className:l("z-50 overflow-hidden rounded-Qe 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})}));ho.displayName=mt.Content.displayName;var Yc="sidebar:state",qc=60*60*24*7,Kc="16rem",Jc="18rem",Qc="3rem",Zc="b",On=B.createContext(null);function Ya(){let e=B.useContext(On);if(!e)throw new Error("useSidebar must Qe used within a SidebarProvider.");return e}var ks=B.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...i},n)=>{let c=er(),[u,d]=B.useState(!1),[m,f]=B.useState(e),g=t!=null?t:m,b=B.useCallback(G=>{if(a)return a==null?void 0:a(typeof G=="function"?G(g):G);f(G),document.cookie=`${Yc}=${g}; path=/; max-age=${qc}`},[a,g]),p=B.useCallback(()=>c?d(G=>!G):b(G=>!G),[c,b,d]);B.useEffect(()=>{let G=te=>{te.key===Zc&&(te.metaKey||te.ctrlKey)&&(te.preventDefault(),p())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[p]);let v=g?"expanded":"collapsed",P=B.useMemo(()=>({state:v,open:g,setOpen:b,isMobile:c,openMobile:u,setOpenMobile:d,toggleSidebar:p}),[v,g,b,c,u,d,p]);return(0,Qe.jsx)(On.Provider,{value:P,children:(0,Qe.jsx)(tr,{delayDuration:0,children:(0,Qe.jsx)("div",{style:{"--sidebar-width":Kc,"--sidebar-width-icon":Qc,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...i,children:s})})})});ks.displayName="SidebarProvider";var va=B.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},i)=>{let{isMobile:n,state:c,openMobile:u,setOpenMobile:d}=Ya();return a==="none"?(0,Qe.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:i,...s,children:r}):n?(0,Qe.jsx)(Jo,{open:u,onOpenChange:d,...s,children:(0,Qe.jsx)(vo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Jc},side:e,children:(0,Qe.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Qe.jsxs)("div",{ref:i,className:"group peer hidden Qe:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Qe.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Qe.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear Qe: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,Qe.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})})]})});va.displayName="Sidebar";var Ts=B.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Ya();return(0,Qe.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Qe.jsx)(zn.PanelLeft,{}),(0,Qe.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ts.displayName="SidebarTrigger";var Ds=B.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Ya();return(0,Qe.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-Qe-0 z-20 hidden w-4 -translate-Qe-1/2 transition-all ease-linear after:absolute after:inset-Qe-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-Qe-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Ds.displayName="SidebarRail";var Ms=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-Qe-auto relative max-h-full","Qe:peer-data-[variant=inset]:m-2 Qe:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 Qe:peer-data-[variant=inset]:ml-0 Qe:peer-data-[variant=inset]:rounded-xl Qe:peer-data-[variant=inset]:shadow",e),...t}));Ms.displayName="SidebarInset";var Is=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ze,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Is.displayName="SidebarInput";var ha=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));ha.displayName="SidebarHeader";var xa=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarFooter";var xo=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(bo,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));xo.displayName="SidebarSeparator";var ea=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ea.displayName="SidebarContent";var Ze=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));Ze.displayName="SidebarGroup";var Bt=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Qe.jsx)(t?bn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-Qe px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Bt.displayName="SidebarGroupLabel";var As=B.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Qe.jsx)(t?bn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-Qe 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:Qe:hidden","group-data-[collapsible=icon]:hidden",e),...a}));As.displayName="SidebarGroupAction";var pt=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));pt.displayName="SidebarGroupContent";var Oe=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("ul",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Oe.displayName="SidebarMenu";var Pe=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));Pe.displayName="SidebarMenuItem";var em=(0,Tn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-Qe 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"}}),et=B.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...i},n)=>{let c=e?bn.Slot:"button",{isMobile:u,state:d}=Ya(),m=(0,Qe.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(em({variant:a,size:o}),s),...i});return r?(typeof r=="string"&&(r={children:r}),(0,Qe.jsxs)(ar,{children:[(0,Qe.jsx)(or,{asChild:!0,children:m}),(0,Qe.jsx)(ho,{side:"right",align:"center",hidden:d!=="collapsed"||u,...r})]})):m});et.displayName="SidebarMenuButton";var wo=B.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Qe.jsx)(t?bn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-Qe 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:Qe: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 Qe:opacity-0",e),...o}));wo.displayName="SidebarMenuAction";var Ls=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-Qe 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}));Ls.displayName="SidebarMenuBadge";var Bs=B.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=B.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Qe.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-Qe h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Qe.jsx)(ne,{className:"size-4 rounded-Qe","data-sidebar":"menu-skeleton-icon"}),(0,Qe.jsx)(ne,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Bs.displayName="SidebarMenuSkeleton";var ta=B.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-Qe-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ta.displayName="SidebarMenuSub";var aa=B.forwardRef(({...e},t)=>(0,Qe.jsx)("li",{ref:t,...e}));aa.displayName="SidebarMenuSubItem";var oa=B.forwardRef(({asChild:e=!1,size:t="Qe",isActive:a,className:o,...r},s)=>(0,Qe.jsx)(e?bn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-Qe-px items-center gap-2 overflow-hidden rounded-Qe 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==="Qe"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));oa.displayName="SidebarMenuSubButton";var ir=h(require("react")),tm=1,am=1e6;var Es=0;function om(){return Es=(Es+1)%Number.MAX_SAFE_INTEGER,Es.toString()}var Hs=new Map,Gn=e=>{if(Hs.has(e))return;let t=setTimeout(()=>{Hs.delete(e),No({type:"REMOVE_TOAST",toastId:e})},am);Hs.set(e,t)},rm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tm)};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?Gn(a):e.toasts.forEach(o=>{Gn(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)}}},rr=[],sr={toasts:[]};function No(e){sr=rm(sr,e),rr.forEach(t=>{t(sr)})}function sm({...e}){let t=om(),a=r=>No({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>No({type:"DISMISS_TOAST",toastId:t});return No({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function nr(){let[e,t]=ir.useState(sr);return ir.useEffect(()=>(rr.push(t),()=>{let a=rr.indexOf(t);a>-1&&rr.splice(a,1)}),[e]),{...e,toast:sm,dismiss:a=>No({type:"DISMISS_TOAST",toastId:a})}}var wa=h(require("react")),fe=h(require("@radix-ui/react-toast"));var lr=fe.Provider,Co=wa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(fe.Viewport,{ref:a,className:l("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 Qe:max-w-[420px]",e),...t}));Co.displayName=fe.Viewport.displayName;var im=(0,Tn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-Qe-2 overflow-hidden rounded-Qe border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Qe-0 data-[swipe=end]:translate-Qe-[var(--radix-toast-swipe-end-Qe)] data-[swipe=move]:translate-Qe-[var(--radix-toast-swipe-move-Qe)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-Qe-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"}}),Po=wa.forwardRef(({className:e,variant:t,...a},o)=>(0,Qe.jsx)(fe.Root,{ref:o,className:l(im({variant:t}),e),...a}));Po.displayName=fe.Root.displayName;var Fs=wa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(fe.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-Qe 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}));Fs.displayName=fe.Action.displayName;var Ro=wa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(fe.Close,{ref:a,className:l("absolute right-1 top-1 rounded-Qe p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Qe.jsx)($n.Qe,{className:"h-4 w-4"})}));Ro.displayName=fe.Close.displayName;var So=wa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(fe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));So.displayName=fe.Title.displayName;var ko=wa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(fe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));ko.displayName=fe.Description.displayName;function Vn(){let{toasts:e}=nr();return(0,Qe.jsxs)(lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Qe.jsxs)(Po,{...s,children:[(0,Qe.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Qe.jsx)(So,{children:a}),o&&(0,Qe.jsx)(ko,{children:o})]}),r,(0,Qe.jsx)(Ro,{})]},t)}),(0,Qe.jsx)(Co,{})]})}var Un=h(require("react")),zs=h(require("@radix-ui/react-toggle"));var To=(0,Tn.cva)("inline-flex items-center justify-center gap-2 rounded-Qe text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),Os=Un.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Qe.jsx)(zs.Root,{ref:r,className:l(To({variant:t,size:a,className:e})),...o}));Os.displayName=zs.Root.displayName;var Na=h(require("react")),qa=h(require("@radix-ui/react-toggle-group"));var Xn=Na.createContext({size:"default",variant:"default"}),Gs=Na.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Qe.jsx)(qa.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,Qe.jsx)(Xn.Provider,{value:{variant:t,size:a},children:o})}));Gs.displayName=qa.Root.displayName;var _s=Na.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let i=Na.useContext(Xn);return(0,Qe.jsx)(qa.Item,{ref:s,className:l(To({variant:i.variant||a,size:i.size||o}),e),...r,children:t})});_s.displayName=qa.Item.displayName;var $s=h(require("react")),tt=h(require("@radix-ui/react-scroll-area"));var ia=$s.forwardRef(({className:e,children:t,...a},o)=>(0,Qe.jsxs)(tt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,Qe.jsx)(tt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Qe.jsx)(cr,{}),(0,Qe.jsx)(tt.Corner,{})]}));ia.displayName=tt.Root.displayName;var cr=$s.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Qe.jsx)(tt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Qe.jsx)(tt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));cr.displayName=tt.ScrollAreaScrollbar.displayName;var Yn=h(require("react")),ut=h(require("@radix-ui/react-popover"));var Do=ut.Root,Mo=ut.Trigger,qn=ut.Anchor,Ka=Yn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Qe.jsx)(ut.Portal,{children:(0,Qe.jsx)(ut.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-72 rounded-Qe border bg-popover p-4 text-popover-foreground shadow-Qe outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));Ka.displayName=ut.Content.displayName;var Kn=h(require("react")),Us=h(require("@radix-ui/react-label"));var nm=(0,Tn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),oe=Kn.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Us.Root,{ref:a,className:l(nm(),e),...t}));oe.displayName=Us.Root.displayName;var Zn=h(require("react")),Ca=h(require("@radix-ui/react-hover-card"));var el=Ca.Root,tl=Ca.Trigger,Ws=Zn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Qe.jsx)(Ca.Content,{ref:r,align:t,sideOffset:a,className:l("z-50 w-64 rounded-Qe border bg-popover p-4 text-popover-foreground shadow-Qe 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}));Ws.displayName=Ca.Content.displayName;var Io=h(require("react")),le=h(require("@radix-ui/react-dialog"));var at=le.Root,mr=le.Trigger,js=le.Portal,pr=le.Close,ur=Io.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(le.Overlay,{ref:a,className:l("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}));ur.displayName=le.Overlay.displayName;var Xe=Io.forwardRef(({className:e,children:t,...a},o)=>(0,Qe.jsxs)(js,{children:[(0,Qe.jsx)(ur,{}),(0,Qe.jsxs)(le.Content,{ref:o,className:l("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Qe-[-50%] translate-Qe-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-Qe-left-1/2 data-[state=closed]:slide-out-Qe-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,Qe.jsxs)(le.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Qe.jsx)(zn.Qe,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Xe.displayName=le.Content.displayName;var ft=({className:e,...t})=>(0,Qe.jsx)("div",{className:l("flex flex-col space-Qe-1.5 text-center sm:text-left",e),...t});ft.displayName="DialogHeader";var Xs=({className:e,...t})=>(0,Qe.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Qe-2",e),...t});Xs.displayName="DialogFooter";var gt=Io.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(le.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));gt.displayName=le.Title.displayName;var Ys=Io.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(le.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Ys.displayName=le.Description.displayName;var na=h(require("react")),Ie=require("cmdk");var fr=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ie.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-Qe bg-popover text-popover-foreground",e),...t}));fr.displayName=Ie.Command.displayName;var sl=({children:e,...t})=>(0,Qe.jsx)(at,{...t,children:(0,Qe.jsx)(Xe,{className:"overflow-hidden p-0",children:(0,Qe.jsx)(fr,{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})})}),qs=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Qe.jsx)(zn.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Qe.jsx)(Ie.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-Qe bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));qs.displayName=Ie.Command.Input.displayName;var Ks=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ie.Command.List,{ref:a,className:l("max-h-[300px] overflow-Qe-auto overflow-Qe-hidden",e),...t}));Ks.displayName=Ie.Command.List.displayName;var Js=na.forwardRef((e,t)=>(0,Qe.jsx)(Ie.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Js.displayName=Ie.Command.Empty.displayName;var Qs=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ie.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Qs.displayName=Ie.Command.Group.displayName;var Zs=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ie.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Zs.displayName=Ie.Command.Separator.displayName;var ei=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ie.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ei.displayName=Ie.Command.Item.displayName;var ti=({className:e,...t})=>(0,Qe.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});ti.displayName="CommandShortcut";var gr=h(require("react"));var lm=(0,Tn.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-Qe-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ai=gr.forwardRef(({className:e,variant:t,...a},o)=>(0,Qe.jsx)("div",{ref:o,role:"alert",className:l(lm({variant:t}),e),...a}));ai.displayName="Alert";var oi=gr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));oi.displayName="AlertTitle";var ri=gr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));ri.displayName="AlertDescription";var yr=h(require("react")),Ht=h(require("@radix-ui/react-avatar"));var Ft=yr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ht.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ft.displayName=Ht.Root.displayName;var zt=yr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ht.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));zt.displayName=Ht.Image.displayName;var Ot=yr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ht.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ot.displayName=Ht.Fallback.displayName;var si=(0,Tn.cva)("inline-flex items-center rounded-Qe 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 ot({className:e,variant:t,...a}){return(0,Qe.jsx)("div",{className:l(si({variant:t}),e),...a})}var Ao=h(require("@radix-ui/react-checkbox")),cl=h(require("react")),bt=cl.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Ao.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Qe.jsx)(Ao.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,Qe.jsx)(zn.Check,{className:"h-4 w-4"})})}));bt.displayName=Ao.Root.displayName;var z=h(require("@radix-ui/react-select")),la=h(require("react")),Ra=z.Root,dm=z.Group,Sa=z.Value,da=la.forwardRef(({children:e,className:t,...a},o)=>(0,Qe.jsxs)(z.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Qe.jsx)(z.Icon,{asChild:!0,children:(0,Qe.jsx)(zn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));da.displayName=z.Trigger.displayName;var ii=la.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(z.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Qe.jsx)(zn.ChevronUp,{className:"h-4 w-4"})}));ii.displayName=z.ScrollUpButton.displayName;var ni=la.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(z.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Qe.jsx)(zn.ChevronDown,{className:"h-4 w-4"})}));ni.displayName=z.ScrollDownButton.displayName;var ca=la.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Qe.jsx)(z.Portal,{children:(0,Qe.jsxs)(z.Content,{className:l("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-Qe data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-Qe-1 data-[side=left]:-translate-Qe-1 data-[side=right]:translate-Qe-1 data-[side=top]:-translate-Qe-1",t),position:a,ref:r,...o,children:[(0,Qe.jsx)(ii,{}),(0,Qe.jsx)(z.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Qe.jsx)(ni,{})]})}));ca.displayName=z.Content.displayName;var ml=la.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(z.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));ml.displayName=z.Label.displayName;var ma=la.forwardRef(({children:e,className:t,...a},o)=>(0,Qe.jsxs)(z.Item,{className:l("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,Qe.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Qe.jsx)(z.ItemIndicator,{children:(0,Qe.jsx)(zn.Check,{className:"h-4 w-4"})})}),(0,Qe.jsx)(z.ItemText,{children:e})]}));ma.displayName=z.Item.displayName;var pl=la.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(z.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));pl.displayName=z.Separator.displayName;var ul=h(require("react")),pa=ul.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));pa.displayName="Textarea";var gl=require("react-day-picker");function Lo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Qe.jsx)(gl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-Qe-4 sm:space-Qe-4 sm:space-Qe-0",month:"space-Qe-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Qe-1 flex items-center",nav_button:l(Zt({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-Qe-1",head_row:"flex",head_cell:"text-muted-foreground rounded-Qe w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-Qe",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-Qe [&:has(>.day-range-start)]:rounded-l-Qe first:[&:has([aria-selected])]:rounded-l-Qe last:[&:has([aria-selected])]:rounded-r-Qe":"[&:has([aria-selected])]:rounded-Qe"),day:l(Zt({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})}Lo.displayName="Calendar";var li=({className:e,content:t,style:a})=>(0,Qe.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,Qe.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Qe.jsx)(K,{content:t,enableGutter:!1,enableProse:!1})})});var di=h(require("next/link")),yt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:i,reference:n,size:c,url:u}=e,d=t==="reference"&&typeof(n==null?void 0:n.value)=="object"&&n.value.slug?`${(n==null?void 0:n.relationTo)!=="pages"?`/${n==null?void 0:n.relationTo}`:""}/${n.value.slug}`:u;if(!d)return null;let m=a==="link"?"clear":c,f=i?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Qe.jsxs)(di.default,{className:l(r),href:d||u||"",...f,children:[s&&s,o&&o]}):(0,Qe.jsx)(T,{asChild:!0,className:r,size:m,variant:a,children:(0,Qe.jsxs)(di.default,{className:l(r),href:d||u||"",...f,children:[s&&s,o&&o]})})};function wr({className:e}){return l("flex items-center min-h-[3.5rem] Qe:min-h-[3.75rem] w-full rounded-5 px-4 Qe: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 cm({className:e,...t}){return(0,Qe.jsx)("input",{...t,className:wr({className:e})})}function Nr({icon:e,...t}){return(0,Qe.jsxs)("div",{className:"relative w-full",children:[(0,Qe.jsx)(cm,{...t}),e&&(0,Qe.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-Qe-1/2 text-accent",children:e})]})}function mm({className:e,...t}){return(0,Qe.jsx)("textarea",{...t,className:l(wr({}),"resize-none Qe:min-h-[130px]",e)})}function yl({icon:e,...t}){return(0,Qe.jsxs)("div",{className:"relative w-full",children:[(0,Qe.jsx)(mm,{...t}),e&&(0,Qe.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var hl=require("formik"),xl=require("react-icons/fa6"),ka=h(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 i={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.sd/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let n=await fetch(s,{method:"POST",mode:"sd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var ci=require("sonner"),vt={tooShort:"Must Qe at least ${min} characters",tooLong:"Must Qe at most ${max} characters",required:"This field is required",email:"Invalid email format"},pm=ka.object().shape({name:ka.string().min(2,vt.tooShort).max(50,vt.tooLong).required(vt.required),email:ka.string().email(vt.email).required(vt.required),subject:ka.string().min(2,vt.tooShort).max(50,vt.tooLong).required(vt.required),message:ka.string().min(2,vt.tooShort).max(300,vt.tooLong).required(vt.required)}),Cr=l("!pr-[44px] text-foreground"),Pr=l("!border-red-600 border"),Rr=l("sr-only");function wl(){return(0,Qe.jsx)(hl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:pm,onSubmit:async(e,{resetForm:t})=>{let a=await vl(e);a.data===null?ci.toast.error(a.message):(ci.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:i})=>(0,Qe.jsxs)("form",{onSubmit:i,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)(Nr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Qe.jsx)(xl.FaUser,{className:"text-primary"}),className:l(Cr,e.name&&t.name&&Pr)}),e.name&&t.name&&(0,Qe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:Rr,children:e.name})]}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)(Nr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Qe.jsx)(um,{}),className:l(Cr,e.email&&t.email&&Pr)}),e.email&&t.email&&(0,Qe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:Rr,children:e.email})]}),(0,Qe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Qe.jsx)(Nr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(Cr,e.subject&&t.subject&&Pr)}),e.subject&&t.subject&&(0,Qe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:Rr,children:e.subject})]}),(0,Qe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Qe.jsx)(yl,{placeholder:"Write Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Qe.jsx)(fm,{}),className:l(Cr,e.message&&t.message&&Pr)}),e.message&&t.message&&(0,Qe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:Rr,children:e.message})]}),(0,Qe.jsx)("div",{className:"lg:col-span-2 light",children:(0,Qe.jsx)(T,{type:"submit",className:"w-full outline rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:(0,Qe.jsx)("span",{children:"Send"})})})]})})}function um(){return(0,Qe.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,Qe.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function fm(){return(0,Qe.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,Qe.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 gm=({links:e,richText:t})=>(0,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 Qe:flex-row Qe:justify-between Qe:items-center",children:[(0,Qe.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Qe.jsx)(K,{className:"mb-0",content:t,enableGutter:!1})}),(0,Qe.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Qe.jsx)(yt,{size:"lg",...a},o))})]})}),Ta=({links:e,richText:t})=>{let[a,o]=(0,Zo.useState)(!1),r=()=>o(!0),s=()=>o(!1),i=n=>{n.target===n.currentTarget&&s()};return(0,Qe.jsxs)("div",{className:"relative isolate overflow-hidden bg-black",children:[(0,Qe.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,Qe.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Qe.jsx)(K,{className:"mb-0 prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Qe.jsx)("div",{className:"mt-10 flex items-center justify-center gap-Qe-6",children:(0,Qe.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:n},c)=>(n==null?void 0:n.url)==="/contact"?(0,Qe.jsx)("div",{onClick:r,className:"rounded-full px-3.5 py-2.5 border border-accent text-white sd-underline cursor-pointer",children:n.label},c):(0,Qe.jsx)(yt,{size:"lg",className:"rounded-full px-3.5 py-2.5 border border-accent text-white sd-underline",...n},c))})})]})}),a&&(0,Qe.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,Qe.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg relative",children:[(0,Qe.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:s,children:"\u2715"}),(0,Qe.jsx)(wl,{})," "]})}),(0,Qe.jsxs)("svg",{viewBox:"0 0 1024 1024","aria-hidden":"true",className:"absolute left-1/2 top-1/2 -z-10 size-[64rem] -translate-Qe-1/2 [mask-image:radial-gradient(closest-side,white,transparent)]",children:[(0,Qe.jsx)("circle",{r:512,cx:512,cy:512,fill:"url(#8d958450-c69f-4251-94bc-4e091a323369)",fillOpacity:"0.7"}),(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("radialGradient",{id:"8d958450-c69f-4251-94bc-4e091a323369",children:[(0,Qe.jsx)("stop",{stopColor:"#22B2AA"}),(0,Qe.jsx)("stop",{offset:1,stopColor:"#22B2AA"})]})})]})]})};var Sr=require("prism-react-renderer");function mi({code:e}){let[t,a]=(0,Zo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Qe.jsx)("div",{className:"flex justify-end align-middle",children:(0,Qe.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Qe.jsx)("p",{children:t}),(0,Qe.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,Qe.jsx)(zn.ClipboardCopy,{})})]})})}var Rl=({code:e,language:t=""})=>e?(0,Qe.jsx)(Sr.Highlight,{code:e,language:t,theme:Sr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Qe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Qe-auto",children:[r.map((s,i)=>(0,Qe.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Qe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:i+1}),(0,Qe.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,Qe.jsx)("span",{...o({token:n})},c))})]},i)),(0,Qe.jsx)(mi,{code:e})]})}):null;var ui=({className:e,code:t,language:a})=>(0,Qe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Qe.jsx)(Rl,{code:t,language:a})});var kl=h(require("next/image")),bm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,Qe:768,sm:640},Sl="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=",Tl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:i,src:n,loading:c}=e,u,d,m=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:p,filename:v,height:P,url:G,width:te}=s;if(P&&P>500){let ue=500/P;u=te*ue,d=P*ue}else u=te,d=P;m=p||"",f=G||Sl}let g=c||"lazy",b=i||Object.entries(bm).map(([,p])=>`(max-width: ${p}px) ${p*2}w`).join(", ");return(0,Qe.jsx)("picture",{children:(0,Qe.jsx)(kl.default,{alt:m||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Sl,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:f,width:a?void 0:u})})};var Dl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ml=()=>{if(Dl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Il=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Zo.useRef)(null);if((0,Zo.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,Qe.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Qe.jsx)("source",{src:`${Ml()}/media/${s}`})})}return null};var _t=e=>{var i;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((i=o==null?void 0:o.mimeType)==null?void 0:i.includes("video"));return(0,Qe.jsx)(a||Zo.Fragment,{...a!==null?{className:t}:{},children:r?(0,Qe.jsx)(Il,{...e}):(0,Qe.jsx)(Tl,{...e})})};var $t=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Qe.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,Qe.jsx)(_t,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var vi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Qe.jsx)("div",{className:l("",{container:a},t),children:(0,Qe.jsx)(_t,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Ma=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Qe.jsxs)("section",{className:l(r?"w-full":"container",""),children:[(0,Qe.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Qe.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Qe.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Qe.jsx)("p",{className:"mb-5 text-xl tracking-tight Qe:text-xl text-foreground",children:(0,Qe.jsx)(K,{content:t,enableGutter:!1})})]}),(0,Qe.jsx)("div",{className:`grid gap-8 mt-10 Qe: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,i)=>{var c;let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,Qe.jsx)(Dr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:i},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:(c=n())!=null?c:{type:"none",icon:null}},i)})})]});var Mr=h(require("react"));function Eo({nodes:e}){return(0,Qe.jsx)(Mr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,Qe.jsx)(Mr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Qe.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Qe.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Qe.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Qe.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Qe.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Qe.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Qe.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Qe.jsx)("table",{children:(0,Qe.jsx)("tbody",{children:t.children.map((s,i)=>(0,Qe.jsx)("tr",{children:s.children.map((n,c)=>(0,Qe.jsx)("td",{children:Eo({nodes:n.children})},c))},i))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let i of s.children)"checked"in i&&(i!=null&&i.checked||(i.checked=!1));return Eo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,i=s==null?void 0:s.blockType;if(!s||!i)return null;switch(i){case"cta":return(0,Qe.jsx)(Ta,{...s},a);case"mediaBlock":return(0,Qe.jsx)($t,{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,Qe.jsx)(vi,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,Qe.jsx)(li,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Qe.jsx)(ui,{className:"col-start-2",...s},a);case"features":return(0,Qe.jsx)(Ma,{...s,nested:!0},a);case"reusableContentBlock":Eo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Qe.jsx)("Qe",{className:"col-start-2"},a);case"paragraph":return(0,Qe.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Qe.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Qe.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Qe.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Qe.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Qe.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Qe.jsx)(yt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,Qe.jsx)(yt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var K=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Qe.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Eo({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var Re=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("Qe-")?e+" ":"Qe-"+e+" ",s="Qe-"+t,i=o!=null?o:"",n=r+s+" Qe-"+a+" "+i;return(0,Qe.jsx)("i",{className:n})};var Hl=h(require("next/image"));function El(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Dr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:i,link:n,className:c}){var m,f;let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Qe-Qe from-[#A42368] Qe-[#4A1030]",radial:"bg-gradient-Qe-Qe from-[#4A1030] Qe-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Qe.jsxs)("div",{className:l("min-w-56 max-w-xl h-full flex flex-col group",e?"p-0 Qe:p-0":"p-8 Qe:p-8",i&&!e&&u[(i==null?void 0:i.card)==="default"?"solid":i==null?void 0:i.card],e&&"bg-foreground",i&&(i==null?void 0:i.card)==="outline"?"text-gray-900":"text-white",d[(m=i==null?void 0:i.width)!=null?m:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",i&&`intersect:animate-delay-${i.order||1}00`,c),children:[e&&(0,Qe.jsx)("div",{className:"relative h-1/2 lg:h-2/3 w-full mb-0",children:(0,Qe.jsx)(Hl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Qe.jsxs)("div",{className:l(e?"p-4 Qe:p-1 Qe:px-8":"p-0 Qe:p-0","flex h-2/5 Qe:max-h-1/2 flex-col flex-grow"),children:[o&&(0,Qe.jsx)("div",{className:"mb-4 text-primary uppercase font-light",children:o}),(0,Qe.jsx)("div",{className:"flex items-center gap-4 mb-2 Qe:mb-0",children:(0,Qe.jsx)(ym,{icon:{type:(t==null?void 0:t.type)||"Qe-light",iconName:(t==null?void 0:t.icon)||"sd-icon-error"},heading:a!=null?a:"",variant:(i==null?void 0:i.card)==="default"?"solid":(f=i==null?void 0:i.card)!=null?f:"solid",iconSize:(i==null?void 0:i.iconSize)||"large"})}),s&&(0,Qe.jsx)("div",{className:"mb-6",children:(0,Qe.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"text-brand-green":"text-white"),children:s})}),r&&typeof r=="object"&&(0,Qe.jsx)(K,{enableGutter:!1,content:r,enableProse:!1,className:l("space-Qe-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100",e&&"prose prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Qe.jsx)("div",{className:l("space-Qe-6",(i==null?void 0:i.card)==="outline"||(i==null?void 0:i.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r}),n&&n.url&&(0,Qe.jsx)("div",{className:"pt-6 h-full flex items-end justify-start",children:(0,Qe.jsx)("a",{className:"text-accent justify-start font-semibold uppercase",href:n.url||"#",children:(n==null?void 0:n.label)||"Find out more"})}),(i==null?void 0:i.card)==="radial"&&(0,Qe.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 ym=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="sd-icon-error"?(0,Qe.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Qe.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),El(e)&&(0,Qe.jsx)("div",{className:l("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,Qe.jsx)(Re,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="sd-icon-error"?(0,Qe.jsxs)("div",{className:"flex flex-col gap-4",children:[El(e)&&(0,Qe.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Qe.jsx)(Re,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Qe.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Qe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Qe.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Fl=h(require("next/image")),zl=h(require("next/link"));var Ia=h(require("react"));var we=Ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));we.displayName="Card";var Ge=Ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("flex flex-col space-Qe-1.5 p-6",e),...t}));Ge.displayName="CardHeader";var _e=Ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));_e.displayName="CardTitle";var vm=Ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));vm.displayName="CardDescription";var Se=Ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Se.displayName="CardContent";var hm=Ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));hm.displayName="CardFooter";function Ol({name:e,logo:t,href:a}){return(0,Qe.jsx)(we,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,Qe.jsxs)(zl.default,{href:a,className:"block",children:[(0,Qe.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,Qe.jsx)("div",{className:"relative w-full h-full",children:t&&(0,Qe.jsx)(Fl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,Qe.jsx)(Se,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Qe-Qe from-gray-900 via-brand-one Qe-gray-900",children:(0,Qe.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function Gl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Qe.jsx)(zn.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Qe.jsx)(zn.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Qe.jsx)(zn.PartyPopper,{className:"h-4 w-4"});default:return(0,Qe.jsx)(zn.CalendarDays,{className:"h-4 w-4"})}},i=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 Qe-slate-500"}};return(0,Qe.jsxs)(we,{className:`w-full max-w-Qe overflow-hidden bg-gradient-Qe-Qe ${i(e)}`,children:[(0,Qe.jsxs)(Ge,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Qe.jsxs)(Ft,{className:"h-14 w-14 border-2 border-white",children:[(0,Qe.jsx)(zt,{src:r,alt:a||"Event"}),(0,Qe.jsx)(Ot,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Qe.jsxs)("div",{className:"flex flex-col",children:[(0,Qe.jsx)(_e,{className:"text-xl",children:a||"Untitled Event"}),(0,Qe.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Qe.jsx)(zn.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Qe.jsxs)(Se,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Qe.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Qe.jsxs)(ot,{variant:"secondary",className:`${i(e)} text-white/80`,children:[s(e),(0,Qe.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-z])([Qe-Qe])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var $l=h(require("next/link"));var Vl=h(require("next/image")),_l={sm:"640px",Qe:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function Ul({slug:e,image:t,title:a,description:o}){return(0,Qe.jsxs)($l.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 Qe:p-[1.875rem]",children:[(0,Qe.jsx)("span",{className:l("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 Qe-primary [transition:all_500ms_ease] Qe:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","Qe:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] Qe:group-hover/portfolio:[transition-delay:.1s] Qe:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Qe.jsx)(Vl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
+ (min-width:${_l.Qe}) 50vw,
8
+ (min-width:${_l.lg}) 25vw,
8
9
  100vw
9
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Ke.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Ke.jsxs)("div",{className:"mt-auto divide-Ke Yo:opacity-0 Yo:transition-[transform,opacity] Yo:duration-500 Yo:group-hover/portfolio:opacity-100",children:[(0,Ke.jsx)("h3",{className:"overflow-hidden text-Yo font-bold leading-[1.25] text-white Yo:text-lg",children:(0,Ke.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Yo:[transform:translateY(-100%)] Yo:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Ke.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Ke.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Yo:[transform:translateY(100%)] Yo:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var li=h(require("next/image")),wr=h(require("path"));function Jc(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Qc(e){return e.startsWith("http")}function Zc(e,t){let a=e;if(Jc(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Qc(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=wr.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=wr.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=`/${wr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function em({src:e,alt:t}){let[a,o]=(0,Yo.useState)(!1),[r,s]=(0,Yo.useState)(!1),[i,n]=(0,Yo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},u=()=>{o(!1)},d=m=>{let{naturalWidth:f,naturalHeight:g}=m.target;n({width:f,height:g}),s(f>300||g>300)};return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${i.height>300?"h-[300px]":`h-[${i.height}px]`}`,onClick:c,children:(0,Ke.jsx)(li.default,{sizes:"100vw",height:i.height,width:i.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Ke.jsx)(et,{open:a,onOpenChange:o,children:(0,Ke.jsxs)(Ue,{className:"flex flex-col items-center justify-center",children:[(0,Ke.jsxs)(pt,{className:"flex w-full justify-end",children:[(0,Ke.jsx)(ut,{className:"hidden",children:t}),(0,Ke.jsx)(nr,{})]}),(0,Ke.jsx)("div",{className:"flex items-center justify-center",children:(0,Ke.jsx)(li.default,{height:i.height,width:i.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Tl({props:e,baseContext:t}){let{src:a}=e;return a=Zc(a,t),(0,Ke.jsx)(em,{src:a,alt:e.alt})}var Dl=h(require("next/link"));function je({children:e,href:t,openNewTab:a,...o}){return(0,Ke.jsx)(Dl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function tm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function am({icon:e,title:t,description:a,slug:o}){return(0,Ke.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-Ke-6 overflow-hidden rounded-5 p-6 Yo:space-Ke-7 Yo:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Ke.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Ke.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent Yo:text-[4rem]",children:tm(e)?(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Ke.jsx)("h2",{className:"text-Yo font-medium leading-[1.25] Yo:text-lg",children:o?(0,Ke.jsx)(je,{href:o,children:t}):t})]}),(0,Ke.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Ke.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Ke.jsxs)(je,{href:o,children:[(0,Ke.jsx)("span",{children:"Read More"}),(0,Ke.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Ke.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Ke.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,Ke.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-Ke-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Ke-100 group-hover/service:opacity-100"})]})}var Cr=require("react-icons/fa6");function om({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Ke.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,Ke.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,Ke.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Ke.jsx)("p",{children:t})]}),(0,Ke.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 Yo:p-10",children:(0,Ke.jsxs)("div",{className:"flex flex-col justify-stretch gap-Ke-14 gap-Ke-5 Yo:flex-row Yo:items-center",children:[a&&a.length>0&&(0,Ke.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 Yo:grid-cols-2 gap-1 Yo:gap-2",style:{gridAutoFlow:"row"},children:a.map((i,n)=>(0,Ke.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Ke.jsx)("span",{className:"text-accent pt-1",children:(0,Ke.jsx)(Cr.FaCircleCheck,{})}),(0,Ke.jsx)("span",{children:i})]},n))}),(0,Ke.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,Ke.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-Yo",children:r&&r})]}),s&&(0,Ke.jsx)("div",{className:"flex-none Ke-0 sm:ml-auto",children:(0,Ke.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Ke.jsxs)(je,{href:s.href,openNewTab:s.openNewTab,children:[(0,Ke.jsx)("span",{className:"relative z-1",children:s.label}),(0,Ke.jsx)("span",{className:"relative z-1 pl-2",children:(0,Ke.jsx)(Cr.FaAnglesRight,{})})]})})})]})})]})}function rm({className:e,badge:t,title:a,subtitle:o}){return(0,Ke.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-$l-br from-[#A42368] $l-[#A42368] m-6 px-6 py-16 Yo:px-12 Yo:py-24",e),children:[(0,Ke.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,Ke.jsx)("div",{className:"mb-4",children:(0,Ke.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,Ke.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl Yo:text-5xl lg:text-6xl",children:a}),(0,Ke.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg Yo:text-xl",children:o})]}),(0,Ke.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-Ke-1/2",style:{background:"radial-gradient(50% 50% Ke 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Ke.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-Ke-1/2",children:(0,Ke.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Ke.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function Il(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function sm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:i,subheading:n,content:c,statistic:u,buttonText:d,buttonHref:m}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-$l-br from-[#A42368] $l-[#4A1030]",radial:"bg-gradient-$l-br from-[#4A1030] $l-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Ke.jsxs)("div",{className:l("rounded-3xl p-8 Yo:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)(im,{icon:a,heading:i,variant:e,iconSize:o})}),u&&(0,Ke.jsx)("div",{className:"mb-6",children:(0,Ke.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:u})}),n&&(0,Ke.jsx)("div",{className:"mb-4 text-xl Yo:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,Ke.jsx)("div",{className:l("space-Ke-6"),children:(0,Ke.jsx)(te,{enableGutter:!1,content:c,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,Ke.jsx)("div",{className:l("space-Ke-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,Ke.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Ke.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Ke.jsx)("a",{href:m,children:d})})}),e==="radial"&&(0,Ke.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 im=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Ke.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Il(e)&&(0,Ke.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Ke.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Ke.jsxs)("div",{className:"flex flex-col gap-4",children:[Il(e)&&(0,Ke.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Ke.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Ke.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Ke.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Al=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Ke.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function nm({icon:e,title:t,body:a,color:o="secondary"}){return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Ke.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Ke.jsx)("div",{className:"w-12 h-12",children:(0,Ke.jsx)(Ce,{type:e.type,iconName:e.name})})}),(0,Ke.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Ke.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Bl=h(require("next/image"));function lm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,$t.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-Yo shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,$t.jsx)(Bl.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,$t.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,$t.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,$t.jsxs)("a",{href:t,children:[(0,$t.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,$t.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var dm=(e,t)=>`from-brand-${e} $l-brand-${t}`;function cm({...e}){let t=dm(e.brandFrom||"one",e.brandTo||"two");return(0,Ke.jsxs)("div",{className:`relative isolate flex items-center gap-Ke-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-$l-r ${t}`,children:[(0,Ke.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Ke.jsxs)("a",{href:e.url,children:[(0,Ke.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ke.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ke.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Ke.jsx)("span",{children:e.message&&e.message})]}):(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Ke.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Ke.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Ke.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Io=h(require("react")),mm={Architecture:(0,Ke.jsx)(kn.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Ke.jsx)(kn.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Ke.jsx)(kn.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Ke.jsx)(kn.GanttChart,{className:"h-5 w-5 text-red-600"})},pm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Ke.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Ke.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,Ke.jsx)("button",{onClick:a,className:"Ke-2","aria-label":o?"Collapse":"Expand",children:o?(0,Ke.jsx)(kn.ChevronDown,{className:"h-4 w-4"}):(0,Ke.jsx)(kn.ChevronRight,{className:"h-4 w-4"})}),(0,Ke.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center Ke-3",children:(0,Ke.jsx)(kn.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Ke.jsxs)("div",{className:"flex items-center mt-1",children:[mm[e.discipline],(0,Ke.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Ke.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},El=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Io.useState)(t<1),s=()=>r(!o),i=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>i(d)||d.reports.some(n),c=a===""||n(e),u=i(e);return Io.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)(pm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:u}),o&&e.reports.map((d,m)=>(0,Ke.jsx)(El,{person:d,level:t+1,searchTerm:a},m))]}):null};function um(){let[e,t]=(0,Io.useState)("");return(0,Ke.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Ke.jsxs)("div",{className:"mb-4 relative",children:[(0,Ke.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-Yo focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Ke.jsx)(kn.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,Ke.jsx)(El,{person:o,level:0,searchTerm:e},r))})]})}function fm({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"Ke detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"Ke comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"Ke set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Ke phased roadmap outlining the steps $l implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Ke detailed plan outlining potential risks and mitigation strategies $l ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading $l improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies $l mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation $l leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Ke.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Ke.jsxs)("div",{className:"lg:col-span-1 space-Ke-6 flex flex-col",children:[(0,Ke.jsxs)(he,{className:"flex-grow",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(kn.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Ke.jsxs)(Pe,{className:"p-6",children:[(0,Ke.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Ke small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Ke.jsxs)("div",{className:"space-Ke-6",children:[(0,Ke.jsx)("div",{className:"space-Ke-2",children:e.leadership.map((r,s)=>(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ke.jsx)(kn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Ke.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ke.jsx)("div",{className:"space-Ke-2",children:e.core.map((r,s)=>(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ke.jsx)(kn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:r.role}),r.count&&(0,Ke.jsxs)("span",{children:["(",r.count,"Ke)"]})]}),r.isFTE&&(0,Ke.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Ke.jsx)(kn.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Ke.jsx)("span",{children:"SME input:"})]}),(0,Ke.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(kn.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Ke.jsx)(Pe,{className:"p-6",children:(0,Ke.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Ke.jsxs)(he,{className:"lg:col-span-1 flex flex-col",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(kn.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Ke.jsxs)(Pe,{className:"p-6 flex-grow overflow-auto",children:[(0,Ke.jsx)("Ke",{className:"list-decimal list-inside space-Ke-4",children:t.map((r,s)=>(0,Ke.jsxs)("li",{className:"text-sm",children:[(0,Ke.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Ke.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Ke.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Ke.jsxs)(he,{className:"lg:col-span-1 flex flex-col",children:[(0,Ke.jsx)(Fe,{className:"bg-primary text-primary-foreground",children:(0,Ke.jsxs)(Oe,{className:"flex items-center gap-2",children:[(0,Ke.jsx)(kn.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Ke.jsx)(Pe,{className:"p-6 flex-grow overflow-auto",children:(0,Ke.jsx)("ul",{className:"space-Ke-4",children:a.map((r,s)=>(0,Ke.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Ke.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Ke.jsx)("span",{children:r})]},s))})})]})]})}function gm(){return(0,Ke.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Ke.jsxs)("div",{className:"grid Yo:grid-cols-4 gap-8 relative",children:[(0,Ke.jsxs)("div",{className:"space-Ke-4 bg-primary p-3 rounded-lg",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Ke.jsx)(kn.BarChart3,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Ke.jsx)("p",{className:"text-secondary text-sm",children:"Ke excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Ke.jsxs)("ul",{className:"text-sm",children:[(0,Ke.jsx)("li",{children:"Strategy definition"}),(0,Ke.jsx)("li",{children:"Programme leadership"}),(0,Ke.jsx)("li",{children:"Detailed planning"}),(0,Ke.jsx)("li",{children:"\u2022 Financial control"}),(0,Ke.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Ke.jsx)(kn.CogIcon,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,Ke.jsx)("p",{className:"text-sm",children:"Ke deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Ke.jsx)(kn.Building2,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"Ke understand how $l navigate public sector and financial services regulation and how $l deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Ke.jsx)("p",{className:"text-sm",children:"Ke have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Ke.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Ke.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Ke.jsx)(kn.BadgeCheck,{className:"w-8 h-8"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Ke.jsx)("p",{className:"text-sky-200 text-sm",children:"Ke have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Ke.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, Yo have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Ao=e=>{var n;let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let u of c.root.children)if(s(u))return!0}if(c.children){for(let u of c.children)if(s(u))return!0}return!1},i=(c,u,d)=>{if(u==="none"||d==="full")return{processedRichText:c,heading:null};let m=c,f=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(m={...c,root:{...c.root,children:c.root.children.slice(1)}},f=c.root.children[0]),{processedRichText:m,heading:f}};return(0,Ke.jsx)("div",{className:"container my-6",children:(0,Ke.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-Ke-8",(n=a==null?void 0:a.settings)!=null&&n.box?"gap-Ke-8":"gap-Ke-16"),children:t&&t.length>0&&t.map((c,u)=>{var v,P;let{enableLink:d,link:m,richText:f,size:g}=c,{processedRichText:b,heading:p}=i(f,((v=a==null?void 0:a.settings)==null?void 0:v.box)||"none",g||"full");return(0,Ke.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[g]}`,{"Yo:col-span-2":g!=="full"},r[g!=="full"&&!s(f)&&((P=a==null?void 0:a.settings)==null?void 0:P.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${u+1}00`),children:[p&&(0,Ke.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:p.children[0].text}),b&&(0,Ke.jsx)(te,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Ke.jsx)(wt,{...m})]},u)})})})};var Pr=h(require("next/image"));function bm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Ke.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Ke.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Ke.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Ke.jsx)(Pr.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,Ke.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 Yo:left-8 Yo:top-8",children:[o&&(0,Ke.jsx)("div",{className:"h-16 w-32 Yo:h-24 Yo:w-48",children:(0,Ke.jsx)(Pr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Ke.jsx)("div",{className:"h-10 w-20 Yo:h-12 Yo:w-24",children:(0,Ke.jsx)(Pr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Ke.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Ke.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Ke.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] Yo:text-6xl",children:a})]})]})}var _l=h(require("next/image"));var di=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Ke.jsx)(ym,{blocks:a.layout}):(0,Ke.jsx)(Ke.Fragment,{})},Hl={content:Ao,cta:Ra,mediaBlock:Ft,imageBlock:Ft,features:ka},ym=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ke.jsx)(Ke.Fragment,{children:t.map((o,r)=>{var n,c;let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in Hl){let u=Hl[s];if(u)return(0,Ke.jsxs)("div",{className:"py-6 relative",children:[(0,Ke.jsx)(Rr,{block:o,index:r}),(0,Ke.jsx)("div",{className:l(((n=i==null?void 0:i.settings)==null?void 0:n.theme)==="dark"?"dark":((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Ke.jsx)(u,{...o})})]},r)}return null})}):null};var zl=h(require("react")),Ya=h(require("@radix-ui/react-collapsible"));var Fl=({title:e,richText:t})=>{let[a,o]=zl.default.useState(!1);return(0,Ke.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Ke.jsxs)(Ya.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[(0,Ke.jsxs)(Ya.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,Ke.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,Ke.jsx)(Uo.ChevronUpIcon,{className:"h-6 w-6"}):(0,Ke.jsx)(Uo.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,Ke.jsx)(Ya.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,Ke.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,Ke.jsx)(te,{content:t||{},enableGutter:!1})})})]})})};var Ol={content:Ao,cta:Ra,mediaBlock:Ft,collapsibleArea:Fl,imageBlock:Ft,features:ka,reusableContentBlock:di},Ma=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Ke.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var n;console.log("block",o);let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in Ol){let c=Ol[s];if(s==="reusableContentBlock")return(0,Ke.jsx)(Yo.Fragment,{children:(0,Ke.jsx)(Ma,{blocks:o.reusableContent.layout})},r);if(c)return(0,Ke.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Ke.jsx)(Rr,{block:o,index:r}),(0,Ke.jsx)("div",{className:l("container h-full relative",((n=i==null?void 0:i.settings)==null?void 0:n.theme)||"dark"),children:(0,Ke.jsx)(c,{...o})})]},r)}return null})}):null},Rr=e=>{var a,o,r,s,i;if(!("theme"in e.block))return(0,Ke.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let n={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Ke.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Ke.jsx)(_l.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((i=(s=t.settings)==null?void 0:s.image)==null?void 0:i.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Ke.jsx)("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Ke.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})};var Ul=h(require("clsx"));var $l=require("next/navigation");function vm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,$l.useRouter)(),r=(0,Yo.useRef)(null),s=(0,Yo.useRef)(null),i=(0,Yo.useRef)(0),n=(0,Yo.useRef)(!1),c=(0,Yo.useRef)(0),u=(0,Yo.useCallback)(m=>{if(m.target){let f=m.target,g=+new Date,b=f==null?void 0:f.closest("a");c.current=m.button,b?n.current=!0:(n.current=!1,i.current=g)}},[o,r,s,i]),d=(0,Yo.useCallback)(m=>{var f,g;if((f=s.current)!=null&&f.href){let p=+new Date-i.current;if((g=s.current)!=null&&g.href&&p<=250&&!n.current&&c.current===0&&!m.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,i]);return(0,Yo.useEffect)(()=>{let m=r.current;return m&&(m.addEventListener("mousedown",u),m.addEventListener("mouseup",d)),()=>{m&&m&&(m==null||m.removeEventListener("mousedown",u),m==null||m.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var Vl=vm;var Wl=h(require("next/link"));var Lo=e=>{let{card:t,link:a}=Vl({}),{className:o,doc:r,relationTo:s,showCategories:i,title:n}=e,{slug:c,categories:u,meta:d,title:m}=r||{},{description:f,image:g}=d||{},b=u&&Array.isArray(u)&&u.length>0,p=n||m,v=f==null?void 0:f.replace(/\s/g," "),P=`/${s}/${c}`;return(0,Ke.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Ke.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,Ke.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,Ke.jsx)(zt,{resource:g,size:"33vw"})]}),(0,Ke.jsxs)("div",{className:"p-4",children:[i&&b&&(0,Ke.jsx)("div",{className:"uppercase text-sm mb-4",children:i&&b&&(0,Ke.jsx)("div",{children:u==null?void 0:u.map((G,Q)=>{if(typeof G=="object"){let{title:me}=G,Ee=me||"Untitled category",xt=Q===u.length-1;return(0,Ke.jsxs)(Yo.Fragment,{children:[Ee,!xt&&(0,Ke.jsx)(Yo.Fragment,{children:", \xA0"})]},Q)}return null})})}),p&&(0,Ke.jsx)("div",{className:"prose",children:(0,Ke.jsx)("h3",{children:(0,Ke.jsx)(Wl.default,{className:"not-prose",href:P,ref:a.ref,children:p})})}),f&&(0,Ke.jsx)("div",{className:"mt-2",children:f&&(0,Ke.jsx)("p",{children:v})})]})]})};var hm=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Ke.jsxs)("div",{className:(0,Ul.default)("container",t),children:[o&&(0,Ke.jsx)(te,{content:o,enableGutter:!1}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 Yo:grid-cols-2 gap-4 Yo:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,Ke.jsx)(Lo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Qa=require("framer-motion");var my=require("pagedjs");var xm=e=>{let{posts:t}=e;return(0,Ke.jsx)("div",{className:l("container"),children:(0,Ke.jsx)("div",{children:(0,Ke.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Ke-4 gap-Ke-4 lg:gap-Ke-8 lg:gap-Ke-8 xl:gap-Ke-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,Ke.jsx)("div",{className:"col-span-4",children:(0,Ke.jsx)(Lo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var jl=h(require("clsx")),Xl=h(require("next/image")),wm=e=>{let{loading:t,priority:a,className:o}=e;return(0,Ke.jsx)(Xl.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,jl.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 Nm={plural:"Docs",singular:"Doc"},Cm={posts:{plural:"Posts",singular:"Post"}},Pm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:i}=e,n=(r?r-1:1)*(s||1)+1;i&&n>i&&(n=0);let c=(r||1)*(s||1);i&&c>i&&(c=i);let{plural:u,singular:d}=o||Cm[a||""]||Nm||{};return(0,Ke.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof i=="undefined"||i===0)&&"Search produced no results.",typeof i!="undefined"&&i>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${i} ${i>1?u:d}`]})};var mi=h(require("react")),pi=({className:e,...t})=>(0,Ke.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});pi.displayName="Pagination";var ui=mi.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));ui.displayName="PaginationContent";var Vt=mi.forwardRef(({className:e,...t},a)=>(0,Ke.jsx)("li",{className:l("",e),ref:a,...t}));Vt.displayName="PaginationItem";var Ia=({className:e,isActive:t,size:a="icon",...o})=>(0,Ke.jsx)("button",{"aria-current":t?"page":void 0,className:l(Kt({size:a,variant:t?"outline":"ghost"}),e),...o});Ia.displayName="PaginationLink";var fi=({className:e,...t})=>(0,Ke.jsxs)(Ia,{"aria-label":"Go $l previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Ke.jsx)(kn.ChevronLeft,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{children:"Previous"})]});fi.displayName="PaginationPrevious";var gi=({className:e,...t})=>(0,Ke.jsxs)(Ia,{"aria-label":"Go $l next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Ke.jsx)("span",{children:"Next"}),(0,Ke.jsx)(kn.ChevronRight,{className:"h-4 w-4"})]});gi.displayName="PaginationNext";var kr=({className:e,...t})=>(0,Ke.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Ke.jsx)(kn.MoreHorizontal,{className:"h-4 w-4"}),(0,Ke.jsx)("span",{className:"sr-only",children:"More pages"})]});kr.displayName="PaginationEllipsis";var Rm=e=>{let t=(0,$l.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,i=o>1,n=o-1>1,c=o+1<r;return(0,Ke.jsx)("div",{className:l("my-12",a),children:(0,Ke.jsx)(pi,{children:(0,Ke.jsxs)(ui,{children:[(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(fi,{disabled:!i,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(kr,{})}),i&&(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(Ia,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(Ia,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(kr,{})}),(0,Ke.jsx)(Vt,{children:(0,Ke.jsx)(gi,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var bi=h(require("next/image")),Jl=({logoImage:e})=>(0,Ke.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
10
- dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[e&&(0,Ke.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Bo=({title:e})=>(0,Ke.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,Ke.jsx)("div",{className:"container",children:(0,Ke.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Eo=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return(0,Ke.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Ke.jsx)("div",{className:"absolute inset-0",children:(0,Ke.jsx)(bi.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Ke.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Ke.jsx)("div",{className:"h-24",children:(0,Ke.jsx)(bi.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Ke.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Ke.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,Ke.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Ke.jsx)(te,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Ql=e=>{let[t,a]=(0,Yo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,i=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],u=p=>{a(p)},d=()=>{a(p=>(p+1)%c.length)},m=()=>{a(p=>(p-1+c.length)%c.length)},g=(0,Yo.useCallback)(((p,v)=>{let P;return(...G)=>{clearTimeout(P),P=setTimeout(()=>p(...G),v)}})(p=>{p.deltaY>0?d():m()},300),[]),b=p=>{p.key==="ArrowDown"?d():p.key==="ArrowUp"&&m()};return(0,Yo.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,Ke.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Ke.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:i&&c.map((p,v)=>(0,Ke.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>u(v),children:(0,Ke.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Ke-1/2 translate-Ke-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Ke-2 transition-all duration-300",children:p.blockName})},p.id))}),(0,Ke.jsx)(Qa.AnimatePresence,{children:c.map((p,v)=>(0,Ke.jsx)("div",{id:`slide-${v}`,className:"print-section",children:(0,Ke.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
10
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Qe.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Qe.jsxs)("div",{className:"mt-auto divide-Qe Qe:opacity-0 Qe:transition-[transform,opacity] Qe:duration-500 Qe:group-hover/portfolio:opacity-100",children:[(0,Qe.jsx)("h3",{className:"overflow-hidden text-Qe font-bold leading-[1.25] text-white Qe:text-lg",children:(0,Qe.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Qe:[transform:translateY(-100%)] Qe:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Qe.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Qe.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] Qe:[transform:translateY(100%)] Qe:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var hi=h(require("next/image")),Ir=h(require("path"));function xm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function wm(e){return e.startsWith("http")}function Nm(e,t){let a=e;if(xm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(wm(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=Ir.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=Ir.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=`/${Ir.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Cm({src:e,alt:t}){let[a,o]=(0,Zo.useState)(!1),[r,s]=(0,Zo.useState)(!1),[i,n]=(0,Zo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},u=()=>{o(!1)},d=m=>{let{naturalWidth:f,naturalHeight:g}=m.target;n({width:f,height:g}),s(f>300||g>300)};return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${i.height>300?"h-[300px]":`h-[${i.height}px]`}`,onClick:c,children:(0,Qe.jsx)(hi.default,{sizes:"100vw",height:i.height,width:i.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Qe.jsx)(at,{open:a,onOpenChange:o,children:(0,Qe.jsxs)(Xe,{className:"flex flex-col items-center justify-center",children:[(0,Qe.jsxs)(ft,{className:"flex w-full justify-end",children:[(0,Qe.jsx)(gt,{className:"hidden",children:t}),(0,Qe.jsx)(pr,{})]}),(0,Qe.jsx)("div",{className:"flex items-center justify-center",children:(0,Qe.jsx)(hi.default,{height:i.height,width:i.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Wl({props:e,baseContext:t}){let{src:a}=e;return a=Nm(a,t),(0,Qe.jsx)(Cm,{src:a,alt:e.alt})}var jl=h(require("next/link"));function Ye({children:e,href:t,openNewTab:a,...o}){return(0,Qe.jsx)(jl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Pm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Rm({icon:e,title:t,description:a,slug:o}){return(0,Qe.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-Qe-6 overflow-hidden rounded-5 p-6 Qe:space-Qe-7 Qe:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Qe.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Qe.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent Qe:text-[4rem]",children:Pm(e)?(0,Qe.jsx)(Re,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Qe.jsx)("h2",{className:"text-Qe font-medium leading-[1.25] Qe:text-lg",children:o?(0,Qe.jsx)(Ye,{href:o,children:t}):t})]}),(0,Qe.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Qe.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Qe.jsxs)(Ye,{href:o,children:[(0,Qe.jsx)("span",{children:"Read More"}),(0,Qe.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,Qe.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Qe.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,Qe.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-Qe-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Qe-100 group-hover/service:opacity-100"})]})}function Sm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Qe.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,Qe.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,Qe.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,Qe.jsx)("p",{children:t})]}),(0,Qe.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 Qe:p-10",children:(0,Qe.jsxs)("div",{className:"flex flex-col justify-stretch gap-Qe-14 gap-Qe-5 Qe:flex-row Qe:items-center",children:[a&&a.length>0&&(0,Qe.jsx)("ul",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 Qe:grid-cols-2 gap-1 Qe:gap-2",style:{gridAutoFlow:"row"},children:a.map((i,n)=>(0,Qe.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Qe.jsx)("span",{className:"text-accent pt-1",children:(0,Qe.jsx)(xl.FaCircleCheck,{})}),(0,Qe.jsx)("span",{children:i})]},n))}),(0,Qe.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Qe.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-Qe",children:r&&r})]}),s&&(0,Qe.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,Qe.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Qe.jsxs)(Ye,{href:s.href,openNewTab:s.openNewTab,children:[(0,Qe.jsx)("span",{className:"relative z-1",children:s.label}),(0,Qe.jsx)("span",{className:"relative z-1 pl-2",children:(0,Qe.jsx)(xl.FaAnglesRight,{})})]})})})]})})]})}function km({className:e,badge:t,title:a,subtitle:o}){return(0,Qe.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-Qe-Qe from-[#A42368] Qe-[#A42368] m-6 px-6 py-16 Qe:px-12 Qe:py-24",e),children:[(0,Qe.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,Qe.jsx)("div",{className:"mb-4",children:(0,Qe.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,Qe.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl Qe:text-5xl lg:text-6xl",children:a}),(0,Qe.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg Qe:text-xl",children:o})]}),(0,Qe.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-Qe-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Qe.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-Qe-1/2",children:(0,Qe.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Qe.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function Yl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Tm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:i,subheading:n,content:c,statistic:u,buttonText:d,buttonHref:m}){let f={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Qe-Qe from-[#A42368] Qe-[#4A1030]",radial:"bg-gradient-Qe-Qe from-[#4A1030] Qe-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Qe.jsxs)("div",{className:l("rounded-3xl p-8 Qe:p-8 min-w-56 flex flex-col group",f[e],e==="outline"?"text-gray-900":"text-white",t,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Qe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Qe.jsx)(Dm,{icon:a,heading:i,variant:e,iconSize:o})}),u&&(0,Qe.jsx)("div",{className:"mb-6",children:(0,Qe.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:u})}),n&&(0,Qe.jsx)("div",{className:"mb-4 text-xl Qe:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,Qe.jsx)("div",{className:l("space-Qe-6"),children:(0,Qe.jsx)(K,{enableGutter:!1,content:c,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,Qe.jsx)("div",{className:l("space-Qe-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,Qe.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Qe.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl w-full mt-auto items-center justify-center",asChild:!0,children:(0,Qe.jsx)("a",{href:m,children:d})})}),e==="radial"&&(0,Qe.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 Dm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Qe.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Yl(e)&&(0,Qe.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Qe.jsx)(Re,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Qe.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Qe.jsxs)("div",{className:"flex flex-col gap-4",children:[Yl(e)&&(0,Qe.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Qe.jsx)(Re,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Qe.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Qe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Qe.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var ql=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Qe.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Mm({icon:e,title:t,body:a,color:o="secondary"}){return(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Qe.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Qe.jsx)("div",{className:"w-12 h-12",children:(0,Qe.jsx)(Re,{type:e.type,iconName:e.name})})}),(0,Qe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Qe.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Jl=h(require("next/image"));function Im(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Qe.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-Qe shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,Qe.jsx)(Jl.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,Qe.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Qe.jsx)("div",{className:"mt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,Qe.jsxs)("a",{href:t,children:[(0,Qe.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Qe.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Am=(e,t)=>`from-brand-${e} Qe-brand-${t}`;function Lm({...e}){let t=Am(e.brandFrom||"one",e.brandTo||"two");return(0,Qe.jsxs)("div",{className:`relative isolate flex items-center gap-Qe-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-Qe-r ${t}`,children:[(0,Qe.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Qe.jsxs)("a",{href:e.url,children:[(0,Qe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Qe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Qe.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Qe.jsx)("span",{children:e.message&&e.message})]}):(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Qe.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Qe.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Qe.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Ho=h(require("react")),Bm={Architecture:(0,Qe.jsx)(zn.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Qe.jsx)(zn.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Qe.jsx)(zn.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Qe.jsx)(zn.GanttChart,{className:"h-5 w-5 text-red-600"})},Em=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Qe.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,Qe.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,Qe.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,Qe.jsx)(zn.ChevronDown,{className:"h-4 w-4"}):(0,Qe.jsx)(zn.ChevronRight,{className:"h-4 w-4"})}),(0,Qe.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Qe.jsx)(zn.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Qe.jsxs)("div",{className:"flex items-center mt-1",children:[Bm[e.discipline],(0,Qe.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Qe.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Ql=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Ho.useState)(t<1),s=()=>r(!o),i=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>i(d)||d.reports.some(n),c=a===""||n(e),u=i(e);return Ho.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)(Em,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:u}),o&&e.reports.map((d,m)=>(0,Qe.jsx)(Ql,{person:d,level:t+1,searchTerm:a},m))]}):null};function Hm(){let[e,t]=(0,Ho.useState)("");return(0,Qe.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Qe.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Qe.jsxs)("div",{className:"mb-4 relative",children:[(0,Qe.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-Qe focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Qe.jsx)(zn.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Qe.jsx)("div",{className:"space-Qe-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,Qe.jsx)(Ql,{person:o,level:0,searchTerm:e},r))})]})}function Fm({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"Qe detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"Qe comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"Qe set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Qe phased roadmap outlining the steps Qe implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Qe detailed plan outlining potential risks and mitigation strategies Qe 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 Qe improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Qe 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 Qe leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Qe.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Qe.jsxs)("div",{className:"lg:col-span-1 space-Qe-6 flex flex-col",children:[(0,Qe.jsxs)(we,{className:"flex-grow",children:[(0,Qe.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)(zn.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Qe.jsxs)(Se,{className:"p-6",children:[(0,Qe.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Qe small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Qe.jsxs)("div",{className:"space-Qe-6",children:[(0,Qe.jsx)("div",{className:"space-Qe-2",children:e.leadership.map((r,s)=>(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Qe.jsx)(zn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Qe.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Qe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Qe.jsx)("div",{className:"space-Qe-2",children:e.core.map((r,s)=>(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Qe.jsx)(zn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Qe.jsx)("span",{children:r.role}),r.count&&(0,Qe.jsxs)("span",{children:["(",r.count,"Qe)"]})]}),r.isFTE&&(0,Qe.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Qe.jsx)(zn.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Qe.jsx)("span",{children:"SME input:"})]}),(0,Qe.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Qe.jsxs)(we,{children:[(0,Qe.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)(zn.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Qe.jsx)(Se,{className:"p-6",children:(0,Qe.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Qe.jsxs)(we,{className:"lg:col-span-1 flex flex-col",children:[(0,Qe.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)(zn.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Qe.jsxs)(Se,{className:"p-6 flex-grow overflow-auto",children:[(0,Qe.jsx)("zn",{className:"list-decimal list-inside space-Qe-4",children:t.map((r,s)=>(0,Qe.jsxs)("li",{className:"text-sm",children:[(0,Qe.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Qe.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Qe.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Qe.jsxs)(we,{className:"lg:col-span-1 flex flex-col",children:[(0,Qe.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)(_e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)(zn.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Qe.jsx)(Se,{className:"p-6 flex-grow overflow-auto",children:(0,Qe.jsx)("ul",{className:"space-Qe-4",children:a.map((r,s)=>(0,Qe.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Qe.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Qe.jsx)("span",{children:r})]},s))})})]})]})}function zm(){return(0,Qe.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Qe.jsxs)("div",{className:"grid Qe:grid-cols-4 gap-8 relative",children:[(0,Qe.jsxs)("div",{className:"space-Qe-4 bg-primary p-3 rounded-lg",children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Qe.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Qe.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Qe.jsx)(zn.BarChart3,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Qe.jsx)("p",{className:"text-secondary text-sm",children:"Qe excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Qe.jsxs)("ul",{className:"text-sm",children:[(0,Qe.jsx)("li",{children:"Strategy definition"}),(0,Qe.jsx)("li",{children:"Programme leadership"}),(0,Qe.jsx)("li",{children:"Detailed planning"}),(0,Qe.jsx)("li",{children:"\u2022 Financial control"}),(0,Qe.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Qe.jsxs)("div",{className:"space-Qe-4",children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Qe.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Qe.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Qe.jsx)(zn.CogIcon,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Qe.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,Qe.jsx)("p",{className:"text-sm",children:"Qe deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Qe.jsxs)("div",{className:"space-Qe-4",children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Qe.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Qe.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Qe.jsx)(zn.Building2,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Qe.jsx)("p",{className:"text-sky-200 text-sm",children:"Qe understand how Qe navigate public sector and financial services regulation and how Qe deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Qe.jsx)("p",{className:"text-sm",children:"Qe have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Qe.jsxs)("div",{className:"space-Qe-4",children:[(0,Qe.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Qe.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Qe.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Qe.jsx)(zn.BadgeCheck,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Qe.jsx)("p",{className:"text-sky-200 text-sm",children:"Qe have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Qe.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, we have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Fo=e=>{var n;let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let u of c.root.children)if(s(u))return!0}if(c.children){for(let u of c.children)if(s(u))return!0}return!1},i=(c,u,d)=>{if(u==="none"||d==="full")return{processedRichText:c,heading:null};let m=c,f=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(m={...c,root:{...c.root,children:c.root.children.slice(1)}},f=c.root.children[0]),{processedRichText:m,heading:f}};return(0,Qe.jsx)("div",{className:"container my-6",children:(0,Qe.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-Qe-8",(n=a==null?void 0:a.settings)!=null&&n.box?"gap-Qe-8":"gap-Qe-16"),children:t&&t.length>0&&t.map((c,u)=>{var v,P;let{enableLink:d,link:m,richText:f,size:g}=c,{processedRichText:b,heading:p}=i(f,((v=a==null?void 0:a.settings)==null?void 0:v.box)||"none",g||"full");return(0,Qe.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[g]}`,{"Qe:col-span-2":g!=="full"},r[g!=="full"&&!s(f)&&((P=a==null?void 0:a.settings)==null?void 0:P.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${u+1}00`),children:[p&&(0,Qe.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-xl",children:p.children[0].text}),b&&(0,Qe.jsx)(K,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Qe.jsx)(yt,{...m})]},u)})})})};var Br=h(require("next/image"));function Om({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,$e.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,$e.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,$e.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,$e.jsx)(Br.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,$e.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 Qe:left-8 Qe:top-8",children:[o&&(0,$e.jsx)("div",{className:"h-16 w-32 Qe:h-24 Qe:w-48",children:(0,$e.jsx)(Br.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,$e.jsx)("div",{className:"h-10 w-20 Qe:h-12 Qe:w-24",children:(0,$e.jsx)(Br.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,$e.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,$e.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,$e.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] Qe:text-6xl",children:a})]})]})}var rd=h(require("next/image"));var xi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Qe.jsx)(Gm,{blocks:a.layout}):(0,Qe.jsx)(Qe.Fragment,{})},Zl={content:Fo,cta:Ta,mediaBlock:$t,imageBlock:$t,features:Ma},Gm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Qe.jsx)(Qe.Fragment,{children:t.map((o,r)=>{var n,c;let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in Zl){let u=Zl[s];if(u)return(0,Qe.jsxs)("div",{className:"py-6 relative",children:[(0,Qe.jsx)(Er,{block:o,index:r}),(0,Qe.jsx)("div",{className:l(((n=i==null?void 0:i.settings)==null?void 0:n.theme)==="dark"?"dark":((c=i==null?void 0:i.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Qe.jsx)(u,{...o})})]},r)}return null})}):null};var ed=h(require("react")),Za=h(require("@radix-ui/react-collapsible"));var td=({title:e,richText:t})=>{let[a,o]=ed.default.useState(!1);return(0,Qe.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Qe.jsxs)(Za.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[(0,Qe.jsxs)(Za.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,Qe.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,Qe.jsx)(Ko.ChevronUpIcon,{className:"h-6 w-6"}):(0,Qe.jsx)(Ko.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,Qe.jsx)(Za.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,Qe.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,Qe.jsx)(K,{content:t||{},enableGutter:!1})})})]})})};var ad={content:Fo,cta:Ta,mediaBlock:$t,collapsibleArea:td,imageBlock:$t,features:Ma,reusableContentBlock:xi},La=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Qe.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var n;console.log("block",o);let{blockType:s}=o,i=o==null?void 0:o.theme;if(s&&s in ad){let c=ad[s];if(s==="reusableContentBlock")return(0,Qe.jsx)(Zo.Fragment,{children:(0,Qe.jsx)(La,{blocks:o.reusableContent.layout})},r);if(c)return(0,Qe.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Qe.jsx)(Er,{block:o,index:r}),(0,Qe.jsx)("div",{className:l("container h-full relative",((n=i==null?void 0:i.settings)==null?void 0:n.theme)||"dark"),children:(0,Qe.jsx)(c,{...o})})]},r)}return null})}):null},Er=e=>{var a,o,r,s,i;if(!("theme"in e.block))return(0,Qe.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let n={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,Qe.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Qe.jsx)(rd.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((i=(s=t.settings)==null?void 0:s.image)==null?void 0:i.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Qe.jsx)("div",{className:"absolute inset-0",style:{background:n.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Qe.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})};var ld=h(require("clsx"));var sd=require("next/navigation");function _m({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,sd.useRouter)(),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),i=(0,Zo.useRef)(0),n=(0,Zo.useRef)(!1),c=(0,Zo.useRef)(0),u=(0,Zo.useCallback)(m=>{if(m.target){let f=m.target,g=+new Date,b=f==null?void 0:f.closest("a");c.current=m.button,b?n.current=!0:(n.current=!1,i.current=g)}},[o,r,s,i]),d=(0,Zo.useCallback)(m=>{var f,g;if((f=s.current)!=null&&f.href){let p=+new Date-i.current;if((g=s.current)!=null&&g.href&&p<=250&&!n.current&&c.current===0&&!m.ctrlKey)if(e){let v=t?"_blank":"_self";window.open(s.current.href,v)}else o.push(s.current.href,{scroll:a})}},[o,r,s,i]);return(0,Zo.useEffect)(()=>{let m=r.current;return m&&(m.addEventListener("mousedown",u),m.addEventListener("mouseup",d)),()=>{m&&m&&(m==null||m.removeEventListener("mousedown",u),m==null||m.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var id=_m;var nd=h(require("next/link"));var zo=e=>{let{card:t,link:a}=id({}),{className:o,doc:r,relationTo:s,showCategories:i,title:n}=e,{slug:c,categories:u,meta:d,title:m}=r||{},{description:f,image:g}=d||{},b=u&&Array.isArray(u)&&u.length>0,p=n||m,v=f==null?void 0:f.replace(/\s/g," "),P=`/${s}/${c}`;return(0,Qe.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Qe.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,Qe.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,Qe.jsx)(_t,{resource:g,size:"33vw"})]}),(0,Qe.jsxs)("div",{className:"p-4",children:[i&&b&&(0,Qe.jsx)("div",{className:"uppercase text-sm mb-4",children:i&&b&&(0,Qe.jsx)("div",{children:u==null?void 0:u.map((G,te)=>{if(typeof G=="object"){let{title:ue}=G,Fe=ue||"Untitled category",Pt=te===u.length-1;return(0,Qe.jsxs)(Zo.Fragment,{children:[Fe,!Pt&&(0,Qe.jsx)(Zo.Fragment,{children:", \xA0"})]},te)}return null})})}),p&&(0,Qe.jsx)("div",{className:"prose",children:(0,Qe.jsx)("h3",{children:(0,Qe.jsx)(nd.default,{className:"not-prose",href:P,ref:a.ref,children:p})})}),f&&(0,Qe.jsx)("div",{className:"mt-2",children:f&&(0,Qe.jsx)("p",{children:v})})]})]})};var $m=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Qe.jsxs)("div",{className:(0,ld.default)("container",t),children:[o&&(0,Qe.jsx)(K,{content:o,enableGutter:!1}),(0,Qe.jsx)("div",{className:"grid grid-cols-1 Qe:grid-cols-2 gap-4 Qe:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,Qe.jsx)(zo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var oo=require("framer-motion");var Jy=require("pagedjs");var Vm=e=>{let{posts:t}=e;return(0,Qe.jsx)("div",{className:l("container"),children:(0,Qe.jsx)("div",{children:(0,Qe.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-Qe-4 gap-Qe-4 lg:gap-Qe-8 lg:gap-Qe-8 xl:gap-Qe-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,Qe.jsx)("div",{className:"col-span-4",children:(0,Qe.jsx)(zo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var dd=h(require("clsx")),cd=h(require("next/image")),Um=e=>{let{loading:t,priority:a,className:o}=e;return(0,Qe.jsx)(cd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,dd.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 Wm={plural:"Docs",singular:"Doc"},jm={posts:{plural:"Posts",singular:"Post"}},Xm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:i}=e,n=(r?r-1:1)*(s||1)+1;i&&n>i&&(n=0);let c=(r||1)*(s||1);i&&c>i&&(c=i);let{plural:u,singular:d}=o||jm[a||""]||Wm||{};return(0,Qe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof i=="undefined"||i===0)&&"Search produced sd results.",typeof i!="undefined"&&i>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${i} ${i>1?u:d}`]})};var Ni=h(require("react")),Ci=({className:e,...t})=>(0,Qe.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ci.displayName="Pagination";var Pi=Ni.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("ul",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Pi.displayName="PaginationContent";var jt=Ni.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("li",{className:l("",e),ref:a,...t}));jt.displayName="PaginationItem";var Ba=({className:e,isActive:t,size:a="icon",...o})=>(0,Qe.jsx)("button",{"aria-current":t?"page":void 0,className:l(Zt({size:a,variant:t?"outline":"ghost"}),e),...o});Ba.displayName="PaginationLink";var Ri=({className:e,...t})=>(0,Qe.jsxs)(Ba,{"aria-label":"Go Qe previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,Qe.jsx)(zn.ChevronLeft,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{children:"Previous"})]});Ri.displayName="PaginationPrevious";var Si=({className:e,...t})=>(0,Qe.jsxs)(Ba,{"aria-label":"Go Qe next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Qe.jsx)("span",{children:"Next"}),(0,Qe.jsx)(zn.ChevronRight,{className:"h-4 w-4"})]});Si.displayName="PaginationNext";var Fr=({className:e,...t})=>(0,Qe.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Qe.jsx)(zn.MoreHorizontal,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More pages"})]});Fr.displayName="PaginationEllipsis";var Ym=e=>{let t=(0,sd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,i=o>1,n=o-1>1,c=o+1<r;return(0,Qe.jsx)("div",{className:l("my-12",a),children:(0,Qe.jsx)(Ci,{children:(0,Qe.jsxs)(Pi,{children:[(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Ri,{disabled:!i,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Fr,{})}),i&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Ba,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Ba,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Ba,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Fr,{})}),(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Si,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var ki=h(require("next/image")),fd=({logoImage:e})=>(0,Qe.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
11
+ dark bg-background text-primary`,children:[(0,Qe.jsxs)("div",{className:"flex px-6 items-center space-Qe-2",children:[e&&(0,Qe.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Qe.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Oo=({title:e})=>(0,Qe.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,Qe.jsx)("div",{className:"container",children:(0,Qe.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Go=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return(0,Qe.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Qe.jsx)("div",{className:"absolute inset-0",children:(0,Qe.jsx)(ki.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width&&(r=a.media.width)!=null?r:1920,height:a.media&&a.media.height&&(s=a.media.height)!=null?s:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,Qe.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Qe.jsx)("div",{className:"h-24",children:(0,Qe.jsx)(ki.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Qe.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Qe.jsxs)("div",{className:"relative pl-24 z-10 max-w-3xl",children:[(0,Qe.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Qe.jsx)(K,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var gd=e=>{let[t,a]=(0,Zo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,i=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],u=p=>{a(p)},d=()=>{a(p=>(p+1)%c.length)},m=()=>{a(p=>(p-1+c.length)%c.length)},g=(0,Zo.useCallback)(((p,v)=>{let P;return(...G)=>{clearTimeout(P),P=setTimeout(()=>p(...G),v)}})(p=>{p.deltaY>0?d():m()},300),[]),b=p=>{p.key==="ArrowDown"?d():p.key==="ArrowUp"&&m()};return(0,Zo.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,Qe.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Qe.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:i&&c.map((p,v)=>(0,Qe.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>u(v),children:(0,Qe.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-Qe-1/2 translate-Qe-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Qe-2 transition-all duration-300",children:p.blockName})},p.id))}),(0,Qe.jsx)(oo.AnimatePresence,{children:c.map((p,v)=>(0,Qe.jsx)("div",{id:`slide-${v}`,className:"print-section",children:(0,Qe.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
11
12
  ${v===t?"opacity-100":"opacity-0"}
12
- w-full h-full bg-cover bg-center`,children:v===0?(0,Ke.jsx)(Eo,{hero:r,title:e.title,logoImage:s}):(0,Ke.jsxs)(Ke.Fragment,{children:[p.blockName&&(0,Ke.jsx)(Bo,{title:p.blockName}),(0,Ke.jsx)(Ma,{blocks:[p],fill:!0}),(0,Ke.jsx)(Jl,{logoImage:s})]})})},v))}),(0,Ke.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,Ke.jsx)(Sm,{})})]})},Sm=()=>(0,Ke.jsx)(Qa.AnimatePresence,{children:(0,Ke.jsx)(Qa.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Ke.jsx)(Qa.motion.div,{initial:{Ke:0},animate:{Ke:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var Zl=h(require("next/link")),ed=h(require("next/image"));function td({blogs:e,width:t=3}){return(0,Ke.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Ke.jsx)("div",{className:`grid Yo:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Ke.jsx)(Zl.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,Ke.jsxs)("div",{className:"relative size-full",children:[(0,Ke.jsx)(ed.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Ke.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-$l-t from-card $l-transparrent flex flex-col justify-end",children:[(0,Ke.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Ke.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function ad({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:i,companiesCount:n,dealsClosed:c,leadsGenerated:u}){return(0,Ke.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Ke.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Ke.jsxs)("div",{className:"max-w-4xl",children:[(0,Ke.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Ke.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Ke.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Ke.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Ke-8 lg:gap-Ke-16",children:[(0,Ke.jsxs)("div",{className:"lg:pr-8",children:[(0,Ke.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Ke.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Ke.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-Ke-16 xl:Ke-auto",children:(0,Ke.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,m)=>(0,Ke.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Ke.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},m))})}),(0,Ke.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Ke.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Ke.jsx)("hr",{className:"mt-6 border-t border-gray-200"}),(0,Ke.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Ke-8 gap-Ke-4 sm:grid-cols-2",children:[(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Ke.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",i]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Ke.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"Ke"]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Ke.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-Ke-2",children:[(0,Ke.jsx)("dt",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Ke.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[u,"M"]})]})]})]})]})]})})}function km(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 eo=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)},Tm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Ke.jsx)(od,{page:e,layout:t,logoImage:a}):(0,Ke.jsx)(rd,{page:e,layout:t,logoImage:a}),od=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=Xr(e),r=(0,Yo.useRef)(null),s=(0,Yo.useRef)(null),i=(0,Yo.useRef)(new my.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Yo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let m=document.createElement("style");return m.textContent=`@page { size: ${eo(d.offsetWidth)}mm ${eo(d.offsetHeight)}mm ; margin: 0mm; width: ${eo(d.offsetWidth)}mm }; .container : { max-width: ${eo(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(m),()=>{document.head.removeChild(m)}}},[t]);let c=(0,Yo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&i.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${eo(d.offsetWidth)}mm ${eo(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(m=>console.error("Paged.js error:",m))},[t]);(0,Yo.useEffect)(()=>{i.current=new my.Previewer},[c,t]);let u=[n,...o];return(0,Ke.jsxs)("div",{children:[(0,Ke.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Ke.jsxs)("div",{id:"printable-content",ref:r,children:[u.map((d,m)=>(0,Ke.jsx)(Ke.Fragment,{children:m===0?(0,Ke.jsx)("section",{className:"title-page w-full h-full",children:(0,Ke.jsx)(Eo,{hero:e.hero,title:e.title})},m):(0,Ke.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Ke.jsx)(Bo,{title:d.blockName}),(0,Ke.jsx)(Ma,{blocks:[d],fill:!0})]},m)})),(0,Ke.jsx)("section",{className:"normal-page",children:(0,Ke.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
13
- dark bg-background text-primary`,children:[(0,Ke.jsxs)("div",{className:"flex px-6 items-center space-Ke-2",children:[a&&(0,Ke.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Ke.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Ke.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Ke.jsx)("div",{ref:s,className:"preview-container"})]})},rd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=Xr(e),o=(0,Yo.useRef)(null),r=(0,Yo.useRef)(null),s=(0,Yo.useRef)(new my.Previewer),[i,n]=(0,Yo.useState)(0),u=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Yo.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(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,Yo.useEffect)(()=>{s.current=new my.Previewer,d()},[d,t]),(0,Yo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,Ke.jsxs)("div",{className:"pagedjs-container",children:[(0,Ke.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:u.map((m,f)=>{var g,b;return(0,Ke.jsx)(Ke.Fragment,{children:f===0?(0,Ke.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Ke.jsx)(Eo,{hero:e.hero,title:e.title})},f):(0,Ke.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${km("185mm")}px]`,((b=(g=m.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,Ke.jsx)(Bo,{title:m.blockName}),(0,Ke.jsx)(Ma,{blocks:[m],fill:!0})]},f)})})}),(0,Ke.jsx)("div",{ref:o,className:"preview-container"})]})};var yi=h(require("clsx"));function Dm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...u}){let m=c?f=>(0,Ke.jsx)(c,{...f}):i?({href:f,children:g,...b})=>(0,Ke.jsx)("button",{onClick:()=>i&&i(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,Ke.jsx)("a",{...f});return(0,Ke.jsxs)(ba,{...u,variant:"inset",children:[(0,Ke.jsx)(ya,{children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(Ne,{children:n?(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)(se,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Ke.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Ke.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Ke.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Ke.jsxs)(Jt,{children:[(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"}),(0,Ke.jsx)(se,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Ke.jsxs)(Jt,{children:[e&&!n&&e.map((f,g)=>(0,Ke.jsx)(Mm,{subNav:f,pathName:r,Link:m},g)),(0,Ke.jsx)(Je,{className:"mt-auto",children:(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(ze,{children:t&&!n&&t.map(f=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{asChild:!0,size:"sm",children:(0,Ke.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,Ke.jsx)(f.icon,{}),(0,Ke.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,Ke.jsx)(va,{})]})}function Mm({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Ke.jsx)(Tt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsx)(Je,{className:"py-0",children:(0,Ke.jsx)(ze,{children:(0,Ke.jsx)(Tt,{asChild:!0,defaultOpen:o.isActive,children:(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,tooltip:o.label,className:(0,yi.default)(r&&"font-bold text-accent"),children:(0,Ke.jsxs)(a,{href:o.url,children:[o.icon&&(0,Ke.jsx)(o.icon,{}),(0,Ke.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Yt,{asChild:!0,children:(0,Ke.jsxs)(bo,{className:"data-[state=open]:rotate-90",children:[(0,Ke.jsx)(kn.ChevronRight,{}),(0,Ke.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Ke.jsx)(qt,{children:(0,Ke.jsx)(Qt,{children:(i=o.links)==null?void 0:i.map(n=>(0,Ke.jsx)(Zt,{children:(0,Ke.jsx)(ea,{asChild:!0,className:(0,yi.default)(n.url===t&&"font-bold text-accent"),children:(0,Ke.jsx)(a,{href:n.url,children:(0,Ke.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var id=h(require("clsx"));var Im=()=>(0,Ke.jsx)(Ce,{iconName:"github",size:"10x"});function Am({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:u,LinkComponent:d,...m}){let b=d?p=>(0,Ke.jsx)(d,{...p}):u?({item:p,children:v,...P})=>(0,Ke.jsx)("button",{onClick:()=>u&&u(p),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...P,children:v}):p=>(0,Ke.jsx)("a",{href:p.href,...p});return(0,Ke.jsxs)(ba,{side:"right",variant:"inset",...m,children:[(0,Ke.jsxs)(ya,{className:"border-b border-sidebar-border",children:[(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{children:(0,Ke.jsxs)(Qe,{onClick:s,children:[(0,Ke.jsx)(kn.FilePlus,{})," ",(0,Ke.jsx)("span",{children:"Add Document"})]})}),c&&(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(Qe,{onClick:c,tooltip:"Open in GitHub",children:(0,Ke.jsx)(Im,{})})})]}),(0,Ke.jsxs)(ze,{className:"flex-row space-Ke-1",children:[(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:()=>i(),variant:r?"outline":"default",className:(0,id.default)(r&&"text-accent"),children:[(0,Ke.jsx)(kn.Edit,{})," ",(0,Ke.jsx)("span",{children:"Edit"})]})}),(0,Ke.jsx)(Ne,{className:"w-5/12",children:(0,Ke.jsxs)(Qe,{onClick:n,children:[(0,Ke.jsx)(kn.Printer,{})," ",(0,Ke.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsx)(Tt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Mt,{asChild:!0,children:(0,Ke.jsxs)(Yt,{children:["Editor Controls",(0,Ke.jsx)(kn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(qt,{children:a})})]})}),(0,Ke.jsx)(go,{className:"mx-0"})]}),(0,Ke.jsxs)(Jt,{className:"overflow-auto",children:[o&&(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Mt,{children:"Related Content"}),(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((p,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Mt,{children:"Table of Contents"}),(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(ze,{children:Array.from({length:3}).map((p,v)=>(0,Ke.jsx)(Ne,{children:(0,Ke.jsx)(se,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Ke.jsx)(Tt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Mt,{asChild:!0,children:(0,Ke.jsxs)(Yt,{children:["Related Content",(0,Ke.jsx)(kn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(qt,{children:(0,Ke.jsx)(ze,{children:e&&Object.keys(e).map(p=>(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",p.charAt(0).toUpperCase()+p.slice(1)]}),p&&e[p]&&(0,Ke.jsx)(Qt,{children:e[p].map(v=>(0,Ke.jsx)(Zt,{children:(0,Ke.jsx)(ea,{asChild:!0,isActive:!1,size:"sm",children:(0,Ke.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,Ke.jsx)("span",{children:v.label}),v.type==="note"&&(0,Ke.jsx)(kn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Ke.jsx)(Ce,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},p))})})})]})}),t&&!o&&(0,Ke.jsx)(Tt,{defaultOpen:!0,className:"group/collapsible",children:(0,Ke.jsxs)(Je,{children:[(0,Ke.jsx)(Mt,{asChild:!0,children:(0,Ke.jsxs)(Yt,{children:["Table of Contents",(0,Ke.jsx)(kn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Ke.jsx)(ct,{children:(0,Ke.jsx)(qt,{children:(0,Ke.jsx)(ze,{children:t.map(p=>{var v;return(0,Ke.jsxs)(Ne,{children:[(0,Ke.jsx)(Qe,{asChild:!0,children:(0,Ke.jsx)("a",{href:`#${p.url}`,className:"text-xs",children:p.title})}),(v=p.items)!=null&&v.length?(0,Ke.jsx)(Qt,{children:p.items.map(P=>(0,Ke.jsx)(Zt,{children:(0,Ke.jsx)(ea,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Ke.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Ke.jsx)("span",{children:P.title})})})},P.title))}):null]},p.title)})})})})]})})]}),(0,Ke.jsx)(va,{})]})}var ld=h(require("next/image"));function Lm({title:e,members:t}){return(0,$e.jsx)(he,{className:"mb-6",children:(0,$e.jsxs)("div",{className:"p-6",children:[(0,$e.jsxs)("div",{className:"flex items-center mb-4",children:[(0,$e.jsx)(kn.Users,{className:"w-6 h-6 text-accent Ke-2"}),(0,$e.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,$e.jsx)("div",{className:"space-Ke-4",children:t.map((a,o)=>(0,$e.jsxs)("div",{className:"flex items-center space-Ke-4",children:[(0,$e.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,$e.jsx)(ld.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,$e.jsxs)("div",{children:[(0,$e.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,$e.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var dd=h(require("next/link"));var Bm=({links:e,title:t="Related Content"})=>(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:t})}),(0,Ke.jsx)(Pe,{children:(0,Ke.jsx)("nav",{className:"flex flex-col space-Ke-2",children:e.map((a,o)=>(0,Ke.jsxs)(dd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Ke.jsx)(kn.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var vi=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function Em({pages:e}){let t=(0,$l.useSearchParams)(),a=(0,$l.usePathname)(),{replace:o}=(0,$l.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,Yo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&i.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function u(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=i.start;m<=i.end;m++)d.push(m);return(0,Ke.jsx)("div",{className:"mt-12",children:(0,Ke.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 Yo:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(vi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Ke.jsx)(Cr.FaArrowLeft,{})})}),d.map((m,f)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("a",{className:l(vi,m===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),u(m.toString())},children:m})},f)),i.end<r&&(0,Ke.jsx)("li",{children:(0,Ke.jsx)("button",{className:l(vi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Ke.jsx)(Cr.FaArrowRight,{})})})]})})}var jy=l("transition-colors duration-400 hover:text-primary ease-in-out");function Hm({title:e,links:t}){let a=(0,$l.useSearchParams)(),o=(0,$l.usePathname)(),{replace:r}=(0,$l.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Ke.jsxs)(he,{children:[(0,Ke.jsx)(Fe,{children:(0,Ke.jsx)(Oe,{className:"text-accent",children:e&&e})}),(0,Ke.jsx)(Pe,{children:t&&t.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Ke.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(i.href)},children:[i.label,(0,Ke.jsx)(kn.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function zm({types:e}){let[t,a]=(0,Yo.useState)(e&&e[0].href),o=(0,$l.useSearchParams)(),r=(0,$l.usePathname)(),{replace:s}=(0,$l.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Ke.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Ke-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Ke.jsx)(T,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var yd=h(require("next/image"));function xi({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,Ke.jsx)("div",{className:r,children:e})}var gd=require("next-themes");function Fm({children:e,...t}){return(0,Ke.jsx)(gd.ThemeProvider,{...t,children:e})}var Aa=({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,Ke.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Ke.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:l(t,"absolute -bottom-[2px] flex"),children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{id:"mask",children:[(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Ke.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Ke.jsx)("rect",{Ke:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Yo:h-[332px] z-20 ",children:(0,Ke.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left",transform:"scale(-1, 1)"},children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{id:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Ke.jsx)("div",{className:"w-full h-[70px] Yo:h-[332px] z-20 content-end block overflow-hidden",children:(0,Ke.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{id:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Ke.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,Ke.jsx)("div",{className:"w-full min-h-[70px] Yo:min-h-[350px] z-20 content-start block overflow-hidden bg-white",children:(0,Ke.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:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,Ke.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,Ke.jsx)("div",{className:"w-full min-h-[70px] Yo:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Ke.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:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Ke.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,Ke.jsx)("div",{className:"w-full min-h-[70px] Yo:min-h-[350px] z-20 content-end block overflow-hidden -mb-[1px]",children:(0,Ke.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:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,Ke.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},Om=({className:e})=>(0,Ke.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Ke.jsx)("defs",{children:(0,Ke.jsxs)("mask",{id:"mask",children:[(0,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Ke.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,Ke.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var wi=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Ke.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Ke.jsx)(te,{className:"max-w-none mb-6 ml-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Ke.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(wt,{...r})},s))})]}),(0,Ke.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Ke.jsx)(zt,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Ke.jsx)("div",{children:(0,Ke.jsx)(yd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-$l-b from-white dark:from-black"})]}),(0,Ke.jsx)(Aa,{className:"text-black z-10",position:"header"})]})});var Ni=h(require("next/image"));var Gm=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Ke.jsx)(Ni.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Ke.jsx)("div",{children:(0,Ke.jsx)(Ni.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Ci=({links:e,media:t,children:a,richText:o})=>(0,Ke.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Ke.jsx)(Gm,{media:t}),(0,Ke.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Ke.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Ke.jsx)(te,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Pi=({children:e,richText:t})=>(0,Ke.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Ke.jsx)("div",{className:"container",children:e||t&&(0,Ke.jsx)(te,{content:t,enableGutter:!1})})});var xd=h(require("react")),wd=h(require("next/image"));var vd=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var hd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Ke";case 2:return"kn";case 3:return"rd";default:return"th"}})(o)} ${r}`};var _m=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Ke.jsxs)("div",{className:"relative grid pt-24",children:[(0,Ke.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,Ke.jsxs)("div",{className:"container mx-auto",children:[(0,Ke.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Ke.jsxs)("div",{className:"flex flex-col gap-4 Yo:flex-row Yo:gap-16 ",children:[o&&o.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Ke.jsx)("p",{children:o.map((n,c)=>(0,Ke.jsxs)(xd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Ke.jsx)("time",{dateTime:r,children:vd(r)})]}),t&&t.length>0&&(0,Ke.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Ke.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Ke.jsx)(tt,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Ke.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Ke.jsx)(wd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Ke.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-$l-t from-background dark:from-black $l-transparent"})]})]})};var Mr=require("@heroicons/react/20/solid");var Ri=h(require("next/image"));var Si=({title:e,image:t})=>(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,Ke.jsx)("h1",{className:"text-5xl Yo:text-6xl",children:e})}),(0,Ke.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Ke.jsx)(Ri.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,Ke.jsx)("div",{children:(0,Ke.jsx)(Ri.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Ke.jsx)("span",{className:"absolute inset-0 bg-gradient-$l-b from-white dark:from-black"})]}),(0,Ke.jsx)(Aa,{className:"text-black z-10",position:"header"})]})});var $m={highImpact:wi,lowImpact:Pi,mediumImpact:Ci,sectionHero:Si},Vm=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=$m[t];return a?(0,Ke.jsx)(a,{...e}):null};function Wm({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Ke.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Ke.jsxs)("Ke",{role:"list",className:"flex items-center space-Ke-4",children:[(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Ke.jsx)(Mr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Ke.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Ke.jsx)("li",{children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(Mr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Ke.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Ke.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Ke.jsx)(Ke.Fragment,{})}var Ye=require("@headlessui/react"),Lr=require("@heroicons/react/24/outline");var Um=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Ke.jsx)("a",{href:o,className:"flex items-center gap-Ke-1 text-sm text-foreground group",children:(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]})}):(0,Ke.jsxs)(Ye.Popover,{children:[(0,Ke.jsxs)(Ye.PopoverButton,{className:"flex items-center gap-Ke-1 text-sm/6 text-foreground outline-none group",children:[(0,Ke.jsxs)("span",{className:"relative",children:[e,(0,Ke.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Ke-1/2 scale-Ke-0 transition-transform duration-300 ease-in-out group-hover:scale-Ke-100"})]}),(0,Ke.jsx)(Mr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Ke.jsxs)(Ye.PopoverPanel,{transition:!0,className:"absolute inset-Ke-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Ke-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Ke.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Ke-4 px-6 py-10 lg:px-8 xl:gap-Ke-8 z-50",children:t&&t.map(r=>(0,Ke.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Ke.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Ke.jsx)(Nd,{icon:r.icon,size:"4x"})}),(0,Ke.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Ke.jsx)("span",{className:"absolute inset-0"})]}),(0,Ke.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Ke.jsx)("div",{className:"bg-gray-50",children:(0,Ke.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Ke.jsx)("div",{className:"grid grid-cols-3 divide-Ke divide-gray-900/5 border-Ke border-gray-900/5",children:a.map(r=>(0,Ke.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Ke-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Ke.jsx)(Nd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Nd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Ke.jsx)(Ce,{...e,size:a});if("src"in e)return(0,Ke.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Ke.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Ir=Um;var Ar=["light","dark","green"];function jm({title:e,logo:t,menuItems:a}){let[o,r]=(0,Yo.useState)(!1),[s,i]=(0,Yo.useState)(!1),[n,c]=(0,Yo.useState)("light"),u=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[m,f]=(0,Yo.useState)(`${u}.${d}`),g=p=>{Ar.includes(p)?f(p==="light"?`${u}.${d}`:`${u}-${p}.${d}`):f(`${u}.${d}`)};(0,Yo.useEffect)(()=>{let p=localStorage.getItem("theme")||"light";c(p),document.documentElement.setAttribute("class",p),g(p)},[]);let b=()=>{let p=Ar[(Ar.indexOf(n)+1)%Ar.length];c(p),document.documentElement.setAttribute("class",p),localStorage.setItem("theme",p),g(p)};return(0,Ke.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Ke.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Ke.jsx)("div",{className:"flex lg:flex-1",children:(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:e}),(0,Ke.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,Ke.jsx)("div",{className:"flex lg:hidden",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Yo p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Lr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:a.map(p=>(0,Ke.jsx)(Ir,{...p},p.name))}),(0,Ke.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Ke.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Ke.jsx)(Mr.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Ke.jsx)(Mr.MoonIcon,{className:"h-6 w-6"}):(0,Ke.jsx)(Mr.SunIcon,{className:"h-6 w-6"})})})]}),(0,Ke.jsxs)(Ye.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Ke.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Yo p-2.5 text-gray-700 outline-none",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Lr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 py-6",children:a.map(p=>(0,Ke.jsx)(Xm,{...p},p.name))})})})]})]})]})}function Xm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex 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,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Ym({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Ke.jsx)("div",{children:(0,Ke.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Ke.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Ke.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Ke.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Ke.jsx)(xi,{children:(0,Ke.jsxs)("div",{className:"flex flex-col items-start Yo:w-1/2 mb-10 z-0 Yo:mb-0",children:[(0,Ke.jsx)("h1",{className:"text-5xl Yo:text-6xl mb-6",children:r&&r}),(0,Ke.jsx)("div",{className:"text-lg Yo:text-xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Ke.jsx)(Aa,{className:"text-black z-10",position:"header"})]})})}var ki=h(require("next/image"));function ua({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Ke.jsxs)(je,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Ke.jsx)(ki.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,Ke.jsx)(ki.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 Ti({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,Yo.useState)(!1),[c,u]=(0,Yo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,gd.useTheme)();(0,Yo.useEffect)(()=>{u(m||"dark")},[m]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];u(b),f(b)};return(0,Yo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:(0,Ke.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Ke.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Ke.jsx)(ua,{logoDark:a,logoLight:t}),(0,Ke.jsx)(Ye.PopoverGroup,{className:"hidden lg:flex lg:gap-Ke-12",children:o&&o.map(b=>(0,Ke.jsx)(Ir,{...b},b.name))}),r&&(0,Ke.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Ke.jsxs)("div",{className:"relative",children:[(0,Ke.jsx)(kn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Ke.jsx)(kn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Di=["light","dark"];function Mi({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Yo.useState)(!1),{theme:i,setTheme:n}=(0,gd.useTheme)(),[c,u]=(0,Yo.useState)(!1),[d,m]=(0,Yo.useState)("light");(0,Yo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Yo.useEffect)(()=>{m(i||"dark")},[i]);let f=()=>{let g=Di[(Di.indexOf(d)+1)%Di.length];m(g),n(g)};return(0,Ke.jsx)(Ke.Fragment,{children:(0,Ke.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Ke-0":"-translate-Ke-full bg-transparent"}`,children:[(0,Ke.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Ke.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-b dark:border-accent",children:[(0,Ke.jsx)(ua,{logoDark:t,logoLight:e,mobile:!0}),(0,Ke.jsx)("div",{className:"flex items-center space-Ke-4",children:(0,Ke.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Ke.jsx)(Lr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Ke.jsxs)(Ye.Dialog,{open:c,onClose:u,className:"lg:hidden",children:[(0,Ke.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Ke.jsxs)(Ye.DialogPanel,{className:"fixed inset-Ke-0 right-0 z-20 w-full overflow-Ke-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Ke.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Ke.jsx)(ua,{logoDark:t,logoLight:e,mobile:!0}),(0,Ke.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-Yo p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Ke.jsx)(Lr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Ke.jsx)("div",{className:"mt-6 flow-root",children:(0,Ke.jsx)("div",{className:"-my-6 divide-Ke divide-gray-500/10",children:(0,Ke.jsx)("div",{className:"space-Ke-2 px-2 py-6",children:a&&a.map(g=>(0,Ke.jsx)(qm,{...g},g.name))})})})]})]})]})})}function qm({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Ke.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Ke.jsxs)(Ye.Disclosure,{as:"div",className:"-mx-3",children:[(0,Ke.jsx)(Ye.DisclosureButton,{className:"group flex 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,Ke.jsx)(Ye.DisclosurePanel,{className:"mt-2 space-Ke-2",children:t&&t.map(r=>(0,Ke.jsx)(Ye.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var kd=h(require("next/image"));var Km=l("text-base/[1.75] transition-transform duration-350 hover:-translate-Ke-1 block px-4"),Ii=l("text-gray-900 dark:text-white text-Yo font-bold leading-[1.25] Yo:text-lg mb-5 Yo:mb-[1.875rem]"),Ai=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Li=l("flex items-center gap-5"),Hr=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Jm({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Ke.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Ke.jsx)("div",{className:"py-16 Yo:py-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"grid gap-10 Yo:grid-cols-2 xl:grid-cols-4",children:[(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Ke.jsx)(ua,{logoDark:o,logoLight:a}),(0,Ke.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Ke.jsx)("nav",{"aria-label":"social links",children:(0,Ke.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Ke rounded-5 bg-accent text-white",children:r.socialLinks.map((u,d)=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(je,{"aria-label":u.href,className:Km,href:u.href,openNewTab:!0,children:(0,Ke.jsx)("span",{children:u.icon})})},d))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Ke.jsx)("h3",{className:Ii,children:s.title}),s.links&&s.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Ke.jsx)("ul",{className:"grid gap-2",children:s.links.map(u=>(0,Ke.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Ke.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Ke.jsx)(Cr.FaChevronRight,{})}),(0,Ke.jsx)(je,{href:u.href,openNewTab:u.openNewTab,className:Hr,children:u.label})]},u.label))})})]}),(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Ke.jsx)("h3",{className:Ii,children:i.title}),(0,Ke.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Ke.jsxs)("li",{className:Li,children:[(0,Ke.jsx)("span",{className:Ai,children:(0,Ke.jsx)(Cr.FaPaperPlane,{})}),(0,Ke.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Ke.jsxs)("li",{className:Li,children:[(0,Ke.jsx)("span",{className:Ai,children:(0,Ke.jsx)(Cr.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Ke.jsx)("div",{className:"grid gap-1",children:i.mails.map((u,d)=>(0,Ke.jsx)("a",{href:`mailto:${u}`,className:Hr,children:u},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Ke.jsxs)("li",{className:Li,children:[(0,Ke.jsx)("span",{className:Ai,children:(0,Ke.jsx)(Cr.FaPhone,{})}),(0,Ke.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((u,d)=>(0,Ke.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:Hr,children:u},d))})]})]})]}),n&&(0,Ke.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Ke.jsx)("h3",{className:Ii,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Ke.jsx)("div",{className:"grid gap-6",children:n.blogs.map((u,d)=>(0,Ke.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Ke.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Ke.jsx)(kd.default,{...u.image,alt:u.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Ke.jsxs)("div",{children:[(0,Ke.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Ke.jsx)("span",{className:"text-accent",children:(0,Ke.jsx)(Cr.FaCalendarDays,{})}),(0,Ke.jsx)("span",{children:hd(u.date)})]}),(0,Ke.jsx)("h4",{className:"text-Yo leading-normal",children:(0,Ke.jsx)(je,{href:u.slug,className:"transition-colors duration-300 hover:text-accent",children:u.title})})]})]},d))})]})]})})}),(0,Ke.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Ke.jsx)("div",{className:"container",children:(0,Ke.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Ke-8 gap-Ke-4 Yo:gap-Ke-10",children:[(0,Ke.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Ke.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Ke.jsx)("ul",{className:"flex flex-wrap items-center gap-Ke-4 Yo:gap-Ke-7",children:c.links.map(u=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)(je,{"aria-label":`Go $l page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:Hr,children:u.label})},u.label))})})]})})})]})}function Qm({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:i=!1}){return(0,Ke.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Ke.jsx)(Ti,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:i,wide:s}),(0,Ke.jsx)(Mi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}var Ea=require("sonner");function Bi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Yo.useState)([]),s=(0,$l.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(Ea.toast.success(d.message),s.refresh()):Ea.toast.error(`Error: ${d.message}`),r([])},u=async()=>{let d=await a(o);d.success?(Ea.toast.success(d.message),s.refresh()):Ea.toast.error(`Error: ${d.message}`),r([])};return(0,Ke.jsxs)("div",{className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Ke.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Ke.jsx)(T,{onClick:u,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Ke.jsx)("div",{className:"overflow-hidden sm:rounded-Yo",children:(0,Ke.jsxs)("ul",{className:"divide-Ke divide-gray-200",children:[(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ft,{id:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Ke.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Ke.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Ke.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Ke.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsx)(ft,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Ke.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Ke.jsxs)(Lt,{className:"h-10 w-10",children:[(0,Ke.jsx)(Bt,{src:d.userImage,alt:d.userName}),(0,Ke.jsx)(Et,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"ml-3",children:(0,Ke.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Ke.jsx)(tt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Ke.jsx)(Ea.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ei=require("date-fns");var Md=[{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 Go=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Md.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Id=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Go(o))return .5;for(;o<=r;)Go(o)||s++,o.setDate(o.getDate()+1);return s},Ad=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Zm=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Ke-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function zi({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Yo.useState)(new Date),[r,s]=(0,Yo.useState)(new Date),[i,n]=(0,Yo.useState)("Full Day"),[c,u]=(0,Yo.useState)(!1),[d,m]=(0,Yo.useState)(1),f=(0,$l.useRouter)();(0,Yo.useEffect)(()=>{let p=Ad(a,r);u(p),p&&n("Full Day")},[a,r]),(0,Yo.useEffect)(()=>{if(!a||!r){m(0);return}let p=Id(a,r,i!=="Full Day");m(p)},[a,r,i]);let g=p=>{n(p)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async p=>{if(p.preventDefault(),!a||!r){Ea.toast.error("Please select both start and end dates");return}if(d>e){Ea.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",i),v.append("duration",d.toString());let P=await(t||ep)(v);P.success?(Ea.toast.success(P.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):Ea.toast.error(`Error: ${P.message}`)},className:"space-Ke-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Po,{children:[(0,$.jsx)(Ro,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(kn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),a?(0,Ei.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Xa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(To,{mode:"single",selected:a,onSelect:p=>{o(p),p&&(!r||p>r)&&s(p)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Ke-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Po,{children:[(0,$.jsx)(Ro,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(kn.CalendarIcon,{className:"Ke-2 h-4 w-4"}),r?(0,Ei.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Xa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(To,{mode:"single",selected:r,onSelect:s,disabled:p=>a?p<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Ke-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(Zm,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(Ea.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var ep=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Bd(...e){return e.filter(Boolean).join(" ")}function Fi({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))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=u=>u.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Ke.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Ke.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Ke.jsxs)("div",{className:"sm:flex-auto",children:[(0,Ke.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Ke.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Yo gap-1 Yo:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Yo border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(kn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Yo:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-Yo border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(kn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Ke.jsx)("div",{className:"mt-8 flow-root",children:(0,Ke.jsx)("div",{className:"-mx-4 -my-2 overflow-Ke-auto sm:-mx-6 lg:-mx-8",children:(0,Ke.jsx)("div",{className:"max-h-[60vh] overflow-Ke-auto",children:(0,Ke.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Ke.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((u,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Ke.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Go(m)?"bg-gray-200":""}`,children:[(0,Ke.jsx)("div",{children:c(m)}),(0,Ke.jsx)("div",{children:d+1})]},d)})]})}),(0,Ke.jsx)("tbody",{children:o.map((u,d)=>(0,Ke.jsxs)("tr",{children:[(0,Ke.jsx)("td",{className:Bd(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,Ke.jsxs)("div",{className:"flex items-center",children:[(0,Ke.jsxs)(Lt,{className:"h-11 w-11",children:[(0,Ke.jsx)(Bt,{src:u.image,alt:u.name}),(0,Ke.jsx)(Et,{children:u.name.split(" ").map(m=>m[0]).join("")})]}),(0,Ke.jsx)("div",{className:"ml-4",children:(0,Ke.jsx)("div",{className:"font-medium text-accent",children:u.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(p=>p.userId===u.id&&new Date(p.startDate)<=g&&new Date(p.endDate)>=g);return(0,Ke.jsx)("td",{className:Bd(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Go(g)?"bg-gray-200":""),children:(0,Ke.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${u.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Ke.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${u.id}-${f}`)})]},u.id))})]})})})})]})}function Oi({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Yo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},u=()=>{t(new Date)};return(0,Ke.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Ke.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Ke.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Ke.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Ke.jsx)("div",{className:"flex items-center",children:(0,Ke.jsxs)("div",{className:"relative flex items-center rounded-Yo gap-1 Yo:items-stretch",children:[(0,Ke.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Yo border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Ke.jsx)(kn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Ke.jsx)(T,{variant:"outline",onClick:u,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Yo:block",children:"Today"}),(0,Ke.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Yo border-accent hover:text-accent",children:[(0,Ke.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Ke.jsx)(kn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Ke.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]}),(0,Ke.jsxs)("div",{className:"bg-white py-2",children:["Ke",(0,Ke.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Ke"})]})]}),(0,Ke.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Ke.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Ke.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Ke.jsx)("Ke",{className:"mt-2 space-Ke-1",children:d.holidays.map(m=>(0,Ke.jsx)("li",{children:(0,Ke.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border`,children:m.userName})},m.id))})]},d.date.toISOString()))}),(0,Ke.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Ke.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Ke.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Ke.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Ke.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,Ke.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.id))})]},d.date.toISOString()))})]})]})]})}var fa=require("lucide-react");function Hd(...e){return e.filter(Boolean).join(" ")}function tp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,u]=(0,Yo.useState)("Calendar View"),d=(0,$l.useRouter)(),m=!1,f=(0,Ei.parseISO)(a),g=async p=>{let v=(0,Ei.format)(p,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(m)return(0,Ke.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Ke.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:fa.Grid,current:c==="Grid View"},{name:"Calendar View",icon:fa.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:fa.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:fa.CheckSquare,current:c==="Approve Leave"}];return(0,Ke.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Ke.jsxs)("div",{className:"mb-8",children:[(0,Ke.jsxs)("div",{className:"sm:hidden",children:[(0,Ke.jsx)("select",{value:c,onChange:p=>u(p.target.value),className:"block w-full rounded-Yo border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(p=>(0,Ke.jsx)("option",{children:p.name},p.name))}),(0,Ke.jsx)(kn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Ke.jsx)("div",{className:"hidden sm:block",children:(0,Ke.jsx)("div",{className:"border-b border-gray-200",children:(0,Ke.jsx)("nav",{className:"-mb-px flex space-Ke-8","aria-label":"Tabs",children:b.map(p=>(0,Ke.jsxs)("a",{onClick:()=>{(p.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(p.name)},className:Hd(p.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",p.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":p.current?"page":void 0,children:[(0,Ke.jsx)(p.icon,{className:Hd(p.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 Ke-2 h-5 w-5"),"aria-hidden":"true"}),(0,Ke.jsx)("span",{children:p.name})]},p.name))})})})]}),c==="Grid View"&&(0,Ke.jsx)(Fi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Ke.jsx)(Oi,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Ke.jsx)(zi,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:p=>s?s(p):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Ke.jsx)(Bi,{leaveRequests:o,onApprove:p=>i?i(p):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:p=>n?n(p):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Gi({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var Ee,xt,k,z,lt;let[n,c]=(0,Yo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Yo.useState)(""),[m,f]=(0,Yo.useState)(!1),[g,b]=(0,Yo.useState)(null);(0,Yo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let p=async()=>{try{let w=await s(n);w.success?(f(!1),b(null)):console.error("Failed $l save deal:",w.errors)}catch(w){console.error("Failed $l save deal:",w)}},v=(w,_)=>{c(U=>({...U,[w]:_}))},P=w=>{let _=(n.categories||[]).includes(w)?(n.categories||[]).filter(U=>U!==w):[...n.categories||[],w];v("categories",_)},G=async()=>{if(u.trim()){let w={text:u,timestamp:new Date().toISOString()};try{let _=await i(w);if(!_.success){console.error("Failed $l add comment:",_.errors);return}}catch(_){console.error("Failed $l add comment:",_)}c(_=>({..._,comments:[..._.comments||[],w]})),d("")}},Q=w=>{switch(w){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},me=w=>t==null?void 0:t.find(_=>_.id===Number(w));return(0,Ke.jsx)(et,{open:!0,children:(0,Ke.jsxs)(Ue,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Ke.jsxs)(pt,{className:"flex flex-row items-center justify-between",children:[(0,Ke.jsx)(ut,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Ke.jsxs)("div",{className:"flex space-Ke-2",children:[(0,Ke.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Ke.jsxs)(T,{onClick:p,disabled:!m,children:[(0,Ke.jsx)(kn.SaveIcon,{className:"w-4 h-4 Ke-2"}),"Save"]})]})]}),(0,Ke.jsxs)(oa,{className:"flex-grow pr-4",children:[(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Ke.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Ke.jsx)(He,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Ke.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Ee=n.value)==null?void 0:Ee.toLocaleString()]})}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Ke.jsxs)(Ca,{value:((k=(xt=n==null?void 0:n.assignee)==null?void 0:xt.id)==null?void 0:k.toString())||"",onValueChange:w=>v("assignee",me(w)),children:[(0,Ke.jsx)(ia,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(na,{children:t&&t.map(w=>{var _;return(0,Ke.jsx)(la,{value:((_=w==null?void 0:w.id)==null?void 0:_.toString())||"",children:w.name},w.id)})})]}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Ke.jsx)(kn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.assignee.name})]})]}),(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Ke.jsx)(He,{type:"date",value:(lt=(z=n.closureDate)==null?void 0:z.split("T")[0])!=null?lt:"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Ke.jsx)(kn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Ke.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"Ke/Ke"})]})]})]}),(0,Ke.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Ke.jsx)(da,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Ke.jsxs)(Ca,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,Ke.jsx)(ia,{children:(0,Ke.jsx)(Pa,{placeholder:"Select status"})}),(0,Ke.jsx)(na,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(w=>(0,Ke.jsx)(la,{value:w,children:w},w))})]}):(0,Ke.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Ke.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(w=>{var _,U;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ft,{id:((_=w.id)==null?void 0:_.toString())||"",checked:(n.categories||[]).some(_o=>_o.id===w.id),onCheckedChange:()=>w.id!==void 0&&P(w)}),(0,Ke.jsx)("label",{htmlFor:((U=w.id)!=null?U:"").toString(),className:`text-sm font-medium ${Q(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id)})}):(0,Ke.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{let _=w;return _?(0,Ke.jsx)(tt,{variant:"secondary",className:Q(_.type||"sector"),children:_.name},_.id):null})})]})]}),(0,Ke.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Ke.jsxs)("div",{className:"grid gap-2",children:[(0,Ke.jsx)(ee,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Ke.jsx)(oa,{className:"h-[200px] overflow-Ke-auto",children:(0,Ke.jsx)("div",{className:"space-Ke-2",children:n.comments&&n.comments.slice().sort((w,_)=>new Date(_.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>{var _;return(0,Ke.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Ke.jsx)("p",{className:"text-sm text-gray-700",children:w.text}),(0,Ke.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(_=w==null?void 0:w.author)==null?void 0:_.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id)})})}),(0,Ke.jsxs)("div",{className:"flex mt-2",children:[(0,Ke.jsx)(He,{value:u,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Ke.jsxs)(T,{onClick:G,className:"ml-2",children:[(0,Ke.jsx)(kn.PlusIcon,{className:"w-4 h-4 Ke-2"}),"Add"]})]})]}),(0,Ke.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function _i({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.id)});return(0,Ke.jsxs)(he,{className:"mb-4 cursor-pointer hover:shadow-Yo transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Ke.jsxs)(Fe,{className:"pb-2",children:[(0,Ke.jsx)("div",{className:"flex justify-between items-center",children:(0,Ke.jsx)(Oe,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Ke.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Ke.jsxs)(Pe,{children:[(0,Ke.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Ke.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Ke.jsx)(kn.UserIcon,{className:"w-4 h-4 Ke-1 text-xs"}),(0,Ke.jsx)("span",{children:e.assignee.name})]}),(0,Ke.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Ke.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Ke.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Ke.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ke.jsx)(kn.CalendarIcon,{className:"w-3 h-3 Ke-1"}),(0,Ke.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Ke.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Ke.jsx)(tt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var _r=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function $i({onSubmit:e}){var r;let[t,a]=(0,Yo.useState)({name:"",intro:"",active:!0});return(0,Ke.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Ke-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,Ke.jsx)(He,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,Ke.jsx)(da,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ft,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Ke.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function Vi({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var Q,me,Ee,xt;let[n,c]=(0,Yo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[u,d]=(0,Yo.useState)(!1),[m,f]=(0,Yo.useState)({});(0,Yo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return n.customer||(k.customer="Customer is required"),n.value||(k.value="Value is required"),n.assignee||(k.assignee="Assignee is required"),n.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):f(z.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},p=k=>{c(z=>({...z,categories:(z.categories||[]).includes(k.id)?(z.categories||[]).filter(lt=>lt!==k.id):[...z.categories||[],k.id]}))},v=async k=>{c({...n,customer:k});try{let z=await s(k);z.success?d(!1):f(z.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(z=>z.id===Number(k)),G=k=>e==null?void 0:e.find(z=>z.id===Number(k));return(0,Ke.jsxs)(Ke.Fragment,{children:[(0,Ke.jsxs)("form",{onSubmit:b,className:"space-Ke-6",children:[(0,Ke.jsx)(oa,{className:"h-[60vh] pr-4",children:(0,Ke.jsxs)("div",{className:"space-Ke-6 px-4",children:[(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsxs)(Ca,{value:(me=(Q=n.customer)==null?void 0:Q.id)==null?void 0:me.toString(),onValueChange:k=>c({...n,customer:G(k)}),children:[(0,Ke.jsx)(ia,{children:(0,Ke.jsx)(Pa,{placeholder:"Select customer"})}),(0,Ke.jsx)(na,{children:e.map(k=>{var z;return(0,Ke.jsx)(la,{value:((z=k.id)==null?void 0:z.toString())||"",children:k.name},k.id)})})]}),(0,Ke.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Ke.jsx)(kn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,Ke.jsx)(He,{id:"value",type:"number",value:n.value||"",onChange:k=>c({...n,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,Ke.jsxs)(Ca,{value:(xt=(Ee=n.assignee)==null?void 0:Ee.id)==null?void 0:xt.toString(),onValueChange:k=>c({...n,assignee:P(k)}),children:[(0,Ke.jsx)(ia,{children:(0,Ke.jsx)(Pa,{placeholder:"Select assignee"})}),(0,Ke.jsx)(na,{children:t&&t.map(k=>{var z;return(0,Ke.jsx)(la,{value:((z=k.id)==null?void 0:z.toString())||"",children:k.name},k.id)})})]}),m.assignee&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,Ke.jsx)(da,{id:"description",value:n.description||"",onChange:k=>c({...n,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{children:"Categories"}),(0,Ke.jsx)("div",{className:"space-Ke-4",children:["proposition","source","sector"].map(k=>(0,Ke.jsxs)("div",{className:"space-Ke-2",children:[(0,Ke.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Ke.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===k).map(z=>{var lt;return(0,Ke.jsxs)("div",{className:"flex items-center space-Ke-2",children:[(0,Ke.jsx)(ft,{id:z.id.toString(),checked:(lt=n.categories)==null?void 0:lt.includes(z.id),onCheckedChange:()=>p(z)}),(0,Ke.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,Ke.jsxs)("div",{className:"space-Ke-2 space-Ke-2",children:[(0,Ke.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,Ke.jsx)(He,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:k=>c({...n,closureDate:k.target.value})}),m.closureDate&&(0,Ke.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,Ke.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Ke.jsx)(et,{open:u,onOpenChange:d,children:(0,Ke.jsxs)(Ue,{children:[(0,Ke.jsx)(pt,{children:(0,Ke.jsx)(ut,{children:"Add New Customer"})}),(0,Ke.jsx)($i,{onSubmit:v})]})})]})}function Wi({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:u}){let[d,m]=(0,$d.useState)(!1);return(0,Ke.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Ke.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,Ke.jsxs)(et,{open:d,onOpenChange:m,children:[(0,Ke.jsx)(ir,{asChild:!0,children:(0,Ke.jsxs)(T,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Ke.jsx)(kn.PlusCircle,{className:"Ke-2 h-4 w-4"}),"Add New Deal"]})}),(0,Ke.jsxs)(Ue,{children:[(0,Ke.jsx)(pt,{children:(0,Ke.jsx)(ut,{children:"Add New Deal"})}),(0,Ke.jsx)(Vi,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:u,onClose:()=>m(!1)})]})]}),(0,Ke.jsx)(_r.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,Ke.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Ke.jsx)(_r.Draggable,{draggableId:g.id.toString(),index:g.id,children:p=>(0,Ke.jsx)("div",{ref:p.innerRef,...p.draggableProps,...p.dragHandleProps,children:(0,Ke.jsx)(_i,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),f.placeholder]})}),(0,Ke.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Ke.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Ke.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Ke.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Ke.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var ap=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function op({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var m;let[s,i]=(0,$r.useState)(null),n=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),u=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((p,v)=>p+(v.value||0)*b[g],0)},d=(0,$r.useCallback)(f=>{var Q,me;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let p=g.droppableId,v=b.droppableId,P=(Q=e.deals)==null?void 0:Q.filter(Ee=>Ee.id===g.index)[0],G=[...(me=e.deals)!=null?me:[]];P&&(P.status=v,a(P))},[a]);return(0,Ke.jsx)(_r.DragDropContext,{onDragEnd:d,children:(0,Ke.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Ke.jsx)("div",{className:"flex space-Ke-4 pb-4",children:ap.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,p;let g=n(f);return(0,Ke.jsx)(Wi,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(p=e.categories)!=null?p:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:u,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,Ke.jsx)(Gi,{deal:s,users:e.users,customer:s.customer,categories:(m=e.categories)!=null?m:[],onClose:()=>i(null),onSave:a,onAddComment:f=>o(s.id.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
13
+ w-full h-full bg-cover bg-center`,children:v===0?(0,Qe.jsx)(Go,{hero:r,title:e.title,logoImage:s}):(0,Qe.jsxs)(Qe.Fragment,{children:[p.blockName&&(0,Qe.jsx)(Oo,{title:p.blockName}),(0,Qe.jsx)(La,{blocks:[p],fill:!0}),(0,Qe.jsx)(fd,{logoImage:s})]})})},v))}),(0,Qe.jsx)("button",{className:"absolute bottom-4 left-1 z-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,Qe.jsx)(qm,{})})]})},qm=()=>(0,Qe.jsx)(oo.AnimatePresence,{children:(0,Qe.jsx)(oo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Qe.jsx)(oo.motion.div,{initial:{Qe:0},animate:{Qe:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var bd=h(require("next/link")),yd=h(require("next/image"));function vd({blogs:e,width:t=3}){return(0,Qe.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Qe.jsx)("div",{className:`grid Qe:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Qe.jsx)(bd.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,Qe.jsxs)("div",{className:"relative size-full",children:[(0,Qe.jsx)(yd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,Qe.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Qe-t from-card Qe-transparrent flex flex-col justify-end",children:[(0,Qe.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Qe.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function hd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:i,companiesCount:n,dealsClosed:c,leadsGenerated:u}){return(0,Qe.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Qe.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Qe.jsxs)("div",{className:"max-w-4xl",children:[(0,Qe.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Qe.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Qe.jsx)("p",{className:"mt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,Qe.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Qe-8 lg:gap-Qe-16",children:[(0,Qe.jsxs)("div",{className:"lg:pr-8",children:[(0,Qe.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Qe.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Qe.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,Qe.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,m)=>(0,Qe.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,Qe.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},m))})}),(0,Qe.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Qe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Qe.jsx)("Qe",{className:"mt-6 border-t border-gray-200"}),(0,Qe.jsxs)("zn",{className:"mt-6 grid grid-cols-1 gap-Qe-8 gap-Qe-4 sm:grid-cols-2",children:[(0,Qe.jsxs)("div",{className:"flex flex-col gap-Qe-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",i]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-Qe-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"K"]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-Qe-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-Qe-2",children:[(0,Qe.jsx)("Qe",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Qe.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[u,"M"]})]})]})]})]})]})})}function Km(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 so=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)},Jm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Qe.jsx)(xd,{page:e,layout:t,logoImage:a}):(0,Qe.jsx)(wd,{page:e,layout:t,logoImage:a}),xd=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=os(e),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),i=(0,Zo.useRef)(new Jy.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Zo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let m=document.createElement("style");return m.textContent=`@page { size: ${so(d.offsetWidth)}mm ${so(d.offsetHeight)}mm ; margin: 0mm; width: ${so(d.offsetWidth)}mm }; .container : { max-width: ${so(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(m),()=>{document.head.removeChild(m)}}},[t]);let c=(0,Zo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&i.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${so(d.offsetWidth)}mm ${so(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(m=>console.error("Paged.js error:",m))},[t]);(0,Zo.useEffect)(()=>{i.current=new Jy.Previewer},[c,t]);let u=[n,...o];return(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Qe.jsxs)("div",{id:"printable-content",ref:r,children:[u.map((d,m)=>(0,Qe.jsx)(Qe.Fragment,{children:m===0?(0,Qe.jsx)("section",{className:"title-page w-full h-full",children:(0,Qe.jsx)(Go,{hero:e.hero,title:e.title})},m):(0,Qe.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Qe.jsx)(Oo,{title:d.blockName}),(0,Qe.jsx)(La,{blocks:[d],fill:!0})]},m)})),(0,Qe.jsx)("section",{className:"normal-page",children:(0,Qe.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
14
+ dark bg-background text-primary`,children:[(0,Qe.jsxs)("div",{className:"flex px-6 items-center space-Qe-2",children:[a&&(0,Qe.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Qe.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,Qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Qe.jsx)("div",{ref:s,className:"preview-container"})]})},wd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=os(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new Jy.Previewer),[i,n]=(0,Zo.useState)(0),u=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Zo.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(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new Jy.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,Qe.jsxs)("div",{className:"pagedjs-container",children:[(0,Qe.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:u.map((m,f)=>{var g,b;return(0,Qe.jsx)(Qe.Fragment,{children:f===0?(0,Qe.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Qe.jsx)(Go,{hero:e.hero,title:e.title})},f):(0,Qe.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Km("185mm")}px]`,((b=(g=m.theme)==null?void 0:g.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[m.blockName&&(0,Qe.jsx)(Oo,{title:m.blockName}),(0,Qe.jsx)(La,{blocks:[m],fill:!0})]},f)})})}),(0,Qe.jsx)("div",{ref:o,className:"preview-container"})]})};var Ti=h(require("clsx"));function Qm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:i,loading:n=!1,LinkComponent:c,...u}){let m=c?f=>(0,Qe.jsx)(c,{...f}):i?({href:f,children:g,...b})=>(0,Qe.jsx)("button",{onClick:()=>i&&i(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):f=>(0,Qe.jsx)("a",{...f});return(0,Qe.jsxs)(va,{...u,variant:"inset",children:[(0,Qe.jsx)(ha,{children:(0,Qe.jsx)(Oe,{children:(0,Qe.jsx)(Pe,{children:n?(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)(ne,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Qe.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Qe.jsxs)(ea,{children:[(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(ne,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Qe.jsxs)(ea,{children:[e&&!n&&e.map((f,g)=>(0,Qe.jsx)(Zm,{subNav:f,pathName:r,Link:m},g)),(0,Qe.jsx)(Ze,{className:"mt-auto",children:(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Oe,{children:t&&!n&&t.map(f=>(0,Qe.jsx)(Pe,{children:(0,Qe.jsx)(et,{asChild:!0,size:"sm",children:(0,Qe.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,Qe.jsx)(f.icon,{}),(0,Qe.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,Qe.jsx)(xa,{})]})}function Zm({subNav:e,pathName:t,Link:a}){var s,i;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Qe.jsx)(At,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsx)(Ze,{className:"py-0",children:(0,Qe.jsx)(Oe,{children:(0,Qe.jsx)(At,{asChild:!0,defaultOpen:o.isActive,children:(0,Qe.jsxs)(Pe,{children:[(0,Qe.jsx)(et,{asChild:!0,tooltip:o.label,className:(0,Ti.default)(r&&"font-bold text-accent"),children:(0,Qe.jsxs)(a,{href:o.url,children:[o.icon&&(0,Qe.jsx)(o.icon,{}),(0,Qe.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(Jt,{asChild:!0,children:(0,Qe.jsxs)(wo,{className:"data-[state=open]:rotate-90",children:[(0,Qe.jsx)(zn.ChevronRight,{}),(0,Qe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(ta,{children:(i=o.links)==null?void 0:i.map(n=>(0,Qe.jsx)(aa,{children:(0,Qe.jsx)(oa,{asChild:!0,className:(0,Ti.default)(n.url===t&&"font-bold text-accent"),children:(0,Qe.jsx)(a,{href:n.url,children:(0,Qe.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var Cd=h(require("clsx"));var ep=()=>(0,Qe.jsx)(Re,{iconName:"github",size:"10x"});function tp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:i,onPrintDocument:n,onGithubClick:c,onNavClick:u,LinkComponent:d,...m}){let b=d?p=>(0,Qe.jsx)(d,{...p}):u?({item:p,children:v,...P})=>(0,Qe.jsx)("button",{onClick:()=>u&&u(p),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...P,children:v}):p=>(0,Qe.jsx)("a",{href:p.href,...p});return(0,Qe.jsxs)(va,{side:"right",variant:"inset",...m,children:[(0,Qe.jsxs)(ha,{className:"border-b border-sidebar-border",children:[(0,Qe.jsxs)(Oe,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Pe,{children:(0,Qe.jsxs)(et,{onClick:s,children:[(0,Qe.jsx)(zn.FilePlus,{})," ",(0,Qe.jsx)("span",{children:"Add Document"})]})}),c&&(0,Qe.jsx)(Pe,{children:(0,Qe.jsx)(et,{onClick:c,tooltip:"Open in GitHub",children:(0,Qe.jsx)(ep,{})})})]}),(0,Qe.jsxs)(Oe,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Pe,{className:"w-5/12",children:(0,Qe.jsxs)(et,{onClick:()=>i(),variant:r?"outline":"default",className:(0,Cd.default)(r&&"text-accent"),children:[(0,Qe.jsx)(zn.Edit,{})," ",(0,Qe.jsx)("span",{children:"Edit"})]})}),(0,Qe.jsx)(Pe,{className:"w-5/12",children:(0,Qe.jsxs)(et,{onClick:n,children:[(0,Qe.jsx)(zn.Printer,{})," ",(0,Qe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(At,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Ze,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Jt,{children:["Editor Controls",(0,Qe.jsx)(zn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:a})})]})}),(0,Qe.jsx)(xo,{className:"mx-0"})]}),(0,Qe.jsxs)(ea,{className:"overflow-auto",children:[o&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)(Ze,{children:[(0,Qe.jsx)(Bt,{children:"Related Content"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Oe,{children:Array.from({length:3}).map((p,v)=>(0,Qe.jsx)(Pe,{children:(0,Qe.jsx)(ne,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,Qe.jsxs)(Ze,{children:[(0,Qe.jsx)(Bt,{children:"Table of Contents"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Oe,{children:Array.from({length:3}).map((p,v)=>(0,Qe.jsx)(Pe,{children:(0,Qe.jsx)(ne,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Qe.jsx)(At,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Ze,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Jt,{children:["Related Content",(0,Qe.jsx)(zn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Oe,{children:e&&Object.keys(e).map(p=>(0,Qe.jsxs)(Pe,{children:[(0,Qe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",p.charAt(0).toUpperCase()+p.slice(1)]}),p&&e[p]&&(0,Qe.jsx)(ta,{children:e[p].map(v=>(0,Qe.jsx)(aa,{children:(0,Qe.jsx)(oa,{asChild:!0,isActive:!1,size:"sm",children:(0,Qe.jsxs)(b,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,Qe.jsx)("span",{children:v.label}),v.type==="note"&&(0,Qe.jsx)(zn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,Qe.jsx)(Re,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},v.label))})]},p))})})})]})}),t&&!o&&(0,Qe.jsx)(At,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Ze,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Jt,{children:["Table of Contents",(0,Qe.jsx)(zn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Oe,{children:t.map(p=>{var v;return(0,Qe.jsxs)(Pe,{children:[(0,Qe.jsx)(et,{asChild:!0,children:(0,Qe.jsx)("a",{href:`#${p.url}`,className:"text-xs",children:p.title})}),(v=p.items)!=null&&v.length?(0,Qe.jsx)(ta,{children:p.items.map(P=>(0,Qe.jsx)(aa,{children:(0,Qe.jsx)(oa,{asChild:!0,isActive:P.isActive,size:"sm",children:(0,Qe.jsx)("a",{href:`#${P.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Qe.jsx)("span",{children:P.title})})})},P.title))}):null]},p.title)})})})})]})})]}),(0,Qe.jsx)(xa,{})]})}var Rd=h(require("next/image"));function ap({title:e,members:t}){return(0,Qe.jsx)(we,{className:"mb-6",children:(0,Qe.jsxs)("div",{className:"p-6",children:[(0,Qe.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Qe.jsx)(zn.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Qe.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,Qe.jsx)("div",{className:"space-Qe-4",children:t.map((a,o)=>(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-4",children:[(0,Qe.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Qe.jsx)(Rd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Qe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Sd=h(require("next/link"));var op=({links:e,title:t="Related Content"})=>(0,Qe.jsxs)(we,{children:[(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(_e,{className:"text-accent",children:t})}),(0,Qe.jsx)(Se,{children:(0,Qe.jsx)("nav",{className:"flex flex-col space-Qe-2",children:e.map((a,o)=>(0,Qe.jsxs)(Sd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Qe.jsx)(zn.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Di=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function rp({pages:e}){let t=(0,sd.useSearchParams)(),a=(0,sd.usePathname)(),{replace:o}=(0,sd.useRouter)(),{totalPages:r,page:s}=e,[i,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&i.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&i.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function u(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=i.start;m<=i.end;m++)d.push(m);return(0,Qe.jsx)("div",{className:"mt-12",children:(0,Qe.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 Qe:gap-5","aria-label":"pagination",children:[i.start>1&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:l(Di,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Qe.jsx)(xl.FaArrowLeft,{})})}),d.map((m,f)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("a",{className:l(Di,m===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),u(m.toString())},children:m})},f)),i.end<r&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:l(Di,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Qe.jsx)(xl.FaArrowRight,{})})})]})})}var Av=l("transition-colors duration-400 hover:text-primary ease-in-out");function sp({title:e,links:t}){let a=(0,sd.useSearchParams)(),o=(0,sd.usePathname)(),{replace:r}=(0,sd.useRouter)();function s(i){let n=new URLSearchParams(a);i?n.set("category",i):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Qe.jsxs)(we,{children:[(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(_e,{className:"text-accent",children:e&&e})}),(0,Qe.jsx)(Se,{children:t&&t.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((i,n)=>(0,Qe.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(i.href)},children:[i.label,(0,Qe.jsx)(zn.ExternalLink,{className:"ml-1 h-3 w-3"})]},n))})})})]})}function ip({types:e}){let[t,a]=(0,Zo.useState)(e&&e[0].href),o=(0,sd.useSearchParams)(),r=(0,sd.usePathname)(),{replace:s}=(0,sd.useRouter)();function i(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Qe.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Qe-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Qe.jsx)(T,{variant:n.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>i(n.href),children:n.label},c))})}var Bd=h(require("next/image"));function Ii({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"sd-padding",o);return(0,Qe.jsx)("div",{className:r,children:e})}var Ad=require("next-themes");function np({children:e,...t}){return(0,Qe.jsx)(Ad.ThemeProvider,{...t,children:e})}var Ea=({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,Qe.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Qe.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:l(t,"absolute -bottom-[2px] flex"),children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0","stroke-width":"2"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{Qe:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Qe.jsx)("div",{className:"w-full h-[70px] Qe:h-[332px] z-20 ",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"absolute "),style:{fontSize:0,float:"left",transform:"scale(-1, 1)"},children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-top")return(0,Qe.jsx)("div",{className:"w-full h-[70px] Qe:h-[332px] z-20 content-end block overflow-hidden",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Qe.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,Qe.jsx)("div",{className:"w-full min-h-[70px] Qe:min-h-[350px] z-20 content-start block overflow-hidden bg-white",children:(0,Qe.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:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,Qe.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,Qe.jsx)("div",{className:"w-full min-h-[70px] Qe:min-h-[350px] z-20 content-end block overflow-hidden",children:(0,Qe.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:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Qe.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,Qe.jsx)("div",{className:"w-full min-h-[70px] Qe:min-h-[350px] z-20 content-end block overflow-hidden -mb-[1px]",children:(0,Qe.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:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},lp=({className:e})=>(0,Qe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,Qe.jsx)("defs",{children:(0,Qe.jsxs)("mask",{id:"mask",children:[(0,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Qe.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,Qe.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Ai=({links:e,media:t,children:a,richText:o})=>(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Qe.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Qe.jsx)(K,{className:"max-w-none mb-6 ml-0 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Qe.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(yt,{...r})},s))})]}),(0,Qe.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Qe.jsx)(_t,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Qe.jsx)("div",{children:(0,Qe.jsx)(Bd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-Qe-b from-white dark:from-black"})]}),(0,Qe.jsx)(Ea,{className:"text-black z-10",position:"header"})]})});var Li=h(require("next/image"));var dp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Qe.jsx)(Li.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,Qe.jsx)("div",{children:(0,Qe.jsx)(Li.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Bi=({links:e,media:t,children:a,richText:o})=>(0,Qe.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Qe.jsx)(dp,{media:t}),(0,Qe.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Qe.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Qe.jsx)(K,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Ei=({children:e,richText:t})=>(0,Qe.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Qe.jsx)("div",{className:"container",children:e||t&&(0,Qe.jsx)(K,{content:t,enableGutter:!1})})});var Fd=h(require("react")),zd=h(require("next/image"));var Ed=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,i=r<10?`0${r}`:r,n=a.getFullYear();return`${i}/${s}/${n}`};var Hd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(i=>{if(i>3&&i<21)return"th";switch(i%10){case 1:return"Qe";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};var cp=({post:e})=>{var i;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Qe.jsxs)("div",{className:"relative grid pt-24",children:[(0,Qe.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,Qe.jsxs)("div",{className:"container mx-auto",children:[(0,Qe.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-4 Qe:flex-row Qe:gap-16 ",children:[o&&o.length>0&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Qe.jsx)("p",{children:o.map((n,c)=>(0,Qe.jsxs)(Fd.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Qe.jsx)("time",{dateTime:r,children:Ed(r)})]}),t&&t.length>0&&(0,Qe.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Qe.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Qe.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Qe.jsx)(ot,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Qe.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Qe.jsx)(zd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((i=a==null?void 0:a.image)==null?void 0:i.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Qe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Qe-t from-background dark:from-black Qe-transparent"})]})]})};var Gr=require("@heroicons/react/20/solid");var Hi=h(require("next/image"));var Fi=({title:e,image:t})=>(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,Qe.jsx)("h1",{className:"text-5xl Qe:text-6xl",children:e})}),(0,Qe.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Qe.jsx)(Hi.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,Qe.jsx)("div",{children:(0,Qe.jsx)(Hi.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-Qe-b from-white dark:from-black"})]}),(0,Qe.jsx)(Ea,{className:"text-black z-10",position:"header"})]})});var mp={highImpact:Ai,lowImpact:Ei,mediumImpact:Bi,sectionHero:Fi},pp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=mp[t];return a?(0,Qe.jsx)(a,{...e}):null};function up({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Qe.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Qe.jsxs)("zn",{role:"list",className:"flex items-center space-Qe-4",children:[(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Qe.jsx)(Gr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Qe.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Qe.jsx)("li",{children:(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(Gr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Qe.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Qe.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Qe.jsx)(Qe.Fragment,{})}var Ke=require("@headlessui/react"),Vr=require("@heroicons/react/24/outline");var fp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Qe.jsx)("a",{href:o,className:"flex items-center gap-Qe-1 text-sm text-foreground group",children:(0,Qe.jsxs)("span",{className:"relative",children:[e,(0,Qe.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Qe-1/2 scale-Qe-0 transition-transform duration-300 ease-in-out group-hover:scale-Qe-100"})]})}):(0,Qe.jsxs)(Ke.Popover,{children:[(0,Qe.jsxs)(Ke.PopoverButton,{className:"flex items-center gap-Qe-1 text-sm/6 text-foreground outline-none group",children:[(0,Qe.jsxs)("span",{className:"relative",children:[e,(0,Qe.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Qe-1/2 scale-Qe-0 transition-transform duration-300 ease-in-out group-hover:scale-Qe-100"})]}),(0,Qe.jsx)(Gr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Qe.jsxs)(Ke.PopoverPanel,{transition:!0,className:"absolute inset-Qe-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-Qe-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Qe.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Qe-4 px-6 py-10 lg:px-8 xl:gap-Qe-8 z-50",children:t&&t.map(r=>(0,Qe.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Qe.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Qe.jsx)(Od,{icon:r.icon,size:"4x"})}),(0,Qe.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Qe.jsx)("span",{className:"absolute inset-0"})]}),(0,Qe.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Qe.jsx)("div",{className:"bg-gray-50",children:(0,Qe.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Qe.jsx)("div",{className:"grid grid-cols-3 divide-Qe divide-gray-900/5 border-Qe border-gray-900/5",children:a.map(r=>(0,Qe.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Qe-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Qe.jsx)(Od,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Od=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Qe.jsx)(Re,{...e,size:a});if("src"in e)return(0,Qe.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Qe.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},_r=fp;var $r=["light","dark","green"];function gp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Zo.useState)(!1),[s,i]=(0,Zo.useState)(!1),[n,c]=(0,Zo.useState)("light"),u=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[m,f]=(0,Zo.useState)(`${u}.${d}`),g=p=>{$r.includes(p)?f(p==="light"?`${u}.${d}`:`${u}-${p}.${d}`):f(`${u}.${d}`)};(0,Zo.useEffect)(()=>{let p=localStorage.getItem("theme")||"light";c(p),document.documentElement.setAttribute("class",p),g(p)},[]);let b=()=>{let p=$r[($r.indexOf(n)+1)%$r.length];c(p),document.documentElement.setAttribute("class",p),localStorage.setItem("theme",p),g(p)};return(0,Qe.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Qe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Qe.jsx)("div",{className:"flex lg:flex-1",children:(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:e}),(0,Qe.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,Qe.jsx)("div",{className:"flex lg:hidden",children:(0,Qe.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-Qe p-2.5 text-gray-700 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qe.jsx)(Vr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Qe.jsx)(Ke.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:a.map(p=>(0,Qe.jsx)(_r,{...p},p.name))}),(0,Qe.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Qe.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Qe.jsx)($o.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Qe.jsx)($o.MoonIcon,{className:"h-6 w-6"}):(0,Qe.jsx)($o.SunIcon,{className:"h-6 w-6"})})})]}),(0,Qe.jsxs)(Ke.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Qe.jsxs)(Ke.DialogPanel,{className:"fixed inset-Qe-0 right-0 z-20 w-full overflow-Qe-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Qe.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Qe.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-Qe p-2.5 text-gray-700 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Qe.jsx)(Vr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Qe.jsx)("div",{className:"mt-6 flow-root",children:(0,Qe.jsx)("div",{className:"-my-6 divide-Qe divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-Qe-2 py-6",children:a.map(p=>(0,Qe.jsx)(bp,{...p},p.name))})})})]})]})]})}function bp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Qe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,Qe.jsxs)(Ke.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(Ke.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,Qe.jsx)(Ke.DisclosurePanel,{className:"mt-2 space-Qe-2",children:t&&t.map(r=>(0,Qe.jsx)(Ke.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 yp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let i=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Qe.jsx)("div",{children:(0,Qe.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Qe.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Qe.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Qe.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Qe.jsx)(Ii,{children:(0,Qe.jsxs)("div",{className:"flex flex-col items-start Qe:w-1/2 mb-10 z-0 Qe:mb-0",children:[(0,Qe.jsx)("h1",{className:"text-5xl Qe:text-7xl mb-6",children:r&&r}),(0,Qe.jsx)("div",{className:"text-lg Qe:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Qe.jsx)(Ea,{className:"text-black z-10",position:"header"})]})})}var zi=h(require("next/image"));function ga({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Qe.jsxs)(Ye,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,Qe.jsx)(zi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,Qe.jsx)(zi.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function Oi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[i,n]=(0,Zo.useState)(!1),[c,u]=(0,Zo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,Ad.useTheme)();(0,Zo.useEffect)(()=>{u(m||"dark")},[m]);let g=()=>{let b=d[(d.indexOf(c)+1)%d.length];u(b),f(b)};return(0,Zo.useEffect)(()=>{let b=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${i||e?"translate-Qe-0":"-translate-Qe-full bg-transparent"}`,children:(0,Qe.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Qe.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Qe.jsx)(ga,{logoDark:a,logoLight:t}),(0,Qe.jsx)($d.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:o&&o.map(b=>(0,Qe.jsx)(_r,{...b},b.name))}),r&&(0,Qe.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,Qe.jsxs)("div",{className:"relative",children:[(0,Qe.jsx)(zn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Qe.jsx)(zn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Gi=["light","dark"];function _i({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:i,setTheme:n}=(0,Ad.useTheme)(),[c,u]=(0,Zo.useState)(!1),[d,m]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Zo.useEffect)(()=>{m(i||"dark")},[i]);let f=()=>{let g=Gi[(Gi.indexOf(d)+1)%Gi.length];m(g),n(g)};return(0,Qe.jsx)(Qe.Fragment,{children:(0,Qe.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-Qe-0":"-translate-Qe-full bg-transparent"}`,children:[(0,Qe.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Qe.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-b dark:border-accent",children:[(0,Qe.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Qe.jsx)("div",{className:"flex items-center space-Qe-4",children:(0,Qe.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"fixed right-4 z-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Qe.jsx)(Vr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Qe.jsxs)(Ke.Dialog,{open:c,onClose:u,className:"lg:hidden",children:[(0,Qe.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Qe.jsxs)(Ke.DialogPanel,{className:"fixed inset-Qe-0 right-0 z-20 w-full overflow-Qe-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Qe.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Qe.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Qe.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-Qe p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Qe.jsx)(Vr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Qe.jsx)("div",{className:"mt-6 flow-root",children:(0,Qe.jsx)("div",{className:"-my-6 divide-Qe divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-Qe-2 px-2 py-6",children:a&&a.map(g=>(0,Qe.jsx)(vp,{...g},g.name))})})})]})]})]})})}function vp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Qe.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,Qe.jsxs)(Ke.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(Ke.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,Qe.jsx)(Ke.DisclosurePanel,{className:"mt-2 space-Qe-2",children:t&&t.map(r=>(0,Qe.jsx)(Ke.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 Ud=h(require("next/image"));var hp=l("text-base/[1.75] transition-transform duration-350 hover:-translate-Qe-1 block px-4"),$i=l("text-gray-900 dark:text-white text-Qe font-bold leading-[1.25] Qe:text-lg mb-5 Qe:mb-[1.875rem]"),Vi=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Ui=l("flex items-center gap-5"),jr=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function xp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:i,columnThree:n,footerBottom:c}=t;return(0,Qe.jsxs)("footer",{className:l("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12",e),children:[(0,Qe.jsx)("div",{className:"py-16 Qe:py-20",children:(0,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"grid gap-10 Qe:grid-cols-2 xl:grid-cols-4",children:[(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Qe.jsx)(ga,{logoDark:o,logoLight:a}),(0,Qe.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Qe.jsx)("nav",{"aria-label":"social links",children:(0,Qe.jsx)("ul",{className:"inline-flex min-h-[50px] items-center divide-Qe rounded-5 bg-accent text-white",children:r.socialLinks.map((u,d)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(Ye,{"aria-label":u.href,className:hp,href:u.href,openNewTab:!0,children:(0,Qe.jsx)("span",{children:u.icon})})},d))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Qe.jsx)("h3",{className:$i,children:s.title}),s.links&&s.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("ul",{className:"grid gap-2",children:s.links.map(u=>(0,Qe.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Qe.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,Qe.jsx)(xl.FaChevronRight,{})}),(0,Qe.jsx)(Ye,{href:u.href,openNewTab:u.openNewTab,className:jr,children:u.label})]},u.label))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Qe.jsx)("h3",{className:$i,children:i.title}),(0,Qe.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-5",children:[(0,Qe.jsxs)("li",{className:Ui,children:[(0,Qe.jsx)("span",{className:Vi,children:(0,Qe.jsx)(xl.FaPaperPlane,{})}),(0,Qe.jsx)("address",{className:"not-italic",children:i.location})]}),(0,Qe.jsxs)("li",{className:Ui,children:[(0,Qe.jsx)("span",{className:Vi,children:(0,Qe.jsx)(xl.FaEnvelope,{})}),i.mails&&i.mails.length>0&&(0,Qe.jsx)("div",{className:"grid gap-1",children:i.mails.map((u,d)=>(0,Qe.jsx)("a",{href:`mailto:${u}`,className:jr,children:u},d))})]}),i.phoneNumbers&&i.phoneNumbers.length>0&&(0,Qe.jsxs)("li",{className:Ui,children:[(0,Qe.jsx)("span",{className:Vi,children:(0,Qe.jsx)(xl.FaPhone,{})}),(0,Qe.jsx)("div",{className:"grid gap-1",children:i.phoneNumbers.map((u,d)=>(0,Qe.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:jr,children:u},d))})]})]})]}),n&&(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,Qe.jsx)("h3",{className:$i,children:n.title}),n.blogs&&n.blogs.length>0&&(0,Qe.jsx)("div",{className:"grid gap-6",children:n.blogs.map((u,d)=>(0,Qe.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,Qe.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,Qe.jsx)(Ud.default,{...u.image,alt:u.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,Qe.jsx)("span",{className:"text-accent",children:(0,Qe.jsx)(xl.FaCalendarDays,{})}),(0,Qe.jsx)("span",{children:Hd(u.date)})]}),(0,Qe.jsx)("h4",{className:"text-Qe leading-normal",children:(0,Qe.jsx)(Ye,{href:u.slug,className:"transition-colors duration-300 hover:text-accent",children:u.title})})]})]},d))})]})]})})}),(0,Qe.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Qe.jsx)("div",{className:"container",children:(0,Qe.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Qe-8 gap-Qe-4 Qe:gap-Qe-10",children:[(0,Qe.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Qe.jsx)("ul",{className:"flex flex-wrap items-center gap-Qe-4 Qe:gap-Qe-7",children:c.links.map(u=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(Ye,{"aria-label":`Go Qe page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:jr,children:u.label})},u.label))})})]})})})]})}function wp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:i=!1}){return(0,Qe.jsxs)("div",{className:l("fixed top-0 left-0 right-0 z-50",r),children:[(0,Qe.jsx)(Oi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:i,wide:s}),(0,Qe.jsx)(_i,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Wi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,sd.useRouter)(),i=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(ci.toast.success(d.message),s.refresh()):ci.toast.error(`Error: ${d.message}`),r([])},u=async()=>{let d=await a(o);d.success?(ci.toast.success(d.message),s.refresh()):ci.toast.error(`Error: ${d.message}`),r([])};return(0,Qe.jsxs)("div",{className:"space-Qe-4",children:[(0,Qe.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Qe.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Qe.jsxs)("div",{className:"space-Qe-2",children:[(0,Qe.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Qe.jsx)(T,{onClick:u,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Qe.jsx)("div",{className:"overflow-hidden sm:rounded-Qe",children:(0,Qe.jsxs)("ul",{className:"divide-Qe divide-gray-200",children:[(0,Qe.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(bt,{id:"select-all",checked:o.length===e.length,onCheckedChange:i,className:"border-accent"}),(0,Qe.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Qe.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Qe.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Qe.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsx)(bt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Qe.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,Qe.jsxs)(Ft,{className:"h-10 w-10",children:[(0,Qe.jsx)(zt,{src:d.userImage,alt:d.userName}),(0,Qe.jsx)(Ot,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,Qe.jsx)("div",{className:"ml-3",children:(0,Qe.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,Qe.jsx)(ot,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Qe.jsx)(ci.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var ji=require("date-fns");var Xd=[{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 Wo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Xd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Yd=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Wo(o))return .5;for(;o<=r;)Wo(o)||s++,o.setDate(o.getDate()+1);return s},qd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Np=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-Qe-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Yi({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Zo.useState)(new Date),[r,s]=(0,Zo.useState)(new Date),[i,n]=(0,Zo.useState)("Full Day"),[c,u]=(0,Zo.useState)(!1),[d,m]=(0,Zo.useState)(1),f=(0,sd.useRouter)();(0,Zo.useEffect)(()=>{let p=qd(a,r);u(p),p&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){m(0);return}let p=Yd(a,r,i!=="Full Day");m(p)},[a,r,i]);let g=p=>{n(p)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async p=>{if(p.preventDefault(),!a||!r){ci.toast.error("Please select both start and end dates");return}if(d>e){ci.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",i),v.append("duration",d.toString());let P=await(t||Cp)(v);P.success?(ci.toast.success(P.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):ci.toast.error(`Error: ${P.message}`)},className:"space-Qe-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-Qe-2",children:[(0,$.jsx)(oe,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Do,{children:[(0,$.jsx)(Mo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(zn.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,ji.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Ka,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Lo,{mode:"single",selected:a,onSelect:p=>{o(p),p&&(!r||p>r)&&s(p)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-Qe-2",children:[(0,$.jsx)(oe,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Do,{children:[(0,$.jsx)(Mo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(zn.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,ji.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(Ka,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Lo,{mode:"single",selected:r,onSelect:s,disabled:p=>a?p<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-Qe-2",children:[(0,$.jsx)(oe,{children:"Leave Type"}),(0,$.jsx)(Np,{options:["Full Day","Morning","Afternoon"],value:i,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(ci.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Cp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Jd(...e){return e.filter(Boolean).join(" ")}function qi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},i=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=u=>u.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Qe.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Qe.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Qe.jsxs)("div",{className:"sm:flex-auto",children:[(0,Qe.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Qe.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Qe.jsxs)("div",{className:"relative flex items-center rounded-Qe gap-1 Qe:items-stretch",children:[(0,Qe.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Qe.jsx)(zn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Qe:block",children:"Today"}),(0,Qe.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-r-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Qe.jsx)(zn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Qe.jsx)("div",{className:"mt-8 flow-root",children:(0,Qe.jsx)("div",{className:"-mx-4 -my-2 overflow-Qe-auto sm:-mx-6 lg:-mx-8",children:(0,Qe.jsx)("div",{className:"max-h-[60vh] overflow-Qe-auto",children:(0,Qe.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Qe.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("th",{scope:"col",className:"sticky left-0 top-0 z-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 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((u,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Qe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${Wo(m)?"bg-gray-200":""}`,children:[(0,Qe.jsx)("div",{children:c(m)}),(0,Qe.jsx)("div",{children:d+1})]},d)})]})}),(0,Qe.jsx)("tbody",{children:o.map((u,d)=>(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("td",{className:Jd(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,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsxs)(Ft,{className:"h-11 w-11",children:[(0,Qe.jsx)(zt,{src:u.image,alt:u.name}),(0,Qe.jsx)(Ot,{children:u.name.split(" ").map(m=>m[0]).join("")})]}),(0,Qe.jsx)("div",{className:"ml-4",children:(0,Qe.jsx)("div",{className:"font-medium text-accent",children:u.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),b=a.find(p=>p.userId===u.id&&new Date(p.startDate)<=g&&new Date(p.endDate)>=g);return(0,Qe.jsx)("td",{className:Jd(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Wo(g)?"bg-gray-200":""),children:(0,Qe.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${u.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,Qe.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${u.id}-${f}`)})]},u.id))})]})})})})]})}function Ki({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Zo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,i=Array.from({length:42},(d,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},u=()=>{t(new Date)};return(0,Qe.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Qe.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Qe.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Qe.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Qe.jsx)("div",{className:"flex items-center",children:(0,Qe.jsxs)("div",{className:"relative flex items-center rounded-Qe gap-1 Qe:items-stretch",children:[(0,Qe.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Qe.jsx)(zn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(T,{variant:"outline",onClick:u,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative Qe:block",children:"Today"}),(0,Qe.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-Qe border-accent hover:text-accent",children:[(0,Qe.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Qe.jsx)(zn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Qe.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["M",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["W",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["T",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["F",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Qe.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Qe.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:i.map(d=>(0,Qe.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Qe.jsx)("zn",{className:"mt-2 space-Qe-1",children:d.holidays.map(m=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border`,children:m.userName})},m.id))})]},d.date.toISOString()))}),(0,Qe.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:i.map(d=>(0,Qe.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:l("ml-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,Qe.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Qe.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,Qe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.id))})]},d.date.toISOString()))})]})]})]})}var ba=require("lucide-react");function Zd(...e){return e.filter(Boolean).join(" ")}function Pp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:i,rejectLeave:n}){let[c,u]=(0,Zo.useState)("Calendar View"),d=(0,sd.useRouter)(),m=!1,f=(0,ji.parseISO)(a),g=async p=>{let v=(0,ji.format)(p,"dd-MM-yyyy"),P=new URL(window.location.href);return P.searchParams.set("date",v),d.push(P.toString()),{success:!0}};if(m)return(0,Qe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Qe.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ba.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ba.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ba.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ba.CheckSquare,current:c==="Approve Leave"}];return(0,Qe.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Qe.jsxs)("div",{className:"mb-8",children:[(0,Qe.jsxs)("div",{className:"sm:hidden",children:[(0,Qe.jsx)("select",{value:c,onChange:p=>u(p.target.value),className:"block w-full rounded-Qe border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(p=>(0,Qe.jsx)("option",{children:p.name},p.name))}),(0,Qe.jsx)(zn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Qe.jsx)("div",{className:"hidden sm:block",children:(0,Qe.jsx)("div",{className:"border-b border-gray-200",children:(0,Qe.jsx)("nav",{className:"-mb-px flex space-Qe-8","aria-label":"Tabs",children:b.map(p=>(0,Qe.jsxs)("a",{onClick:()=>{(p.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(p.name)},className:Zd(p.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",p.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":p.current?"page":void 0,children:[(0,Qe.jsx)(p.icon,{className:Zd(p.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Qe.jsx)("span",{children:p.name})]},p.name))})})})]}),c==="Grid View"&&(0,Qe.jsx)(qi,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,Qe.jsx)(Ki,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,Qe.jsx)(Yi,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:p=>s?s(p):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Qe.jsx)(Wi,{leaveRequests:o,onApprove:p=>i?i(p):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:p=>n?n(p):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function Ji({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:i}){var Fe,Pt,k,F,ct;let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Zo.useState)(""),[m,f]=(0,Zo.useState)(!1),[g,b]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let p=async()=>{try{let w=await s(n);w.success?(f(!1),b(null)):console.error("Failed Qe save deal:",w.errors)}catch(w){console.error("Failed Qe save deal:",w)}},v=(w,_)=>{c(W=>({...W,[w]:_}))},P=w=>{let _=(n.categories||[]).includes(w)?(n.categories||[]).filter(W=>W!==w):[...n.categories||[],w];v("categories",_)},G=async()=>{if(u.trim()){let w={text:u,timestamp:new Date().toISOString()};try{let _=await i(w);if(!_.success){console.error("Failed Qe add comment:",_.errors);return}}catch(_){console.error("Failed Qe add comment:",_)}c(_=>({..._,comments:[..._.comments||[],w]})),d("")}},te=w=>{switch(w){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},ue=w=>t==null?void 0:t.find(_=>_.id===Number(w));return(0,Qe.jsx)(at,{open:!0,children:(0,Qe.jsxs)(Xe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Qe.jsxs)(ft,{className:"flex flex-row items-center justify-between",children:[(0,Qe.jsx)(gt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Qe.jsxs)("div",{className:"flex space-Qe-2",children:[(0,Qe.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,Qe.jsxs)(T,{onClick:p,disabled:!m,children:[(0,Qe.jsx)(zn.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Qe.jsxs)(ia,{className:"flex-grow pr-4",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Qe.jsx)("div",{className:"grid gap-2",children:g==="value"?(0,Qe.jsx)(ze,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Qe.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(Fe=n.value)==null?void 0:Fe.toLocaleString()]})}),(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),g==="assignee"?(0,Qe.jsxs)(Ra,{value:((k=(Pt=n==null?void 0:n.assignee)==null?void 0:Pt.id)==null?void 0:k.toString())||"",onValueChange:w=>v("assignee",ue(w)),children:[(0,Qe.jsx)(da,{children:(0,Qe.jsx)(Sa,{placeholder:"Select assignee"})}),(0,Qe.jsx)(ca,{children:t&&t.map(w=>{var _;return(0,Qe.jsx)(ma,{value:((_=w==null?void 0:w.id)==null?void 0:_.toString())||"",children:w.name},w.id)})})]}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Qe.jsx)(zn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.assignee.name})]})]}),(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),g==="closureDate"?(0,Qe.jsx)(ze,{type:"date",value:(ct=(F=n.closureDate)==null?void 0:F.split("T")[0])!=null?ct:"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Qe.jsx)(zn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"Qe/Qe"})]})]})]}),(0,Qe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Description"}),g==="description"?(0,Qe.jsx)(pa,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Qe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Status"}),g==="status"?(0,Qe.jsxs)(Ra,{value:n.status,onValueChange:w=>{v("status",w),b(null)},children:[(0,Qe.jsx)(da,{children:(0,Qe.jsx)(Sa,{placeholder:"Select status"})}),(0,Qe.jsx)(ca,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(w=>(0,Qe.jsx)(ma,{value:w,children:w},w))})]}):(0,Qe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Qe.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Qe.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Categories"}),g==="categories"?(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(w=>{var _,W;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:((_=w.id)==null?void 0:_.toString())||"",checked:(n.categories||[]).some(jo=>jo.id===w.id),onCheckedChange:()=>w.id!==void 0&&P(w)}),(0,Qe.jsx)("label",{htmlFor:((W=w.id)!=null?W:"").toString(),className:`text-sm font-medium ${te(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id)})}):(0,Qe.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(w=>{let _=w;return _?(0,Qe.jsx)(ot,{variant:"secondary",className:te(_.type||"sector"),children:_.name},_.id):null})})]})]}),(0,Qe.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(oe,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Qe.jsx)(ia,{className:"h-[200px] overflow-Qe-auto",children:(0,Qe.jsx)("div",{className:"space-Qe-2",children:n.comments&&n.comments.slice().sort((w,_)=>new Date(_.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>{var _;return(0,Qe.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Qe.jsx)("p",{className:"text-sm text-gray-700",children:w.text}),(0,Qe.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[(_=w==null?void 0:w.author)==null?void 0:_.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id)})})}),(0,Qe.jsxs)("div",{className:"flex mt-2",children:[(0,Qe.jsx)(ze,{value:u,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Qe.jsxs)(T,{onClick:G,className:"ml-2",children:[(0,Qe.jsx)(zn.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Qe.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function Qi({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var i;return s.type==="proposition"&&((i=e.categories)!=null?i:[]).includes(s.id)});return(0,Qe.jsxs)(we,{className:"mb-4 cursor-pointer hover:shadow-Qe transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Qe.jsxs)(Ge,{className:"pb-2",children:[(0,Qe.jsx)("div",{className:"flex justify-between items-center",children:(0,Qe.jsx)(_e,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Qe.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Qe.jsxs)(Se,{children:[(0,Qe.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Qe.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Qe.jsx)(zn.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Qe.jsx)("span",{children:e.assignee.name})]}),(0,Qe.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Qe.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Qe.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Qe.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Qe.jsx)(zn.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Qe.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Qe.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Qe.jsx)(ot,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Jr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Zi({onSubmit:e}){var r;let[t,a]=(0,Zo.useState)({name:"",intro:"",active:!0});return(0,Qe.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-Qe-4",children:[(0,Qe.jsxs)("div",{className:"space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"customerName",children:"Customer Name"}),(0,Qe.jsx)(ze,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Qe.jsxs)("div",{className:"space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"customerIntro",children:"Intro"}),(0,Qe.jsx)(pa,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Qe.jsx)(oe,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Qe.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function en({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:i}){var te,ue,Fe,Pt;let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[u,d]=(0,Zo.useState)(!1),[m,f]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let k={};return n.customer||(k.customer="Customer is required"),n.value||(k.value="Value is required"),n.assignee||(k.assignee="Assignee is required"),n.closureDate||(k.closureDate="Closure Date is required"),f(k),Object.keys(k).length===0},b=async k=>{k.preventDefault(),f({});try{if(g()){let F=await o({...n});F.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),i==null||i()):f(F.errors||{})}}catch{f({submit:"Tn error occurred while submitting the form."})}},p=k=>{c(F=>({...F,categories:(F.categories||[]).includes(k.id)?(F.categories||[]).filter(ct=>ct!==k.id):[...F.categories||[],k.id]}))},v=async k=>{c({...n,customer:k});try{let F=await s(k);F.success?d(!1):f(F.errors||{})}catch{f({submit:"Tn error occurred while submitting the form."})}},P=k=>t==null?void 0:t.find(F=>F.id===Number(k)),G=k=>e==null?void 0:e.find(F=>F.id===Number(k));return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)("form",{onSubmit:b,className:"space-Qe-6",children:[(0,Qe.jsx)(ia,{className:"h-[60vh] pr-4",children:(0,Qe.jsxs)("div",{className:"space-Qe-6 px-4",children:[(0,Qe.jsxs)("div",{className:"space-Qe-2 space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"customer",children:"Customer"}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsxs)(Ra,{value:(ue=(te=n.customer)==null?void 0:te.id)==null?void 0:ue.toString(),onValueChange:k=>c({...n,customer:G(k)}),children:[(0,Qe.jsx)(da,{children:(0,Qe.jsx)(Sa,{placeholder:"Select customer"})}),(0,Qe.jsx)(ca,{children:e.map(k=>{var F;return(0,Qe.jsx)(ma,{value:((F=k.id)==null?void 0:F.toString())||"",children:k.name},k.id)})})]}),(0,Qe.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Qe.jsx)(zn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,Qe.jsxs)("div",{className:"space-Qe-2 space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"value",children:"Value"}),(0,Qe.jsx)(ze,{id:"value",type:"number",value:n.value||"",onChange:k=>c({...n,value:Number.parseFloat(k.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,Qe.jsxs)("div",{className:"space-Qe-2 space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"assignee",children:"Assignee"}),(0,Qe.jsxs)(Ra,{value:(Pt=(Fe=n.assignee)==null?void 0:Fe.id)==null?void 0:Pt.toString(),onValueChange:k=>c({...n,assignee:P(k)}),children:[(0,Qe.jsx)(da,{children:(0,Qe.jsx)(Sa,{placeholder:"Select assignee"})}),(0,Qe.jsx)(ca,{children:t&&t.map(k=>{var F;return(0,Qe.jsx)(ma,{value:((F=k.id)==null?void 0:F.toString())||"",children:k.name},k.id)})})]}),m.assignee&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,Qe.jsxs)("div",{className:"space-Qe-2 space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"description",children:"Description"}),(0,Qe.jsx)(pa,{id:"description",value:n.description||"",onChange:k=>c({...n,description:k.target.value}),placeholder:"Enter deal description"})]}),(0,Qe.jsxs)("div",{className:"space-Qe-2 space-Qe-2",children:[(0,Qe.jsx)(oe,{children:"Categories"}),(0,Qe.jsx)("div",{className:"space-Qe-4",children:["proposition","source","sector"].map(k=>(0,Qe.jsxs)("div",{className:"space-Qe-2",children:[(0,Qe.jsx)("h4",{className:"text-sm font-medium",children:k.charAt(0).toUpperCase()+k.slice(1)}),(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(F=>F.type===k).map(F=>{var ct;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:F.id.toString(),checked:(ct=n.categories)==null?void 0:ct.includes(F.id),onCheckedChange:()=>p(F)}),(0,Qe.jsx)("label",{htmlFor:F.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:F.name})]},F.id)})})]},k))})]}),(0,Qe.jsxs)("div",{className:"space-Qe-2 space-Qe-2",children:[(0,Qe.jsx)(oe,{htmlFor:"closureDate",children:"Closure Date"}),(0,Qe.jsx)(ze,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:k=>c({...n,closureDate:k.target.value})}),m.closureDate&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,Qe.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Qe.jsx)(at,{open:u,onOpenChange:d,children:(0,Qe.jsxs)(Xe,{children:[(0,Qe.jsx)(ft,{children:(0,Qe.jsx)(gt,{children:"Add New Customer"})}),(0,Qe.jsx)(Zi,{onSubmit:v})]})})]})}function tn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:i,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:u}){let[d,m]=(0,Zo.useState)(!1);return(0,Qe.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Qe.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,Qe.jsxs)(at,{open:d,onOpenChange:m,children:[(0,Qe.jsx)(mr,{asChild:!0,children:(0,Qe.jsxs)(T,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Qe.jsx)(zn.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Qe.jsxs)(Xe,{children:[(0,Qe.jsx)(ft,{children:(0,Qe.jsx)(gt,{children:"Add New Deal"})}),(0,Qe.jsx)(en,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:u,onClose:()=>m(!1)})]})]}),(0,Qe.jsx)(Jr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,Qe.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,b)=>(0,Qe.jsx)(Jr.Draggable,{draggableId:g.id.toString(),index:g.id,children:p=>(0,Qe.jsx)("div",{ref:p.innerRef,...p.draggableProps,...p.dragHandleProps,children:(0,Qe.jsx)(Qi,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),f.placeholder]})}),(0,Qe.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Qe.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Qe.jsxs)("span",{className:"text-green-600",children:["\xA3",i(t).toLocaleString()]})]}),(0,Qe.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Qe.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Rp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Sp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var m;let[s,i]=(0,Zo.useState)(null),n=f=>{var g;return((g=e.deals)!=null?g:[]).filter(b=>b.status===f)},c=f=>f.reduce((g,b)=>g+(b.value||0),0),u=(f,g)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return f.reduce((p,v)=>p+(v.value||0)*b[g],0)},d=(0,Zo.useCallback)(f=>{var te,ue;let{source:g,destination:b}=f;if(!b||g.droppableId===b.droppableId&&g.index===b.index)return;let p=g.droppableId,v=b.droppableId,P=(te=e.deals)==null?void 0:te.filter(Fe=>Fe.id===g.index)[0],G=[...(ue=e.deals)!=null?ue:[]];P&&(P.status=v,a(P))},[a]);return(0,Qe.jsx)(Jr.DragDropContext,{onDragEnd:d,children:(0,Qe.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Qe.jsx)("div",{className:"flex space-Qe-4 pb-4",children:Rp.filter(f=>f!=="Won"&&f!=="Lost").map(f=>{var b,p;let g=n(f);return(0,Qe.jsx)(tn,{status:f,deals:g,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(p=e.categories)!=null?p:[],onDealClick:i,calculateColumnValue:c,calculateWeightedValue:u,addNewDeal:f==="Cold"?t:void 0,onAddCustomer:r},f)})}),s&&(0,Qe.jsx)(Ji,{deal:s,users:e.users,customer:s.customer,categories:(m=e.categories)!=null?m:[],onClose:()=>i(null),onSave:a,onAddComment:f=>o(s.id.toString(),f)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});