cortex-react-components 1.58.22 → 1.59.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 (214) hide show
  1. package/dist/{chunk-H5ZJ5FZ6.mjs → chunk-26FHIJPI.mjs} +1 -1
  2. package/dist/{chunk-I2PJ5ANT.mjs → chunk-3TNHR4R3.mjs} +1 -1
  3. package/dist/{chunk-QID6JIRX.mjs → chunk-63JLGEG4.mjs} +1 -1
  4. package/dist/{chunk-46OVI6RB.mjs → chunk-6ARDJ33C.mjs} +1 -1
  5. package/dist/{chunk-6DHYRATS.mjs → chunk-6LPSD3MQ.mjs} +1 -1
  6. package/dist/{chunk-XP6N7473.mjs → chunk-6SQK6BMG.mjs} +1 -1
  7. package/dist/{chunk-QBLN27FA.mjs → chunk-75OAUMGO.mjs} +1 -1
  8. package/dist/{chunk-2DGZ2JZ5.mjs → chunk-BTY3MRVI.mjs} +1 -1
  9. package/dist/{chunk-AX52NWUN.mjs → chunk-C2GNS62O.mjs} +1 -1
  10. package/dist/{chunk-MGBLZM7Q.mjs → chunk-C3TKY5VE.mjs} +1 -1
  11. package/dist/{chunk-QSBB2P4N.mjs → chunk-CHA4NVM5.mjs} +1 -1
  12. package/dist/{chunk-OJPHYSRN.mjs → chunk-DP5TBNAW.mjs} +1 -1
  13. package/dist/chunk-FPQBVIUS.mjs +4 -0
  14. package/dist/{chunk-ZQGSLXFF.mjs → chunk-GM53J62R.mjs} +1 -1
  15. package/dist/{chunk-D44ZXHH4.mjs → chunk-GUKEDBIY.mjs} +1 -1
  16. package/dist/{chunk-FGNLLSPZ.mjs → chunk-HJXEIYVK.mjs} +1 -1
  17. package/dist/{chunk-FPJFWQB5.mjs → chunk-HPMQRCDC.mjs} +1 -1
  18. package/dist/{chunk-IGYTQN3S.mjs → chunk-IABQ3JMG.mjs} +1 -1
  19. package/dist/{chunk-G2BJSFF4.mjs → chunk-IAP7Y2DK.mjs} +1 -1
  20. package/dist/{chunk-XXTN5HMN.mjs → chunk-J2IXHXCA.mjs} +1 -1
  21. package/dist/{chunk-UIBWSN7F.mjs → chunk-JVM2ZAN6.mjs} +1 -1
  22. package/dist/{chunk-F4JKB4UG.mjs → chunk-JZE6HGP6.mjs} +1 -1
  23. package/dist/{chunk-477T4CBB.mjs → chunk-K7XFS6IQ.mjs} +1 -1
  24. package/dist/{chunk-HER7J6HM.mjs → chunk-KEPEJWQO.mjs} +1 -1
  25. package/dist/{chunk-QNE2DK3R.mjs → chunk-MFTCHZFC.mjs} +1 -1
  26. package/dist/{chunk-QTO5C7WM.mjs → chunk-MTTKHEZZ.mjs} +1 -1
  27. package/dist/{chunk-6YWAX7NS.mjs → chunk-NHTPGUMT.mjs} +1 -1
  28. package/dist/chunk-ONTIR6Z3.mjs +1 -0
  29. package/dist/{chunk-BBCS6735.mjs → chunk-Q32SRZ5X.mjs} +1 -1
  30. package/dist/{chunk-MTIC2X6C.mjs → chunk-RYY3W5VY.mjs} +1 -1
  31. package/dist/{chunk-JPFBD2KD.mjs → chunk-SQWRG4U3.mjs} +1 -1
  32. package/dist/{chunk-7WDAODFS.mjs → chunk-SUIR2RAA.mjs} +1 -1
  33. package/dist/{chunk-S3KRL344.mjs → chunk-UFDQJZAB.mjs} +1 -1
  34. package/dist/{chunk-RJGKFNZL.mjs → chunk-UKJ3TIPX.mjs} +1 -1
  35. package/dist/{chunk-G3J6AOMR.mjs → chunk-VZ5LM33N.mjs} +1 -1
  36. package/dist/{chunk-X5XG7LVM.mjs → chunk-WDVSSHIB.mjs} +1 -1
  37. package/dist/{chunk-7XB4Y3U2.mjs → chunk-XGNF75KY.mjs} +1 -1
  38. package/dist/{chunk-SPAW5K3E.mjs → chunk-Y74ENEUN.mjs} +1 -1
  39. package/dist/{chunk-PJSCXNH4.mjs → chunk-ZSUPFOXY.mjs} +1 -1
  40. package/dist/components/Blocks/Banner.js +1 -1
  41. package/dist/components/Blocks/Banner.mjs +1 -1
  42. package/dist/components/Blocks/CallToAction.js +1 -1
  43. package/dist/components/Blocks/CallToAction.mjs +1 -1
  44. package/dist/components/Blocks/CallToAction.stories.js +1 -1
  45. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  46. package/dist/components/Blocks/CollapsibleArea.js +1 -1
  47. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  48. package/dist/components/Blocks/CollapsibleArea.stories.js +1 -1
  49. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  50. package/dist/components/Blocks/Content.js +1 -1
  51. package/dist/components/Blocks/Content.mjs +1 -1
  52. package/dist/components/Blocks/Content.stories.js +1 -1
  53. package/dist/components/Blocks/Content.stories.mjs +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  55. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  56. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  57. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  58. package/dist/components/Blocks/ImageBlock.js +1 -1
  59. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  60. package/dist/components/Blocks/MediaBlock.js +1 -1
  61. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  62. package/dist/components/Blocks/RelatedPosts.js +1 -1
  63. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  64. package/dist/components/Blocks/RenderBlocks.js +1 -1
  65. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  66. package/dist/components/Blocks/ReusableContentBlock.js +1 -1
  67. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  68. package/dist/components/Blocks/index.js +1 -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/index.mjs +1 -1
  77. package/dist/components/Cards/ContentCard.js +1 -1
  78. package/dist/components/Cards/ContentCard.mjs +1 -1
  79. package/dist/components/Cards/ContentCard.stories.js +1 -1
  80. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  81. package/dist/components/Cards/FeatureCard.js +1 -1
  82. package/dist/components/Cards/FeatureCard.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.stories.js +1 -1
  84. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  85. package/dist/components/Cards/index.js +4 -4
  86. package/dist/components/Cards/index.mjs +1 -1
  87. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  88. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  89. package/dist/components/Heros/HighImpact/index.js +1 -1
  90. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  91. package/dist/components/Heros/LowImpact/index.js +1 -1
  92. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  93. package/dist/components/Heros/MediumImpact/index.js +1 -1
  94. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  95. package/dist/components/Heros/PostHero/index.mjs +1 -1
  96. package/dist/components/Heros/RenderHero.js +1 -1
  97. package/dist/components/Heros/RenderHero.mjs +1 -1
  98. package/dist/components/Heros/index.js +1 -1
  99. package/dist/components/Heros/index.mjs +1 -1
  100. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  101. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  102. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  103. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  104. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  105. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  106. package/dist/components/Holidays/index.mjs +1 -1
  107. package/dist/components/Layouts/FeatureGrid.stories.js +1 -1
  108. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  109. package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
  110. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  111. package/dist/components/Layouts/Print.js +2 -2
  112. package/dist/components/Layouts/Print.mjs +1 -1
  113. package/dist/components/Layouts/Print.stories.js +1 -1
  114. package/dist/components/Layouts/Print.stories.mjs +1 -1
  115. package/dist/components/Layouts/SlideShow.js +3 -3
  116. package/dist/components/Layouts/SlideShow.mjs +1 -1
  117. package/dist/components/Layouts/SlideShow.stories.js +3 -3
  118. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  119. package/dist/components/Layouts/index.js +4 -4
  120. package/dist/components/Layouts/index.mjs +1 -1
  121. package/dist/components/Menus/index.mjs +1 -1
  122. package/dist/components/Payload/Card/index.js +1 -1
  123. package/dist/components/Payload/Card/index.mjs +1 -1
  124. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  125. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  126. package/dist/components/Payload/Media/VideoMedia/index.js +1 -1
  127. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  128. package/dist/components/Payload/Media/index.js +1 -1
  129. package/dist/components/Payload/Media/index.mjs +1 -1
  130. package/dist/components/Payload/RichText/index.js +1 -1
  131. package/dist/components/Payload/RichText/index.mjs +1 -1
  132. package/dist/components/Payload/RichText/serialize.js +1 -1
  133. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  134. package/dist/components/Payload/RichText.stories.js +1 -1
  135. package/dist/components/Payload/RichText.stories.mjs +1 -1
  136. package/dist/components/Payload/index.js +1 -1
  137. package/dist/components/Payload/index.mjs +1 -1
  138. package/dist/components/index.js +7 -7
  139. package/dist/components/index.mjs +1 -1
  140. package/dist/components/ui/index.mjs +1 -1
  141. package/dist/index.js +9 -9
  142. package/dist/index.mjs +1 -1
  143. package/dist/metafile-cjs.json +1 -1
  144. package/dist/metafile-esm.json +1 -1
  145. package/dist/pages/Blog.js +1 -1
  146. package/dist/pages/Blog.mjs +1 -1
  147. package/dist/pages/Blog.stories.js +1 -1
  148. package/dist/pages/Blog.stories.mjs +1 -1
  149. package/dist/pages/IndexPage.mjs +1 -1
  150. package/dist/pages/IndexPage.stories.mjs +1 -1
  151. package/dist/pages/LandingPage.js +3 -3
  152. package/dist/pages/LandingPage.mjs +1 -1
  153. package/dist/pages/LandingPage.stories.js +2 -2
  154. package/dist/pages/LandingPage.stories.mjs +1 -1
  155. package/dist/pages/Page.js +1 -1
  156. package/dist/pages/Page.mjs +1 -1
  157. package/dist/pages/Page.stories.js +177 -177
  158. package/dist/pages/Page.stories.mjs +1 -1
  159. package/dist/pages/Printable.stories.js +4 -4
  160. package/dist/pages/Printable.stories.mjs +1 -1
  161. package/dist/pages/Publish.js +4 -4
  162. package/dist/pages/Publish.mjs +1 -1
  163. package/dist/pages/Publish.stories.js +4 -4
  164. package/dist/pages/Publish.stories.mjs +1 -1
  165. package/dist/pages/Website.js +1 -1
  166. package/dist/pages/Website.mjs +1 -1
  167. package/dist/pages/Website.stories.js +1 -1
  168. package/dist/pages/Website.stories.mjs +1 -1
  169. package/dist/sections/AboutSection.js +1 -1
  170. package/dist/sections/AboutSection.mjs +1 -1
  171. package/dist/sections/AboutSection.stories.js +1 -1
  172. package/dist/sections/AboutSection.stories.mjs +1 -1
  173. package/dist/sections/BlogDetail.js +1 -1
  174. package/dist/sections/BlogDetail.mjs +1 -1
  175. package/dist/sections/BlogDetail.stories.js +1 -1
  176. package/dist/sections/BlogDetail.stories.mjs +1 -1
  177. package/dist/sections/BlogList.js +3 -3
  178. package/dist/sections/BlogList.mjs +1 -1
  179. package/dist/sections/BlogList.stories.js +3 -3
  180. package/dist/sections/BlogList.stories.mjs +1 -1
  181. package/dist/sections/BlogListSection.mjs +1 -1
  182. package/dist/sections/BlogListSection.stories.mjs +1 -1
  183. package/dist/sections/ContactSection.js +1 -1
  184. package/dist/sections/ContactSection.mjs +1 -1
  185. package/dist/sections/ContactSection.stories.js +1 -1
  186. package/dist/sections/ContactSection.stories.mjs +1 -1
  187. package/dist/sections/ImageSection.stories.js +1 -1
  188. package/dist/sections/ImageSection.stories.mjs +1 -1
  189. package/dist/sections/MainPageSection.mjs +1 -1
  190. package/dist/sections/PageSections.js +2 -2
  191. package/dist/sections/PageSections.mjs +1 -1
  192. package/dist/sections/PageSections.stories.js +2 -2
  193. package/dist/sections/PageSections.stories.mjs +1 -1
  194. package/dist/sections/PricingSection.js +1 -1
  195. package/dist/sections/PricingSection.mjs +1 -1
  196. package/dist/sections/PricingSection.stories.js +1 -1
  197. package/dist/sections/PricingSection.stories.mjs +1 -1
  198. package/dist/sections/ServiceDetail.js +1 -1
  199. package/dist/sections/ServiceDetail.mjs +1 -1
  200. package/dist/sections/ServiceDetailSection.js +1 -1
  201. package/dist/sections/ServiceDetailSection.mjs +1 -1
  202. package/dist/sections/ServiceDetailSection.stories.js +1 -1
  203. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  204. package/dist/sections/ServiceSection.js +1 -1
  205. package/dist/sections/ServiceSection.mjs +1 -1
  206. package/dist/sections/ServiceSection.stories.js +1 -1
  207. package/dist/sections/ServiceSection.stories.mjs +1 -1
  208. package/dist/sections/index.js +3 -3
  209. package/dist/sections/index.mjs +1 -1
  210. package/dist/utils/getURL.mjs +1 -1
  211. package/package.json +1 -1
  212. package/dist/chunk-44TDI42O.mjs +0 -1
  213. package/dist/chunk-IREQMG2S.mjs +0 -1
  214. package/dist/chunk-TFWGOEV7.mjs +0 -4
@@ -3,12 +3,12 @@
3
3
  'use server'
4
4
  'use strict'
5
5
 
6
- "use strict";var dc=Object.create;var qo=Object.defineProperty;var cc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var pc=Object.getPrototypeOf,uc=Object.prototype.hasOwnProperty;var fc=(e,t)=>{for(var a in t)qo(e,a,{get:t[a],enumerable:!0})},cn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of mc(t))!uc.call(e,r)&&r!==a&&qo(e,r,{get:()=>t[r],enumerable:!(o=cc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?dc(pc(e)):{},cn(t||!e||!e.__esModule?qo(a,"default",{value:e,enumerable:!0}):a,e)),gc=e=>cn(qo({},"__esModule",{value:!0}),e);var Dp={};fc(Dp,{Alert:()=>oi,AlertDescription:()=>si,AlertTitle:()=>ri,ApproveLeave:()=>qi,Avatar:()=>Ht,AvatarFallback:()=>zt,AvatarImage:()=>Ft,Badge:()=>at,BannerBlock:()=>di,BrandLogo:()=>ga,Breadcrumb:()=>ss,BreadcrumbEllipsis:()=>ms,BreadcrumbItem:()=>ns,BreadcrumbLink:()=>ls,BreadcrumbList:()=>is,BreadcrumbPage:()=>ds,BreadcrumbSeparator:()=>cs,Breadcrumbs:()=>bp,Button:()=>D,CMSLink:()=>yt,CRMKanbanBoard:()=>Tp,Calendar:()=>Ao,CalendarView:()=>en,CallToActionBlock:()=>Da,CallToActionBlockOld:()=>bm,Card:()=>Fo,Categories:()=>np,Checkbox:()=>bt,CodeBlock:()=>fi,Collapsible:()=>It,CollapsibleContent:()=>Jt,CollapsibleTrigger:()=>Kt,CollectionArchive:()=>Wm,Command:()=>fr,CommandDialog:()=>dl,CommandEmpty:()=>Qs,CommandGroup:()=>Zs,CommandInput:()=>Ks,CommandItem:()=>ti,CommandList:()=>Js,CommandSeparator:()=>ei,CommandShortcut:()=>ai,Container:()=>_i,ContentBlock:()=>Ho,ContentCard:()=>Dm,CopyButton:()=>pi,CustomLink:()=>ot,CustomerCard:()=>Vl,DarkTop:()=>Ni,DealCard:()=>an,DealDetails:()=>tn,Dialog:()=>tt,DialogClose:()=>pr,DialogContent:()=>Xe,DialogDescription:()=>qs,DialogFooter:()=>Ys,DialogHeader:()=>ft,DialogOverlay:()=>ur,DialogPortal:()=>Xs,DialogTitle:()=>gt,DialogTrigger:()=>mr,DropdownMenu:()=>wn,DropdownMenuCheckboxItem:()=>bs,DropdownMenuContent:()=>fs,DropdownMenuGroup:()=>Cn,DropdownMenuItem:()=>gs,DropdownMenuLabel:()=>vs,DropdownMenuPortal:()=>Pn,DropdownMenuRadioGroup:()=>Rn,DropdownMenuRadioItem:()=>ys,DropdownMenuSeparator:()=>hs,DropdownMenuShortcut:()=>xs,DropdownMenuSub:()=>kn,DropdownMenuSubContent:()=>us,DropdownMenuSubTrigger:()=>ps,DropdownMenuTrigger:()=>Nn,DynamicIcon:()=>Se,EventCard:()=>Ul,FeatureCard:()=>Dr,FeatureGrid:()=>Zl,FeaturesBlock:()=>Ia,Filter:()=>lp,FlowPrintable:()=>Nd,Footer:()=>Np,Header:()=>Cp,HeaderDesktop:()=>Ui,HeaderMobile:()=>ji,HeadingImage:()=>_m,Hero:()=>Tm,HighImpactHero:()=>Hi,HolidayGrid:()=>Zi,HolidayTracker:()=>Rp,HoverCard:()=>rl,HoverCardContent:()=>js,HoverCardTrigger:()=>sl,Image:()=>ql,ImageBlock:()=>hi,InfoTile:()=>Am,Input:()=>Oe,Insight:()=>Im,KanbanColumn:()=>sn,Label:()=>ae,LightTop:()=>Ci,Logo:()=>jm,LowImpactHero:()=>Oi,MOTD:()=>Lm,Mask:()=>up,Media:()=>_t,MediaBlock:()=>Gt,MediumImpactHero:()=>zi,NewCustomerForm:()=>on,NewDealForm:()=>rn,NewsGrid:()=>xd,OrgChart:()=>Fm,PagePrintable:()=>Cd,PageRange:()=>qm,PageShape:()=>Go,Pagination:()=>ip,PayloadPagination:()=>Km,Popover:()=>To,PopoverAnchor:()=>Zn,PopoverContent:()=>qa,PopoverTrigger:()=>Do,PostHero:()=>mp,PricingCard:()=>Sm,Printable:()=>Zm,ProjectCard:()=>Yl,ProjectTeam:()=>rp,ProposalSummary:()=>zm,RelatedContent:()=>sp,RelatedPosts:()=>Um,RenderBlocks:()=>fa,RenderBlocksWithShapes:()=>$m,RenderHero:()=>gp,RequestLeave:()=>Qi,ReusableContentBlock:()=>wi,RichText:()=>Q,ScrollArea:()=>sa,ScrollBar:()=>cr,SectionHero:()=>$i,Select:()=>Ra,SelectContent:()=>da,SelectGroup:()=>cm,SelectItem:()=>ca,SelectLabel:()=>gl,SelectScrollDownButton:()=>li,SelectScrollUpButton:()=>ni,SelectSeparator:()=>bl,SelectTrigger:()=>la,SelectValue:()=>Sa,Separator:()=>go,ServiceCard:()=>Rm,Sheet:()=>Jo,SheetClose:()=>Ln,SheetContent:()=>yo,SheetDescription:()=>Rs,SheetFooter:()=>Ps,SheetHeader:()=>Cs,SheetOverlay:()=>Qo,SheetPortal:()=>Ns,SheetTitle:()=>ks,SheetTrigger:()=>Bn,Sidebar:()=>ha,SidebarContent:()=>Zt,SidebarFooter:()=>wa,SidebarGroup:()=>Qe,SidebarGroupAction:()=>Bs,SidebarGroupContent:()=>pt,SidebarGroupLabel:()=>Bt,SidebarHeader:()=>xa,SidebarInput:()=>As,SidebarInset:()=>Is,SidebarLeft:()=>ep,SidebarMenu:()=>_e,SidebarMenuAction:()=>xo,SidebarMenuBadge:()=>Ls,SidebarMenuButton:()=>Ze,SidebarMenuItem:()=>Re,SidebarMenuSkeleton:()=>Es,SidebarMenuSub:()=>ea,SidebarMenuSubButton:()=>aa,SidebarMenuSubItem:()=>ta,SidebarProvider:()=>Ts,SidebarRail:()=>Ms,SidebarRight:()=>op,SidebarSeparator:()=>ho,SidebarTrigger:()=>Ds,SimpleHeader:()=>vp,Skeleton:()=>le,SlideShow:()=>yd,TextAndImages:()=>wd,Textarea:()=>ma,Theme:()=>Er,ThemeProvider:()=>pp,ThemeWithShapes:()=>id,Toast:()=>Co,ToastAction:()=>zs,ToastClose:()=>Po,ToastDescription:()=>Ro,ToastProvider:()=>lr,ToastTitle:()=>ko,ToastViewport:()=>No,Toaster:()=>Xn,Toggle:()=>_s,ToggleGroup:()=>Gs,ToggleGroupItem:()=>$s,Tooltip:()=>ar,TooltipContent:()=>vo,TooltipProvider:()=>tr,TooltipTrigger:()=>or,VideoHeader:()=>xp,WhyUs:()=>Om,badgeVariants:()=>ii,buttonVariants:()=>Qt,toggleVariants:()=>So,useIsMobile:()=>er,useSidebar:()=>Xa,useToast:()=>nr});module.exports=gc(Dp);var Va=h(require("react")),Ko=require("@radix-Je/react-icons"),xn=require("@radix-Je/react-slot");var hn=require("clsx");var os="-",bc=e=>{let t=vc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(os);return n[0]===""&&n.length!==1&&n.shift(),un(n,t)||yc(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},un=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?un(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(os);return(l=t.validators.find(({validator:n})=>n(s)))==null?void 0:l.classGroupId},mn=/^\[(.+)\]$/,yc=e=>{if(mn.test(e)){let t=mn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},vc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return xc(Object.entries(e.classGroups),a).forEach(([s,l])=>{as(l,o,s,t)}),o},as=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:pn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(hc(r)){as(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{as(l,pn(t,s),a,o)})})},pn=(e,t)=>{let a=e;return t.split(os).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},hc=e=>e.isThemeGetter,xc=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[t+l,n])):s);return[a,r]}):e,wc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},fn="!",Nc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],u=0,d=0,p;for(let y=0;y<n.length;y++){let w=n[y];if(u===0){if(w===r&&(o||n.slice(y,y+s)===t)){c.push(n.slice(d,y)),d=y+s;continue}if(w==="/"){p=y;continue}}w==="["?u++:w==="]"&&u--}let g=c.length===0?n:n.substring(d),f=g.startsWith(fn),b=f?g.substring(1):g,m=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:m}};return a?n=>a({className:n,parseClassName:l}):l},Cc=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(o=>{o[0]==="["?(t.push(...a.sort(),o),a=[]):a.push(o)}),t.push(...a.sort()),t},Pc=e=>({cache:wc(e.cacheSize),parseClassName:Nc(e),...bc(e)}),kc=/\s+/,Rc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(kc),n="";for(let c=l.length-1;c>=0;c-=1){let u=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=a(u),b=!!f,m=o(b?g.substring(0,f):g);if(!m){if(!b){n=u+(n.length>0?" "+n:n);continue}if(m=o(g),!m){n=u+(n.length>0?" "+n:n);continue}b=!1}let y=Cc(d).join(":"),w=p?y+fn:y,G=w+m;if(s.includes(G))continue;s.push(G);let ee=r(m,b);for(let fe=0;fe<ee.length;++fe){let ze=ee[fe];s.push(w+ze)}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=gn(t))&&(o&&(o+=" "),o+=a);return o}var gn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=gn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Tc(e,...t){let a,o,r,s=l;function l(c){let u=t.reduce((d,p)=>p(d),e());return a=Pc(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 te=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},bn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Dc=/^\d+\/\d+$/,Mc=new Set(["px","full","screen"]),Ic=/^(\d+(\.\d+)?)?(xs|sm|md|lg|Je)$/,Ac=/\d+(%|px|r?em|[sdl]?Je([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$/,Bc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lc=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)Je-?((\d+)?\.?(\d+)[a-z]+|0)/,Ec=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mt=e=>Ga(e)||Mc.has(e)||Dc.test(e),Yt=e=>$a(e,"length",Vc),Ga=e=>!!e&&!Number.isNaN(Number(e)),ts=e=>$a(e,"number",Ga),uo=e=>!!e&&Number.isInteger(Number(e)),Hc=e=>e.endsWith("%")&&Ga(e.slice(0,-1)),I=e=>bn.test(e),qt=e=>Ic.test(e),Fc=new Set(["length","size","percentage"]),zc=e=>$a(e,Fc,yn),Oc=e=>$a(e,"position",yn),_c=new Set(["image","url"]),Gc=e=>$a(e,_c,Wc),$c=e=>$a(e,"",Uc),fo=()=>!0,$a=(e,t,a)=>{let o=bn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Vc=e=>Ac.test(e)&&!Bc.test(e),yn=()=>!1,Uc=e=>Lc.test(e),Wc=e=>Ec.test(e);var jc=()=>{let e=te("colors"),t=te("spacing"),a=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),l=te("borderSpacing"),n=te("borderWidth"),c=te("contrast"),u=te("grayscale"),d=te("hueRotate"),p=te("invert"),g=te("gap"),f=te("gradientColorStops"),b=te("gradientColorStopPositions"),m=te("inset"),y=te("margin"),w=te("opacity"),G=te("padding"),ee=te("saturate"),fe=te("scale"),ze=te("sepia"),Pt=te("skew"),S=te("space"),z=te("translate"),ct=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",I,t],j=()=>[I,t],jo=()=>["",Mt,Yt],Xo=()=>["auto",Ga,I],nn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Yo=()=>["solid","dashed","dotted","double","none"],ln=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],es=()=>["start","end","center","between","around","evenly","stretch"],po=()=>["","0",I],dn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Dt=()=>[Ga,I];return{cacheSize:500,separator:":",theme:{colors:[fo],spacing:[Mt,Yt],blur:["none","",qt,I],brightness:Dt(),borderColor:[e],borderRadius:["none","","full",qt,I],borderSpacing:j(),borderWidth:jo(),contrast:Dt(),grayscale:po(),hueRotate:Dt(),invert:po(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[Hc,Yt],inset:$(),margin:$(),opacity:Dt(),padding:j(),saturate:Dt(),scale:Dt(),sepia:po(),skew:Dt(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[qt]}],"break-after":[{"break-after":dn()}],"break-before":[{"break-before":dn()}],"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:[...nn(),I]}],overflow:[{overflow:N()}],"overflow-Je":[{"overflow-Je":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:ct()}],"overscroll-Je":[{"overscroll-Je":ct()}],"overscroll-y":[{"overscroll-y":ct()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-Je":[{"inset-Je":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,I]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:po()}],shrink:[{shrink:po()}],order:[{order:["first","last","none",uo,I]}],"grid-cols":[{"grid-cols":[fo]}],"col-start-end":[{col:["auto",{span:["full",uo,I]},I]}],"col-start":[{"col-start":Xo()}],"col-end":[{"col-end":Xo()}],"grid-rows":[{"grid-rows":[fo]}],"row-start-end":[{row:["auto",{span:[uo,I]},I]}],"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",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[g]}],"gap-Je":[{"gap-Je":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...es()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...es(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...es(),"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]}],Je:[{Je:[G]}],pt:[{pt:[G]}],pr:[{pr:[G]}],pb:[{pb:[G]}],Je:[{Je:[G]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],Je:[{Je:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],An:[{An:[y]}],"space-Je":[{"space-Je":[S]}],"space-Je-reverse":["space-Je-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[qt]},qt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qt,Yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ts]}],"font-family":[{font:[fo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",Ga,ts]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mt,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","nd-underline"],"text-decoration-style":[{decoration:[...Yo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mt,Yt]}],"underline-offset":[{"underline-offset":["auto",Mt,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nn(),Oc]}],"bg-repeat":[{bg:["nd-repeat",{repeat:["","Je","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zc]}],"bg-image":[{bg:["none",{"gradient-$n":["t","tr","r","Je","b","bl","l","An"]},Gc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-$n-pos":[{$n:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-$n":[{$n:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Je":[{"rounded-Je":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-An":[{"rounded-An":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-Je":[{"rounded-Je":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-Je":[{"border-Je":[n]}],"border-w-y":[{"border-y":[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":[w]}],"border-style":[{border:[...Yo(),"hidden"]}],"divide-Je":[{"divide-Je":[n]}],"divide-Je-reverse":["divide-Je-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Yo()}],"border-color":[{border:[r]}],"border-color-Je":[{"border-Je":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Yo()]}],"outline-offset":[{"outline-offset":[Mt,I]}],"outline-w":[{outline:[Mt,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:jo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Mt,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,$c]}],"shadow-color":[{shadow:[fo]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...ln(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ln()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",qt,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[ee]}],sepia:[{sepia:[ze]}],"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":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[ee]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-Je":[{"border-spacing-Je":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:Dt()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:Dt()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[fe]}],"scale-Je":[{"scale-Je":[fe]}],"scale-y":[{"scale-y":[fe]}],rotate:[{rotate:[uo,I]}],"translate-Je":[{"translate-Je":[z]}],"translate-y":[{"translate-y":[z]}],"skew-Je":[{"skew-Je":[Pt]}],"skew-y":[{"skew-y":[Pt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","nd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","Je-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Je",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-Je":[{"scroll-Je":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-An":[{"scroll-An":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-Je":[{"scroll-Je":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-Je":[{"scroll-Je":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Je","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Je":[{"touch-pan":["Je","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mt,Yt,ts]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Je","overflow-y"],overscroll:["overscroll-Je","overscroll-y"],inset:["inset-Je","inset-y","start","end","top","right","bottom","left"],"inset-Je":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Je","gap-y"],p:["px","py","ps","Je","pt","pr","pb","Je"],px:["pr","Je"],py:["pt","pb"],m:["mx","my","ms","Je","mt","mr","mb","An"],mx:["mr","An"],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-Je","rounded-ee","rounded-es","rounded-An","rounded-tr","rounded-Je","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Je","rounded-ee"],"rounded-t":["rounded-An","rounded-tr"],"rounded-r":["rounded-tr","rounded-Je"],"rounded-b":["rounded-Je","rounded-bl"],"rounded-l":["rounded-An","rounded-bl"],"border-spacing":["border-spacing-Je","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Je":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Je":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Je","scroll-mt","scroll-mr","scroll-mb","scroll-An"],"scroll-mx":["scroll-mr","scroll-An"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Je","scroll-pt","scroll-pr","scroll-pb","scroll-Je"],"scroll-px":["scroll-pr","scroll-Je"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Je","touch-y","touch-pz"],"touch-Je":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var vn=Tc(jc);function i(...e){return vn((0,hn.clsx)(e))}function rs(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,u,d,p,g;if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(u=(c=n.richText)==null?void 0:c.root)!=null&&u.children&&((p=(d=n.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let f=n.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of f)b.children[0]&&l.push({text:(g=b.children[0].text)!=null?g:"",id:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),l}),r=Xc(e.layout);return{tableOfContents:o,contentWithIds:r}}function Xc(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 Je=require("react/jsx-runtime"),ss=Va.forwardRef(({...e},t)=>(0,Je.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ss.displayName="Breadcrumb";var is=Va.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("ol",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));is.displayName="BreadcrumbList";var ns=Va.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));ns.displayName="BreadcrumbItem";var ls=Va.forwardRef(({asChild:e,className:t,...a},o)=>(0,Je.jsx)(e?xn.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));ls.displayName="BreadcrumbLink";var ds=Va.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));ds.displayName="BreadcrumbPage";var cs=({children:e,className:t,...a})=>(0,Je.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Je.jsx)(Ko.ChevronRightIcon,{})});cs.displayName="BreadcrumbSeparator";var ms=({className:e,...t})=>(0,Je.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Je.jsx)(Ko.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"More"})]});ms.displayName="BreadcrumbElipssis";var Ua=h(require("@radix-Je/react-collapsible")),It=Ua.Root,Kt=Ua.CollapsibleTrigger,Jt=Ua.CollapsibleContent;var At=h(require("react")),L=h(require("@radix-Je/react-dropdown-menu"));var wn=L.Root,Nn=L.Trigger,Cn=L.Group,Pn=L.Portal,kn=L.Sub,Rn=L.RadioGroup,ps=At.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Je.jsxs)(L.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"Je-8",e),...o,children:[a,(0,Je.jsx)(Ko.ChevronRightIcon,{className:"An-auto"})]}));ps.displayName=L.SubTrigger.displayName;var us=At.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(L.SubContent,{ref:a,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));us.displayName=L.SubContent.displayName;var fs=At.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Je.jsx)(L.Portal,{children:(0,Je.jsx)(L.Content,{ref:o,sideOffset:t,className:i("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));fs.displayName=L.Content.displayName;var gs=At.forwardRef(({className:e,inset:t,...a},o)=>(0,Je.jsx)(L.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"Je-8",e),...a}));gs.displayName=L.Item.displayName;var bs=At.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Je.jsxs)(L.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 Je-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,Je.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Je.jsx)(L.ItemIndicator,{children:(0,Je.jsx)(Ko.CheckIcon,{className:"h-4 w-4"})})}),t]}));bs.displayName=L.CheckboxItem.displayName;var ys=At.forwardRef(({className:e,children:t,...a},o)=>(0,Je.jsxs)(L.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 Je-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,Je.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Je.jsx)(L.ItemIndicator,{children:(0,Je.jsx)(Ko.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));ys.displayName=L.RadioItem.displayName;var vs=At.forwardRef(({className:e,inset:t,...a},o)=>(0,Je.jsx)(L.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"Je-8",e),...a}));vs.displayName=L.Label.displayName;var hs=At.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(L.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));hs.displayName=L.Separator.displayName;var xs=({className:e,...t})=>(0,Je.jsx)("span",{className:i("An-auto text-xs tracking-widest opacity-60",e),...t});xs.displayName="DropdownMenuShortcut";var Sn=h(require("react"));var Oe=Sn.forwardRef(({className:e,type:t,...a},o)=>(0,Je.jsx)("input",{type:t,className:i("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));Oe.displayName="Input";var Dn=h(require("react")),ws=h(require("@radix-Je/react-separator"));var go=Dn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Je.jsx)(ws.Root,{ref:r,decorative:a,orientation:t,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));go.displayName=ws.Root.displayName;var bo=h(require("react")),ne=h(require("@radix-Je/react-dialog")),An=require("class-variance-authority");var Jo=ne.Root,Bn=ne.Trigger,Ln=ne.Close,Ns=ne.Portal,Qo=bo.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ne.Overlay,{className:i("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=ne.Overlay.displayName;var Yc=(0,An.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-Je-0 top-0 border-b data-[state=closed]:slide-out-$n-top data-[state=open]:slide-in-from-top",bottom:"inset-Je-0 bottom-0 border-t data-[state=closed]:slide-out-$n-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-$n-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-$n-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),yo=bo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Je.jsxs)(Ns,{children:[(0,Je.jsx)(Qo,{}),(0,Je.jsxs)(ne.Content,{ref:r,className:i(Yc({side:e}),t),...o,children:[(0,Je.jsxs)(ne.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,Je.jsx)(Ko.Cross2Icon,{className:"h-4 w-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));yo.displayName=ne.Content.displayName;var Cs=({className:e,...t})=>(0,Je.jsx)("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Cs.displayName="SheetHeader";var Ps=({className:e,...t})=>(0,Je.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Je-2",e),...t});Ps.displayName="SheetFooter";var ks=bo.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ne.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));ks.displayName=ne.Title.displayName;var Rs=bo.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ne.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Rs.displayName=ne.Description.displayName;var H=h(require("react")),$n=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 Fn=h(require("react")),Qt=(0,An.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"}}}),D=Fn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Je.jsx)(e?xn.Slot:"button",{className:i(Qt({className:t,size:a,variant:o})),ref:s,...r}));D.displayName="Button";function le({className:e,...t}){return(0,Je.jsx)("div",{className:i("animate-pulse rounded-md bg-primary/10",e),...t})}var _n=h(require("react")),mt=h(require("@radix-Je/react-tooltip"));var tr=mt.Provider,ar=mt.Root,or=mt.Trigger,vo=_n.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Je.jsx)(mt.Portal,{children:(0,Je.jsx)(mt.Content,{ref:o,sideOffset:t,className:i("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));vo.displayName=mt.Content.displayName;var qc="sidebar:state",Kc=60*60*24*7,Jc="16rem",Qc="18rem",Zc="3rem",em="b",Vn=H.createContext(null);function Xa(){let e=H.useContext(Vn);if(!e)throw new Error("useSidebar must Je used within a SidebarProvider.");return e}var Ts=H.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=er(),[u,d]=H.useState(!1),[p,g]=H.useState(e),f=t!=null?t:p,b=H.useCallback(G=>{if(a)return a==null?void 0:a(typeof G=="function"?G(f):G);g(G),document.cookie=`${qc}=${f}; path=/; max-age=${Kc}`},[a,f]),m=H.useCallback(()=>c?d(G=>!G):b(G=>!G),[c,b,d]);H.useEffect(()=>{let G=ee=>{ee.key===em&&(ee.metaKey||ee.ctrlKey)&&(ee.preventDefault(),m())};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[m]);let y=f?"expanded":"collapsed",w=H.useMemo(()=>({state:y,open:f,setOpen:b,isMobile:c,openMobile:u,setOpenMobile:d,toggleSidebar:m}),[y,f,b,c,u,d,m]);return(0,Je.jsx)(Vn.Provider,{value:w,children:(0,Je.jsx)(tr,{delayDuration:0,children:(0,Je.jsx)("div",{style:{"--sidebar-width":Jc,"--sidebar-width-icon":Zc,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});Ts.displayName="SidebarProvider";var ha=H.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:u,setOpenMobile:d}=Xa();return a==="none"?(0,Je.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,Je.jsx)(Jo,{open:u,onOpenChange:d,...s,children:(0,Je.jsx)(yo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Qc},side:e,children:(0,Je.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Je.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,Je.jsx)("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Je+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Je.jsx)("div",{className:i("duration-200 fixed top-14 bottom-0 z-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)Je+_theme(spacing.4)Je+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,Je.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})})]})});ha.displayName="Sidebar";var Ds=H.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Xa();return(0,Je.jsxs)(D,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Je.jsx)($n.PanelLeft,{}),(0,Je.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ds.displayName="SidebarTrigger";var Ms=H.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Xa();return(0,Je.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-Je-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]Je&]:cursor-w-resize [[data-side=right]Je&]:cursor-e-resize","[[data-side=left][data-state=collapsed]Je&]:cursor-e-resize [[data-side=right][data-state=collapsed]Je&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-Je-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]Je&]:-right-2","[[data-side=right][data-collapsible=offcanvas]Je&]:-left-2",e),...t})});Ms.displayName="SidebarRail";var Is=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("main",{ref:a,className:i("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:An-2 md:peer-data-[variant=inset]:An-0 md:peer-data-[variant=inset]:rounded-Je md:peer-data-[variant=inset]:shadow",e),...t}));Is.displayName="SidebarInset";var As=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Oe,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));As.displayName="SidebarInput";var xa=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarHeader";var wa=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));wa.displayName="SidebarFooter";var ho=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(go,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));ho.displayName="SidebarSeparator";var Zt=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Zt.displayName="SidebarContent";var Qe=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));Qe.displayName="SidebarGroup";var Bt=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Je.jsx)(t?xn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Bt.displayName="SidebarGroupLabel";var Bs=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Je.jsx)(t?xn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...a}));Bs.displayName="SidebarGroupAction";var pt=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));pt.displayName="SidebarGroupContent";var _e=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("$n",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));_e.displayName="SidebarMenu";var Re=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));Re.displayName="SidebarMenuItem";var tm=(0,An.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Ze=H.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?xn.Slot:"button",{isMobile:u,state:d}=Xa(),p=(0,Je.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(tm({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Je.jsxs)(ar,{children:[(0,Je.jsx)(or,{asChild:!0,children:p}),(0,Je.jsx)(vo,{side:"right",align:"center",hidden:d!=="collapsed"||u,...r})]})):p});Ze.displayName="SidebarMenuButton";var xo=H.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Je.jsx)(t?xn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));xo.displayName="SidebarMenuAction";var Ls=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Ls.displayName="SidebarMenuBadge";var Es=H.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=H.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Je.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Je.jsx)(le,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,Je.jsx)(le,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Es.displayName="SidebarMenuSkeleton";var ea=H.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("$n",{ref:a,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-Je-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ea.displayName="SidebarMenuSub";var ta=H.forwardRef(({...e},t)=>(0,Je.jsx)("li",{ref:t,...e}));ta.displayName="SidebarMenuSubItem";var aa=H.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,Je.jsx)(e?xn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("flex h-7 min-w-0 -translate-Je-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));aa.displayName="SidebarMenuSubButton";var ir=h(require("react")),am=1,om=1e6;var Hs=0;function rm(){return Hs=(Hs+1)%Number.MAX_SAFE_INTEGER,Hs.toString()}var Fs=new Map,Un=e=>{if(Fs.has(e))return;let t=setTimeout(()=>{Fs.delete(e),wo({type:"REMOVE_TOAST",toastId:e})},om);Fs.set(e,t)},sm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,am)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?Un(a):e.toasts.forEach(o=>{Un(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 wo(e){sr=sm(sr,e),rr.forEach(t=>{t(sr)})}function im({...e}){let t=rm(),a=r=>wo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>wo({type:"DISMISS_TOAST",toastId:t});return wo({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:im,dismiss:a=>wo({type:"DISMISS_TOAST",toastId:a})}}var Na=h(require("react")),ge=h(require("@radix-Je/react-toast"));var lr=ge.Provider,No=Na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ge.Viewport,{ref:a,className:i("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));No.displayName=ge.Viewport.displayName;var nm=(0,An.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-Je-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-Je-0 data-[swipe=end]:translate-Je-[var(--radix-toast-swipe-end-Je)] data-[swipe=move]:translate-Je-[var(--radix-toast-swipe-move-Je)] 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-$n-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"}}),Co=Na.forwardRef(({className:e,variant:t,...a},o)=>(0,Je.jsx)(ge.Root,{ref:o,className:i(nm({variant:t}),e),...a}));Co.displayName=ge.Root.displayName;var zs=Na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ge.Action,{ref:a,className:i("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));zs.displayName=ge.Action.displayName;var Po=Na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ge.Close,{ref:a,className:i("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:(0,Je.jsx)($n.Je,{className:"h-4 w-4"})}));Po.displayName=ge.Close.displayName;var ko=Na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ge.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));ko.displayName=ge.Title.displayName;var Ro=Na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(ge.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Ro.displayName=ge.Description.displayName;function Xn(){let{toasts:e}=nr();return(0,Je.jsxs)(lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,Je.jsxs)(Co,{...s,children:[(0,Je.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Je.jsx)(ko,{children:a}),o&&(0,Je.jsx)(Ro,{children:o})]}),r,(0,Je.jsx)(Po,{})]},t)}),(0,Je.jsx)(No,{})]})}var Yn=h(require("react")),Os=h(require("@radix-Je/react-toggle"));var So=(0,An.cva)("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}}),_s=Yn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Je.jsx)(Os.Root,{ref:r,className:i(So({variant:t,size:a,className:e})),...o}));_s.displayName=Os.Root.displayName;var Ca=h(require("react")),Ya=h(require("@radix-Je/react-toggle-group"));var Jn=Ca.createContext({size:"default",variant:"default"}),Gs=Ca.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Je.jsx)(Ya.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,Je.jsx)(Jn.Provider,{value:{variant:t,size:a},children:o})}));Gs.displayName=Ya.Root.displayName;var $s=Ca.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=Ca.useContext(Jn);return(0,Je.jsx)(Ya.Item,{ref:s,className:i(So({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});$s.displayName=Ya.Item.displayName;var Vs=h(require("react")),et=h(require("@radix-Je/react-scroll-area"));var sa=Vs.forwardRef(({className:e,children:t,...a},o)=>(0,Je.jsxs)(et.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,Je.jsx)(et.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Je.jsx)(cr,{}),(0,Je.jsx)(et.Corner,{})]}));sa.displayName=et.Root.displayName;var cr=Vs.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Je.jsx)(et.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Je.jsx)(et.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));cr.displayName=et.ScrollAreaScrollbar.displayName;var Qn=h(require("react")),ut=h(require("@radix-Je/react-popover"));var To=ut.Root,Do=ut.Trigger,Zn=ut.Anchor,qa=Qn.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Je.jsx)(ut.Portal,{children:(0,Je.jsx)(ut.Content,{ref:r,align:t,sideOffset:a,className:i("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));qa.displayName=ut.Content.displayName;var el=h(require("react")),Ws=h(require("@radix-Je/react-label"));var lm=(0,An.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ae=el.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Ws.Root,{ref:a,className:i(lm(),e),...t}));ae.displayName=Ws.Root.displayName;var ol=h(require("react")),Pa=h(require("@radix-Je/react-hover-card"));var rl=Pa.Root,sl=Pa.Trigger,js=ol.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Je.jsx)(Pa.Content,{ref:r,align:t,sideOffset:a,className:i("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));js.displayName=Pa.Content.displayName;var Mo=h(require("react")),de=h(require("@radix-Je/react-dialog"));var tt=de.Root,mr=de.Trigger,Xs=de.Portal,pr=de.Close,ur=Mo.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(de.Overlay,{ref:a,className:i("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=de.Overlay.displayName;var Xe=Mo.forwardRef(({className:e,children:t,...a},o)=>(0,Je.jsxs)(Xs,{children:[(0,Je.jsx)(ur,{}),(0,Je.jsxs)(de.Content,{ref:o,className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Je-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-$n-left-1/2 data-[state=closed]:slide-out-$n-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,Je.jsxs)(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Je.jsx)($n.Je,{className:"h-4 w-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Xe.displayName=de.Content.displayName;var ft=({className:e,...t})=>(0,Je.jsx)("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ft.displayName="DialogHeader";var Ys=({className:e,...t})=>(0,Je.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Je-2",e),...t});Ys.displayName="DialogFooter";var gt=Mo.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(de.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));gt.displayName=de.Title.displayName;var qs=Mo.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(de.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));qs.displayName=de.Description.displayName;var ia=h(require("react")),Be=require("cmdk");var fr=ia.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Be.Command,{ref:a,className:i("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));fr.displayName=Be.Command.displayName;var dl=({children:e,...t})=>(0,Je.jsx)(tt,{...t,children:(0,Je.jsx)(Xe,{className:"overflow-hidden p-0",children:(0,Je.jsx)(fr,{className:"[&Je[cmdk-group-heading]]:px-2 [&Je[cmdk-group-heading]]:font-medium [&Je[cmdk-group-heading]]:text-muted-foreground [&Je[cmdk-group]:not([hidden])Je~[cmdk-group]]:pt-0 [&Je[cmdk-group]]:px-2 [&Je[cmdk-input-wrapper]_svg]:h-5 [&Je[cmdk-input-wrapper]_svg]:w-5 [&Je[cmdk-input]]:h-12 [&Je[cmdk-item]]:px-2 [&Je[cmdk-item]]:py-3 [&Je[cmdk-item]_svg]:h-5 [&Je[cmdk-item]_svg]:w-5",children:e})})}),Ks=ia.forwardRef(({className:e,...t},a)=>(0,Je.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Je.jsx)($n.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Je.jsx)(Be.Command.Input,{ref:a,className:i("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));Ks.displayName=Be.Command.Input.displayName;var Js=ia.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Be.Command.List,{ref:a,className:i("max-h-[300px] overflow-y-auto overflow-Je-hidden",e),...t}));Js.displayName=Be.Command.List.displayName;var Qs=ia.forwardRef((e,t)=>(0,Je.jsx)(Be.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Qs.displayName=Be.Command.Empty.displayName;var Zs=ia.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Be.Command.Group,{ref:a,className:i("overflow-hidden p-1 text-foreground [&Je[cmdk-group-heading]]:px-2 [&Je[cmdk-group-heading]]:py-1.5 [&Je[cmdk-group-heading]]:text-xs [&Je[cmdk-group-heading]]:font-medium [&Je[cmdk-group-heading]]:text-muted-foreground",e),...t}));Zs.displayName=Be.Command.Group.displayName;var ei=ia.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Be.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));ei.displayName=Be.Command.Separator.displayName;var ti=ia.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Be.Command.Item,{ref:a,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ti.displayName=Be.Command.Item.displayName;var ai=({className:e,...t})=>(0,Je.jsx)("span",{className:i("An-auto text-xs tracking-widest text-muted-foreground",e),...t});ai.displayName="CommandShortcut";var gr=h(require("react"));var dm=(0,An.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:Je-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),oi=gr.forwardRef(({className:e,variant:t,...a},o)=>(0,Je.jsx)("div",{ref:o,role:"alert",className:i(dm({variant:t}),e),...a}));oi.displayName="Alert";var ri=gr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));ri.displayName="AlertTitle";var si=gr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));si.displayName="AlertDescription";var yr=h(require("react")),Et=h(require("@radix-Je/react-avatar"));var Ht=yr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Et.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ht.displayName=Et.Root.displayName;var Ft=yr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Et.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));Ft.displayName=Et.Image.displayName;var zt=yr.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Et.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));zt.displayName=Et.Fallback.displayName;var ii=(0,An.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function at({className:e,variant:t,...a}){return(0,Je.jsx)("div",{className:i(ii({variant:t}),e),...a})}var Io=h(require("@radix-Je/react-checkbox")),fl=h(require("react")),bt=fl.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(Io.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Je.jsx)(Io.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Je.jsx)($n.Check,{className:"h-4 w-4"})})}));bt.displayName=Io.Root.displayName;var O=h(require("@radix-Je/react-select")),na=h(require("react")),Ra=O.Root,cm=O.Group,Sa=O.Value,la=na.forwardRef(({children:e,className:t,...a},o)=>(0,Je.jsxs)(O.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Je.jsx)(O.Icon,{asChild:!0,children:(0,Je.jsx)($n.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));la.displayName=O.Trigger.displayName;var ni=na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(O.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Je.jsx)($n.ChevronUp,{className:"h-4 w-4"})}));ni.displayName=O.ScrollUpButton.displayName;var li=na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(O.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Je.jsx)($n.ChevronDown,{className:"h-4 w-4"})}));li.displayName=O.ScrollDownButton.displayName;var da=na.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Je.jsx)(O.Portal,{children:(0,Je.jsxs)(O.Content,{className:i("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-Je-1 data-[side=right]:translate-Je-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,Je.jsx)(ni,{}),(0,Je.jsx)(O.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Je.jsx)(li,{})]})}));da.displayName=O.Content.displayName;var gl=na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(O.Label,{className:i("py-1.5 Je-8 pr-2 text-sm font-semibold",e),ref:a,...t}));gl.displayName=O.Label.displayName;var ca=na.forwardRef(({children:e,className:t,...a},o)=>(0,Je.jsxs)(O.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 Je-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,Je.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,Je.jsx)(O.ItemIndicator,{children:(0,Je.jsx)($n.Check,{className:"h-4 w-4"})})}),(0,Je.jsx)(O.ItemText,{children:e})]}));ca.displayName=O.Item.displayName;var bl=na.forwardRef(({className:e,...t},a)=>(0,Je.jsx)(O.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));bl.displayName=O.Separator.displayName;var yl=h(require("react")),ma=yl.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ma.displayName="Textarea";var hl=require("react-day-picker");function Ao({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Je.jsx)(hl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-Je-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Je-1 flex items-center",nav_button:i(Qt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:i(Qt({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})}Ao.displayName="Calendar";var di=({className:e,content:t,style:a})=>(0,Je.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,Je.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Je.jsx)(Q,{content:t,enableGutter:!1,enableProse:!1})})});var ci=h(require("next/link")),yt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,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 p=a==="link"?"clear":c,g=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Je.jsxs)(ci.default,{className:i(r),href:d||u||"",...g,children:[s&&s,o&&o]}):(0,Je.jsx)(D,{asChild:!0,className:r,size:p,variant:a,children:(0,Je.jsxs)(ci.default,{className:i(r),href:d||u||"",...g,children:[s&&s,o&&o]})})};function wr({className:e}){return i("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function mm({className:e,...t}){return(0,Je.jsx)("input",{...t,className:wr({className:e})})}function Nr({icon:e,...t}){return(0,Je.jsxs)("div",{className:"relative w-full",children:[(0,Je.jsx)(mm,{...t}),e&&(0,Je.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function pm({className:e,...t}){return(0,Je.jsx)("textarea",{...t,className:i(wr({}),"resize-none md:min-h-[130px]",e)})}function wl({icon:e,...t}){return(0,Je.jsxs)("div",{className:"relative w-full",children:[(0,Je.jsx)(pm,{...t}),e&&(0,Je.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Cl=require("formik"),Pl=require("react-icons/fa6"),Ta=h(require("yup"));async function Nl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.nd/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Je 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:"nd-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var mi=require("sonner"),vt={tooShort:"Must Je at least ${min} characters",tooLong:"Must Je at most ${max} characters",required:"This field is required",email:"Invalid email format"},um=Ta.object().shape({name:Ta.string().min(2,vt.tooShort).max(50,vt.tooLong).required(vt.required),email:Ta.string().email(vt.email).required(vt.required),subject:Ta.string().min(2,vt.tooShort).max(50,vt.tooLong).required(vt.required),message:Ta.string().min(2,vt.tooShort).max(300,vt.tooLong).required(vt.required)}),Cr=i("!pr-[44px] text-foreground"),Pr=i("!border-red-600 border"),kr=i("sr-only");function kl(){return(0,Je.jsx)(Cl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:um,onSubmit:async(e,{resetForm:t})=>{let a=await Nl(e);a.data===null?mi.toast.error(a.message):(mi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,Je.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,Je.jsxs)("div",{children:[(0,Je.jsx)(Nr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,Je.jsx)(Pl.FaUser,{className:"text-primary"}),className:i(Cr,e.name&&t.name&&Pr)}),e.name&&t.name&&(0,Je.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:kr,children:e.name})]}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)(Nr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,Je.jsx)(fm,{}),className:i(Cr,e.email&&t.email&&Pr)}),e.email&&t.email&&(0,Je.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:kr,children:e.email})]}),(0,Je.jsxs)("div",{className:"lg:col-span-2",children:[(0,Je.jsx)(Nr,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:i(Cr,e.subject&&t.subject&&Pr)}),e.subject&&t.subject&&(0,Je.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:kr,children:e.subject})]}),(0,Je.jsxs)("div",{className:"lg:col-span-2",children:[(0,Je.jsx)(wl,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Je.jsx)(gm,{}),className:i(Cr,e.message&&t.message&&Pr)}),e.message&&t.message&&(0,Je.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:kr,children:e.message})]}),(0,Je.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Je.jsx)(D,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function fm(){return(0,Je.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,Je.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 gm(){return(0,Je.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,Je.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 bm=({links:e,richText:t})=>(0,Je.jsx)("div",{className:"container",children:(0,Je.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,Je.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,Je.jsx)(Q,{className:"mb-0",content:t,enableGutter:!1})}),(0,Je.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,Je.jsx)(yt,{size:"lg",...a},o))})]})}),Da=({links:e,richText:t})=>{let[a,o]=(0,Zo.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,Je.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,Je.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,Je.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,Je.jsx)(Q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,Je.jsx)("div",{className:"mt-10 flex items-center justify-center gap-Je-6",children:(0,Je.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},u)=>(c==null?void 0:c.url)==="/contact"?(0,Je.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white nd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},u):(0,Je.jsx)(yt,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white nd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},u))})})]})}),a&&(0,Je.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,Je.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Je.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,Je.jsx)(kl,{})," "]})})]})};var Rr=require("prism-react-renderer");function pi({code:e}){let[t,a]=(0,Zo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,Je.jsx)("div",{className:"flex justify-end align-middle",children:(0,Je.jsxs)(D,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,Je.jsx)("p",{children:t}),(0,Je.jsx)("div",{className:"w-6 h-6",children:(0,Je.jsx)($n.ClipboardCopy,{})})]})})}var Dl=({code:e,language:t=""})=>e?(0,Je.jsx)(Rr.Highlight,{code:e,language:t,theme:Rr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Je.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Je-auto",children:[r.map((s,l)=>(0,Je.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Je.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Je.jsx)("span",{className:"table-cell Je-4",children:s.map((n,c)=>(0,Je.jsx)("span",{...o({token:n})},c))})]},l)),(0,Je.jsx)(pi,{code:e})]})}):null;var fi=({className:e,code:t,language:a})=>(0,Je.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Je.jsx)(Dl,{code:t,language:a})});var Il=h(require("next/image")),ym={"3xl":1920,"2xl":1536,Je:1280,lg:1024,md:768,sm:640},Ml="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=",Al=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,u,d,p=t,g=n||"";if(!g&&s&&typeof s=="object"){let{alt:m,filename:y,height:w,url:G,width:ee}=s;if(w&&w>500){let fe=500/w;u=ee*fe,d=w*fe}else u=ee,d=w;p=m||"",g=G||Ml}let f=c||"lazy",b=l||Object.entries(ym).map(([,m])=>`(max-width: ${m}px) ${m*2}w`).join(", ");return(0,Je.jsx)("picture",{children:(0,Je.jsx)(Il.default,{alt:p||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Ml,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:b,src:g,width:a?void 0:u})})};var Bl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Ll=()=>{if(Bl){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 El=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,Je.jsx)("video",{autoPlay:!0,className:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Je.jsx)("source",{src:`${Ll()}/media/${s}`})})}return null};var _t=e=>{var l;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((l=o==null?void 0:o.mimeType)==null?void 0:l.includes("video"));return(0,Je.jsx)(a||Zo.Fragment,{...a!==null?{className:t}:{},children:r?(0,Je.jsx)(El,{...e}):(0,Je.jsx)(Al,{...e})})};var Gt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Je.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,Je.jsx)(_t,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var hi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Je.jsx)("div",{className:i("",{container:a},t),children:(0,Je.jsx)(_t,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ia=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Je.jsxs)("section",{className:i(r?"w-full":"container",""),children:[(0,Je.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,Je.jsx)("h2",{className:"mb-6 mt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,Je.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,Je.jsx)("div",{className:"mb-5 text-foreground",children:(0,Je.jsx)(Q,{content:t,enableGutter:!1})})]}),(0,Je.jsx)("div",{className:`grid gap-6 mt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{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,Je.jsx)(Dr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:(c=n())!=null?c:{type:"none",icon:null}},l)})})]});var Mr=h(require("react"));function Lo({nodes:e}){return(0,Je.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,Je.jsx)(Mr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,Je.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,Je.jsx)("em",{children:s},a)),t.format&4&&(s=(0,Je.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,Je.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,Je.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,Je.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,Je.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,Je.jsx)("table",{children:(0,Je.jsx)("tbody",{children:t.children.map((s,l)=>(0,Je.jsx)("tr",{children:s.children.map((n,c)=>(0,Je.jsx)("td",{children:Lo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let l of s.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return Lo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s==null?void 0:s.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Je.jsx)(Da,{...s},a);case"mediaBlock":return(0,Je.jsx)(Gt,{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,Je.jsx)(hi,{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,Je.jsx)(di,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Je.jsx)(fi,{className:"col-start-2",...s},a);case"features":return(0,Je.jsx)(Ia,{...s,nested:!0},a);case"reusableContentBlock":Lo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,Je.jsx)("Je",{className:"col-start-2"},a);case"paragraph":return(0,Je.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,Je.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,Je.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,Je.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,Je.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,Je.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,Je.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,Je.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 Q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Je.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Lo({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var Se=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o!=null?o:"",n=r+s+" fa-"+a+" "+l;return(0,Je.jsx)("i",{className:n})};var _l=h(require("next/image"));function Ol(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:l,link:n,className:c}){var p,g;let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-$n-Je from-[#A42368] $n-[#4A1030]",radial:"bg-gradient-$n-Je from-[#4A1030] $n-[#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,Je.jsxs)("a",{href:(n==null?void 0:n.url)||"#",className:i("min-w-56 max-w-Je h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&u[(l==null?void 0:l.card)==="default"?"solid":l==null?void 0:l.card],e&&"bg-foreground",l&&(l==null?void 0:l.card)==="outline"?"text-gray-900":"text-white",d[(p=l==null?void 0:l.width)!=null?p:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,Je.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Je.jsx)(_l.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Je.jsxs)("div",{className:i(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Je.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Je.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,Je.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Je.jsx)(vm,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"nd-icon-error"},heading:a!=null?a:"",variant:(l==null?void 0:l.card)==="default"?"solid":(g=l==null?void 0:l.card)!=null?g:"solid",iconSize:(l==null?void 0:l.iconSize)||"large"})}),r&&typeof r=="object"&&(0,Je.jsx)(Q,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-Je","space-y-3",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Je.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-Je","space-y-3",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,Je.jsx)("div",{className:"mt-6",children:(0,Je.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:(n==null?void 0:n.label)||"Find out more"})})]})]})}var vm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="nd-icon-error"?(0,Je.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,Je.jsx)("div",{className:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Ol(e)&&(0,Je.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 An-1 mt-1":""),children:(0,Je.jsx)(Se,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="nd-icon-error"?(0,Je.jsxs)("div",{className:"flex flex-col gap-4",children:[Ol(e)&&(0,Je.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Je.jsx)(Se,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Je.jsx)("h3",{className:i("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)("div",{className:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Gl=h(require("next/image")),$l=h(require("next/link"));var Aa=h(require("react"));var Ce=Aa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("rounded-Je border bg-card text-card-foreground shadow",e),...t}));Ce.displayName="Card";var Ge=Aa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("flex flex-col space-y-1.5 p-6",e),...t}));Ge.displayName="CardHeader";var $e=Aa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));$e.displayName="CardTitle";var hm=Aa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));hm.displayName="CardDescription";var Te=Aa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("p-6 pt-0",e),...t}));Te.displayName="CardContent";var xm=Aa.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("div",{ref:a,className:i("flex items-center p-6 pt-0",e),...t}));xm.displayName="CardFooter";function Vl({name:e,logo:t,href:a}){return(0,$t.jsx)(Ce,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,$t.jsxs)($l.default,{href:a,className:"block",children:[(0,$t.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,$t.jsx)("div",{className:"relative w-full h-full",children:t&&(0,$t.jsx)(Gl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,$t.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-$n-Je from-gray-900 via-brand-one $n-gray-900",children:(0,$t.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 Ul({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Je.jsx)($n.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Je.jsx)($n.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Je.jsx)($n.PartyPopper,{className:"h-4 w-4"});default:return(0,Je.jsx)($n.CalendarDays,{className:"h-4 w-4"})}},l=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 $n-slate-500"}};return(0,Je.jsxs)(Ce,{className:`w-full max-w-md overflow-hidden bg-gradient-$n-Je ${l(e)}`,children:[(0,Je.jsxs)(Ge,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Je.jsxs)(Ht,{className:"h-14 w-14 border-2 border-white",children:[(0,Je.jsx)(Ft,{src:r,alt:a||"Event"}),(0,Je.jsx)(zt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,Je.jsxs)("div",{className:"flex flex-col",children:[(0,Je.jsx)($e,{className:"text-Je",children:a||"Untitled Event"}),(0,Je.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Je.jsx)($n.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Je.jsxs)(Te,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,Je.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,Je.jsxs)(at,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,Je.jsx)("span",{className:"An-1",children:e?e.replace(/([a-z])([Je-Je])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var jl=h(require("next/link"));var Xl=h(require("next/image")),Wl={sm:"640px",md:"768px",lg:"1024px",Je:"1280px","2xl":"1400px"};function Yl({slug:e,image:t,title:a,description:o}){return(0,Je.jsxs)(jl.default,{href:e,className:"group/portfolio relative z-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,Je.jsx)("span",{className:i("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 $n-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,Je.jsx)(Xl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
- (min-width:${Wl.md}) 50vw,
8
- (min-width:${Wl.lg}) 25vw,
6
+ "use strict";var nc=Object.create;var qo=Object.defineProperty;var lc=Object.getOwnPropertyDescriptor;var dc=Object.getOwnPropertyNames;var cc=Object.getPrototypeOf,mc=Object.prototype.hasOwnProperty;var pc=(e,t)=>{for(var a in t)qo(e,a,{get:t[a],enumerable:!0})},cn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of dc(t))!mc.call(e,r)&&r!==a&&qo(e,r,{get:()=>t[r],enumerable:!(o=lc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?nc(cc(e)):{},cn(t||!e||!e.__esModule?qo(a,"default",{value:e,enumerable:!0}):a,e)),uc=e=>cn(qo({},"__esModule",{value:!0}),e);var Sp={};pc(Sp,{Alert:()=>oi,AlertDescription:()=>si,AlertTitle:()=>ri,ApproveLeave:()=>qi,Avatar:()=>Ht,AvatarFallback:()=>zt,AvatarImage:()=>Ft,Badge:()=>at,BannerBlock:()=>di,BrandLogo:()=>ga,Breadcrumb:()=>ss,BreadcrumbEllipsis:()=>ms,BreadcrumbItem:()=>ns,BreadcrumbLink:()=>ls,BreadcrumbList:()=>is,BreadcrumbPage:()=>ds,BreadcrumbSeparator:()=>cs,Breadcrumbs:()=>fp,Button:()=>D,CMSLink:()=>yt,CRMKanbanBoard:()=>Rp,Calendar:()=>Ao,CalendarView:()=>en,CallToActionBlock:()=>Da,CallToActionBlockOld:()=>fm,Card:()=>Fo,Categories:()=>sp,Checkbox:()=>bt,CodeBlock:()=>fi,Collapsible:()=>It,CollapsibleContent:()=>Qt,CollapsibleTrigger:()=>Kt,CollectionArchive:()=>Vm,Command:()=>fr,CommandDialog:()=>dl,CommandEmpty:()=>Js,CommandGroup:()=>Zs,CommandInput:()=>Ks,CommandItem:()=>ti,CommandList:()=>Qs,CommandSeparator:()=>ei,CommandShortcut:()=>ai,Container:()=>Gi,ContentBlock:()=>Ho,ContentCard:()=>Sm,CopyButton:()=>pi,CustomLink:()=>ot,CustomerCard:()=>_l,DarkTop:()=>Ni,DealCard:()=>an,DealDetails:()=>tn,Dialog:()=>tt,DialogClose:()=>pr,DialogContent:()=>Xe,DialogDescription:()=>qs,DialogFooter:()=>Ys,DialogHeader:()=>ft,DialogOverlay:()=>ur,DialogPortal:()=>Xs,DialogTitle:()=>gt,DialogTrigger:()=>mr,DropdownMenu:()=>wn,DropdownMenuCheckboxItem:()=>bs,DropdownMenuContent:()=>fs,DropdownMenuGroup:()=>Cn,DropdownMenuItem:()=>gs,DropdownMenuLabel:()=>vs,DropdownMenuPortal:()=>Pn,DropdownMenuRadioGroup:()=>Rn,DropdownMenuRadioItem:()=>ys,DropdownMenuSeparator:()=>hs,DropdownMenuShortcut:()=>xs,DropdownMenuSub:()=>kn,DropdownMenuSubContent:()=>us,DropdownMenuSubTrigger:()=>ps,DropdownMenuTrigger:()=>Nn,DynamicIcon:()=>Se,EventCard:()=>$l,FeatureCard:()=>Dr,FeatureGrid:()=>Ql,FeaturesBlock:()=>Ia,Filter:()=>ip,FlowPrintable:()=>xd,Footer:()=>xp,Header:()=>wp,HeaderDesktop:()=>Wi,HeaderMobile:()=>Ui,HeadingImage:()=>zm,Hero:()=>Rm,HighImpactHero:()=>Hi,HolidayGrid:()=>Zi,HolidayTracker:()=>Pp,HoverCard:()=>rl,HoverCardContent:()=>Us,HoverCardTrigger:()=>sl,Image:()=>Xl,ImageBlock:()=>hi,InfoTile:()=>Mm,Input:()=>Oe,Insight:()=>Dm,KanbanColumn:()=>sn,Label:()=>ae,LightTop:()=>Ci,Logo:()=>Wm,LowImpactHero:()=>Oi,MOTD:()=>Am,Mask:()=>mp,Media:()=>Gt,MediaBlock:()=>_t,MediumImpactHero:()=>zi,NewCustomerForm:()=>on,NewDealForm:()=>rn,NewsGrid:()=>vd,OrgChart:()=>Em,PagePrintable:()=>wd,PageRange:()=>Xm,PageShape:()=>_o,Pagination:()=>rp,PayloadPagination:()=>Ym,Popover:()=>To,PopoverAnchor:()=>Zn,PopoverContent:()=>qa,PopoverTrigger:()=>Do,PostHero:()=>dp,PricingCard:()=>km,Printable:()=>Qm,ProjectCard:()=>Ul,ProjectTeam:()=>ap,ProposalSummary:()=>Hm,RelatedContent:()=>op,RelatedPosts:()=>$m,RenderBlocks:()=>fa,RenderBlocksWithShapes:()=>Gm,RenderHero:()=>up,RequestLeave:()=>Ji,ReusableContentBlock:()=>wi,RichText:()=>J,ScrollArea:()=>sa,ScrollBar:()=>cr,SectionHero:()=>$i,Select:()=>Ra,SelectContent:()=>da,SelectGroup:()=>lm,SelectItem:()=>ca,SelectLabel:()=>gl,SelectScrollDownButton:()=>li,SelectScrollUpButton:()=>ni,SelectSeparator:()=>bl,SelectTrigger:()=>la,SelectValue:()=>Sa,Separator:()=>go,ServiceCard:()=>Pm,Sheet:()=>Qo,SheetClose:()=>Ln,SheetContent:()=>yo,SheetDescription:()=>Rs,SheetFooter:()=>Ps,SheetHeader:()=>Cs,SheetOverlay:()=>Jo,SheetPortal:()=>Ns,SheetTitle:()=>ks,SheetTrigger:()=>Bn,Sidebar:()=>ha,SidebarContent:()=>Zt,SidebarFooter:()=>wa,SidebarGroup:()=>Je,SidebarGroupAction:()=>Bs,SidebarGroupContent:()=>pt,SidebarGroupLabel:()=>Bt,SidebarHeader:()=>xa,SidebarInput:()=>As,SidebarInset:()=>Is,SidebarLeft:()=>Jm,SidebarMenu:()=>Ge,SidebarMenuAction:()=>xo,SidebarMenuBadge:()=>Ls,SidebarMenuButton:()=>Ze,SidebarMenuItem:()=>Re,SidebarMenuSkeleton:()=>Es,SidebarMenuSub:()=>ea,SidebarMenuSubButton:()=>aa,SidebarMenuSubItem:()=>ta,SidebarProvider:()=>Ts,SidebarRail:()=>Ms,SidebarRight:()=>tp,SidebarSeparator:()=>ho,SidebarTrigger:()=>Ds,SimpleHeader:()=>bp,Skeleton:()=>le,SlideShow:()=>gd,TextAndImages:()=>hd,Textarea:()=>ma,Theme:()=>Er,ThemeProvider:()=>cp,ThemeWithShapes:()=>rd,Toast:()=>Co,ToastAction:()=>zs,ToastClose:()=>Po,ToastDescription:()=>Ro,ToastProvider:()=>lr,ToastTitle:()=>ko,ToastViewport:()=>No,Toaster:()=>Xn,Toggle:()=>Gs,ToggleGroup:()=>_s,ToggleGroupItem:()=>$s,Tooltip:()=>ar,TooltipContent:()=>vo,TooltipProvider:()=>tr,TooltipTrigger:()=>or,VideoHeader:()=>vp,WhyUs:()=>Fm,badgeVariants:()=>ii,buttonVariants:()=>Jt,toggleVariants:()=>So,useIsMobile:()=>er,useSidebar:()=>Xa,useToast:()=>nr});module.exports=uc(Sp);var Va=h(require("react")),Ko=require("@radix-Qe/react-icons"),xn=require("@radix-Qe/react-slot");var hn=require("clsx");var os="-",fc=e=>{let t=bc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(os);return n[0]===""&&n.length!==1&&n.shift(),un(n,t)||gc(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},un=(e,t)=>{var l;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?un(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(os);return(l=t.validators.find(({validator:n})=>n(s)))==null?void 0:l.classGroupId},mn=/^\[(.+)\]$/,gc=e=>{if(mn.test(e)){let t=mn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},bc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return vc(Object.entries(e.classGroups),a).forEach(([s,l])=>{as(l,o,s,t)}),o},as=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:pn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(yc(r)){as(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{as(l,pn(t,s),a,o)})})},pn=(e,t)=>{let a=e;return t.split(os).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},yc=e=>e.isThemeGetter,vc=(e,t)=>t?e.map(([a,o])=>{let r=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,n])=>[t+l,n])):s);return[a,r]}):e,hc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,l)=>{a.set(s,l),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=o.get(s))!==void 0)return r(s,l),l},set(s,l){a.has(s)?a.set(s,l):r(s,l)}}},fn="!",xc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],u=0,d=0,p;for(let y=0;y<n.length;y++){let w=n[y];if(u===0){if(w===r&&(o||n.slice(y,y+s)===t)){c.push(n.slice(d,y)),d=y+s;continue}if(w==="/"){p=y;continue}}w==="["?u++:w==="]"&&u--}let g=c.length===0?n:n.substring(d),f=g.startsWith(fn),b=f?g.substring(1):g,m=p&&p>d?p-d:void 0;return{modifiers:c,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:m}};return a?n=>a({className:n,parseClassName:l}):l},wc=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},Nc=e=>({cache:hc(e.cacheSize),parseClassName:xc(e),...fc(e)}),Cc=/\s+/,Pc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Cc),n="";for(let c=l.length-1;c>=0;c-=1){let u=l[c],{modifiers:d,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:f}=a(u),b=!!f,m=o(b?g.substring(0,f):g);if(!m){if(!b){n=u+(n.length>0?" "+n:n);continue}if(m=o(g),!m){n=u+(n.length>0?" "+n:n);continue}b=!1}let y=wc(d).join(":"),w=p?y+fn:y,_=w+m;if(s.includes(_))continue;s.push(_);let ee=r(m,b);for(let fe=0;fe<ee.length;++fe){let ze=ee[fe];s.push(w+ze)}n=u+(n.length>0?" "+n:n)}return n};function kc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=gn(t))&&(o&&(o+=" "),o+=a);return o}var gn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=gn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Rc(e,...t){let a,o,r,s=l;function l(c){let u=t.reduce((d,p)=>p(d),e());return a=Nc(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=Pc(c,a);return r(c,d),d}return function(){return s(kc.apply(null,arguments))}}var te=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},bn=/^\[(?:([a-z-]+):)?(.+)\]$/i,Sc=/^\d+\/\d+$/,Tc=new Set(["px","full","screen"]),Dc=/^(\d+(\.\d+)?)?(xs|sm|Qe|lg|Qe)$/,Mc=/\d+(%|px|r?em|[sdl]?Qe([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$/,Ic=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ac=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mt=e=>_a(e)||Tc.has(e)||Sc.test(e),Yt=e=>$a(e,"length",_c),_a=e=>!!e&&!Number.isNaN(Number(e)),ts=e=>$a(e,"number",_a),uo=e=>!!e&&Number.isInteger(Number(e)),Lc=e=>e.endsWith("%")&&_a(e.slice(0,-1)),I=e=>bn.test(e),qt=e=>Dc.test(e),Ec=new Set(["length","size","percentage"]),Hc=e=>$a(e,Ec,yn),Fc=e=>$a(e,"position",yn),zc=new Set(["image","url"]),Oc=e=>$a(e,zc,Vc),Gc=e=>$a(e,"",$c),fo=()=>!0,$a=(e,t,a)=>{let o=bn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},_c=e=>Mc.test(e)&&!Ic.test(e),yn=()=>!1,$c=e=>Ac.test(e),Vc=e=>Bc.test(e);var Wc=()=>{let e=te("colors"),t=te("spacing"),a=te("blur"),o=te("brightness"),r=te("borderColor"),s=te("borderRadius"),l=te("borderSpacing"),n=te("borderWidth"),c=te("contrast"),u=te("grayscale"),d=te("hueRotate"),p=te("invert"),g=te("gap"),f=te("gradientColorStops"),b=te("gradientColorStopPositions"),m=te("inset"),y=te("margin"),w=te("opacity"),_=te("padding"),ee=te("saturate"),fe=te("scale"),ze=te("sepia"),Pt=te("skew"),S=te("space"),z=te("translate"),ct=()=>["auto","contain","none"],N=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",I,t],U=()=>[I,t],Uo=()=>["",Mt,Yt],Xo=()=>["auto",_a,I],nn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Yo=()=>["solid","dashed","dotted","double","none"],ln=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],es=()=>["start","end","center","between","around","evenly","stretch"],po=()=>["","0",I],dn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Dt=()=>[_a,I];return{cacheSize:500,separator:":",theme:{colors:[fo],spacing:[Mt,Yt],blur:["none","",qt,I],brightness:Dt(),borderColor:[e],borderRadius:["none","","full",qt,I],borderSpacing:U(),borderWidth:Uo(),contrast:Dt(),grayscale:po(),hueRotate:Dt(),invert:po(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[Lc,Yt],inset:$(),margin:$(),opacity:Dt(),padding:U(),saturate:Dt(),scale:Dt(),sepia:po(),skew:Dt(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[qt]}],"break-after":[{"break-after":dn()}],"break-before":[{"break-before":dn()}],"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:[...nn(),I]}],overflow:[{overflow:N()}],"overflow-Qe":[{"overflow-Qe":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:ct()}],"overscroll-Qe":[{"overscroll-Qe":ct()}],"overscroll-y":[{"overscroll-y":ct()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-Qe":[{"inset-Qe":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",uo,I]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",I]}],grow:[{grow:po()}],shrink:[{shrink:po()}],order:[{order:["first","last","none",uo,I]}],"grid-cols":[{"grid-cols":[fo]}],"col-start-end":[{col:["auto",{span:["full",uo,I]},I]}],"col-start":[{"col-start":Xo()}],"col-end":[{"col-end":Xo()}],"grid-rows":[{"grid-rows":[fo]}],"row-start-end":[{row:["auto",{span:[uo,I]},I]}],"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",I]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",I]}],gap:[{gap:[g]}],"gap-Qe":[{"gap-Qe":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...es()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...es(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...es(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],Qe:[{Qe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],Qe:[{Qe:[_]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],Qe:[{Qe:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],An:[{An:[y]}],"space-Qe":[{"space-Qe":[S]}],"space-Qe-reverse":["space-Qe-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",I,t]}],"min-w":[{"min-w":[I,t,"min","max","fit"]}],"max-w":[{"max-w":[I,t,"none","full","min","max","fit","prose",{screen:[qt]},qt]}],h:[{h:[I,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[I,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[I,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qt,Yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ts]}],"font-family":[{font:[fo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",_a,ts]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Mt,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","sd-underline"],"text-decoration-style":[{decoration:[...Yo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Mt,Yt]}],"underline-offset":[{"underline-offset":["auto",Mt,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nn(),Fc]}],"bg-repeat":[{bg:["sd-repeat",{repeat:["","Qe","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Hc]}],"bg-image":[{bg:["none",{"gradient-$n":["t","tr","r","Qe","b","bl","l","An"]},Oc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-$n-pos":[{$n:[b]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-$n":[{$n:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-Qe":[{"rounded-Qe":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-An":[{"rounded-An":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-Qe":[{"rounded-Qe":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[n]}],"border-w-Qe":[{"border-Qe":[n]}],"border-w-y":[{"border-y":[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":[w]}],"border-style":[{border:[...Yo(),"hidden"]}],"divide-Qe":[{"divide-Qe":[n]}],"divide-Qe-reverse":["divide-Qe-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:Yo()}],"border-color":[{border:[r]}],"border-color-Qe":[{"border-Qe":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Yo()]}],"outline-offset":[{"outline-offset":[Mt,I]}],"outline-w":[{outline:[Mt,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Uo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Mt,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Gc]}],"shadow-color":[{shadow:[fo]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...ln(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ln()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",qt,I]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[ee]}],sepia:[{sepia:[ze]}],"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":[p]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[ee]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-Qe":[{"border-spacing-Qe":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",I]}],duration:[{duration:Dt()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:Dt()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[fe]}],"scale-Qe":[{"scale-Qe":[fe]}],"scale-y":[{"scale-y":[fe]}],rotate:[{rotate:[uo,I]}],"translate-Qe":[{"translate-Qe":[z]}],"translate-y":[{"translate-y":[z]}],"skew-Qe":[{"skew-Qe":[Pt]}],"skew-y":[{"skew-y":[Pt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",I]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","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",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","Qe",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-Qe":[{"scroll-Qe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-An":[{"scroll-An":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-Qe":[{"scroll-Qe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-Qe":[{"scroll-Qe":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Qe","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Qe":[{"touch-pan":["Qe","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Mt,Yt,ts]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Qe","overflow-y"],overscroll:["overscroll-Qe","overscroll-y"],inset:["inset-Qe","inset-y","start","end","top","right","bottom","left"],"inset-Qe":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Qe","gap-y"],p:["px","py","ps","Qe","pt","pr","pb","Qe"],px:["pr","Qe"],py:["pt","pb"],m:["mx","my","ms","Qe","mt","mr","mb","An"],mx:["mr","An"],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-ee","rounded-es","rounded-An","rounded-tr","rounded-Qe","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-Qe","rounded-ee"],"rounded-t":["rounded-An","rounded-tr"],"rounded-r":["rounded-tr","rounded-Qe"],"rounded-b":["rounded-Qe","rounded-bl"],"rounded-l":["rounded-An","rounded-bl"],"border-spacing":["border-spacing-Qe","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-Qe":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Qe":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-Qe","scroll-mt","scroll-mr","scroll-mb","scroll-An"],"scroll-mx":["scroll-mr","scroll-An"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-Qe","scroll-pt","scroll-pr","scroll-pb","scroll-Qe"],"scroll-px":["scroll-pr","scroll-Qe"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Qe","touch-y","touch-pz"],"touch-Qe":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var vn=Rc(Wc);function i(...e){return vn((0,hn.clsx)(e))}function rs(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{var c,u,d,p,g;if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),(u=(c=n.richText)==null?void 0:c.root)!=null&&u.children&&((p=(d=n.richText)==null?void 0:d.root)==null?void 0:p.children.length)===1){let f=n.richText.root.children.filter(b=>b!==void 0&&b.type==="heading");for(let b of f)b.children[0]&&l.push({text:(g=b.children[0].text)!=null?g:"",id:a(b.children[0].text,t++),tag:b.tag||"h2"})}}),l}),r=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"),ss=Va.forwardRef(({...e},t)=>(0,Qe.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ss.displayName="Breadcrumb";var is=Va.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("ol",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));is.displayName="BreadcrumbList";var ns=Va.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));ns.displayName="BreadcrumbItem";var ls=Va.forwardRef(({asChild:e,className:t,...a},o)=>(0,Qe.jsx)(e?xn.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));ls.displayName="BreadcrumbLink";var ds=Va.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));ds.displayName="BreadcrumbPage";var cs=({children:e,className:t,...a})=>(0,Qe.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,Qe.jsx)(Ko.ChevronRightIcon,{})});cs.displayName="BreadcrumbSeparator";var ms=({className:e,...t})=>(0,Qe.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("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"})]});ms.displayName="BreadcrumbElipssis";var Wa=h(require("@radix-Qe/react-collapsible")),It=Wa.Root,Kt=Wa.CollapsibleTrigger,Qt=Wa.CollapsibleContent;var At=h(require("react")),L=h(require("@radix-Qe/react-dropdown-menu"));var wn=L.Root,Nn=L.Trigger,Cn=L.Group,Pn=L.Portal,kn=L.Sub,Rn=L.RadioGroup,ps=At.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,Qe.jsxs)(L.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"Qe-8",e),...o,children:[a,(0,Qe.jsx)(Ko.ChevronRightIcon,{className:"An-auto"})]}));ps.displayName=L.SubTrigger.displayName;var us=At.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(L.SubContent,{ref:a,className:i("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}));us.displayName=L.SubContent.displayName;var fs=At.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Qe.jsx)(L.Portal,{children:(0,Qe.jsx)(L.Content,{ref:o,sideOffset:t,className:i("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})}));fs.displayName=L.Content.displayName;var gs=At.forwardRef(({className:e,inset:t,...a},o)=>(0,Qe.jsx)(L.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"Qe-8",e),...a}));gs.displayName=L.Item.displayName;var bs=At.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,Qe.jsxs)(L.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 Qe-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]}));bs.displayName=L.CheckboxItem.displayName;var ys=At.forwardRef(({className:e,children:t,...a},o)=>(0,Qe.jsxs)(L.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 Qe-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]}));ys.displayName=L.RadioItem.displayName;var vs=At.forwardRef(({className:e,inset:t,...a},o)=>(0,Qe.jsx)(L.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"Qe-8",e),...a}));vs.displayName=L.Label.displayName;var hs=At.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(L.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));hs.displayName=L.Separator.displayName;var xs=({className:e,...t})=>(0,Qe.jsx)("span",{className:i("An-auto text-xs tracking-widest opacity-60",e),...t});xs.displayName="DropdownMenuShortcut";var Sn=h(require("react"));var Oe=Sn.forwardRef(({className:e,type:t,...a},o)=>(0,Qe.jsx)("input",{type:t,className:i("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}));Oe.displayName="Input";var Dn=h(require("react")),ws=h(require("@radix-Qe/react-separator"));var go=Dn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,Qe.jsx)(ws.Root,{ref:r,decorative:a,orientation:t,className:i("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));go.displayName=ws.Root.displayName;var bo=h(require("react")),ne=h(require("@radix-Qe/react-dialog")),An=require("class-variance-authority");var Qo=ne.Root,Bn=ne.Trigger,Ln=ne.Close,Ns=ne.Portal,Jo=bo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ne.Overlay,{className:i("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}));Jo.displayName=ne.Overlay.displayName;var Uc=(0,An.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-$n-top data-[state=open]:slide-in-from-top",bottom:"inset-Qe-0 bottom-0 border-t data-[state=closed]:slide-out-$n-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-$n-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-$n-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),yo=bo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,Qe.jsxs)(Ns,{children:[(0,Qe.jsx)(Jo,{}),(0,Qe.jsxs)(ne.Content,{ref:r,className:i(Uc({side:e}),t),...o,children:[(0,Qe.jsxs)(ne.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]})]}));yo.displayName=ne.Content.displayName;var Cs=({className:e,...t})=>(0,Qe.jsx)("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Cs.displayName="SheetHeader";var Ps=({className:e,...t})=>(0,Qe.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Qe-2",e),...t});Ps.displayName="SheetFooter";var ks=bo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ne.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));ks.displayName=ne.Title.displayName;var Rs=bo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ne.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Rs.displayName=ne.Description.displayName;var H=h(require("react")),$n=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 Fn=h(require("react")),Jt=(0,An.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"}}}),D=Fn.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,Qe.jsx)(e?xn.Slot:"button",{className:i(Jt({className:t,size:a,variant:o})),ref:s,...r}));D.displayName="Button";function le({className:e,...t}){return(0,Qe.jsx)("div",{className:i("animate-pulse rounded-Qe bg-primary/10",e),...t})}var Gn=h(require("react")),mt=h(require("@radix-Qe/react-tooltip"));var tr=mt.Provider,ar=mt.Root,or=mt.Trigger,vo=Gn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,Qe.jsx)(mt.Portal,{children:(0,Qe.jsx)(mt.Content,{ref:o,sideOffset:t,className:i("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})}));vo.displayName=mt.Content.displayName;var Xc="sidebar:state",Yc=60*60*24*7,qc="16rem",Kc="18rem",Qc="3rem",Jc="b",Vn=H.createContext(null);function Xa(){let e=H.useContext(Vn);if(!e)throw new Error("useSidebar must Qe used within a SidebarProvider.");return e}var Ts=H.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=er(),[u,d]=H.useState(!1),[p,g]=H.useState(e),f=t!=null?t:p,b=H.useCallback(_=>{if(a)return a==null?void 0:a(typeof _=="function"?_(f):_);g(_),document.cookie=`${Xc}=${f}; path=/; max-age=${Yc}`},[a,f]),m=H.useCallback(()=>c?d(_=>!_):b(_=>!_),[c,b,d]);H.useEffect(()=>{let _=ee=>{ee.key===Jc&&(ee.metaKey||ee.ctrlKey)&&(ee.preventDefault(),m())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[m]);let y=f?"expanded":"collapsed",w=H.useMemo(()=>({state:y,open:f,setOpen:b,isMobile:c,openMobile:u,setOpenMobile:d,toggleSidebar:m}),[y,f,b,c,u,d,m]);return(0,Qe.jsx)(Vn.Provider,{value:w,children:(0,Qe.jsx)(tr,{delayDuration:0,children:(0,Qe.jsx)("div",{style:{"--sidebar-width":qc,"--sidebar-width-icon":Qc,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});Ts.displayName="SidebarProvider";var ha=H.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:u,setOpenMobile:d}=Xa();return a==="none"?(0,Qe.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,Qe.jsx)(Qo,{open:u,onOpenChange:d,...s,children:(0,Qe.jsx)(yo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Kc},side:e,children:(0,Qe.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,Qe.jsxs)("div",{ref:l,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:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,Qe.jsx)("div",{className:i("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})})]})});ha.displayName="Sidebar";var Ds=H.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Xa();return(0,Qe.jsxs)(D,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,Qe.jsx)($n.PanelLeft,{}),(0,Qe.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Ds.displayName="SidebarTrigger";var Ms=H.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Xa();return(0,Qe.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-y-0 z-20 hidden w-4 -translate-Qe-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-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})});Ms.displayName="SidebarRail";var Is=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("main",{ref:a,className:i("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","Qe:peer-data-[variant=inset]:m-2 Qe:peer-data-[state=collapsed]:peer-data-[variant=inset]:An-2 Qe:peer-data-[variant=inset]:An-0 Qe:peer-data-[variant=inset]:rounded-Qe Qe:peer-data-[variant=inset]:shadow",e),...t}));Is.displayName="SidebarInset";var As=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Oe,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));As.displayName="SidebarInput";var xa=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarHeader";var wa=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));wa.displayName="SidebarFooter";var ho=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(go,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));ho.displayName="SidebarSeparator";var Zt=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Zt.displayName="SidebarContent";var Je=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));Je.displayName="SidebarGroup";var Bt=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Qe.jsx)(t?xn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("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 Bs=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,Qe.jsx)(t?xn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:i("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-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}));Bs.displayName="SidebarGroupAction";var pt=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));pt.displayName="SidebarGroupContent";var Ge=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("$n",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));Ge.displayName="SidebarMenu";var Re=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));Re.displayName="SidebarMenuItem";var Zc=(0,An.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"}}),Ze=H.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?xn.Slot:"button",{isMobile:u,state:d}=Xa(),p=(0,Qe.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(Zc({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,Qe.jsxs)(ar,{children:[(0,Qe.jsx)(or,{asChild:!0,children:p}),(0,Qe.jsx)(vo,{side:"right",align:"center",hidden:d!=="collapsed"||u,...r})]})):p});Ze.displayName="SidebarMenuButton";var xo=H.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,Qe.jsx)(t?xn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:i("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-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}));xo.displayName="SidebarMenuAction";var Ls=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("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 Es=H.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=H.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,Qe.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-Qe h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,Qe.jsx)(le,{className:"size-4 rounded-Qe","data-sidebar":"menu-skeleton-icon"}),(0,Qe.jsx)(le,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Es.displayName="SidebarMenuSkeleton";var ea=H.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("$n",{ref:a,"data-sidebar":"menu-sub",className:i("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}));ea.displayName="SidebarMenuSub";var ta=H.forwardRef(({...e},t)=>(0,Qe.jsx)("li",{ref:t,...e}));ta.displayName="SidebarMenuSubItem";var aa=H.forwardRef(({asChild:e=!1,size:t="Qe",isActive:a,className:o,...r},s)=>(0,Qe.jsx)(e?xn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("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}));aa.displayName="SidebarMenuSubButton";var ir=h(require("react")),em=1,tm=1e6;var Hs=0;function am(){return Hs=(Hs+1)%Number.MAX_SAFE_INTEGER,Hs.toString()}var Fs=new Map,Wn=e=>{if(Fs.has(e))return;let t=setTimeout(()=>{Fs.delete(e),wo({type:"REMOVE_TOAST",toastId:e})},tm);Fs.set(e,t)},om=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,em)};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?Wn(a):e.toasts.forEach(o=>{Wn(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 wo(e){sr=om(sr,e),rr.forEach(t=>{t(sr)})}function rm({...e}){let t=am(),a=r=>wo({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>wo({type:"DISMISS_TOAST",toastId:t});return wo({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:rm,dismiss:a=>wo({type:"DISMISS_TOAST",toastId:a})}}var Na=h(require("react")),ge=h(require("@radix-Qe/react-toast"));var lr=ge.Provider,No=Na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ge.Viewport,{ref:a,className:i("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}));No.displayName=ge.Viewport.displayName;var sm=(0,An.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-$n-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"}}),Co=Na.forwardRef(({className:e,variant:t,...a},o)=>(0,Qe.jsx)(ge.Root,{ref:o,className:i(sm({variant:t}),e),...a}));Co.displayName=ge.Root.displayName;var zs=Na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ge.Action,{ref:a,className:i("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}));zs.displayName=ge.Action.displayName;var Po=Na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ge.Close,{ref:a,className:i("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"})}));Po.displayName=ge.Close.displayName;var ko=Na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ge.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));ko.displayName=ge.Title.displayName;var Ro=Na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(ge.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Ro.displayName=ge.Description.displayName;function Xn(){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)(Co,{...s,children:[(0,Qe.jsxs)("div",{className:"grid gap-1",children:[a&&(0,Qe.jsx)(ko,{children:a}),o&&(0,Qe.jsx)(Ro,{children:o})]}),r,(0,Qe.jsx)(Po,{})]},t)}),(0,Qe.jsx)(No,{})]})}var Yn=h(require("react")),Os=h(require("@radix-Qe/react-toggle"));var So=(0,An.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"}}),Gs=Yn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,Qe.jsx)(Os.Root,{ref:r,className:i(So({variant:t,size:a,className:e})),...o}));Gs.displayName=Os.Root.displayName;var Ca=h(require("react")),Ya=h(require("@radix-Qe/react-toggle-group"));var Qn=Ca.createContext({size:"default",variant:"default"}),_s=Ca.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,Qe.jsx)(Ya.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,Qe.jsx)(Qn.Provider,{value:{variant:t,size:a},children:o})}));_s.displayName=Ya.Root.displayName;var $s=Ca.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=Ca.useContext(Qn);return(0,Qe.jsx)(Ya.Item,{ref:s,className:i(So({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});$s.displayName=Ya.Item.displayName;var Vs=h(require("react")),et=h(require("@radix-Qe/react-scroll-area"));var sa=Vs.forwardRef(({className:e,children:t,...a},o)=>(0,Qe.jsxs)(et.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,Qe.jsx)(et.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Qe.jsx)(cr,{}),(0,Qe.jsx)(et.Corner,{})]}));sa.displayName=et.Root.displayName;var cr=Vs.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,Qe.jsx)(et.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,Qe.jsx)(et.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));cr.displayName=et.ScrollAreaScrollbar.displayName;var Jn=h(require("react")),ut=h(require("@radix-Qe/react-popover"));var To=ut.Root,Do=ut.Trigger,Zn=ut.Anchor,qa=Jn.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:i("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})}));qa.displayName=ut.Content.displayName;var el=h(require("react")),js=h(require("@radix-Qe/react-label"));var im=(0,An.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ae=el.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(js.Root,{ref:a,className:i(im(),e),...t}));ae.displayName=js.Root.displayName;var ol=h(require("react")),Pa=h(require("@radix-Qe/react-hover-card"));var rl=Pa.Root,sl=Pa.Trigger,Us=ol.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,Qe.jsx)(Pa.Content,{ref:r,align:t,sideOffset:a,className:i("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}));Us.displayName=Pa.Content.displayName;var Mo=h(require("react")),de=h(require("@radix-Qe/react-dialog"));var tt=de.Root,mr=de.Trigger,Xs=de.Portal,pr=de.Close,ur=Mo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(de.Overlay,{ref:a,className:i("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=de.Overlay.displayName;var Xe=Mo.forwardRef(({className:e,children:t,...a},o)=>(0,Qe.jsxs)(Xs,{children:[(0,Qe.jsx)(ur,{}),(0,Qe.jsxs)(de.Content,{ref:o,className:i("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-Qe-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-$n-left-1/2 data-[state=closed]:slide-out-$n-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)(de.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Qe.jsx)($n.Qe,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Xe.displayName=de.Content.displayName;var ft=({className:e,...t})=>(0,Qe.jsx)("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ft.displayName="DialogHeader";var Ys=({className:e,...t})=>(0,Qe.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-Qe-2",e),...t});Ys.displayName="DialogFooter";var gt=Mo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(de.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));gt.displayName=de.Title.displayName;var qs=Mo.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(de.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));qs.displayName=de.Description.displayName;var ia=h(require("react")),Be=require("cmdk");var fr=ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Be.Command,{ref:a,className:i("flex h-full w-full flex-col overflow-hidden rounded-Qe bg-popover text-popover-foreground",e),...t}));fr.displayName=Be.Command.displayName;var dl=({children:e,...t})=>(0,Qe.jsx)(tt,{...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})})}),Ks=ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,Qe.jsx)($n.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,Qe.jsx)(Be.Command.Input,{ref:a,className:i("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})]}));Ks.displayName=Be.Command.Input.displayName;var Qs=ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Be.Command.List,{ref:a,className:i("max-h-[300px] overflow-y-auto overflow-Qe-hidden",e),...t}));Qs.displayName=Be.Command.List.displayName;var Js=ia.forwardRef((e,t)=>(0,Qe.jsx)(Be.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Js.displayName=Be.Command.Empty.displayName;var Zs=ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Be.Command.Group,{ref:a,className:i("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}));Zs.displayName=Be.Command.Group.displayName;var ei=ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Be.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));ei.displayName=Be.Command.Separator.displayName;var ti=ia.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Be.Command.Item,{ref:a,className:i("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ti.displayName=Be.Command.Item.displayName;var ai=({className:e,...t})=>(0,Qe.jsx)("span",{className:i("An-auto text-xs tracking-widest text-muted-foreground",e),...t});ai.displayName="CommandShortcut";var gr=h(require("react"));var nm=(0,An.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:Qe-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),oi=gr.forwardRef(({className:e,variant:t,...a},o)=>(0,Qe.jsx)("div",{ref:o,role:"alert",className:i(nm({variant:t}),e),...a}));oi.displayName="Alert";var ri=gr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));ri.displayName="AlertTitle";var si=gr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));si.displayName="AlertDescription";var yr=h(require("react")),Et=h(require("@radix-Qe/react-avatar"));var Ht=yr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Et.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ht.displayName=Et.Root.displayName;var Ft=yr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Et.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));Ft.displayName=Et.Image.displayName;var zt=yr.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Et.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));zt.displayName=Et.Fallback.displayName;var ii=(0,An.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 at({className:e,variant:t,...a}){return(0,Qe.jsx)("div",{className:i(ii({variant:t}),e),...a})}var Io=h(require("@radix-Qe/react-checkbox")),fl=h(require("react")),bt=fl.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(Io.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,Qe.jsx)(Io.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,Qe.jsx)($n.Check,{className:"h-4 w-4"})})}));bt.displayName=Io.Root.displayName;var O=h(require("@radix-Qe/react-select")),na=h(require("react")),Ra=O.Root,lm=O.Group,Sa=O.Value,la=na.forwardRef(({children:e,className:t,...a},o)=>(0,Qe.jsxs)(O.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,Qe.jsx)(O.Icon,{asChild:!0,children:(0,Qe.jsx)($n.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));la.displayName=O.Trigger.displayName;var ni=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(O.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Qe.jsx)($n.ChevronUp,{className:"h-4 w-4"})}));ni.displayName=O.ScrollUpButton.displayName;var li=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(O.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,Qe.jsx)($n.ChevronDown,{className:"h-4 w-4"})}));li.displayName=O.ScrollDownButton.displayName;var da=na.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,Qe.jsx)(O.Portal,{children:(0,Qe.jsxs)(O.Content,{className:i("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-y-1 data-[side=left]:-translate-Qe-1 data-[side=right]:translate-Qe-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,Qe.jsx)(ni,{}),(0,Qe.jsx)(O.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,Qe.jsx)(li,{})]})}));da.displayName=O.Content.displayName;var gl=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(O.Label,{className:i("py-1.5 Qe-8 pr-2 text-sm font-semibold",e),ref:a,...t}));gl.displayName=O.Label.displayName;var ca=na.forwardRef(({children:e,className:t,...a},o)=>(0,Qe.jsxs)(O.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 Qe-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)(O.ItemIndicator,{children:(0,Qe.jsx)($n.Check,{className:"h-4 w-4"})})}),(0,Qe.jsx)(O.ItemText,{children:e})]}));ca.displayName=O.Item.displayName;var bl=na.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)(O.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));bl.displayName=O.Separator.displayName;var yl=h(require("react")),ma=yl.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ma.displayName="Textarea";var hl=require("react-day-picker");function Ao({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,Qe.jsx)(hl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-Qe-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-Qe-1 flex items-center",nav_button:i(Jt({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-Qe w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:i("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:i(Jt({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})}Ao.displayName="Calendar";var di=({className:e,content:t,style:a})=>(0,Qe.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,Qe.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,Qe.jsx)(J,{content:t,enableGutter:!1,enableProse:!1})})});var ci=h(require("next/link")),yt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,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 p=a==="link"?"clear":c,g=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,Qe.jsxs)(ci.default,{className:i(r),href:d||u||"",...g,children:[s&&s,o&&o]}):(0,Qe.jsx)(D,{asChild:!0,className:r,size:p,variant:a,children:(0,Qe.jsxs)(ci.default,{className:i(r),href:d||u||"",...g,children:[s&&s,o&&o]})})};function wr({className:e}){return i("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 dm({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)(dm,{...t}),e&&(0,Qe.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function cm({className:e,...t}){return(0,Qe.jsx)("textarea",{...t,className:i(wr({}),"resize-none Qe:min-h-[130px]",e)})}function wl({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-[18px] w-[14px] text-accent",children:e})]})}var Cl=require("formik"),Pl=require("react-icons/fa6"),Ta=h(require("yup"));async function Nl(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let l={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.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(l)});if(!n.ok)throw console.error(n),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(n){return console.error(n),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var mi=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"},mm=Ta.object().shape({name:Ta.string().min(2,vt.tooShort).max(50,vt.tooLong).required(vt.required),email:Ta.string().email(vt.email).required(vt.required),subject:Ta.string().min(2,vt.tooShort).max(50,vt.tooLong).required(vt.required),message:Ta.string().min(2,vt.tooShort).max(300,vt.tooLong).required(vt.required)}),Cr=i("!pr-[44px] text-foreground"),Pr=i("!border-red-600 border"),kr=i("sr-only");function kl(){return(0,Qe.jsx)(Cl.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:mm,onSubmit:async(e,{resetForm:t})=>{let a=await Nl(e);a.data===null?mi.toast.error(a.message):(mi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,Qe.jsxs)("form",{onSubmit:l,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)(Pl.FaUser,{className:"text-primary"}),className:i(Cr,e.name&&t.name&&Pr)}),e.name&&t.name&&(0,Qe.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:kr,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)(pm,{}),className:i(Cr,e.email&&t.email&&Pr)}),e.email&&t.email&&(0,Qe.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:kr,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:i(Cr,e.subject&&t.subject&&Pr)}),e.subject&&t.subject&&(0,Qe.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:kr,children:e.subject})]}),(0,Qe.jsxs)("div",{className:"lg:col-span-2",children:[(0,Qe.jsx)(wl,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,Qe.jsx)(um,{}),className:i(Cr,e.message&&t.message&&Pr)}),e.message&&t.message&&(0,Qe.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:kr,children:e.message})]}),(0,Qe.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,Qe.jsx)(D,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function pm(){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 um(){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 fm=({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)(J,{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))})]})}),Da=({links:e,richText:t})=>{let[a,o]=(0,Zo.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,Qe.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"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)(J,{className:"mb-0 prose-headings:text-white prose-h2:text-white 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:c},u)=>(c==null?void 0:c.url)==="/contact"?(0,Qe.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white sd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},u):(0,Qe.jsx)(yt,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white sd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},u))})})]})}),a&&(0,Qe.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,Qe.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,Qe.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,Qe.jsx)(kl,{})," "]})})]})};var Rr=require("prism-react-renderer");function pi({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)(D,{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",children:(0,Qe.jsx)($n.ClipboardCopy,{})})]})})}var Dl=({code:e,language:t=""})=>e?(0,Qe.jsx)(Rr.Highlight,{code:e,language:t,theme:Rr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,Qe.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-Qe-auto",children:[r.map((s,l)=>(0,Qe.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,Qe.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,Qe.jsx)("span",{className:"table-cell Qe-4",children:s.map((n,c)=>(0,Qe.jsx)("span",{...o({token:n})},c))})]},l)),(0,Qe.jsx)(pi,{code:e})]})}):null;var fi=({className:e,code:t,language:a})=>(0,Qe.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,Qe.jsx)(Dl,{code:t,language:a})});var Il=h(require("next/image")),gm={"3xl":1920,"2xl":1536,Qe:1280,lg:1024,Qe:768,sm:640},Ml="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=",Al=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,u,d,p=t,g=n||"";if(!g&&s&&typeof s=="object"){let{alt:m,filename:y,height:w,url:_,width:ee}=s;if(w&&w>500){let fe=500/w;u=ee*fe,d=w*fe}else u=ee,d=w;p=m||"",g=_||Ml}let f=c||"lazy",b=l||Object.entries(gm).map(([,m])=>`(max-width: ${m}px) ${m*2}w`).join(", ");return(0,Qe.jsx)("picture",{children:(0,Qe.jsx)(Il.default,{alt:p||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Ml,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:b,src:g,width:a?void 0:u})})};var Bl=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:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,Qe.jsx)("source",{src:a.url||""})})}return null};var Gt=e=>{var l;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((l=o==null?void 0:o.mimeType)==null?void 0:l.includes("video"));return(0,Qe.jsx)(a||Zo.Fragment,{...a!==null?{className:t}:{},children:r?(0,Qe.jsx)(Bl,{...e}):(0,Qe.jsx)(Al,{...e})})};var _t=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Qe.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,Qe.jsx)(Gt,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var hi=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,Qe.jsx)("div",{className:i("",{container:a},t),children:(0,Qe.jsx)(Gt,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ia=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,Qe.jsxs)("section",{className:i(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)("div",{className:"mb-5 text-foreground",children:(0,Qe.jsx)(J,{content:t,enableGutter:!1})})]}),(0,Qe.jsx)("div",{className:`grid gap-6 mt-6 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,l)=>{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:l},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:(c=n())!=null?c:{type:"none",icon:null}},l)})})]});var Mr=h(require("react"));function Lo({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,l)=>(0,Qe.jsx)("tr",{children:s.children.map((n,c)=>(0,Qe.jsx)("td",{children:Lo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let l of s.children)"checked"in l&&(l!=null&&l.checked||(l.checked=!1));return Lo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s==null?void 0:s.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,Qe.jsx)(Da,{...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)(hi,{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)(di,{className:"col-start-2 mb-4",...s},a);case"code":return(0,Qe.jsx)(fi,{className:"col-start-2",...s},a);case"features":return(0,Qe.jsx)(Ia,{...s,nested:!0},a);case"reusableContentBlock":Lo({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 J=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,Qe.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Lo({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};var Se=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o!=null?o:"",n=r+s+" fa-"+a+" "+l;return(0,Qe.jsx)("i",{className:n})};var zl=h(require("next/image"));function Fl(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:l,link:n,className:c}){var p,g;let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-$n-Qe from-[#A42368] $n-[#4A1030]",radial:"bg-gradient-$n-Qe from-[#4A1030] $n-[#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)("a",{href:(n==null?void 0:n.url)||"#",className:i("min-w-56 max-w-Qe h-full flex flex-col group bg-background",e?"p-0":"p-6 Qe:p-8",l&&!e&&u[(l==null?void 0:l.card)==="default"?"solid":l==null?void 0:l.card],e&&"bg-foreground",l&&(l==null?void 0:l.card)==="outline"?"text-gray-900":"text-white",d[(p=l==null?void 0:l.width)!=null?p:"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,Qe.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,Qe.jsx)(zl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,Qe.jsxs)("div",{className:i(e?"p-6 Qe:p-8":"p-0","flex flex-col flex-grow"),children:[(0,Qe.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,Qe.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,Qe.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,Qe.jsx)(bm,{icon:{type:(t==null?void 0:t.type)||"fa-light",iconName:(t==null?void 0:t.icon)||"sd-icon-error"},heading:a!=null?a:"",variant:(l==null?void 0:l.card)==="default"?"solid":(g=l==null?void 0:l.card)!=null?g:"solid",iconSize:(l==null?void 0:l.iconSize)||"large"})}),r&&typeof r=="object"&&(0,Qe.jsx)(J,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-Qe","space-y-3",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,Qe.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-Qe","space-y-3",(l==null?void 0:l.card)==="outline"||(l==null?void 0:l.card)==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,Qe.jsx)("div",{className:"mt-6",children:(0,Qe.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:(n==null?void 0:n.label)||"Find out more"})})]})]})}var bm=({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:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Fl(e)&&(0,Qe.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 An-1 mt-1":""),children:(0,Qe.jsx)(Se,{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:[Fl(e)&&(0,Qe.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Qe.jsx)(Se,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Qe.jsx)("h3",{className:i("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:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Ol=h(require("next/image")),Gl=h(require("next/link"));var Aa=h(require("react"));var Ce=Aa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("rounded-Qe border bg-card text-card-foreground shadow",e),...t}));Ce.displayName="Card";var _e=Aa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("flex flex-col space-y-1.5 p-6",e),...t}));_e.displayName="CardHeader";var $e=Aa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));$e.displayName="CardTitle";var ym=Aa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));ym.displayName="CardDescription";var Te=Aa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("p-6 pt-0",e),...t}));Te.displayName="CardContent";var vm=Aa.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("div",{ref:a,className:i("flex items-center p-6 pt-0",e),...t}));vm.displayName="CardFooter";function _l({name:e,logo:t,href:a}){return(0,$t.jsx)(Ce,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,$t.jsxs)(Gl.default,{href:a,className:"block",children:[(0,$t.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,$t.jsx)("div",{className:"relative w-full h-full",children:t&&(0,$t.jsx)(Ol.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,$t.jsx)(Te,{className:"p-3 flex items-center justify-center h-18 bg-gradient-$n-Qe from-gray-900 via-brand-one $n-gray-900",children:(0,$t.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 $l({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,Qe.jsx)($n.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,Qe.jsx)($n.Award,{className:"h-4 w-4"});case"companyEvent":return(0,Qe.jsx)($n.PartyPopper,{className:"h-4 w-4"});default:return(0,Qe.jsx)($n.CalendarDays,{className:"h-4 w-4"})}},l=n=>{switch(n){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 $n-slate-500"}};return(0,Qe.jsxs)(Ce,{className:`w-full max-w-Qe overflow-hidden bg-gradient-$n-Qe ${l(e)}`,children:[(0,Qe.jsxs)(_e,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,Qe.jsxs)(Ht,{className:"h-14 w-14 border-2 border-white",children:[(0,Qe.jsx)(Ft,{src:r,alt:a||"Event"}),(0,Qe.jsx)(zt,{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-Qe",children:a||"Untitled Event"}),(0,Qe.jsxs)("p",{className:"text-sm text-white/80",children:[(0,Qe.jsx)($n.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,Qe.jsxs)(Te,{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)(at,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,Qe.jsx)("span",{className:"An-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 Wl=h(require("next/link"));var jl=h(require("next/image")),Vl={sm:"640px",Qe:"768px",lg:"1024px",Qe:"1280px","2xl":"1400px"};function Ul({slug:e,image:t,title:a,description:o}){return(0,Qe.jsxs)(Wl.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:i("absolute inset-0 z-[2] bg-gradient-1 from-primary/0 $n-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)(jl.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
+ (min-width:${Vl.Qe}) 50vw,
8
+ (min-width:${Vl.lg}) 25vw,
9
9
  100vw
10
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,Je.jsx)("div",{className:"relative z-10 flex h-full flex-col",children:(0,Je.jsxs)("div",{className:"mt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,Je.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,Je.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,Je.jsx)("p",{className:"mt-[13px] overflow-hidden pt-[11px] text-body",children:(0,Je.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var xi=h(require("next/image")),Ir=h(require("path"));function wm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Nm(e){return e.startsWith("http")}function Cm(e,t){let a=e;if(wm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Nm(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 Pm({src:e,alt:t}){let[a,o]=(0,Zo.useState)(!1),[r,s]=(0,Zo.useState)(!1),[l,n]=(0,Zo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},u=()=>{o(!1)},d=p=>{let{naturalWidth:g,naturalHeight:f}=p.target;n({width:g,height:f}),s(g>300||f>300)};return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:c,children:(0,Je.jsx)(xi.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Je.jsx)(tt,{open:a,onOpenChange:o,children:(0,Je.jsxs)(Xe,{className:"flex flex-col items-center justify-center",children:[(0,Je.jsxs)(ft,{className:"flex w-full justify-end",children:[(0,Je.jsx)(gt,{className:"hidden",children:t}),(0,Je.jsx)(pr,{})]}),(0,Je.jsx)("div",{className:"flex items-center justify-center",children:(0,Je.jsx)(xi.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function ql({props:e,baseContext:t}){let{src:a}=e;return a=Cm(a,t),(0,Je.jsx)(Pm,{src:a,alt:e.alt})}var Kl=h(require("next/link"));function ot({children:e,href:t,openNewTab:a,...o}){return(0,Je.jsx)(Kl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function km(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Rm({icon:e,title:t,description:a,slug:o}){return(0,Je.jsxs)("article",{className:i(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,Je.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,Je.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:km(e)?(0,Je.jsx)(Se,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,Je.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,Je.jsx)(ot,{href:o,children:t}):t})]}),(0,Je.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Je.jsx)(D,{asChild:!0,className:i(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Je.jsxs)(ot,{href:o,children:[(0,Je.jsx)("span",{children:"Read More"}),(0,Je.jsx)("span",{className:"relative Je-3 text-sm/[1] text-accent",children:(0,Je.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Je.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,Je.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-Je-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-Je-100 group-hover/service:opacity-100"})]})}function Sm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,Je.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,Je.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,Je.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-Je",children:e}),(0,Je.jsx)("p",{children:t})]}),(0,Je.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,Je.jsxs)("div",{className:"flex flex-col justify-stretch gap-Je-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,Je.jsx)("$n",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((l,n)=>(0,Je.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,Je.jsx)("span",{className:"text-accent pt-1",children:(0,Je.jsx)(Pl.FaCircleCheck,{})}),(0,Je.jsx)("span",{children:l})]},n))}),(0,Je.jsxs)("p",{className:"font-secondary An-auto text-Je font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,Je.jsx)("sub",{className:"relative bottom-0 An-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,Je.jsx)("div",{className:"flex-none mr-0 sm:An-auto",children:(0,Je.jsx)(D,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Je.jsxs)(ot,{href:s.href,openNewTab:s.openNewTab,children:[(0,Je.jsx)("span",{className:"relative z-1",children:s.label}),(0,Je.jsx)("span",{className:"relative z-1 Je-2",children:(0,Je.jsx)(Pl.FaAnglesRight,{})})]})})})]})})]})}function Tm({className:e,badge:t,title:a,subtitle:o}){return(0,Je.jsxs)("div",{className:i("relative overflow-hidden rounded-Je bg-gradient-$n-Je from-[#A42368] $n-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,Je.jsxs)("div",{className:"relative z-10 mx-auto max-w-4xl text-center",children:[t&&(0,Je.jsx)("div",{className:"mb-4",children:(0,Je.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,Je.jsx)("h1",{className:"mt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,Je.jsx)("p",{className:"mt-6 text-base text-gray-300 sm:text-lg md:text-Je",children:o})]}),(0,Je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-Je-1/2",style:{background:"radial-gradient(50% 50% at 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,Je.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-Je-1/2",children:(0,Je.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,Je.jsx)("path",{d:"Je-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function Ql(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Dm({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:l,subheading:n,content:c,statistic:u,buttonText:d,buttonHref:p}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-$n-Je from-[#A42368] $n-[#4A1030]",radial:"bg-gradient-$n-Je from-[#4A1030] $n-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Je.jsxs)("div",{className:i("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",g[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)(Mm,{icon:a,heading:l,variant:e,iconSize:o})}),u&&(0,Je.jsx)("div",{className:"mb-6",children:(0,Je.jsx)("div",{className:i("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:u})}),n&&(0,Je.jsx)("div",{className:"mb-4 text-Je md:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,Je.jsx)("div",{className:i("space-y-6"),children:(0,Je.jsx)(Q,{enableGutter:!1,content:c,enableProse:!1,className:i(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,Je.jsx)("div",{className:i("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,Je.jsx)("div",{className:"mt-auto pt-6 flex items-center justify-center",children:(0,Je.jsx)(D,{size:"lg",className:"text-white text-lg rounded-Je w-full mt-auto items-center justify-center",asChild:!0,children:(0,Je.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,Je.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 Mm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Je.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Ql(e)&&(0,Je.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Je.jsx)(Se,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Je.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,Je.jsxs)("div",{className:"flex flex-col gap-4",children:[Ql(e)&&(0,Je.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Je.jsx)(Se,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Je.jsx)("h3",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,Je.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Je.jsx)("div",{className:i("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Zl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,Je.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Im({icon:e,title:t,body:a,color:o="secondary"}){return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,Je.jsx)("div",{className:"px-[2%] flex items-center",children:(0,Je.jsx)("div",{className:"w-12 h-12",children:(0,Je.jsx)(Se,{type:e.type,iconName:e.name})})}),(0,Je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,Je.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var td=h(require("next/image"));function Am(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,Je.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,Je.jsx)(td.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,Je.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,Je.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,Je.jsxs)("a",{href:t,children:[(0,Je.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,Je.jsx)("div",{className:"mt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Bm=(e,t)=>`from-brand-${e} $n-brand-${t}`;function Lm({...e}){let t=Bm(e.brandFrom||"one",e.brandTo||"two");return(0,Je.jsxs)("div",{className:`relative isolate flex items-center gap-Je-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-$n-r ${t}`,children:[(0,Je.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,Je.jsxs)("a",{href:e.url,children:[(0,Je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Je.jsx)("circle",{r:1,cx:1,cy:1})}),(0,Je.jsx)("span",{children:e.message&&e.message})]}):(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,Je.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,Je.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,Je.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Eo=h(require("react")),Em={Architecture:(0,Je.jsx)($n.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Je.jsx)($n.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Je.jsx)($n.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Je.jsx)($n.GanttChart,{className:"h-5 w-5 text-red-600"})},Hm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Je.jsx)("div",{className:`An-${t*4} mb-2`,children:(0,Je.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,Je.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,Je.jsx)($n.ChevronDown,{className:"h-4 w-4"}):(0,Je.jsx)($n.ChevronRight,{className:"h-4 w-4"})}),(0,Je.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,Je.jsx)($n.Users,{className:"h-6 w-6 text-gray-500"})}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,Je.jsxs)("div",{className:"flex items-center mt-1",children:[Em[e.discipline],(0,Je.jsx)("span",{className:"An-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Je.jsx)("span",{className:"An-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},ad=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Eo.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>l(d)||d.reports.some(n),c=a===""||n(e),u=l(e);return Eo.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,Je.jsxs)("div",{children:[(0,Je.jsx)(Hm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:u}),o&&e.reports.map((d,p)=>(0,Je.jsx)(ad,{person:d,level:t+1,searchTerm:a},p))]}):null};function Fm(){let[e,t]=(0,Eo.useState)("");return(0,Je.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,Je.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,Je.jsxs)("div",{className:"mb-4 relative",children:[(0,Je.jsx)("input",{type:"text",placeholder:"Search by name, discipline, or grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,Je.jsx)($n.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Je.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,Je.jsx)(ad,{person:o,level:0,searchTerm:e},r))})]})}function zm({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:"Je 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:"Je 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:"Je set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"Je phased roadmap outlining the steps $n implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"Je detailed plan outlining potential risks and mitigation strategies $n 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 $n improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies $n 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 $n leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,Je.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,Je.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,Je.jsxs)(Ce,{className:"flex-grow",children:[(0,Je.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Je.jsx)($n.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Je.jsxs)(Te,{className:"p-6",children:[(0,Je.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"Je small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,Je.jsxs)("div",{className:"space-y-6",children:[(0,Je.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Je.jsx)($n.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Je.jsx)("span",{children:r.role})]}),r.isFTE&&(0,Je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Je.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Je.jsx)($n.User,{className:"h-4 w-4 text-muted-foreground"}),(0,Je.jsx)("span",{children:r.role}),r.count&&(0,Je.jsxs)("span",{children:["(",r.count,"Je)"]})]}),r.isFTE&&(0,Je.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,Je.jsxs)("div",{children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,Je.jsx)($n.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Je.jsx)("span",{children:"SME input:"})]}),(0,Je.jsx)("div",{className:"An-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Je.jsxs)(Ce,{children:[(0,Je.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Je.jsx)($n.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Je.jsx)(Te,{className:"p-6",children:(0,Je.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Je.jsxs)(Ce,{className:"lg:col-span-1 flex flex-col",children:[(0,Je.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Je.jsx)($n.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Je.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,Je.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,Je.jsxs)("li",{className:"text-sm",children:[(0,Je.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,Je.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,Je.jsx)("p",{className:"mt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,Je.jsxs)(Ce,{className:"lg:col-span-1 flex flex-col",children:[(0,Je.jsx)(Ge,{className:"bg-primary text-primary-foreground",children:(0,Je.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Je.jsx)($n.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Je.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,Je.jsx)("$n",{className:"space-y-4",children:a.map((r,s)=>(0,Je.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,Je.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,Je.jsx)("span",{children:r})]},s))})})]})]})}function Om(){return(0,Je.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,Je.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,Je.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,Je.jsx)($n.BarChart3,{className:"w-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-Je font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,Je.jsx)("p",{className:"text-secondary text-sm",children:"Je excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,Je.jsxs)("$n",{className:"text-sm",children:[(0,Je.jsx)("li",{children:"Strategy definition"}),(0,Je.jsx)("li",{children:"Programme leadership"}),(0,Je.jsx)("li",{children:"Detailed planning"}),(0,Je.jsx)("li",{children:"\u2022 Financial control"}),(0,Je.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,Je.jsxs)("div",{className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,Je.jsx)($n.CogIcon,{className:"w-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-Je font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,Je.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,Je.jsx)("p",{className:"text-sm",children:"Je deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,Je.jsxs)("div",{className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,Je.jsx)($n.Building2,{className:"w-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-Je font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Je.jsx)("p",{className:"text-sky-200 text-sm",children:"Je understand how $n navigate public sector and financial services regulation and how $n deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,Je.jsx)("p",{className:"text-sm",children:"Je have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,Je.jsxs)("div",{className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"flex items-center gap-2 relative z-10",children:[(0,Je.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,Je.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,Je.jsx)($n.BadgeCheck,{className:"w-8 h-8"})]}),(0,Je.jsx)("h2",{className:"text-Je font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,Je.jsx)("p",{className:"text-sky-200 text-sm",children:"Je have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,Je.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, Je have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Ho=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},l=(c,u,d)=>{if(u==="none"||d==="full")return{processedRichText:c,heading:null};let p=c,g=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(p={...c,root:{...c.root,children:c.root.children.slice(1)}},g=c.root.children[0]),{processedRichText:p,heading:g}};return(0,Je.jsx)("div",{className:"container my-6",children:(0,Je.jsx)("div",{className:i("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(n=a==null?void 0:a.settings)!=null&&n.box?"gap-Je-8":"gap-Je-16"),children:t&&t.length>0&&t.map((c,u)=>{var y,w;let{enableLink:d,link:p,richText:g,size:f}=c,{processedRichText:b,heading:m}=l(g,((y=a==null?void 0:a.settings)==null?void 0:y.box)||"none",f||"full");return(0,Je.jsxs)("div",{className:i(`col-span-4 lg:col-span-${o[f]}`,{"md:col-span-2":f!=="full"},r[f!=="full"&&!s(g)&&((w=a==null?void 0:a.settings)==null?void 0:w.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${u+1}00`),children:[m&&(0,Je.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-Je",children:m.children[0].text}),b&&(0,Je.jsx)(Q,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Je.jsx)(yt,{...p})]},u)})})})};var Lr=h(require("next/image"));function _m({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Je.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Je.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Je.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Je.jsx)(Lr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Je.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,Je.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,Je.jsx)(Lr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Je.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,Je.jsx)(Lr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Je.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Je.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Je.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var ki=h(require("next/image"));var wi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Je.jsx)(Gm,{blocks:a.layout}):(0,Je.jsx)(Je.Fragment,{})},od={content:Ho,cta:Da,mediaBlock:Gt,imageBlock:Gt,features:Ia},Gm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Je.jsx)(Je.Fragment,{children:t.map((o,r)=>{var n,c;let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in od){let u=od[s];if(u)return(0,Je.jsxs)("div",{className:"py-6 relative",children:[(0,Je.jsx)(Er,{block:o,index:r}),(0,Je.jsx)("div",{className:i(((n=l==null?void 0:l.settings)==null?void 0:n.theme)==="dark"?"dark":((c=l==null?void 0:l.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Je.jsx)(u,{...o})})]},r)}return null})}):null};var rd=h(require("react")),Qa=h(require("@radix-Je/react-collapsible"));var sd=({title:e,richText:t})=>{let[a,o]=rd.default.useState(!1);return(0,Je.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Je.jsxs)(Qa.Root,{className:i("w-full"),open:a,onOpenChange:o,children:[(0,Je.jsxs)(Qa.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,Je.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,Je.jsx)(Ko.ChevronUpIcon,{className:"h-6 w-6"}):(0,Je.jsx)(Ko.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,Je.jsx)(Qa.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,Je.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,Je.jsx)(Q,{content:t||{},enableGutter:!1})})})]})})};var Fr={content:Ho,cta:Da,mediaBlock:Gt,collapsibleArea:sd,imageBlock:Gt,features:Ia,reusableContentBlock:wi},fa=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Je.jsx)("section",{id:"render-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var n;let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Fr){let c=Fr[s];if(s==="reusableContentBlock")return(0,Je.jsx)(Zo.Fragment,{children:(0,Je.jsx)(fa,{blocks:o.reusableContent.layout})},r);if(c)return(0,Je.jsxs)("div",{className:i("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,Je.jsx)(Er,{block:o,index:r}),(0,Je.jsx)("div",{className:i("container h-full relative",((n=l==null?void 0:l.settings)==null?void 0:n.theme)||"dark"),children:(0,Je.jsx)(c,{...o})})]},r)}return null})}):null},Er=e=>{var a,o,r,s,l;if(!("theme"in e.block))return(0,Je.jsx)("div",{className:i("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,Je.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Je.jsx)(ki.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((l=(s=t.settings)==null?void 0:s.image)==null?void 0:l.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Je.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,Je.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},$m=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Je.jsx)("main",{id:"content-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Fr){let n=Fr[s];if(s==="reusableContentBlock")return(0,Je.jsx)(Zo.Fragment,{children:(0,Je.jsx)(fa,{blocks:o.reusableContent.layout})},r);if(n)return(0,Je.jsx)(id,{block:o,allBlocks:t,index:r,children:(0,Je.jsx)(n,{...o})})}return null})}):null},id=e=>{var c,u,d,p,g;if(e.index===0)return(0,Je.jsxs)("section",{className:"relative flex w-full",children:[(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen h-full light bg-background")}),(0,Je.jsx)("div",{className:i("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=f=>f%2===0?"light":"dark",a=({index:f,allBlocks:b})=>f===1?(0,Je.jsx)(Ni,{position:"left"}):r(f,b)==="dark"&&l(f,b)==="light"?(0,Je.jsx)(Ci,{position:"left"}):r(f,b)==="light"&&l(f,b)==="dark"?(0,Je.jsx)(Ni,{position:"left"}):null,o=({index:f,allBlocks:b})=>s(f,b)==="light"&&l(f,b)==="dark"?(0,Je.jsx)(Ci,{position:"left"}):null,r=(f,b)=>{var y,w;if(f===1)return"light";let m=b[f-1];return"theme"in m&&((w=(y=m.theme)==null?void 0:y.settings)==null?void 0:w.theme)==="light"?"light":"dark"},s=(f,b)=>{var y,w;if(f===b.length-1)return"dark";if(f===0)return"light";let m=b[f+1];return"theme"in m&&((w=(y=m.theme)==null?void 0:y.settings)==null?void 0:w.theme)==="light"?"light":"dark"},l=(f,b)=>{var y,w;if(f===b.length-1)return"dark";let m=b[f];return m.theme&&((w=(y=m.theme)==null?void 0:y.settings)==null?void 0:w.theme)==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,Je.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen dark bg-background")}),(0,Je.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})]}):(0,Je.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,Je.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen")}),(0,Je.jsx)("div",{className:"bg-black",children:(0,Je.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let f=l(e.index,e.allBlocks);return(0,Je.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",f)}),(0,Je.jsx)("div",{className:i("container relative bg-background py-1",f,f==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let f=l(e.index,e.allBlocks);return(0,Je.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,Je.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",f)}),(0,Je.jsx)("div",{className:i("container relative bg-background min-h-[22em] content-center py-1",f,f==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,Je.jsxs)("div",{className:i("container h-full relative","dark"),children:[(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let n=(c=e.block)==null?void 0:c.theme;if(n.settings.background==="image"){let f={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return(0,Je.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[(0,Je.jsx)(ki.default,{src:((d=(u=n.settings)==null?void 0:u.image)==null?void 0:d.url)||"/placeholder.svg",alt:((g=(p=n.settings)==null?void 0:p.image)==null?void 0:g.alt)||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&(0,Je.jsx)("div",{className:"absolute inset-0",style:{background:f.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,Je.jsx)("div",{className:i("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},Ni=({position:e})=>(0,Je.jsx)("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:i("w-full block overflow-hidden"),children:(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Ci=({position:e})=>(0,Je.jsx)("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var cd=h(require("clsx"));var nd=require("next/navigation");function Vm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,nd.useRouter)(),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),l=(0,Zo.useRef)(0),n=(0,Zo.useRef)(!1),c=(0,Zo.useRef)(0),u=(0,Zo.useCallback)(p=>{if(p.target){let g=p.target,f=+new Date,b=g==null?void 0:g.closest("a");c.current=p.button,b?n.current=!0:(n.current=!1,l.current=f)}},[o,r,s,l]),d=(0,Zo.useCallback)(p=>{var g,f;if((g=s.current)!=null&&g.href){let m=+new Date-l.current;if((f=s.current)!=null&&f.href&&m<=250&&!n.current&&c.current===0&&!p.ctrlKey)if(e){let y=t?"_blank":"_self";window.open(s.current.href,y)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,Zo.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",u),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",u),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var ld=Vm;var dd=h(require("next/link"));var Fo=e=>{let{card:t,link:a}=ld({}),{className:o,doc:r,relationTo:s,showCategories:l,title:n}=e,{slug:c,categories:u,meta:d,title:p}=r||{},{description:g,image:f}=d||{},b=u&&Array.isArray(u)&&u.length>0,m=n||p,y=g==null?void 0:g.replace(/\s/g," "),w=`/${s}/${c}`;return(0,Je.jsxs)("article",{className:i("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,Je.jsxs)("div",{className:"relative w-full ",children:[!f&&(0,Je.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,Je.jsx)(_t,{resource:f,size:"33vw"})]}),(0,Je.jsxs)("div",{className:"p-4",children:[l&&b&&(0,Je.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,Je.jsx)("div",{children:u==null?void 0:u.map((G,ee)=>{if(typeof G=="object"){let{title:fe}=G,ze=fe||"Untitled category",Pt=ee===u.length-1;return(0,Je.jsxs)(Zo.Fragment,{children:[ze,!Pt&&(0,Je.jsx)(Zo.Fragment,{children:", \xA0"})]},ee)}return null})})}),m&&(0,Je.jsx)("div",{className:"prose",children:(0,Je.jsx)("h3",{children:(0,Je.jsx)(dd.default,{className:"not-prose",href:w,ref:a.ref,children:m})})}),g&&(0,Je.jsx)("div",{className:"mt-2",children:g&&(0,Je.jsx)("p",{children:y})})]})]})};var Um=e=>{let{className:t,docs:a,introContent:o}=e;return(0,Je.jsxs)("div",{className:(0,cd.default)("container",t),children:[o&&(0,Je.jsx)(Q,{content:o,enableGutter:!1}),(0,Je.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,Je.jsx)(Fo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var ao=require("framer-motion");var e0=require("pagedjs");var Wm=e=>{let{posts:t}=e;return(0,Je.jsx)("div",{className:i("container"),children:(0,Je.jsx)("div",{children:(0,Je.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-Je-4 lg:gap-y-8 lg:gap-Je-8 Je:gap-Je-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,Je.jsx)("div",{className:"col-span-4",children:(0,Je.jsx)(Fo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var md=h(require("clsx")),pd=h(require("next/image")),jm=e=>{let{loading:t,priority:a,className:o}=e;return(0,Je.jsx)(pd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,md.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/Je/src/assets/payload-logo-light.svg"})};var Xm={plural:"Docs",singular:"Doc"},Ym={posts:{plural:"Posts",singular:"Post"}},qm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,n=(r?r-1:1)*(s||1)+1;l&&n>l&&(n=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:u,singular:d}=o||Ym[a||""]||Xm||{};return(0,Je.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced nd results.",typeof l!="undefined"&&l>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${l} ${l>1?u:d}`]})};var Si=h(require("react")),Ti=({className:e,...t})=>(0,Je.jsx)("nav",{"aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ti.displayName="Pagination";var Di=Si.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("$n",{className:i("flex flex-row items-center gap-1",e),ref:a,...t}));Di.displayName="PaginationContent";var Wt=Si.forwardRef(({className:e,...t},a)=>(0,Je.jsx)("li",{className:i("",e),ref:a,...t}));Wt.displayName="PaginationItem";var La=({className:e,isActive:t,size:a="icon",...o})=>(0,Je.jsx)("button",{"aria-current":t?"page":void 0,className:i(Qt({size:a,variant:t?"outline":"ghost"}),e),...o});La.displayName="PaginationLink";var Mi=({className:e,...t})=>(0,Je.jsxs)(La,{"aria-label":"Go $n previous page",className:i("gap-1 Je-2.5",e),size:"default",...t,children:[(0,Je.jsx)($n.ChevronLeft,{className:"h-4 w-4"}),(0,Je.jsx)("span",{children:"Previous"})]});Mi.displayName="PaginationPrevious";var Ii=({className:e,...t})=>(0,Je.jsxs)(La,{"aria-label":"Go $n next page",className:i("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Je.jsx)("span",{children:"Next"}),(0,Je.jsx)($n.ChevronRight,{className:"h-4 w-4"})]});Ii.displayName="PaginationNext";var zr=({className:e,...t})=>(0,Je.jsxs)("span",{"aria-hidden":!0,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Je.jsx)($n.MoreHorizontal,{className:"h-4 w-4"}),(0,Je.jsx)("span",{className:"sr-only",children:"More pages"})]});zr.displayName="PaginationEllipsis";var Km=e=>{let t=(0,nd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,n=o-1>1,c=o+1<r;return(0,Je.jsx)("div",{className:i("my-12",a),children:(0,Je.jsx)(Ti,{children:(0,Je.jsxs)(Di,{children:[(0,Je.jsx)(Wt,{children:(0,Je.jsx)(Mi,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,Je.jsx)(Wt,{children:(0,Je.jsx)(zr,{})}),l&&(0,Je.jsx)(Wt,{children:(0,Je.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Je.jsx)(Wt,{children:(0,Je.jsx)(La,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Je.jsx)(Wt,{children:(0,Je.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Je.jsx)(Wt,{children:(0,Je.jsx)(zr,{})}),(0,Je.jsx)(Wt,{children:(0,Je.jsx)(Ii,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Ai=h(require("next/image")),bd=({logoImage:e})=>(0,Je.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,Je.jsxs)("div",{className:"flex px-6 items-center space-Je-2",children:[e&&(0,Je.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Je.jsx)("span",{className:"Je-12 text-sm",children:"Power up your people"})]}),(0,Je.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),zo=({title:e})=>(0,Je.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,Je.jsx)("div",{className:"container",children:(0,Je.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Oo=e=>{var r,s;let{title:t,hero:a,logoImage:o}=e;return(0,Je.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,Je.jsx)("div",{className:"absolute inset-0",children:(0,Je.jsx)(Ai.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,Je.jsx)("div",{className:"absolute left-16 z-50 top-4 flex flex-col items-start gap-4",children:o&&(0,Je.jsx)("div",{className:"h-24",children:(0,Je.jsx)(Ai.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,Je.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,Je.jsxs)("div",{className:"relative Je-24 z-10 max-w-3xl",children:[(0,Je.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,Je.jsx)(Q,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var yd=e=>{let[t,a]=(0,Zo.useState)(0),{blocks:o,hero:r,logoImage:s}=e,l=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],u=m=>{a(m)},d=()=>{a(m=>(m+1)%c.length)},p=()=>{a(m=>(m-1+c.length)%c.length)},f=(0,Zo.useCallback)(((m,y)=>{let w;return(...G)=>{clearTimeout(w),w=setTimeout(()=>m(...G),y)}})(m=>{m.deltaY>0?d():p()},300),[]),b=m=>{m.key==="ArrowDown"?d():m.key==="ArrowUp"&&p()};return(0,Zo.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",f),window.removeEventListener("keydown",b)}),[]),(0,Je.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,Je.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 z-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((m,y)=>(0,Je.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===y?"bg-accent":"bg-gray-600"}`,onClick:()=>u(y),children:(0,Je.jsx)("span",{className:"absolute An-7 left-full text-left transform -translate-y-1/2 translate-Je-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-Je-2 transition-all duration-300",children:m.blockName})},m.id))}),(0,Je.jsx)(ao.AnimatePresence,{children:c.map((m,y)=>(0,Je.jsx)("div",{id:`slide-${y}`,className:"print-section",children:(0,Je.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-y 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 xi=h(require("next/image")),Ir=h(require("path"));function hm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function xm(e){return e.startsWith("http")}function wm(e,t){let a=e;if(hm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(xm(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 Nm({src:e,alt:t}){let[a,o]=(0,Zo.useState)(!1),[r,s]=(0,Zo.useState)(!1),[l,n]=(0,Zo.useState)({width:0,height:0}),c=()=>{r&&o(!0)},u=()=>{o(!1)},d=p=>{let{naturalWidth:g,naturalHeight:f}=p.target;n({width:g,height:f}),s(g>300||f>300)};return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${l.height>300?"h-[300px]":`h-[${l.height}px]`}`,onClick:c,children:(0,Qe.jsx)(xi.default,{sizes:"100vw",height:l.height,width:l.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,Qe.jsx)(tt,{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)(xi.default,{height:l.height,width:l.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Xl({props:e,baseContext:t}){let{src:a}=e;return a=wm(a,t),(0,Qe.jsx)(Nm,{src:a,alt:e.alt})}var Yl=h(require("next/link"));function ot({children:e,href:t,openNewTab:a,...o}){return(0,Qe.jsx)(Yl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Cm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Pm({icon:e,title:t,description:a,slug:o}){return(0,Qe.jsxs)("article",{className:i(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative z-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 Qe:space-y-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:Cm(e)?(0,Qe.jsx)(Se,{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)(ot,{href:o,children:t}):t})]}),(0,Qe.jsx)("p",{className:"text-foreground",children:a}),o&&(0,Qe.jsx)(D,{asChild:!0,className:i(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,Qe.jsxs)(ot,{href:o,children:[(0,Qe.jsx)("span",{children:"Read More"}),(0,Qe.jsx)("span",{className:"relative Qe-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 km({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-Qe",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-y-5 Qe:flex-row Qe:items-center",children:[a&&a.length>0&&(0,Qe.jsx)("$n",{"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((l,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)(Pl.FaCircleCheck,{})}),(0,Qe.jsx)("span",{children:l})]},n))}),(0,Qe.jsxs)("p",{className:"font-secondary An-auto text-Qe 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 An-1.5 inline-block text-base lg:text-Qe",children:r&&r})]}),s&&(0,Qe.jsx)("div",{className:"flex-none mr-0 sm:An-auto",children:(0,Qe.jsx)(D,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,Qe.jsxs)(ot,{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 Qe-2",children:(0,Qe.jsx)(Pl.FaAnglesRight,{})})]})})})]})})]})}function Rm({className:e,badge:t,title:a,subtitle:o}){return(0,Qe.jsxs)("div",{className:i("relative overflow-hidden rounded-Qe bg-gradient-$n-Qe from-[#A42368] $n-[#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-Qe",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:"Qe-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function Kl(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:l,subheading:n,content:c,statistic:u,buttonText:d,buttonHref:p}){let g={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-$n-Qe from-[#A42368] $n-[#4A1030]",radial:"bg-gradient-$n-Qe from-[#4A1030] $n-[#2D0A1D] relative overflow-hidden",light:""},f={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,Qe.jsxs)("div",{className:i("rounded-3xl p-8 Qe:p-8 min-w-56 flex flex-col group",g[e],e==="outline"?"text-gray-900":"text-white",t,f[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,Qe.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,Qe.jsx)(Tm,{icon:a,heading:l,variant:e,iconSize:o})}),u&&(0,Qe.jsx)("div",{className:"mb-6",children:(0,Qe.jsx)("div",{className:i("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-Qe Qe:text-2xl font-light",children:n}),c&&typeof c=="object"&&(0,Qe.jsx)("div",{className:i("space-y-6"),children:(0,Qe.jsx)(J,{enableGutter:!1,content:c,enableProse:!1,className:i(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,Qe.jsx)("div",{className:i("space-y-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)(D,{size:"lg",className:"text-white text-lg rounded-Qe w-full mt-auto items-center justify-center",asChild:!0,children:(0,Qe.jsx)("a",{href:p,children:d})})}),e==="radial"&&(0,Qe.jsx)("div",{className:"absolute bottom-0 right-0 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 Tm=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,Qe.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Kl(e)&&(0,Qe.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"mt-2":""),children:(0,Qe.jsx)(Se,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,Qe.jsx)("div",{className:i("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:[Kl(e)&&(0,Qe.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,Qe.jsx)(Se,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,Qe.jsx)("h3",{className:i("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:i("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 Dm({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)(Se,{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 Zl=h(require("next/image"));function Mm(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)(Zl.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 Im=(e,t)=>`from-brand-${e} $n-brand-${t}`;function Am({...e}){let t=Im(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-$n-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 Eo=h(require("react")),Bm={Architecture:(0,Qe.jsx)($n.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,Qe.jsx)($n.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,Qe.jsx)($n.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,Qe.jsx)($n.GanttChart,{className:"h-5 w-5 text-red-600"})},Lm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,Qe.jsx)("div",{className:`An-${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)($n.ChevronDown,{className:"h-4 w-4"}):(0,Qe.jsx)($n.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)($n.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:"An-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,Qe.jsx)("span",{className:"An-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},ed=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Eo.useState)(t<1),s=()=>r(!o),l=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),n=d=>l(d)||d.reports.some(n),c=a===""||n(e),u=l(e);return Eo.default.useEffect(()=>{a!==""&&n(e)&&r(!0)},[a,e]),c?(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)(Lm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:u}),o&&e.reports.map((d,p)=>(0,Qe.jsx)(ed,{person:d,level:t+1,searchTerm:a},p))]}):null};function Em(){let[e,t]=(0,Eo.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)($n.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,Qe.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,Qe.jsx)(ed,{person:o,level:0,searchTerm:e},r))})]})}function Hm({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 $n 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 $n 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 $n improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies $n 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 $n 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-y-6 flex flex-col",children:[(0,Qe.jsxs)(Ce,{className:"flex-grow",children:[(0,Qe.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)($n.Users,{className:"h-5 w-5"}),"Team"]})}),(0,Qe.jsxs)(Te,{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-y-6",children:[(0,Qe.jsx)("div",{className:"space-y-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)($n.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-y-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)($n.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)($n.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,Qe.jsx)("span",{children:"SME input:"})]}),(0,Qe.jsx)("div",{className:"An-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)($n.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,Qe.jsx)(Te,{className:"p-6",children:(0,Qe.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,Qe.jsxs)(Ce,{className:"lg:col-span-1 flex flex-col",children:[(0,Qe.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)($n.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,Qe.jsxs)(Te,{className:"p-6 flex-grow overflow-auto",children:[(0,Qe.jsx)("ol",{className:"list-decimal list-inside space-y-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)(Ce,{className:"lg:col-span-1 flex flex-col",children:[(0,Qe.jsx)(_e,{className:"bg-primary text-primary-foreground",children:(0,Qe.jsxs)($e,{className:"flex items-center gap-2",children:[(0,Qe.jsx)($n.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,Qe.jsx)(Te,{className:"p-6 flex-grow overflow-auto",children:(0,Qe.jsx)("$n",{className:"space-y-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 Fm(){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-y-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)($n.BarChart3,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-Qe 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)("$n",{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-y-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)($n.CogIcon,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-Qe 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-y-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)($n.Building2,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-Qe font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,Qe.jsx)("p",{className:"text-sky-200 text-sm",children:"Qe understand how $n navigate public sector and financial services regulation and how $n 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-y-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)($n.BadgeCheck,{className:"w-8 h-8"})]}),(0,Qe.jsx)("h2",{className:"text-Qe 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, Qe have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Ho=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},l=(c,u,d)=>{if(u==="none"||d==="full")return{processedRichText:c,heading:null};let p=c,g=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(p={...c,root:{...c.root,children:c.root.children.slice(1)}},g=c.root.children[0]),{processedRichText:p,heading:g}};return(0,Qe.jsx)("div",{className:"container my-6",children:(0,Qe.jsx)("div",{className:i("grid grid-cols-4 lg:grid-cols-12 gap-y-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 y,w;let{enableLink:d,link:p,richText:g,size:f}=c,{processedRichText:b,heading:m}=l(g,((y=a==null?void 0:a.settings)==null?void 0:y.box)||"none",f||"full");return(0,Qe.jsxs)("div",{className:i(`col-span-4 lg:col-span-${o[f]}`,{"Qe:col-span-2":f!=="full"},r[f!=="full"&&!s(g)&&((w=a==null?void 0:a.settings)==null?void 0:w.box)||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${u+1}00`),children:[m&&(0,Qe.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -mt-4 -mx-4 px-4 py-2 text-Qe",children:m.children[0].text}),b&&(0,Qe.jsx)(J,{content:b,enableGutter:!1,className:"rich-text"}),d&&(0,Qe.jsx)(yt,{...p})]},u)})})})};var Lr=h(require("next/image"));function zm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,Qe.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,Qe.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,Qe.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,Qe.jsx)(Lr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,Qe.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 Qe:left-8 Qe:top-8",children:[o&&(0,Qe.jsx)("div",{className:"h-16 w-32 Qe:h-24 Qe:w-48",children:(0,Qe.jsx)(Lr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,Qe.jsx)("div",{className:"h-10 w-20 Qe:h-12 Qe:w-24",children:(0,Qe.jsx)(Lr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,Qe.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,Qe.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,Qe.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] Qe:text-6xl",children:a})]})]})}var ki=h(require("next/image"));var wi=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,Qe.jsx)(Om,{blocks:a.layout}):(0,Qe.jsx)(Qe.Fragment,{})},td={content:Ho,cta:Da,mediaBlock:_t,imageBlock:_t,features:Ia},Om=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,l=o==null?void 0:o.theme;if(s&&s in td){let u=td[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:i(((n=l==null?void 0:l.settings)==null?void 0:n.theme)==="dark"?"dark":((c=l==null?void 0:l.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,Qe.jsx)(u,{...o})})]},r)}return null})}):null};var ad=h(require("react")),Ja=h(require("@radix-Qe/react-collapsible"));var od=({title:e,richText:t})=>{let[a,o]=ad.default.useState(!1);return(0,Qe.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,Qe.jsxs)(Ja.Root,{className:i("w-full"),open:a,onOpenChange:o,children:[(0,Qe.jsxs)(Ja.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)(Ja.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)(J,{content:t||{},enableGutter:!1})})})]})})};var Fr={content:Ho,cta:Da,mediaBlock:_t,collapsibleArea:od,imageBlock:_t,features:Ia,reusableContentBlock:wi},fa=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Qe.jsx)("section",{id:"render-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var n;let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Fr){let c=Fr[s];if(s==="reusableContentBlock")return(0,Qe.jsx)(Zo.Fragment,{children:(0,Qe.jsx)(fa,{blocks:o.reusableContent.layout})},r);if(c)return(0,Qe.jsxs)("div",{className:i("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:i("container h-full relative",((n=l==null?void 0:l.settings)==null?void 0:n.theme)||"dark"),children:(0,Qe.jsx)(c,{...o})})]},r)}return null})}):null},Er=e=>{var a,o,r,s,l;if(!("theme"in e.block))return(0,Qe.jsx)("div",{className:i("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:i("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,Qe.jsx)(ki.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((l=(s=t.settings)==null?void 0:s.image)==null?void 0:l.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,Qe.jsx)("div",{className:"absolute inset-0",style:{background: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:i("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},Gm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,Qe.jsx)("main",{id:"content-blocks",className:i(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,l=o==null?void 0:o.theme;if(s&&s in Fr){let n=Fr[s];if(s==="reusableContentBlock")return(0,Qe.jsx)(Zo.Fragment,{children:(0,Qe.jsx)(fa,{blocks:o.reusableContent.layout})},r);if(n)return(0,Qe.jsx)(rd,{block:o,allBlocks:t,index:r,children:(0,Qe.jsx)(n,{...o})})}return null})}):null},rd=e=>{var c,u,d,p,g;if(e.index===0)return(0,Qe.jsxs)("section",{className:"relative flex w-full",children:[(0,Qe.jsx)("div",{className:i("absolute inset-0 w-screen h-full light bg-background")}),(0,Qe.jsx)("div",{className:i("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=f=>f%2===0?"light":"dark",a=({index:f,allBlocks:b})=>f===1?(0,Qe.jsx)(Ni,{position:"left"}):r(f,b)==="dark"&&l(f,b)==="light"?(0,Qe.jsx)(Ci,{position:"left"}):r(f,b)==="light"&&l(f,b)==="dark"?(0,Qe.jsx)(Ni,{position:"left"}):null,o=({index:f,allBlocks:b})=>s(f,b)==="light"&&l(f,b)==="dark"?(0,Qe.jsx)(Ci,{position:"left"}):null,r=(f,b)=>{var y,w;if(f===1)return"light";let m=b[f-1];return"theme"in m&&((w=(y=m.theme)==null?void 0:y.settings)==null?void 0:w.theme)==="light"?"light":"dark"},s=(f,b)=>{var y,w;if(f===b.length-1)return"dark";if(f===0)return"light";let m=b[f+1];return"theme"in m&&((w=(y=m.theme)==null?void 0:y.settings)==null?void 0:w.theme)==="light"?"light":"dark"},l=(f,b)=>{var y,w;if(f===b.length-1)return"dark";let m=b[f];return m.theme&&((w=(y=m.theme)==null?void 0:y.settings)==null?void 0:w.theme)==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,Qe.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,Qe.jsx)("div",{className:i("absolute inset-0 w-screen dark bg-background")}),(0,Qe.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})]}):(0,Qe.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,Qe.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Qe.jsx)("div",{className:i("absolute inset-0 w-screen")}),(0,Qe.jsx)("div",{className:"bg-black",children:(0,Qe.jsx)("div",{className:i("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===l(e.index,e.allBlocks)){let f=l(e.index,e.allBlocks);return(0,Qe.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,Qe.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",f)}),(0,Qe.jsx)("div",{className:i("container relative bg-background py-1",f,f==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==l(e.index,e.allBlocks)){let f=l(e.index,e.allBlocks);return(0,Qe.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,Qe.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,Qe.jsx)("div",{className:i("absolute inset-0 w-screen bg-background",f)}),(0,Qe.jsx)("div",{className:i("container relative bg-background min-h-[22em] content-center py-1",f,f==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,Qe.jsxs)("div",{className:i("container h-full relative","dark"),children:[(0,Qe.jsx)("div",{className:i("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let n=(c=e.block)==null?void 0:c.theme;if(n.settings.background==="image"){let f={imagePosition:n.settings.imagePosition||"left",overlay:n.settings.overlay!==void 0?n.settings.overlay:!0};return(0,Qe.jsxs)("div",{className:i("absolute inset-0 w-full h-full bg-background",n.settings.theme||"dark"),children:[(0,Qe.jsx)(ki.default,{src:((d=(u=n.settings)==null?void 0:u.image)==null?void 0:d.url)||"/placeholder.svg",alt:((g=(p=n.settings)==null?void 0:p.image)==null?void 0:g.alt)||"",fill:!0,className:"object-cover",priority:!0}),n.settings.overlay&&(0,Qe.jsx)("div",{className:"absolute inset-0",style:{background:f.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:i("absolute inset-0 w-screen h-full bg-background",n.settings.theme||"dark")})},Ni=({position:e})=>(0,Qe.jsx)("div",{className:"w-full aspect-[1920/360] z-20 relative -top-[2px] bg-white",children:(0,Qe.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:i("w-full block overflow-hidden"),children:(0,Qe.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),Ci=({position:e})=>(0,Qe.jsx)("div",{className:"w-full relative z-20 aspect-[1920/332] overflow-hidden ",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,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"})]})});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),l=(0,Zo.useRef)(0),n=(0,Zo.useRef)(!1),c=(0,Zo.useRef)(0),u=(0,Zo.useCallback)(p=>{if(p.target){let g=p.target,f=+new Date,b=g==null?void 0:g.closest("a");c.current=p.button,b?n.current=!0:(n.current=!1,l.current=f)}},[o,r,s,l]),d=(0,Zo.useCallback)(p=>{var g,f;if((g=s.current)!=null&&g.href){let m=+new Date-l.current;if((f=s.current)!=null&&f.href&&m<=250&&!n.current&&c.current===0&&!p.ctrlKey)if(e){let y=t?"_blank":"_self";window.open(s.current.href,y)}else o.push(s.current.href,{scroll:a})}},[o,r,s,l]);return(0,Zo.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",u),p.addEventListener("mouseup",d)),()=>{p&&p&&(p==null||p.removeEventListener("mousedown",u),p==null||p.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var id=_m;var nd=h(require("next/link"));var Fo=e=>{let{card:t,link:a}=id({}),{className:o,doc:r,relationTo:s,showCategories:l,title:n}=e,{slug:c,categories:u,meta:d,title:p}=r||{},{description:g,image:f}=d||{},b=u&&Array.isArray(u)&&u.length>0,m=n||p,y=g==null?void 0:g.replace(/\s/g," "),w=`/${s}/${c}`;return(0,Qe.jsxs)("article",{className:i("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:[!f&&(0,Qe.jsx)("div",{className:"",children:"No image"}),f&&typeof f!="string"&&(0,Qe.jsx)(Gt,{resource:f,size:"33vw"})]}),(0,Qe.jsxs)("div",{className:"p-4",children:[l&&b&&(0,Qe.jsx)("div",{className:"uppercase text-sm mb-4",children:l&&b&&(0,Qe.jsx)("div",{children:u==null?void 0:u.map((_,ee)=>{if(typeof _=="object"){let{title:fe}=_,ze=fe||"Untitled category",Pt=ee===u.length-1;return(0,Qe.jsxs)(Zo.Fragment,{children:[ze,!Pt&&(0,Qe.jsx)(Zo.Fragment,{children:", \xA0"})]},ee)}return null})})}),m&&(0,Qe.jsx)("div",{className:"prose",children:(0,Qe.jsx)("h3",{children:(0,Qe.jsx)(nd.default,{className:"not-prose",href:w,ref:a.ref,children:m})})}),g&&(0,Qe.jsx)("div",{className:"mt-2",children:g&&(0,Qe.jsx)("p",{children:y})})]})]})};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)(J,{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)(Fo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var ao=require("framer-motion");var Yy=require("pagedjs");var Vm=e=>{let{posts:t}=e;return(0,Qe.jsx)("div",{className:i("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-y-4 gap-Qe-4 lg:gap-y-8 lg:gap-Qe-8 Qe: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)(Fo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var dd=h(require("clsx")),cd=h(require("next/image")),Wm=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/Qe/src/assets/payload-logo-light.svg"})};var jm={plural:"Docs",singular:"Doc"},Um={posts:{plural:"Posts",singular:"Post"}},Xm=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:l}=e,n=(r?r-1:1)*(s||1)+1;l&&n>l&&(n=0);let c=(r||1)*(s||1);l&&c>l&&(c=l);let{plural:u,singular:d}=o||Um[a||""]||jm||{};return(0,Qe.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof l=="undefined"||l===0)&&"Search produced sd results.",typeof l!="undefined"&&l>0&&`Showing ${n}${n>0?` - ${c}`:""} of ${l} ${l>1?u:d}`]})};var Si=h(require("react")),Ti=({className:e,...t})=>(0,Qe.jsx)("nav",{"aria-label":"pagination",className:i("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ti.displayName="Pagination";var Di=Si.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("$n",{className:i("flex flex-row items-center gap-1",e),ref:a,...t}));Di.displayName="PaginationContent";var jt=Si.forwardRef(({className:e,...t},a)=>(0,Qe.jsx)("li",{className:i("",e),ref:a,...t}));jt.displayName="PaginationItem";var La=({className:e,isActive:t,size:a="icon",...o})=>(0,Qe.jsx)("button",{"aria-current":t?"page":void 0,className:i(Jt({size:a,variant:t?"outline":"ghost"}),e),...o});La.displayName="PaginationLink";var Mi=({className:e,...t})=>(0,Qe.jsxs)(La,{"aria-label":"Yy $n previous page",className:i("gap-1 Qe-2.5",e),size:"default",...t,children:[(0,Qe.jsx)($n.ChevronLeft,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{children:"Previous"})]});Mi.displayName="PaginationPrevious";var Ii=({className:e,...t})=>(0,Qe.jsxs)(La,{"aria-label":"Yy $n next page",className:i("gap-1 pr-2.5",e),size:"default",...t,children:[(0,Qe.jsx)("span",{children:"Next"}),(0,Qe.jsx)($n.ChevronRight,{className:"h-4 w-4"})]});Ii.displayName="PaginationNext";var zr=({className:e,...t})=>(0,Qe.jsxs)("span",{"aria-hidden":!0,className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,Qe.jsx)($n.MoreHorizontal,{className:"h-4 w-4"}),(0,Qe.jsx)("span",{className:"sr-only",children:"More pages"})]});zr.displayName="PaginationEllipsis";var Ym=e=>{let t=(0,sd.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,l=o>1,n=o-1>1,c=o+1<r;return(0,Qe.jsx)("div",{className:i("my-12",a),children:(0,Qe.jsx)(Ti,{children:(0,Qe.jsxs)(Di,{children:[(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Mi,{disabled:!l,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),n&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(zr,{})}),l&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(La,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(La,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(zr,{})}),(0,Qe.jsx)(jt,{children:(0,Qe.jsx)(Ii,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Ai=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:"Qe-12 text-sm",children:"Power up your people"})]}),(0,Qe.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),zo=({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})})}),Oo=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)(Ai.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)(Ai.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 Qe-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)(J,{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,l=o&&Array.isArray(o)&&o.length>0,c=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],u=m=>{a(m)},d=()=>{a(m=>(m+1)%c.length)},p=()=>{a(m=>(m-1+c.length)%c.length)},f=(0,Zo.useCallback)(((m,y)=>{let w;return(..._)=>{clearTimeout(w),w=setTimeout(()=>m(..._),y)}})(m=>{m.deltaY>0?d():p()},300),[]),b=m=>{m.key==="ArrowDown"?d():m.key==="ArrowUp"&&p()};return(0,Zo.useEffect)(()=>(window.addEventListener("wheel",f),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",f),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:l&&c.map((m,y)=>(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===y?"bg-accent":"bg-gray-600"}`,onClick:()=>u(y),children:(0,Qe.jsx)("span",{className:"absolute An-7 left-full text-left transform -translate-y-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:m.blockName})},m.id))}),(0,Qe.jsx)(ao.AnimatePresence,{children:c.map((m,y)=>(0,Qe.jsx)("div",{id:`slide-${y}`,className:"print-section",children:(0,Qe.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
12
12
  ${y===t?"opacity-100":"opacity-0"}
13
- w-full h-full bg-cover bg-center`,children:y===0?(0,Je.jsx)(Oo,{hero:r,title:e.title,logoImage:s}):(0,Je.jsxs)(Je.Fragment,{children:[m.blockName&&(0,Je.jsx)(zo,{title:m.blockName}),(0,Je.jsx)(fa,{blocks:[m],fill:!0}),(0,Je.jsx)(bd,{logoImage:s})]})})},y))}),(0,Je.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,Je.jsx)(Jm,{})})]})},Jm=()=>(0,Je.jsx)(ao.AnimatePresence,{children:(0,Je.jsx)(ao.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:i("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Je.jsx)(ao.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:i("w-[12px] h-[12px] rounded-full","bg-accent")})})});var vd=h(require("next/link")),hd=h(require("next/image"));function xd({blogs:e,width:t=3}){return(0,Je.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,Je.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,Je.jsx)(vd.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,Je.jsxs)("div",{className:"relative size-full",children:[(0,Je.jsx)(hd.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,Je.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-$n-t from-card $n-transparrent flex flex-col justify-end",children:[(0,Je.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,Je.jsx)("h2",{className:"text-Je font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function wd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:n,dealsClosed:c,leadsGenerated:u}){return(0,Je.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,Je.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,Je.jsxs)("div",{className:"max-w-4xl",children:[(0,Je.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,Je.jsx)("h1",{className:"mt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,Je.jsx)("p",{className:"mt-6 text-balance text-Je/8 text-gray-700",children:a})]}),(0,Je.jsxs)("section",{className:"mt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-Je-8 lg:gap-y-16",children:[(0,Je.jsxs)("div",{className:"lg:pr-8",children:[(0,Je.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,Je.jsx)("p",{className:"mt-6 text-base/7 text-gray-600",children:r})]}),(0,Je.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 Je:mr-auto",children:(0,Je.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 Je:gap-8",children:s.map((d,p)=>(0,Je.jsx)("div",{className:"aspect-square overflow-hidden rounded-Je shadow-Je outline-1 -outline-offset-1 outline-black/10",children:(0,Je.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Je.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Je.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Je.jsx)("Je",{className:"mt-6 border-t border-gray-200"}),(0,Je.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Je-8 gap-y-4 sm:grid-cols-2",children:[(0,Je.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Je.jsx)("Je",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,Je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,Je.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,Je.jsx)("Je",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,Je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"Je"]})]}),(0,Je.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,Je.jsx)("Je",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,Je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"Je"]})]}),(0,Je.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,Je.jsx)("Je",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,Je.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[u,"Je"]})]})]})]})]})]})})}function Qm(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 ro=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)},Zm=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,Je.jsx)(Nd,{page:e,layout:t,logoImage:a}):(0,Je.jsx)(Cd,{page:e,layout:t,logoImage:a}),Nd=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=rs(e),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),l=(0,Zo.useRef)(new e0.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 p=document.createElement("style");return p.textContent=`@page { size: ${ro(d.offsetWidth)}mm ${ro(d.offsetHeight)}mm ; margin: 0mm; width: ${ro(d.offsetWidth)}mm }; .container : { max-width: ${ro(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=(0,Zo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${ro(d.offsetWidth)}mm ${ro(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Zo.useEffect)(()=>{l.current=new e0.Previewer},[c,t]);let u=[n,...o];return(0,Je.jsxs)("div",{children:[(0,Je.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,Je.jsxs)("div",{id:"printable-content",ref:r,children:[u.map((d,p)=>(0,Je.jsx)(Je.Fragment,{children:p===0?(0,Je.jsx)("section",{className:"title-page w-full h-full",children:(0,Je.jsx)(Oo,{hero:e.hero,title:e.title})},p):(0,Je.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Je.jsx)(zo,{title:d.blockName}),(0,Je.jsx)(fa,{blocks:[d],fill:!0})]},p)})),(0,Je.jsx)("section",{className:"normal-page",children:(0,Je.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
14
- dark bg-background text-primary`,children:[(0,Je.jsxs)("div",{className:"flex px-6 items-center space-Je-2",children:[a&&(0,Je.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,Je.jsx)("span",{className:"Je-12 text-sm",children:"Power up your people"})]}),(0,Je.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,Je.jsx)("div",{ref:s,className:"preview-container"})]})},Cd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=rs(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new e0.Previewer),[l,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(p=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new e0.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Je.jsxs)("div",{className:"pagedjs-container",children:[(0,Je.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:u.map((p,g)=>{var f,b;return(0,Je.jsx)(Je.Fragment,{children:g===0?(0,Je.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Je.jsx)(Oo,{hero:e.hero,title:e.title})},g):(0,Je.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${Qm("185mm")}px]`,((b=(f=p.theme)==null?void 0:f.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Je.jsx)(zo,{title:p.blockName}),(0,Je.jsx)(fa,{blocks:[p],fill:!0})]},g)})})}),(0,Je.jsx)("div",{ref:o,className:"preview-container"})]})};var Bi=h(require("clsx"));function ep({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...u}){let p=c?g=>(0,Je.jsx)(c,{...g}):l?({href:g,children:f,...b})=>(0,Je.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:f}):g=>(0,Je.jsx)("a",{...g});return(0,Je.jsxs)(ha,{...u,variant:"inset",children:[(0,Je.jsx)(xa,{children:(0,Je.jsx)(_e,{children:(0,Je.jsx)(Re,{children:n?(0,Je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Je.jsx)(le,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,Je.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Je.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,Je.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,Je.jsxs)(Zt,{children:[(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Je.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Je.jsxs)(Zt,{children:[e&&!n&&e.map((g,f)=>(0,Je.jsx)(tp,{subNav:g,pathName:r,Link:p},f)),(0,Je.jsx)(Qe,{className:"mt-auto",children:(0,Je.jsx)(pt,{children:(0,Je.jsx)(_e,{children:t&&!n&&t.map(g=>(0,Je.jsx)(Re,{children:(0,Je.jsx)(Ze,{asChild:!0,size:"sm",children:(0,Je.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,Je.jsx)(g.icon,{}),(0,Je.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,Je.jsx)(wa,{})]})}function tp({subNav:e,pathName:t,Link:a}){var s,l;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Je.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsx)(Qe,{className:"py-0",children:(0,Je.jsx)(_e,{children:(0,Je.jsx)(It,{asChild:!0,defaultOpen:o.isActive,children:(0,Je.jsxs)(Re,{children:[(0,Je.jsx)(Ze,{asChild:!0,tooltip:o.label,className:(0,Bi.default)(r&&"font-bold text-accent"),children:(0,Je.jsxs)(a,{href:o.url,children:[o.icon&&(0,Je.jsx)(o.icon,{}),(0,Je.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(Kt,{asChild:!0,children:(0,Je.jsxs)(xo,{className:"data-[state=open]:rotate-90",children:[(0,Je.jsx)($n.ChevronRight,{}),(0,Je.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Je.jsx)(Jt,{children:(0,Je.jsx)(ea,{children:(l=o.links)==null?void 0:l.map(n=>(0,Je.jsx)(ta,{children:(0,Je.jsx)(aa,{asChild:!0,className:(0,Bi.default)(n.url===t&&"font-bold text-accent"),children:(0,Je.jsx)(a,{href:n.url,children:(0,Je.jsx)("span",{children:n.label})})})},n.label))})})]}):null]})},o.label)})})})}var kd=h(require("clsx"));var ap=()=>(0,Je.jsx)(Se,{iconName:"github",size:"10x"});function op({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:u,LinkComponent:d,...p}){let b=d?m=>(0,Je.jsx)(d,{...m}):u?({item:m,children:y,...w})=>(0,Je.jsx)("button",{onClick:()=>u&&u(m),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...w,children:y}):m=>(0,Je.jsx)("a",{href:m.href,...m});return(0,Je.jsxs)(ha,{side:"right",variant:"inset",...p,children:[(0,Je.jsxs)(xa,{className:"border-b border-sidebar-border",children:[(0,Je.jsxs)(_e,{className:"flex-row space-Je-1",children:[(0,Je.jsx)(Re,{children:(0,Je.jsxs)(Ze,{onClick:s,children:[(0,Je.jsx)($n.FilePlus,{})," ",(0,Je.jsx)("span",{children:"Add Document"})]})}),c&&(0,Je.jsx)(Re,{children:(0,Je.jsx)(Ze,{onClick:c,tooltip:"Open in GitHub",children:(0,Je.jsx)(ap,{})})})]}),(0,Je.jsxs)(_e,{className:"flex-row space-Je-1",children:[(0,Je.jsx)(Re,{className:"w-5/12",children:(0,Je.jsxs)(Ze,{onClick:()=>l(),variant:r?"outline":"default",className:(0,kd.default)(r&&"text-accent"),children:[(0,Je.jsx)($n.Edit,{})," ",(0,Je.jsx)("span",{children:"Edit"})]})}),(0,Je.jsx)(Re,{className:"w-5/12",children:(0,Je.jsxs)(Ze,{onClick:n,children:[(0,Je.jsx)($n.Printer,{})," ",(0,Je.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Bt,{asChild:!0,children:(0,Je.jsxs)(Kt,{children:["Editor Controls",(0,Je.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Je.jsx)(pt,{children:(0,Je.jsx)(Jt,{children:a})})]})}),(0,Je.jsx)(ho,{className:"mx-0"})]}),(0,Je.jsxs)(Zt,{className:"overflow-auto",children:[o&&(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Bt,{children:"Related Content"}),(0,Je.jsx)(pt,{children:(0,Je.jsx)(_e,{children:Array.from({length:3}).map((m,y)=>(0,Je.jsx)(Re,{children:(0,Je.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Bt,{children:"Table of Contents"}),(0,Je.jsx)(pt,{children:(0,Je.jsx)(_e,{children:Array.from({length:3}).map((m,y)=>(0,Je.jsx)(Re,{children:(0,Je.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Je.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Bt,{asChild:!0,children:(0,Je.jsxs)(Kt,{children:["Related Content",(0,Je.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Je.jsx)(pt,{children:(0,Je.jsx)(Jt,{children:(0,Je.jsx)(_e,{children:e&&Object.keys(e).map(m=>(0,Je.jsxs)(Re,{children:[(0,Je.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",m.charAt(0).toUpperCase()+m.slice(1)]}),m&&e[m]&&(0,Je.jsx)(ea,{children:e[m].map(y=>(0,Je.jsx)(ta,{children:(0,Je.jsx)(aa,{asChild:!0,isActive:!1,size:"sm",children:(0,Je.jsxs)(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,Je.jsx)("span",{children:y.label}),y.type==="note"&&(0,Je.jsx)($n.PencilLine,{className:"An-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,Je.jsx)(Se,{iconName:"code-pull-request-draft",className:"An-2 text-gray-400 !important"})]})})},y.label))})]},m))})})})]})}),t&&!o&&(0,Je.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Je.jsxs)(Qe,{children:[(0,Je.jsx)(Bt,{asChild:!0,children:(0,Je.jsxs)(Kt,{children:["Table of Contents",(0,Je.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Je.jsx)(pt,{children:(0,Je.jsx)(Jt,{children:(0,Je.jsx)(_e,{children:t.map(m=>{var y;return(0,Je.jsxs)(Re,{children:[(0,Je.jsx)(Ze,{asChild:!0,children:(0,Je.jsx)("a",{href:`#${m.url}`,className:"text-xs",children:m.title})}),(y=m.items)!=null&&y.length?(0,Je.jsx)(ea,{children:m.items.map(w=>(0,Je.jsx)(ta,{children:(0,Je.jsx)(aa,{asChild:!0,isActive:w.isActive,size:"sm",children:(0,Je.jsx)("a",{href:`#${w.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Je.jsx)("span",{children:w.title})})})},w.title))}):null]},m.title)})})})})]})})]}),(0,Je.jsx)(wa,{})]})}var Sd=h(require("next/image"));function rp({title:e,members:t}){return(0,Je.jsx)(Ce,{className:"mb-6",children:(0,Je.jsxs)("div",{className:"p-6",children:[(0,Je.jsxs)("div",{className:"flex items-center mb-4",children:[(0,Je.jsx)($n.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Je.jsx)("h2",{className:"text-Je font-semibold text-foreground",children:e})]}),(0,Je.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,Je.jsxs)("div",{className:"flex items-center space-Je-4",children:[(0,Je.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,Je.jsx)(Sd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Je.jsxs)("div",{children:[(0,Je.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Je.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Td=h(require("next/link"));var sp=({links:e,title:t="Related Content"})=>(0,Je.jsxs)(Ce,{children:[(0,Je.jsx)(Ge,{children:(0,Je.jsx)($e,{className:"text-accent",children:t})}),(0,Je.jsx)(Te,{children:(0,Je.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Je.jsxs)(Td.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Je.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},o))})})]});var Li=i("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function ip({pages:e}){let t=(0,nd.useSearchParams)(),a=(0,nd.usePathname)(),{replace:o}=(0,nd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&n(g=>({start:g.start+1,end:g.end+1}))};function u(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,Je.jsx)("div",{className:"mt-12",children:(0,Je.jsxs)("$n",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,Je.jsx)("li",{children:(0,Je.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Je.jsx)(Pl.FaArrowLeft,{})})}),d.map((p,g)=>(0,Je.jsx)("li",{children:(0,Je.jsx)("a",{className:i(Li,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),u(p.toString())},children:p})},g)),l.end<r&&(0,Je.jsx)("li",{children:(0,Je.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Je.jsx)(Pl.FaArrowRight,{})})})]})})}var E0=i("transition-colors duration-400 hover:text-primary ease-in-out");function np({title:e,links:t}){let a=(0,nd.useSearchParams)(),o=(0,nd.usePathname)(),{replace:r}=(0,nd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Je.jsxs)(Ce,{children:[(0,Je.jsx)(Ge,{children:(0,Je.jsx)($e,{className:"text-accent",children:e&&e})}),(0,Je.jsx)(Te,{children:t&&t.length>0&&(0,Je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Je.jsx)("$n",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,Je.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,Je.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},n))})})})]})}function lp({types:e}){let[t,a]=(0,Zo.useState)(e&&e[0].href),o=(0,nd.useSearchParams)(),r=(0,nd.usePathname)(),{replace:s}=(0,nd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,Je.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-Je-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,Je.jsx)(D,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Bd=h(require("next/image"));var Hi=({links:e,media:t,children:a,richText:o})=>(0,Je.jsx)("div",{children:(0,Je.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,Je.jsxs)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-center",children:[a||o&&(0,Je.jsx)(Q,{className:"max-w-none mb-6 An-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Je.jsx)("$n",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,Je.jsx)("li",{children:(0,Je.jsx)(yt,{...r})},s))})]}),(0,Je.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,Je.jsx)(_t,{fill:!0,imgClassName:"z-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,Je.jsx)("div",{children:(0,Je.jsx)(Bd.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Je.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Je.jsx)(dp,{})]})}),dp=()=>(0,Je.jsx)("div",{className:"w-full h-[1240px] z-10",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Je.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var Fi=h(require("next/image"));var cp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Je.jsx)(Fi.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,Je.jsx)("div",{children:(0,Je.jsx)(Fi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},zi=({links:e,media:t,children:a,richText:o})=>(0,Je.jsxs)("div",{className:"relative bg-brand-one pb-12 mt-20 pt-10",children:[t&&(0,Je.jsx)(cp,{media:t}),(0,Je.jsx)("div",{className:"mx-0 min-w-full relative z-9",children:(0,Je.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,Je.jsx)(Q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Oi=({children:e,richText:t})=>(0,Je.jsx)("div",{className:"min-w-full py-10 bg-muted mt-24",children:(0,Je.jsx)("div",{className:"container",children:e||t&&(0,Je.jsx)(Q,{content:t,enableGutter:!1})})});var Ed=h(require("react")),Hd=h(require("next/image"));var Ld=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var mp=({post:e})=>{var l;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,Je.jsxs)("div",{className:"relative grid pt-24",children:[(0,Je.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,Je.jsxs)("div",{className:"container mx-auto",children:[(0,Je.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,Je.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,Je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Je.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,Je.jsx)("p",{children:o.map((n,c)=>(0,Je.jsxs)(Ed.default.Fragment,{children:[n.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,Je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Je.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,Je.jsx)("time",{dateTime:r,children:Ld(r)})]}),t&&t.length>0&&(0,Je.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,Je.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,Je.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,c)=>typeof n=="object"&&n!==null&&(0,Je.jsx)(at,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||c))})]})]})]})}),(0,Je.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,Je.jsx)(Hd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Je.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-$n-t from-background dark:from-black $n-transparent"})]})]})};var Gr=require("@heroicons/react/20/solid");var Gi=h(require("next/image"));function _i({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"nd-padding",o);return(0,Je.jsx)("div",{className:r,children:e})}var zd=require("next-themes");function pp({children:e,...t}){return(0,Je.jsx)(zd.ThemeProvider,{...t,children:e})}var Go=({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,Je.jsx)("div",{className:"w-full h-[1240px] z-20",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Je.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Je.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,Je.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,Je.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Je.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,Je.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,Je.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-start block overflow-hidden bg-white",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,Je.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,Je.jsx)("div",{className:"w-full aspect-[1920/332] z-20 content-end block overflow-hidden",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,Je.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,Je.jsx)("div",{className:"w-full aspect-[1920/332] z-20 relative -bottom-[1px]",children:(0,Je.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,Je.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},up=({className:e})=>(0,Je.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,Je.jsx)("defs",{children:(0,Je.jsxs)("mask",{id:"mask",children:[(0,Je.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,Je.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,Je.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var $i=({title:e,image:t})=>(0,Je.jsx)("div",{children:(0,Je.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,Je.jsx)("div",{className:"fixed inset-0 container mt-24 mb-8 z-10 flex items-start justify-start",children:(0,Je.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,Je.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,Je.jsx)(Gi.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,Je.jsx)("div",{children:(0,Je.jsx)(Gi.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Je.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Je.jsx)(Go,{className:"text-black z-10",position:"header"})]})});var fp={highImpact:Hi,lowImpact:Oi,mediumImpact:zi,sectionHero:$i},gp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=fp[t];return a?(0,Je.jsx)(a,{...e}):null};function bp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,Je.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,Je.jsxs)("ol",{role:"list",className:"flex items-center space-Je-4",children:[(0,Je.jsx)("li",{children:(0,Je.jsx)("div",{children:(0,Je.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,Je.jsx)(Gr.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,Je.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,Je.jsx)("li",{children:(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(Gr.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Je.jsx)("a",{href:a.href,className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Je.jsx)("div",{className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Je.jsx)(Je.Fragment,{})}var qe=require("@headlessui/react"),Ur=require("@heroicons/react/24/outline");var yp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,Je.jsx)("a",{href:o,className:"flex items-center gap-Je-1 text-sm text-foreground group",children:(0,Je.jsxs)("span",{className:"relative",children:[e,(0,Je.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Je-1/2 scale-Je-0 transition-transform duration-300 ease-in-out group-hover:scale-Je-100"})]})}):(0,Je.jsxs)(qe.Popover,{children:[(0,Je.jsxs)(qe.PopoverButton,{className:"flex items-center gap-Je-1 text-sm/6 text-foreground outline-none group",children:[(0,Je.jsxs)("span",{className:"relative",children:[e,(0,Je.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-Je-1/2 scale-Je-0 transition-transform duration-300 ease-in-out group-hover:scale-Je-100"})]}),(0,Je.jsx)(Gr.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Je.jsxs)(qe.PopoverPanel,{transition:!0,className:"absolute inset-Je-0 top-0 -z-10 bg-popover mt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,Je.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-Je-4 px-6 py-10 lg:px-8 Je:gap-Je-8 z-50",children:t&&t.map(r=>(0,Je.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,Je.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,Je.jsx)(_d,{icon:r.icon,size:"4x"})}),(0,Je.jsxs)("a",{href:r.href,className:"mt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,Je.jsx)("span",{className:"absolute inset-0"})]}),(0,Je.jsx)("p",{className:"mt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,Je.jsx)("div",{className:"bg-gray-50",children:(0,Je.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,Je.jsx)("div",{className:"grid grid-cols-3 divide-Je divide-gray-900/5 border-Je border-gray-900/5",children:a.map(r=>(0,Je.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-Je-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,Je.jsx)(_d,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),_d=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Je.jsx)(Se,{...e,size:a});if("src"in e)return(0,Je.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,Je.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},$r=yp;var Vr=["light","dark","green"];function vp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Zo.useState)(!1),[s,l]=(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],[p,g]=(0,Zo.useState)(`${u}.${d}`),f=m=>{Vr.includes(m)?g(m==="light"?`${u}.${d}`:`${u}-${m}.${d}`):g(`${u}.${d}`)};(0,Zo.useEffect)(()=>{let m=localStorage.getItem("theme")||"light";c(m),document.documentElement.setAttribute("class",m),f(m)},[]);let b=()=>{let m=Vr[(Vr.indexOf(n)+1)%Vr.length];c(m),document.documentElement.setAttribute("class",m),localStorage.setItem("theme",m),f(m)};return(0,Je.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Je.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Je.jsx)("div",{className:"flex lg:flex-1",children:(0,Je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:e}),(0,Je.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,Je.jsx)("div",{className:"flex lg:hidden",children:(0,Je.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Je.jsx)(Ur.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Je.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Je-12",children:a.map(m=>(0,Je.jsx)($r,{...m},m.name))}),(0,Je.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,Je.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,Je.jsx)($o.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,Je.jsx)($o.MoonIcon,{className:"h-6 w-6"}):(0,Je.jsx)($o.SunIcon,{className:"h-6 w-6"})})})]}),(0,Je.jsxs)(qe.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,Je.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Je.jsxs)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,Je.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,Je.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Je.jsx)(Ur.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Je.jsx)("div",{className:"mt-6 flow-root",children:(0,Je.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Je.jsx)("div",{className:"space-y-2 py-6",children:a.map(m=>(0,Je.jsx)(hp,{...m},m.name))})})})]})]})]})}function hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Je.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,Je.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Je.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Je-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Je.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Je.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Je-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function xp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,Je.jsx)("div",{children:(0,Je.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,Je.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full z-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,Je.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,Je.jsx)("div",{className:"fixed inset-0 h-full z-10 flex flex-col items-start justify-center text-white px-4",children:(0,Je.jsx)(_i,{children:(0,Je.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 z-0 md:mb-0",children:[(0,Je.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,Je.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,Je.jsx)(Go,{className:"text-black z-10",position:"header"})]})})}var Vi=h(require("next/image"));function ga({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Je.jsxs)(ot,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,Je.jsx)(Vi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,Je.jsx)(Vi.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 Ui({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,Zo.useState)(!1),[c,u]=(0,Zo.useState)(""),d=["light","dark"],{theme:p,setTheme:g}=(0,$d.useTheme)();(0,Zo.useEffect)(()=>{u(p||"dark")},[p]);let f=()=>{let b=d[(d.indexOf(c)+1)%d.length];u(b),g(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,Je.jsx)(Je.Fragment,{children:(0,Je.jsx)("header",{className:`z-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,Je.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,Je.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Je.jsx)(ga,{logoDark:a,logoLight:t}),(0,Je.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Je-12",children:o&&o.map(b=>(0,Je.jsx)($r,{...b},b.name))}),r&&(0,Je.jsx)("button",{className:"fixed right-4 z-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:f,children:(0,Je.jsxs)("div",{className:"relative",children:[(0,Je.jsx)($n.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Je.jsx)($n.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Wi=["light","dark"];function ji({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:l,setTheme:n}=(0,zd.useTheme)(),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Zo.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=Wi[(Wi.indexOf(d)+1)%Wi.length];p(f),n(f)};return(0,Je.jsx)(Je.Fragment,{children:(0,Je.jsxs)("header",{className:`z-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Je.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,Je.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&Je.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,Je.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Je.jsx)("div",{className:"flex items-center space-Je-4",children:(0,Je.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,Je.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,Je.jsx)(Ur.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Je.jsxs)(qe.Dialog,{open:c,onClose:u,className:"lg:hidden",children:[(0,Je.jsx)("div",{className:"fixed inset-0 z-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,Je.jsxs)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,Je.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,Je.jsx)(ga,{logoDark:t,logoLight:e,mobile:!0}),(0,Je.jsxs)("button",{type:"button",onClick:()=>u(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,Je.jsx)(Ur.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,Je.jsx)("div",{className:"mt-6 flow-root",children:(0,Je.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,Je.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,Je.jsx)(wp,{...f},f.name))})})})]})]})]})})}function wp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,Je.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,Je.jsxs)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Je.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Je-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Je.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Je.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Je-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Fv=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Wd=i("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Xi=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Yi=i("flex items-center text-white gap-3"),Xr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Np({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,Je.jsxs)("footer",{className:i("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,Je.jsx)("div",{className:"py-16 md:py-20",children:(0,Je.jsx)("div",{className:"container",children:(0,Je.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 Je:grid-cols-3",children:[(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,Je.jsx)(ga,{logoDark:o,logoLight:a}),(0,Je.jsx)("p",{className:"mb-7 mt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,Je.jsx)("nav",{"aria-label":"social links",children:(0,Je.jsx)("$n",{className:"inline-flex Je-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((u,d)=>(0,Je.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Je.jsx)(ot,{"aria-label":u.href,className:"text-2xl",href:u.href,openNewTab:!0,children:(0,Je.jsx)("span",{children:u.icon})})},d))})})]}),(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,Je.jsx)("h3",{className:Wd,children:s.title}),s.links&&s.links.length>0&&(0,Je.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Je.jsx)("$n",{className:"grid Je-0 gap-2",children:s.links.map(u=>(0,Je.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,Je.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,Je.jsx)(Pl.FaChevronRight,{})}),(0,Je.jsx)(ot,{href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})]},u.label))})})]}),(0,Je.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Je.jsx)("h3",{className:Wd,children:l.title}),(0,Je.jsxs)("$n",{"aria-label":"addresses",className:"grid gap-2 Je-0",children:[(0,Je.jsxs)("li",{className:Yi,children:[(0,Je.jsx)("span",{className:Xi,children:(0,Je.jsx)(Pl.FaPaperPlane,{})}),(0,Je.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Je.jsxs)("li",{className:Yi,children:[(0,Je.jsx)("span",{className:Xi,children:(0,Je.jsx)(Pl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Je.jsx)("div",{className:"grid gap-1",children:l.mails.map((u,d)=>(0,Je.jsx)("a",{href:`mailto:${u}`,className:Xr,children:u},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Je.jsxs)("li",{className:Yi,children:[(0,Je.jsx)("span",{className:Xi,children:(0,Je.jsx)(Pl.FaPhone,{})}),(0,Je.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((u,d)=>(0,Je.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:Xr,children:u},d))})]})]})]})]})})}),(0,Je.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,Je.jsx)("div",{className:"container",children:(0,Je.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-Je-8 gap-y-4 md:gap-Je-10",children:[(0,Je.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,Je.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Je.jsx)("$n",{className:"flex flex-wrap items-center gap-Je-4 md:gap-Je-7",children:n.links.map(u=>(0,Je.jsx)("li",{children:(0,Je.jsx)(ot,{"aria-label":`Go $n page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})},u.label))})})]})})})]})}function Cp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Je.jsxs)("div",{className:i("fixed top-0 left-0 right-0 z-50",r),children:[(0,Je.jsx)(Ui,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Je.jsx)(ji,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function qi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,nd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(g=>g!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])},u=async()=>{let d=await a(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])};return(0,Je.jsxs)("div",{className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Je.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,Je.jsxs)("div",{className:"space-Je-2",children:[(0,Je.jsx)(D,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Je.jsx)(D,{onClick:u,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,Je.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,Je.jsxs)("$n",{className:"divide-y divide-gray-200",children:[(0,Je.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(bt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,Je.jsx)("label",{htmlFor:"select-all",className:"An-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,Je.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,Je.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,Je.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsx)(bt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,Je.jsxs)("div",{className:"An-3 flex items-center",children:[(0,Je.jsxs)(Ht,{className:"h-10 w-10",children:[(0,Je.jsx)(Ft,{src:d.userImage,alt:d.userName}),(0,Je.jsx)(zt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Je.jsx)("div",{className:"An-3",children:(0,Je.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.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,Je.jsx)(at,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Je.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ki=require("date-fns");var Yd=[{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=Yd.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},qd=(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},Kd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Pp=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Je.jsx)("div",{className:"flex space-Je-2",children:e.map((r,s)=>(0,Je.jsx)(D,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Qi({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Zo.useState)(new Date),[r,s]=(0,Zo.useState)(new Date),[l,n]=(0,Zo.useState)("Full Day"),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)(1),g=(0,nd.useRouter)();(0,Zo.useEffect)(()=>{let m=Kd(a,r);u(m),m&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){p(0);return}let m=qd(a,r,l!=="Full Day");p(m)},[a,r,l]);let f=m=>{n(m)};return(0,Je.jsxs)("div",{className:"max-w-2xl",children:[(0,Je.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Je.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Je.jsxs)("form",{onSubmit:async m=>{if(m.preventDefault(),!a||!r){mi.toast.error("Please select both start and end dates");return}if(d>e){mi.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",l),y.append("duration",d.toString());let w=await(t||kp)(y);w.success?(mi.toast.success(w.message),o(void 0),s(void 0),n("Full Day"),g.refresh()):mi.toast.error(`Error: ${w.message}`)},className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Je.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Je.jsx)(ae,{htmlFor:"startDate",children:"Start Date"}),(0,Je.jsxs)(To,{children:[(0,Je.jsx)(Do,{asChild:!0,children:(0,Je.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Je.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Ki.format)(a,"PPP"):(0,Je.jsx)("span",{children:"Pick a date"})]})}),(0,Je.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Je.jsx)(Ao,{mode:"single",selected:a,onSelect:m=>{o(m),m&&(!r||m>r)&&s(m)},initialFocus:!0})})]})]}),(0,Je.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Je.jsx)(ae,{htmlFor:"endDate",children:"End Date"}),(0,Je.jsxs)(To,{children:[(0,Je.jsx)(Do,{asChild:!0,children:(0,Je.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Je.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ki.format)(r,"PPP"):(0,Je.jsx)("span",{children:"Pick a date"})]})}),(0,Je.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Je.jsx)(Ao,{mode:"single",selected:r,onSelect:s,disabled:m=>a?m<a:!1,initialFocus:!0})})]})]})]}),(0,Je.jsxs)("div",{className:"space-y-2",children:[(0,Je.jsx)(ae,{children:"Leave Type"}),(0,Je.jsx)(Pp,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,c,c]})]}),(0,Je.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Je.jsx)(D,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Je.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var kp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function Qd(...e){return e.filter(Boolean).join(" ")}function Zi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=u=>u.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,Je.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,Je.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,Je.jsxs)("div",{className:"sm:flex-auto",children:[(0,Je.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,Je.jsx)("p",{className:"mt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,Je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Je.jsxs)(D,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Je.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Je.jsx)(D,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,Je.jsxs)(D,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Je.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,Je.jsx)("div",{className:"mt-8 flow-root",children:(0,Je.jsx)("div",{className:"-mx-4 -my-2 overflow-Je-auto sm:-mx-6 lg:-mx-8",children:(0,Je.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,Je.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,Je.jsx)("thead",{className:"sticky top-0 z-20 bg-white",children:(0,Je.jsxs)("tr",{children:[(0,Je.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 Je-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Je-6 lg:Je-8",children:"Employee"}),[...Array(r)].map((u,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Je.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(p)?"bg-gray-200":""}`,children:[(0,Je.jsx)("div",{children:c(p)}),(0,Je.jsx)("div",{children:d+1})]},d)})]})}),(0,Je.jsx)("tbody",{children:o.map((u,d)=>(0,Je.jsxs)("tr",{children:[(0,Je.jsx)("td",{className:Qd(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Je-4 pr-3 text-sm font-medium text-gray-900 sm:Je-6 lg:Je-8"),children:(0,Je.jsxs)("div",{className:"flex items-center",children:[(0,Je.jsxs)(Ht,{className:"h-11 w-11",children:[(0,Je.jsx)(Ft,{src:u.image,alt:u.name}),(0,Je.jsx)(zt,{children:u.name.split(" ").map(p=>p[0]).join("")})]}),(0,Je.jsx)("div",{className:"An-4",children:(0,Je.jsx)("div",{className:"font-medium text-accent",children:u.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),b=a.find(m=>m.userId===u.id&&new Date(m.startDate)<=f&&new Date(m.endDate)>=f);return(0,Je.jsx)("td",{className:Qd(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Wo(f)?"bg-gray-200":""),children:(0,Je.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,Je.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${u.id}-${g}`)})]},u.id))})]})})})})]})}function en({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Zo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),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,Je.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,Je.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,Je.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,Je.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,Je.jsx)("div",{className:"flex items-center",children:(0,Je.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,Je.jsxs)(D,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,Je.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Je.jsx)(D,{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 md:block",children:"Today"}),(0,Je.jsxs)(D,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,Je.jsx)("span",{className:"sr-only",children:"Next month"}),(0,Je.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,Je.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Je"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Je"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["Je",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Je.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Je.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,Je.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,Je.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:l.map(d=>(0,Je.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,Je.jsx)("time",{dateTime:d.date.toISOString(),className:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Je.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(p=>(0,Je.jsx)("li",{children:(0,Je.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Je.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Je.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Je.jsx)("time",{dateTime:d.date.toISOString(),className:i("An-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,Je.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,Je.jsx)("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:d.holidays.map(p=>(0,Je.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var ya=require("lucide-react");function ec(...e){return e.filter(Boolean).join(" ")}function Rp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,u]=(0,Zo.useState)("Calendar View"),d=(0,nd.useRouter)(),p=!1,g=(0,Ki.parseISO)(a),f=async m=>{let y=(0,Ki.format)(m,"dd-MM-yyyy"),w=new URL(window.location.href);return w.searchParams.set("date",y),d.push(w.toString()),{success:!0}};if(p)return(0,Je.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Je.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ya.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ya.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ya.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ya.CheckSquare,current:c==="Approve Leave"}];return(0,Je.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,Je.jsxs)("div",{className:"mb-8",children:[(0,Je.jsxs)("div",{className:"sm:hidden",children:[(0,Je.jsx)("select",{value:c,onChange:m=>u(m.target.value),className:"block w-full rounded-md border-gray-300 py-2 Je-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(m=>(0,Je.jsx)("option",{children:m.name},m.name))}),(0,Je.jsx)($n.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,Je.jsx)("div",{className:"hidden sm:block",children:(0,Je.jsx)("div",{className:"border-b border-gray-200",children:(0,Je.jsx)("nav",{className:"-mb-px flex space-Je-8","aria-label":"Tabs",children:b.map(m=>(0,Je.jsxs)("a",{onClick:()=>{(m.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(m.name)},className:ec(m.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",m.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":m.current?"page":void 0,children:[(0,Je.jsx)(m.icon,{className:ec(m.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-An-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Je.jsx)("span",{children:m.name})]},m.name))})})})]}),c==="Grid View"&&(0,Je.jsx)(Zi,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,Je.jsx)(en,{currentDate:g,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,Je.jsx)(Qi,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:m=>s?s(m):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Je.jsx)(qi,{leaveRequests:o,onApprove:m=>l?l(m):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:m=>n?n(m):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function tn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){var ze,Pt,S,z,ct;let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Zo.useState)(""),[p,g]=(0,Zo.useState)(!1),[f,b]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let m=async()=>{try{let N=await s(n);N.success?(g(!1),b(null)):console.error("Failed $n save deal:",N.errors)}catch(N){console.error("Failed $n save deal:",N)}},y=(N,$)=>{c(j=>({...j,[N]:$}))},w=N=>{let $=(n.categories||[]).includes(N)?(n.categories||[]).filter(j=>j!==N):[...n.categories||[],N];y("categories",$)},G=async()=>{if(u.trim()){let N={text:u,timestamp:new Date().toISOString()};try{let $=await l(N);if(!$.success){console.error("Failed $n add comment:",$.errors);return}}catch($){console.error("Failed $n add comment:",$)}c($=>({...$,comments:[...$.comments||[],N]})),d("")}},ee=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},fe=N=>t==null?void 0:t.find($=>$.id===Number(N));return(0,Je.jsx)(tt,{open:!0,children:(0,Je.jsxs)(Xe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,Je.jsxs)(ft,{className:"flex flex-row items-center justify-between",children:[(0,Je.jsx)(gt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,Je.jsxs)("div",{className:"flex space-Je-2",children:[(0,Je.jsx)(D,{variant:"outline",onClick:r,children:"Close"}),(0,Je.jsxs)(D,{onClick:m,disabled:!p,children:[(0,Je.jsx)($n.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Je.jsxs)(sa,{className:"flex-grow pr-4",children:[(0,Je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Je.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,Je.jsx)(Oe,{type:"number",value:n.value,onChange:N=>y("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Je.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(ze=n.value)==null?void 0:ze.toLocaleString()]})}),(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,Je.jsxs)(Ra,{value:((S=(Pt=n==null?void 0:n.assignee)==null?void 0:Pt.id)==null?void 0:S.toString())||"",onValueChange:N=>y("assignee",fe(N)),children:[(0,Je.jsx)(la,{children:(0,Je.jsx)(Sa,{placeholder:"Select assignee"})}),(0,Je.jsx)(da,{children:t&&t.map(N=>{var $;return(0,Je.jsx)(ca,{value:(($=N==null?void 0:N.id)==null?void 0:$.toString())||"",children:N.name},N.id)})})]}):(0,Je.jsxs)("div",{className:"flex items-center space-Je-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("assignee"),children:[(0,Je.jsx)($n.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,Je.jsx)("span",{children:n.assignee.name})]})]}),(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,Je.jsx)(Oe,{type:"date",value:(ct=(z=n.closureDate)==null?void 0:z.split("Je")[0])!=null?ct:"",onChange:N=>y("closureDate",N.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Je.jsxs)("div",{className:"flex items-center space-Je-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Je.jsx)($n.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Je.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/Je"})]})]})]}),(0,Je.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,Je.jsx)(ma,{value:n.description||"",onChange:N=>y("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children:n.description})]})}),(0,Je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,Je.jsxs)(Ra,{value:n.status,onValueChange:N=>{y("status",N),b(null)},children:[(0,Je.jsx)(la,{children:(0,Je.jsx)(Sa,{placeholder:"Select status"})}),(0,Je.jsx)(da,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,Je.jsx)(ca,{value:N,children:N},N))})]}):(0,Je.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("status"),children:n.status})]}),(0,Je.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,Je.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,Je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(N=>{var $,j;return(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsx)(bt,{id:(($=N.id)==null?void 0:$.toString())||"",checked:(n.categories||[]).some(jo=>jo.id===N.id),onCheckedChange:()=>N.id!==void 0&&w(N)}),(0,Je.jsx)("label",{htmlFor:((j=N.id)!=null?j:"").toString(),className:`text-sm font-medium ${ee(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id)})}):(0,Je.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("categories"),children:n.categories&&n.categories.map(N=>{let $=N;return $?(0,Je.jsx)(at,{variant:"secondary",className:ee($.type||"sector"),children:$.name},$.id):null})})]})]}),(0,Je.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,Je.jsxs)("div",{className:"grid gap-2",children:[(0,Je.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Je.jsx)(sa,{className:"h-[200px] overflow-y-auto",children:(0,Je.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((N,$)=>new Date($.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var $;return(0,Je.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Je.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,Je.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[($=N==null?void 0:N.author)==null?void 0:$.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,Je.jsxs)("div",{className:"flex mt-2",children:[(0,Je.jsx)(Oe,{value:u,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Je.jsxs)(D,{onClick:G,className:"An-2",children:[(0,Je.jsx)($n.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,Je.jsxs)("div",{className:"text-xs text-gray-500 mt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function an({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,Je.jsxs)(Ce,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Je.jsxs)(Ge,{className:"pb-2",children:[(0,Je.jsx)("div",{className:"flex justify-between items-center",children:(0,Je.jsx)($e,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,Je.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:e.description})]}),(0,Je.jsxs)(Te,{children:[(0,Je.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,Je.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,Je.jsx)($n.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,Je.jsx)("span",{children:e.assignee.name})]}),(0,Je.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,Je.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,Je.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,Je.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Je.jsx)($n.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,Je.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,Je.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,Je.jsx)(at,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var Qr=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function on({onSubmit:e}){var r;let[t,a]=(0,Zo.useState)({name:"",intro:"",active:!0});return(0,Je.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,Je.jsxs)("div",{className:"space-y-2",children:[(0,Je.jsx)(ae,{htmlFor:"customerName",children:"Customer Name"}),(0,Je.jsx)(Oe,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,Je.jsxs)("div",{className:"space-y-2",children:[(0,Je.jsx)(ae,{htmlFor:"customerIntro",children:"Intro"}),(0,Je.jsx)(ma,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsx)(bt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,Je.jsx)(ae,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Je.jsx)(D,{type:"submit",className:"w-full",children:"Add Customer"})]})}function rn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){var ee,fe,ze,Pt;let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Je")[0],closureDate:"",comments:[],description:""}),[u,d]=(0,Zo.useState)(!1),[p,g]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let S={};return n.customer||(S.customer="Customer is required"),n.value||(S.value="Value is required"),n.assignee||(S.assignee="Assignee is required"),n.closureDate||(S.closureDate="Closure Date is required"),g(S),Object.keys(S).length===0},b=async S=>{S.preventDefault(),g({});try{if(f()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):g(z.errors||{})}}catch{g({submit:"An error occurred while submitting the form."})}},m=S=>{c(z=>({...z,categories:(z.categories||[]).includes(S.id)?(z.categories||[]).filter(ct=>ct!==S.id):[...z.categories||[],S.id]}))},y=async S=>{c({...n,customer:S});try{let z=await s(S);z.success?d(!1):g(z.errors||{})}catch{g({submit:"An error occurred while submitting the form."})}},w=S=>t==null?void 0:t.find(z=>z.id===Number(S)),G=S=>e==null?void 0:e.find(z=>z.id===Number(S));return(0,Je.jsxs)(Je.Fragment,{children:[(0,Je.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,Je.jsx)(sa,{className:"h-[60vh] pr-4",children:(0,Je.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Je.jsxs)("div",{className:"space-y-2 space-Je-2",children:[(0,Je.jsx)(ae,{htmlFor:"customer",children:"Customer"}),(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsxs)(Ra,{value:(fe=(ee=n.customer)==null?void 0:ee.id)==null?void 0:fe.toString(),onValueChange:S=>c({...n,customer:G(S)}),children:[(0,Je.jsx)(la,{children:(0,Je.jsx)(Sa,{placeholder:"Select customer"})}),(0,Je.jsx)(da,{children:e.map(S=>{var z;return(0,Je.jsx)(ca,{value:((z=S.id)==null?void 0:z.toString())||"",children:S.name},S.id)})})]}),(0,Je.jsx)(D,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Je.jsx)($n.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Je.jsxs)("div",{className:"space-y-2 space-Je-2",children:[(0,Je.jsx)(ae,{htmlFor:"value",children:"Value"}),(0,Je.jsx)(Oe,{id:"value",type:"number",value:n.value||"",onChange:S=>c({...n,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Je.jsxs)("div",{className:"space-y-2 space-Je-2",children:[(0,Je.jsx)(ae,{htmlFor:"assignee",children:"Assignee"}),(0,Je.jsxs)(Ra,{value:(Pt=(ze=n.assignee)==null?void 0:ze.id)==null?void 0:Pt.toString(),onValueChange:S=>c({...n,assignee:w(S)}),children:[(0,Je.jsx)(la,{children:(0,Je.jsx)(Sa,{placeholder:"Select assignee"})}),(0,Je.jsx)(da,{children:t&&t.map(S=>{var z;return(0,Je.jsx)(ca,{value:((z=S.id)==null?void 0:z.toString())||"",children:S.name},S.id)})})]}),p.assignee&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Je.jsxs)("div",{className:"space-y-2 space-Je-2",children:[(0,Je.jsx)(ae,{htmlFor:"description",children:"Description"}),(0,Je.jsx)(ma,{id:"description",value:n.description||"",onChange:S=>c({...n,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,Je.jsxs)("div",{className:"space-y-2 space-Je-2",children:[(0,Je.jsx)(ae,{children:"Categories"}),(0,Je.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(S=>(0,Je.jsxs)("div",{className:"space-y-2",children:[(0,Je.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,Je.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===S).map(z=>{var ct;return(0,Je.jsxs)("div",{className:"flex items-center space-Je-2",children:[(0,Je.jsx)(bt,{id:z.id.toString(),checked:(ct=n.categories)==null?void 0:ct.includes(z.id),onCheckedChange:()=>m(z)}),(0,Je.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)})})]},S))})]}),(0,Je.jsxs)("div",{className:"space-y-2 space-Je-2",children:[(0,Je.jsx)(ae,{htmlFor:"closureDate",children:"Closure Date"}),(0,Je.jsx)(Oe,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:S=>c({...n,closureDate:S.target.value})}),p.closureDate&&(0,Je.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Je.jsx)(D,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Je.jsx)(tt,{open:u,onOpenChange:d,children:(0,Je.jsxs)(Xe,{children:[(0,Je.jsx)(ft,{children:(0,Je.jsx)(gt,{children:"Add New Customer"})}),(0,Je.jsx)(on,{onSubmit:y})]})})]})}function sn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:u}){let[d,p]=(0,Zo.useState)(!1);return(0,Je.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Je.jsx)("h2",{className:"text-Je font-semibold mb-4",children:e}),c&&(0,Je.jsxs)(tt,{open:d,onOpenChange:p,children:[(0,Je.jsx)(mr,{asChild:!0,children:(0,Je.jsxs)(D,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Je.jsx)($n.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,Je.jsxs)(Xe,{children:[(0,Je.jsx)(ft,{children:(0,Je.jsx)(gt,{children:"Add New Deal"})}),(0,Je.jsx)(rn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,Je.jsx)(Qr.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,Je.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,b)=>(0,Je.jsx)(Qr.Draggable,{draggableId:f.id.toString(),index:f.id,children:m=>(0,Je.jsx)("div",{ref:m.innerRef,...m.draggableProps,...m.dragHandleProps,children:(0,Je.jsx)(an,{deal:f,customer:f.customer,categories:r,onClick:()=>s(f)})})},f.id.toString())),g.placeholder]})}),(0,Je.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Je.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Je.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Je.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Je.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Sp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Tp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,l]=(0,Zo.useState)(null),n=g=>{var f;return((f=e.deals)!=null?f:[]).filter(b=>b.status===g)},c=g=>g.reduce((f,b)=>f+(b.value||0),0),u=(g,f)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((m,y)=>m+(y.value||0)*b[f],0)},d=(0,Zo.useCallback)(g=>{var ee,fe;let{source:f,destination:b}=g;if(!b||f.droppableId===b.droppableId&&f.index===b.index)return;let m=f.droppableId,y=b.droppableId,w=(ee=e.deals)==null?void 0:ee.filter(ze=>ze.id===f.index)[0],G=[...(fe=e.deals)!=null?fe:[]];w&&(w.status=y,a(w))},[a]);return(0,Je.jsx)(Qr.DragDropContext,{onDragEnd:d,children:(0,Je.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,Je.jsx)("div",{className:"flex space-Je-4 pb-4",children:Sp.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var b,m;let f=n(g);return(0,Je.jsx)(sn,{status:g,deals:f,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(m=e.categories)!=null?m:[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:u,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:r},g)})}),s&&(0,Je.jsx)(tn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:g=>o(s.id.toString(),g)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,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,DarkTop,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
13
+ w-full h-full bg-cover bg-center`,children:y===0?(0,Qe.jsx)(Oo,{hero:r,title:e.title,logoImage:s}):(0,Qe.jsxs)(Qe.Fragment,{children:[m.blockName&&(0,Qe.jsx)(zo,{title:m.blockName}),(0,Qe.jsx)(fa,{blocks:[m],fill:!0}),(0,Qe.jsx)(fd,{logoImage:s})]})})},y))}),(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)(ao.AnimatePresence,{children:(0,Qe.jsx)(ao.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:i("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,Qe.jsx)(ao.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:i("w-[12px] h-[12px] rounded-full","bg-accent")})})});var 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-$n-t from-card $n-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-Qe 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:l,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-Qe/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-y-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 Qe: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 Qe:gap-8",children:s.map((d,p)=>(0,Qe.jsx)("div",{className:"aspect-square overflow-hidden rounded-Qe shadow-Qe outline-1 -outline-offset-1 outline-black/10",children:(0,Qe.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},p))})}),(0,Qe.jsxs)("div",{className:"max-lg:mt-16 lg:col-span-1",children:[(0,Qe.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,Qe.jsx)("Qe",{className:"mt-6 border-t border-gray-200"}),(0,Qe.jsxs)("dl",{className:"mt-6 grid grid-cols-1 gap-Qe-8 gap-y-4 sm:grid-cols-2",children:[(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-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:["$",l]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-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,"Qe"]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,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,"Qe"]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col gap-y-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,"Qe"]})]})]})]})]})]})})}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 ro=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)},Qm=({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}=rs(e),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),l=(0,Zo.useRef)(new Yy.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 p=document.createElement("style");return p.textContent=`@page { size: ${ro(d.offsetWidth)}mm ${ro(d.offsetHeight)}mm ; margin: 0mm; width: ${ro(d.offsetWidth)}mm }; .container : { max-width: ${ro(d.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let c=(0,Zo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&l.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${ro(d.offsetWidth)}mm ${ro(d.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Zo.useEffect)(()=>{l.current=new Yy.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,p)=>(0,Qe.jsx)(Qe.Fragment,{children:p===0?(0,Qe.jsx)("section",{className:"title-page w-full h-full",children:(0,Qe.jsx)(Oo,{hero:e.hero,title:e.title})},p):(0,Qe.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,Qe.jsx)(zo,{title:d.blockName}),(0,Qe.jsx)(fa,{blocks:[d],fill:!0})]},p)})),(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:"Qe-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}=rs(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new Yy.Previewer),[l,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(p=>n(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new Yy.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,Qe.jsxs)("div",{className:"pagedjs-container",children:[(0,Qe.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:u.map((p,g)=>{var f,b;return(0,Qe.jsx)(Qe.Fragment,{children:g===0?(0,Qe.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,Qe.jsx)(Oo,{hero:e.hero,title:e.title})},g):(0,Qe.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${Km("185mm")}px]`,((b=(f=p.theme)==null?void 0:f.settings)==null?void 0:b.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,Qe.jsx)(zo,{title:p.blockName}),(0,Qe.jsx)(fa,{blocks:[p],fill:!0})]},g)})})}),(0,Qe.jsx)("div",{ref:o,className:"preview-container"})]})};var Bi=h(require("clsx"));function Jm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...u}){let p=c?g=>(0,Qe.jsx)(c,{...g}):l?({href:g,children:f,...b})=>(0,Qe.jsx)("button",{onClick:()=>l&&l(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:f}):g=>(0,Qe.jsx)("a",{...g});return(0,Qe.jsxs)(ha,{...u,variant:"inset",children:[(0,Qe.jsx)(xa,{children:(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(Re,{children:n?(0,Qe.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,Qe.jsx)(le,{className:"bg-gray-200 my-2 w-full h-7"}),(0,Qe.jsx)(le,{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)(Zt,{children:[(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"}),(0,Qe.jsx)(le,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,Qe.jsxs)(Zt,{children:[e&&!n&&e.map((g,f)=>(0,Qe.jsx)(Zm,{subNav:g,pathName:r,Link:p},f)),(0,Qe.jsx)(Je,{className:"mt-auto",children:(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:t&&!n&&t.map(g=>(0,Qe.jsx)(Re,{children:(0,Qe.jsx)(Ze,{asChild:!0,size:"sm",children:(0,Qe.jsxs)(p,{href:g.url||"",children:[g.icon&&(0,Qe.jsx)(g.icon,{}),(0,Qe.jsx)("span",{children:g.label})]})})},g.label))})})})]}),(0,Qe.jsx)(wa,{})]})}function Zm({subNav:e,pathName:t,Link:a}){var s,l;let o=e,r=!1;return o.links&&o.links.map(n=>{n.url===t&&(r=!0)}),(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsx)(Je,{className:"py-0",children:(0,Qe.jsx)(Ge,{children:(0,Qe.jsx)(It,{asChild:!0,defaultOpen:o.isActive,children:(0,Qe.jsxs)(Re,{children:[(0,Qe.jsx)(Ze,{asChild:!0,tooltip:o.label,className:(0,Bi.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)(Kt,{asChild:!0,children:(0,Qe.jsxs)(xo,{className:"data-[state=open]:rotate-90",children:[(0,Qe.jsx)($n.ChevronRight,{}),(0,Qe.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(ea,{children:(l=o.links)==null?void 0:l.map(n=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,className:(0,Bi.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)(Se,{iconName:"github",size:"10x"});function tp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:u,LinkComponent:d,...p}){let b=d?m=>(0,Qe.jsx)(d,{...m}):u?({item:m,children:y,...w})=>(0,Qe.jsx)("button",{onClick:()=>u&&u(m),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...w,children:y}):m=>(0,Qe.jsx)("a",{href:m.href,...m});return(0,Qe.jsxs)(ha,{side:"right",variant:"inset",...p,children:[(0,Qe.jsxs)(xa,{className:"border-b border-sidebar-border",children:[(0,Qe.jsxs)(Ge,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Re,{children:(0,Qe.jsxs)(Ze,{onClick:s,children:[(0,Qe.jsx)($n.FilePlus,{})," ",(0,Qe.jsx)("span",{children:"Add Document"})]})}),c&&(0,Qe.jsx)(Re,{children:(0,Qe.jsx)(Ze,{onClick:c,tooltip:"Open in GitHub",children:(0,Qe.jsx)(ep,{})})})]}),(0,Qe.jsxs)(Ge,{className:"flex-row space-Qe-1",children:[(0,Qe.jsx)(Re,{className:"w-5/12",children:(0,Qe.jsxs)(Ze,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Cd.default)(r&&"text-accent"),children:[(0,Qe.jsx)($n.Edit,{})," ",(0,Qe.jsx)("span",{children:"Edit"})]})}),(0,Qe.jsx)(Re,{className:"w-5/12",children:(0,Qe.jsxs)(Ze,{onClick:n,children:[(0,Qe.jsx)($n.Printer,{})," ",(0,Qe.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Editor Controls",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:a})})]})}),(0,Qe.jsx)(ho,{className:"mx-0"})]}),(0,Qe.jsxs)(Zt,{className:"overflow-auto",children:[o&&(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{children:"Related Content"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:Array.from({length:3}).map((m,y)=>(0,Qe.jsx)(Re,{children:(0,Qe.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{children:"Table of Contents"}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Ge,{children:Array.from({length:3}).map((m,y)=>(0,Qe.jsx)(Re,{children:(0,Qe.jsx)(le,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Related Content",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Ge,{children:e&&Object.keys(e).map(m=>(0,Qe.jsxs)(Re,{children:[(0,Qe.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",m.charAt(0).toUpperCase()+m.slice(1)]}),m&&e[m]&&(0,Qe.jsx)(ea,{children:e[m].map(y=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,isActive:!1,size:"sm",children:(0,Qe.jsxs)(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,Qe.jsx)("span",{children:y.label}),y.type==="note"&&(0,Qe.jsx)($n.PencilLine,{className:"An-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,Qe.jsx)(Se,{iconName:"code-pull-request-draft",className:"An-2 text-gray-400 !important"})]})})},y.label))})]},m))})})})]})}),t&&!o&&(0,Qe.jsx)(It,{defaultOpen:!0,className:"group/collapsible",children:(0,Qe.jsxs)(Je,{children:[(0,Qe.jsx)(Bt,{asChild:!0,children:(0,Qe.jsxs)(Kt,{children:["Table of Contents",(0,Qe.jsx)($n.ChevronDown,{className:"An-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,Qe.jsx)(pt,{children:(0,Qe.jsx)(Qt,{children:(0,Qe.jsx)(Ge,{children:t.map(m=>{var y;return(0,Qe.jsxs)(Re,{children:[(0,Qe.jsx)(Ze,{asChild:!0,children:(0,Qe.jsx)("a",{href:`#${m.url}`,className:"text-xs",children:m.title})}),(y=m.items)!=null&&y.length?(0,Qe.jsx)(ea,{children:m.items.map(w=>(0,Qe.jsx)(ta,{children:(0,Qe.jsx)(aa,{asChild:!0,isActive:w.isActive,size:"sm",children:(0,Qe.jsx)("a",{href:`#${w.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,Qe.jsx)("span",{children:w.title})})})},w.title))}):null]},m.title)})})})})]})})]}),(0,Qe.jsx)(wa,{})]})}var kd=h(require("next/image"));function ap({title:e,members:t}){return(0,Qe.jsx)(Ce,{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)($n.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,Qe.jsx)("h2",{className:"text-Qe font-semibold text-foreground",children:e})]}),(0,Qe.jsx)("div",{className:"space-y-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)(kd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,Qe.jsxs)("div",{children:[(0,Qe.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,Qe.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Rd=h(require("next/link"));var op=({links:e,title:t="Related Content"})=>(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{children:(0,Qe.jsx)($e,{className:"text-accent",children:t})}),(0,Qe.jsx)(Te,{children:(0,Qe.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,Qe.jsxs)(Rd.default,{href:a.url,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.title,a.url.startsWith("http")&&(0,Qe.jsx)($n.ExternalLink,{className:"An-1 h-3 w-3"})]},o))})})]});var Li=i("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function rp({pages:e}){let t=(0,sd.useSearchParams)(),a=(0,sd.usePathname)(),{replace:o}=(0,sd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=p=>{p==="left"&&l.start>1?n(g=>({start:g.start-1,end:g.end-1})):p==="right"&&l.end<r&&n(g=>({start:g.start+1,end:g.end+1}))};function u(p){let g=new URLSearchParams(t);p?g.set("page",p):g.delete("page"),o(`${a}?${g.toString()}`)}if(r<=1)return null;let d=[];for(let p=l.start;p<=l.end;p++)d.push(p);return(0,Qe.jsx)("div",{className:"mt-12",children:(0,Qe.jsxs)("$n",{className:"flex flex-wrap items-center justify-center gap-3 Qe:gap-5","aria-label":"pagination",children:[l.start>1&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,Qe.jsx)(Pl.FaArrowLeft,{})})}),d.map((p,g)=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("a",{className:i(Li,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:f=>{f.preventDefault(),u(p.toString())},children:p})},g)),l.end<r&&(0,Qe.jsx)("li",{children:(0,Qe.jsx)("button",{className:i(Li,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,Qe.jsx)(Pl.FaArrowRight,{})})})]})})}var D0=i("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(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,Qe.jsxs)(Ce,{children:[(0,Qe.jsx)(_e,{children:(0,Qe.jsx)($e,{className:"text-accent",children:e&&e})}),(0,Qe.jsx)(Te,{children:t&&t.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("$n",{className:"grid gap-2.5 ",children:t.map((l,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(l.href)},children:[l.label,(0,Qe.jsx)($n.ExternalLink,{className:"An-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 l(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)(D,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Id=h(require("next/image"));var Hi=({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)(J,{className:"max-w-none mb-6 An-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,Qe.jsx)("$n",{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)(Gt,{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)(Id.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Qe.jsx)(np,{})]})}),np=()=>(0,Qe.jsx)("div",{className:"w-full h-[1240px] z-10",children:(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,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"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var Fi=h(require("next/image"));var lp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,Qe.jsx)(Fi.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)(Fi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},zi=({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)(lp,{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)(J,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Oi=({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)(J,{content:t,enableGutter:!1})})});var Bd=h(require("react")),Ld=h(require("next/image"));var Ad=e=>{let a=new Date;e&&(a=new Date(e));let o=a.getMonth(),r=a.getDate(),s=o+1<10?`0${o+1}`:o+1,l=r<10?`0${r}`:r,n=a.getFullYear();return`${l}/${s}/${n}`};var dp=({post:e})=>{var l;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)(Bd.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:Ad(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)(at,{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)(Ld.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((l=a==null?void 0:a.image)==null?void 0:l.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,Qe.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-$n-t from-background dark:from-black $n-transparent"})]})]})};var _r=require("@heroicons/react/20/solid");var _i=h(require("next/image"));function Gi({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"sd-padding",o);return(0,Qe.jsx)("div",{className:r,children:e})}var Hd=require("next-themes");function cp({children:e,...t}){return(0,Qe.jsx)(Hd.ThemeProvider,{...t,children:e})}var _o=({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:i(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"})]})}),(0,Qe.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,Qe.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,Qe.jsxs)("div",{className:"w-full z-20 aspect-[1920/332] overflow-hidden ",children:[(0,Qe.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,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"})]}),(0,Qe.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] z-10 bg-white"})]});if(e==="dark-top")return(0,Qe.jsx)("div",{className:"w-full aspect-[1920/332] 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:i(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 aspect-[1920/332] 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",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(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 aspect-[1920/332] 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:i(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 aspect-[1920/332] z-20 relative -bottom-[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:"rotateX(180deg)"},className:i(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"})})})},mp=({className:e})=>(0,Qe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(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 $i=({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)(_i.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)(_i.default,{className:"-z-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,Qe.jsx)("span",{className:"absolute inset-0 bg-gradient-$n-b from-white dark:from-black"})]}),(0,Qe.jsx)(_o,{className:"text-black z-10",position:"header"})]})});var pp={highImpact:Hi,lowImpact:Oi,mediumImpact:zi,sectionHero:$i},up=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=pp[t];return a?(0,Qe.jsx)(a,{...e}):null};function fp({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)("ol",{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)(_r.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)(_r.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,Qe.jsx)("a",{href:a.href,className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,Qe.jsx)("div",{className:"An-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,Qe.jsx)(Qe.Fragment,{})}var qe=require("@headlessui/react"),Wr=require("@heroicons/react/24/outline");var gp=({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)(qe.Popover,{children:[(0,Qe.jsxs)(qe.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)(_r.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,Qe.jsxs)(qe.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-y-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 Qe: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)(zd,{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)(zd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),zd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,Qe.jsx)(Se,{...e,size:a});if("src"in e)return(0,Qe.jsx)("div",{className:i(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=gp;var Vr=["light","dark","green"];function bp({title:e,logo:t,menuItems:a}){let[o,r]=(0,Zo.useState)(!1),[s,l]=(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],[p,g]=(0,Zo.useState)(`${u}.${d}`),f=m=>{Vr.includes(m)?g(m==="light"?`${u}.${d}`:`${u}-${m}.${d}`):g(`${u}.${d}`)};(0,Zo.useEffect)(()=>{let m=localStorage.getItem("theme")||"light";c(m),document.documentElement.setAttribute("class",m),f(m)},[]);let b=()=>{let m=Vr[(Vr.indexOf(n)+1)%Vr.length];c(m),document.documentElement.setAttribute("class",m),localStorage.setItem("theme",m),f(m)};return(0,Qe.jsxs)("header",{className:"relative isolate z-10 bg-background h-14",children:[(0,Qe.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,Qe.jsx)("div",{className:"flex lg:flex-1",children:(0,Qe.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,Qe.jsx)("span",{className:"sr-only",children:e}),(0,Qe.jsx)("img",{alt:e,src:p,className:"h-9 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)(Wr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,Qe.jsx)(qe.PopoverGroup,{className:"hidden lg:flex lg:gap-Qe-12",children:a.map(m=>(0,Qe.jsx)($r,{...m},m.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)(qe.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)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,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)(Wr.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-y divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-y-2 py-6",children:a.map(m=>(0,Qe.jsx)(yp,{...m},m.name))})})})]})]})]})}function yp({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)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Qe-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,Qe.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Qe.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Qe-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function vp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,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)(Gi,{children:(0,Qe.jsxs)("div",{className:"flex flex-col items-start Qe:w-2/3 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)(_o,{className:"text-black z-10",position:"header"})]})})}var Vi=h(require("next/image"));function ga({logoLight:e,logoDark:t,mobile:a=!1}){return(0,Qe.jsxs)(ot,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,Qe.jsx)(Vi.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)(Vi.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 Wi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,Zo.useState)(!1),[c,u]=(0,Zo.useState)(""),d=["light","dark"],{theme:p,setTheme:g}=(0,Hd.useTheme)();(0,Zo.useEffect)(()=>{u(p||"dark")},[p]);let f=()=>{let b=d[(d.indexOf(c)+1)%d.length];u(b),g(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 ${l||e?"translate-y-0":"-translate-y-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:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,Qe.jsx)(ga,{logoDark:a,logoLight:t}),(0,Qe.jsx)(qe.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:f,children:(0,Qe.jsxs)("div",{className:"relative",children:[(0,Qe.jsx)($n.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,Qe.jsx)($n.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var ji=["light","dark"];function Ui({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:l,setTheme:n}=(0,$d.useTheme)(),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,Zo.useEffect)(()=>{p(l||"dark")},[l]);let g=()=>{let f=ji[(ji.indexOf(d)+1)%ji.length];p(f),n(f)};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-y-0":"-translate-y-full bg-transparent"}`,children:[(0,Qe.jsx)("nav",{className:i("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)(Wr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,Qe.jsxs)(qe.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)(qe.DialogPanel,{className:"fixed inset-y-0 right-0 z-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,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)(Wr.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-y divide-gray-500/10",children:(0,Qe.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,Qe.jsx)(hp,{...f},f.name))})})})]})]})]})})}function hp({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)(qe.Disclosure,{as:"div",className:"-mx-3",children:[(0,Qe.jsx)(qe.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Qe-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,Qe.jsx)(qe.DisclosurePanel,{className:"mt-2 space-y-2",children:t&&t.map(r=>(0,Qe.jsx)(qe.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 Qe-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Iv=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Vd=i("text-brand-green text-Qe leading-[1.25] Qe:text-lg mb-5 Qe:mb-[1.5rem]"),Xi=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Yi=i("flex items-center text-white gap-3"),Xr=i("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:l,footerBottom:n}=t,c=void 0;return(0,Qe.jsxs)("footer",{className:i("sticky z-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",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 Qe:grid-cols-3",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)("$n",{className:"inline-flex Qe-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((u,d)=>(0,Qe.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,Qe.jsx)(ot,{"aria-label":u.href,className:"text-2xl",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:Vd,children:s.title}),s.links&&s.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer links navigation",children:(0,Qe.jsx)("$n",{className:"grid Qe-0 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-white",children:(0,Qe.jsx)(Pl.FaChevronRight,{})}),(0,Qe.jsx)(ot,{href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})]},u.label))})})]}),(0,Qe.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,Qe.jsx)("h3",{className:Vd,children:l.title}),(0,Qe.jsxs)("$n",{"aria-label":"addresses",className:"grid gap-2 Qe-0",children:[(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaPaperPlane,{})}),(0,Qe.jsx)("address",{className:"not-italic",children:l.location})]}),(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,Qe.jsx)("div",{className:"grid gap-1",children:l.mails.map((u,d)=>(0,Qe.jsx)("a",{href:`mailto:${u}`,className:Xr,children:u},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,Qe.jsxs)("li",{className:Yi,children:[(0,Qe.jsx)("span",{className:Xi,children:(0,Qe.jsx)(Pl.FaPhone,{})}),(0,Qe.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((u,d)=>(0,Qe.jsx)("a",{href:`tel:${u.split(" ").join("")}`,className:Xr,children:u},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-y-4 Qe:gap-Qe-10",children:[(0,Qe.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,Qe.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,Qe.jsx)("$n",{className:"flex flex-wrap items-center gap-Qe-4 Qe:gap-Qe-7",children:n.links.map(u=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)(ot,{"aria-label":`Yy $n page ${u.label}`,href:u.href,openNewTab:u.openNewTab,className:Xr,children:u.label})},u.label))})})]})})})]})}function wp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,Qe.jsxs)("div",{className:i("fixed top-0 left-0 right-0 z-50",r),children:[(0,Qe.jsx)(Wi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,Qe.jsx)(Ui,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function qi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,sd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(p=>p.includes(d)?p.filter(g=>g!==d):[...p,d])},c=async()=>{let d=await t(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])},u=async()=>{let d=await a(o);d.success?(mi.toast.success(d.message),s.refresh()):mi.toast.error(`Error: ${d.message}`),r([])};return(0,Qe.jsxs)("div",{className:"space-y-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)(D,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,Qe.jsx)(D,{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)("$n",{className:"divide-y 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:l,className:"border-accent"}),(0,Qe.jsx)("label",{htmlFor:"select-all",className:"An-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:"An-3 flex items-center",children:[(0,Qe.jsxs)(Ht,{className:"h-10 w-10",children:[(0,Qe.jsx)(Ft,{src:d.userImage,alt:d.userName}),(0,Qe.jsx)(zt,{children:d.userName.split(" ").map(p=>p[0]).join("")})]}),(0,Qe.jsx)("div",{className:"An-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)(at,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,Qe.jsx)(mi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"z-50"})]})}var Ki=require("date-fns");var Ud=[{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 jo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=Ud.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},Xd=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!jo(o))return .5;for(;o<=r;)jo(o)||s++,o.setDate(o.getDate()+1);return s},Yd=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Np=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,Qe.jsx)("div",{className:"flex space-Qe-2",children:e.map((r,s)=>(0,Qe.jsx)(D,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function Ji({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Zo.useState)(new Date),[r,s]=(0,Zo.useState)(new Date),[l,n]=(0,Zo.useState)("Full Day"),[c,u]=(0,Zo.useState)(!1),[d,p]=(0,Zo.useState)(1),g=(0,sd.useRouter)();(0,Zo.useEffect)(()=>{let m=Yd(a,r);u(m),m&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){p(0);return}let m=Xd(a,r,l!=="Full Day");p(m)},[a,r,l]);let f=m=>{n(m)};return(0,Qe.jsxs)("div",{className:"max-w-2xl",children:[(0,Qe.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,Qe.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,Qe.jsxs)("form",{onSubmit:async m=>{if(m.preventDefault(),!a||!r){mi.toast.error("Please select both start and end dates");return}if(d>e){mi.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",l),y.append("duration",d.toString());let w=await(t||Cp)(y);w.success?(mi.toast.success(w.message),o(void 0),s(void 0),n("Full Day"),g.refresh()):mi.toast.error(`Error: ${w.message}`)},className:"space-y-4",children:[(0,Qe.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,Qe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"startDate",children:"Start Date"}),(0,Qe.jsxs)(To,{children:[(0,Qe.jsx)(Do,{asChild:!0,children:(0,Qe.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Ki.format)(a,"PPP"):(0,Qe.jsx)("span",{children:"Pick a date"})]})}),(0,Qe.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Qe.jsx)(Ao,{mode:"single",selected:a,onSelect:m=>{o(m),m&&(!r||m>r)&&s(m)},initialFocus:!0})})]})]}),(0,Qe.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"endDate",children:"End Date"}),(0,Qe.jsxs)(To,{children:[(0,Qe.jsx)(Do,{asChild:!0,children:(0,Qe.jsxs)(D,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Ki.format)(r,"PPP"):(0,Qe.jsx)("span",{children:"Pick a date"})]})}),(0,Qe.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,Qe.jsx)(Ao,{mode:"single",selected:r,onSelect:s,disabled:m=>a?m<a:!1,initialFocus:!0})})]})]})]}),(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{children:"Leave Type"}),(0,Qe.jsx)(Np,{options:["Full Day","Morning","Afternoon"],value:l,onChange:f,disabled:[!1,c,c]})]}),(0,Qe.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,Qe.jsx)(D,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,Qe.jsx)(mi.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 Kd(...e){return e.filter(Boolean).join(" ")}function Zi({currentDate:e,setCurrentDate:t,holidays:a,employees:o}){let r=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),s=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},l=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},n=()=>{t(new Date)},c=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)(D,{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)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(D,{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)(D,{onClick:l,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)($n.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-y-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 Qe-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Qe-6 lg:Qe-8",children:"Employee"}),[...Array(r)].map((u,d)=>{let p=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,Qe.jsxs)("th",{scope:"col",className:`sticky top-0 z-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${jo(p)?"bg-gray-200":""}`,children:[(0,Qe.jsx)("div",{children:c(p)}),(0,Qe.jsx)("div",{children:d+1})]},d)})]})}),(0,Qe.jsx)("tbody",{children:o.map((u,d)=>(0,Qe.jsxs)("tr",{children:[(0,Qe.jsx)("td",{className:Kd(d!==o.length-1?"border-gray-200":"","sticky left-0 z-10 bg-white border-r Qe-4 pr-3 text-sm font-medium text-gray-900 sm:Qe-6 lg:Qe-8"),children:(0,Qe.jsxs)("div",{className:"flex items-center",children:[(0,Qe.jsxs)(Ht,{className:"h-11 w-11",children:[(0,Qe.jsx)(Ft,{src:u.image,alt:u.name}),(0,Qe.jsx)(zt,{children:u.name.split(" ").map(p=>p[0]).join("")})]}),(0,Qe.jsx)("div",{className:"An-4",children:(0,Qe.jsx)("div",{className:"font-medium text-accent",children:u.name})})]})}),[...Array(r)].map((p,g)=>{let f=new Date(e.getFullYear(),e.getMonth(),g+1),b=a.find(m=>m.userId===u.id&&new Date(m.startDate)<=f&&new Date(m.endDate)>=f);return(0,Qe.jsx)("td",{className:Kd(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",jo(f)?"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}-${g}`)})]},u.id))})]})})})})]})}function en({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Zo.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,l=Array.from({length:42},(d,p)=>{let g=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:g,isCurrentMonth:g.getMonth()===e.getMonth(),isToday:g.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=g&&new Date(f.endDate)>=g)}}),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)(D,{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)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,Qe.jsx)(D,{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)(D,{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)($n.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:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"Qe"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["Qe",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["S",(0,Qe.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,Qe.jsxs)("div",{className:"bg-white py-2",children:["S",(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:l.map(d=>(0,Qe.jsxs)("div",{className:i(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:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,Qe.jsx)("ol",{className:"mt-2 space-y-1",children:d.holidays.map(p=>(0,Qe.jsx)("li",{children:(0,Qe.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border`,children:p.userName})},p.id))})]},d.date.toISOString()))}),(0,Qe.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,Qe.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[(0,Qe.jsx)("time",{dateTime:d.date.toISOString(),className:i("An-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(p=>(0,Qe.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},d.date.toISOString()))})]})]})]})}var ya=require("lucide-react");function Jd(...e){return e.filter(Boolean).join(" ")}function Pp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,u]=(0,Zo.useState)("Calendar View"),d=(0,sd.useRouter)(),p=!1,g=(0,Ki.parseISO)(a),f=async m=>{let y=(0,Ki.format)(m,"dd-MM-yyyy"),w=new URL(window.location.href);return w.searchParams.set("date",y),d.push(w.toString()),{success:!0}};if(p)return(0,Qe.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,Qe.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:ya.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ya.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ya.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ya.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:m=>u(m.target.value),className:"block w-full rounded-Qe border-gray-300 py-2 Qe-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(m=>(0,Qe.jsx)("option",{children:m.name},m.name))}),(0,Qe.jsx)($n.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(m=>(0,Qe.jsxs)("a",{onClick:()=>{(m.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&u(m.name)},className:Jd(m.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",m.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":m.current?"page":void 0,children:[(0,Qe.jsx)(m.icon,{className:Jd(m.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-An-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,Qe.jsx)("span",{children:m.name})]},m.name))})})})]}),c==="Grid View"&&(0,Qe.jsx)(Zi,{currentDate:g,setCurrentDate:f,holidays:e,employees:r}),c==="Calendar View"&&(0,Qe.jsx)(en,{currentDate:g,setCurrentDate:f,holidays:e}),c==="Request Leave"&&(0,Qe.jsx)(Ji,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:m=>s?s(m):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,Qe.jsx)(qi,{leaveRequests:o,onApprove:m=>l?l(m):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:m=>n?n(m):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function tn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){var ze,Pt,S,z,ct;let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[u,d]=(0,Zo.useState)(""),[p,g]=(0,Zo.useState)(!1),[f,b]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{g(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let m=async()=>{try{let N=await s(n);N.success?(g(!1),b(null)):console.error("Failed $n save deal:",N.errors)}catch(N){console.error("Failed $n save deal:",N)}},y=(N,$)=>{c(U=>({...U,[N]:$}))},w=N=>{let $=(n.categories||[]).includes(N)?(n.categories||[]).filter(U=>U!==N):[...n.categories||[],N];y("categories",$)},_=async()=>{if(u.trim()){let N={text:u,timestamp:new Date().toISOString()};try{let $=await l(N);if(!$.success){console.error("Failed $n add comment:",$.errors);return}}catch($){console.error("Failed $n add comment:",$)}c($=>({...$,comments:[...$.comments||[],N]})),d("")}},ee=N=>{switch(N){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},fe=N=>t==null?void 0:t.find($=>$.id===Number(N));return(0,Qe.jsx)(tt,{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)(D,{variant:"outline",onClick:r,children:"Close"}),(0,Qe.jsxs)(D,{onClick:m,disabled:!p,children:[(0,Qe.jsx)($n.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,Qe.jsxs)(sa,{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:f==="value"?(0,Qe.jsx)(Oe,{type:"number",value:n.value,onChange:N=>y("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,Qe.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("value"),children:["\xA3",(ze=n.value)==null?void 0:ze.toLocaleString()]})}),(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,Qe.jsxs)(Ra,{value:((S=(Pt=n==null?void 0:n.assignee)==null?void 0:Pt.id)==null?void 0:S.toString())||"",onValueChange:N=>y("assignee",fe(N)),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Sa,{placeholder:"Select assignee"})}),(0,Qe.jsx)(da,{children:t&&t.map(N=>{var $;return(0,Qe.jsx)(ca,{value:(($=N==null?void 0:N.id)==null?void 0:$.toString())||"",children:N.name},N.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)($n.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)(ae,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,Qe.jsx)(Oe,{type:"date",value:(ct=(z=n.closureDate)==null?void 0:z.split("Qe")[0])!=null?ct:"",onChange:N=>y("closureDate",N.target.value),onBlur:()=>b(null),autoFocus:!0}):(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>b("closureDate"),children:[(0,Qe.jsx)($n.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,Qe.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/Qe"})]})]})]}),(0,Qe.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,Qe.jsxs)("div",{className:"grid gap-2",children:[(0,Qe.jsx)(ae,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,Qe.jsx)(ma,{value:n.description||"",onChange:N=>y("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,Qe.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>b("description"),children: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)(ae,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,Qe.jsxs)(Ra,{value:n.status,onValueChange:N=>{y("status",N),b(null)},children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Sa,{placeholder:"Select status"})}),(0,Qe.jsx)(da,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(N=>(0,Qe.jsx)(ca,{value:N,children:N},N))})]}):(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)(ae,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(N=>{var $,U;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:(($=N.id)==null?void 0:$.toString())||"",checked:(n.categories||[]).some(Uo=>Uo.id===N.id),onCheckedChange:()=>N.id!==void 0&&w(N)}),(0,Qe.jsx)("label",{htmlFor:((U=N.id)!=null?U:"").toString(),className:`text-sm font-medium ${ee(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.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(N=>{let $=N;return $?(0,Qe.jsx)(at,{variant:"secondary",className:ee($.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)(ae,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,Qe.jsx)(sa,{className:"h-[200px] overflow-y-auto",children:(0,Qe.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((N,$)=>new Date($.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>{var $;return(0,Qe.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,Qe.jsx)("p",{className:"text-sm text-gray-700",children:N.text}),(0,Qe.jsxs)("p",{className:"text-xs text-gray-500 mt-1",children:[($=N==null?void 0:N.author)==null?void 0:$.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id)})})}),(0,Qe.jsxs)("div",{className:"flex mt-2",children:[(0,Qe.jsx)(Oe,{value:u,onChange:N=>d(N.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,Qe.jsxs)(D,{onClick:_,className:"An-2",children:[(0,Qe.jsx)($n.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 an({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var l;return s.type==="proposition"&&((l=e.categories)!=null?l:[]).includes(s.id)});return(0,Qe.jsxs)(Ce,{className:"mb-4 cursor-pointer hover:shadow-Qe transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,Qe.jsxs)(_e,{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)(Te,{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)($n.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)($n.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)(at,{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 on({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-y-4",children:[(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customerName",children:"Customer Name"}),(0,Qe.jsx)(Oe,{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-y-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customerIntro",children:"Intro"}),(0,Qe.jsx)(ma,{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)(ae,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,Qe.jsx)(D,{type:"submit",className:"w-full",children:"Add Customer"})]})}function rn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){var ee,fe,ze,Pt;let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("Qe")[0],closureDate:"",comments:[],description:""}),[u,d]=(0,Zo.useState)(!1),[p,g]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let f=()=>{let S={};return n.customer||(S.customer="Customer is required"),n.value||(S.value="Value is required"),n.assignee||(S.assignee="Assignee is required"),n.closureDate||(S.closureDate="Closure Date is required"),g(S),Object.keys(S).length===0},b=async S=>{S.preventDefault(),g({});try{if(f()){let z=await o({...n});z.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l==null||l()):g(z.errors||{})}}catch{g({submit:"An error occurred while submitting the form."})}},m=S=>{c(z=>({...z,categories:(z.categories||[]).includes(S.id)?(z.categories||[]).filter(ct=>ct!==S.id):[...z.categories||[],S.id]}))},y=async S=>{c({...n,customer:S});try{let z=await s(S);z.success?d(!1):g(z.errors||{})}catch{g({submit:"An error occurred while submitting the form."})}},w=S=>t==null?void 0:t.find(z=>z.id===Number(S)),_=S=>e==null?void 0:e.find(z=>z.id===Number(S));return(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,Qe.jsx)(sa,{className:"h-[60vh] pr-4",children:(0,Qe.jsxs)("div",{className:"space-y-6 px-4",children:[(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"customer",children:"Customer"}),(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsxs)(Ra,{value:(fe=(ee=n.customer)==null?void 0:ee.id)==null?void 0:fe.toString(),onValueChange:S=>c({...n,customer:_(S)}),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Sa,{placeholder:"Select customer"})}),(0,Qe.jsx)(da,{children:e.map(S=>{var z;return(0,Qe.jsx)(ca,{value:((z=S.id)==null?void 0:z.toString())||"",children:S.name},S.id)})})]}),(0,Qe.jsx)(D,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,Qe.jsx)($n.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"value",children:"Value"}),(0,Qe.jsx)(Oe,{id:"value",type:"number",value:n.value||"",onChange:S=>c({...n,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"assignee",children:"Assignee"}),(0,Qe.jsxs)(Ra,{value:(Pt=(ze=n.assignee)==null?void 0:ze.id)==null?void 0:Pt.toString(),onValueChange:S=>c({...n,assignee:w(S)}),children:[(0,Qe.jsx)(la,{children:(0,Qe.jsx)(Sa,{placeholder:"Select assignee"})}),(0,Qe.jsx)(da,{children:t&&t.map(S=>{var z;return(0,Qe.jsx)(ca,{value:((z=S.id)==null?void 0:z.toString())||"",children:S.name},S.id)})})]}),p.assignee&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"description",children:"Description"}),(0,Qe.jsx)(ma,{id:"description",value:n.description||"",onChange:S=>c({...n,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{children:"Categories"}),(0,Qe.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(S=>(0,Qe.jsxs)("div",{className:"space-y-2",children:[(0,Qe.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,Qe.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(z=>z.type===S).map(z=>{var ct;return(0,Qe.jsxs)("div",{className:"flex items-center space-Qe-2",children:[(0,Qe.jsx)(bt,{id:z.id.toString(),checked:(ct=n.categories)==null?void 0:ct.includes(z.id),onCheckedChange:()=>m(z)}),(0,Qe.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)})})]},S))})]}),(0,Qe.jsxs)("div",{className:"space-y-2 space-Qe-2",children:[(0,Qe.jsx)(ae,{htmlFor:"closureDate",children:"Closure Date"}),(0,Qe.jsx)(Oe,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:S=>c({...n,closureDate:S.target.value})}),p.closureDate&&(0,Qe.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,Qe.jsx)(D,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,Qe.jsx)(tt,{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)(on,{onSubmit:y})]})})]})}function sn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:u}){let[d,p]=(0,Zo.useState)(!1);return(0,Qe.jsxs)("div",{className:"flex flex-col w-80",children:[(0,Qe.jsx)("h2",{className:"text-Qe font-semibold mb-4",children:e}),c&&(0,Qe.jsxs)(tt,{open:d,onOpenChange:p,children:[(0,Qe.jsx)(mr,{asChild:!0,children:(0,Qe.jsxs)(D,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,Qe.jsx)($n.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)(rn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:u,onClose:()=>p(!1)})]})]}),(0,Qe.jsx)(Jr.Droppable,{droppableId:e,isDropDisabled:!1,children:g=>(0,Qe.jsxs)("div",{ref:g.innerRef,...g.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,b)=>(0,Qe.jsx)(Jr.Draggable,{draggableId:f.id.toString(),index:f.id,children:m=>(0,Qe.jsx)("div",{ref:m.innerRef,...m.draggableProps,...m.dragHandleProps,children:(0,Qe.jsx)(an,{deal:f,customer:f.customer,categories:r,onClick:()=>s(f)})})},f.id.toString())),g.placeholder]})}),(0,Qe.jsxs)("div",{className:"mt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,Qe.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,Qe.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,Qe.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,Qe.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var kp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Rp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var p;let[s,l]=(0,Zo.useState)(null),n=g=>{var f;return((f=e.deals)!=null?f:[]).filter(b=>b.status===g)},c=g=>g.reduce((f,b)=>f+(b.value||0),0),u=(g,f)=>{let b={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return g.reduce((m,y)=>m+(y.value||0)*b[f],0)},d=(0,Zo.useCallback)(g=>{var ee,fe;let{source:f,destination:b}=g;if(!b||f.droppableId===b.droppableId&&f.index===b.index)return;let m=f.droppableId,y=b.droppableId,w=(ee=e.deals)==null?void 0:ee.filter(ze=>ze.id===f.index)[0],_=[...(fe=e.deals)!=null?fe:[]];w&&(w.status=y,a(w))},[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:kp.filter(g=>g!=="Won"&&g!=="Lost").map(g=>{var b,m;let f=n(g);return(0,Qe.jsx)(sn,{status:g,deals:f,customers:(b=e.customers)!=null?b:[],users:e.users,categories:(m=e.categories)!=null?m:[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:u,addNewDeal:g==="Cold"?t:void 0,onAddCustomer:r},g)})}),s&&(0,Qe.jsx)(tn,{deal:s,users:e.users,customer:s.customer,categories:(p=e.categories)!=null?p:[],onClose:()=>l(null),onSave:a,onAddComment:g=>o(s.id.toString(),g)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,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,DarkTop,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});