cortex-react-components 1.60.0 → 1.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/dist/{chunk-5GF6OD5E.mjs → chunk-3VXQY46G.mjs} +1 -1
  2. package/dist/{chunk-3QIXHVAJ.mjs → chunk-746DCZCS.mjs} +1 -1
  3. package/dist/{chunk-3BATRS4C.mjs → chunk-75HYIK2G.mjs} +1 -1
  4. package/dist/{chunk-XZ4GLJWK.mjs → chunk-A23PEEZV.mjs} +1 -1
  5. package/dist/{chunk-HUKIRDNO.mjs → chunk-A6L3A26V.mjs} +1 -1
  6. package/dist/{chunk-JUX72GHS.mjs → chunk-AR4EIVXI.mjs} +1 -1
  7. package/dist/{chunk-R7IAPAL5.mjs → chunk-I5HRFLAL.mjs} +1 -1
  8. package/dist/{chunk-LYI57B7F.mjs → chunk-NEVV5MS3.mjs} +1 -1
  9. package/dist/{chunk-GYDVBUKO.mjs → chunk-PGSV4TRK.mjs} +1 -1
  10. package/dist/{chunk-4SLLQ7SW.mjs → chunk-PUOASKI6.mjs} +1 -1
  11. package/dist/chunk-Q3G5UAAD.mjs +1 -0
  12. package/dist/{chunk-64DD3N4S.mjs → chunk-QLIAHL5I.mjs} +1 -1
  13. package/dist/{chunk-6JKTDBRP.mjs → chunk-R3UQIZ2D.mjs} +1 -1
  14. package/dist/{chunk-WKFNZUIR.mjs → chunk-T6FBWMZR.mjs} +1 -1
  15. package/dist/{chunk-FMWUWAED.mjs → chunk-UOINH4WF.mjs} +1 -1
  16. package/dist/{chunk-53NPXOEB.mjs → chunk-XFG3UQL4.mjs} +1 -1
  17. package/dist/{chunk-NANZQIAC.mjs → chunk-XZYBAUIS.mjs} +1 -1
  18. package/dist/chunk-YMBNEJBV.mjs +1 -0
  19. package/dist/{chunk-VEWTPB7K.mjs → chunk-ZIPHGLLJ.mjs} +1 -1
  20. package/dist/{chunk-SUO6GOJS.mjs → chunk-ZYYWN6XG.mjs} +1 -1
  21. package/dist/components/Blocks/Banner.mjs +1 -1
  22. package/dist/components/Blocks/CallToAction.mjs +1 -1
  23. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  24. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  25. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  26. package/dist/components/Blocks/Code.client.mjs +1 -1
  27. package/dist/components/Blocks/Code.mjs +1 -1
  28. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  29. package/dist/components/Blocks/CollapsibleArea.stories.mjs +1 -1
  30. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  31. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  32. package/dist/components/Blocks/Content.mjs +1 -1
  33. package/dist/components/Blocks/Content.stories.js +1 -1
  34. package/dist/components/Blocks/Content.stories.mjs +1 -1
  35. package/dist/components/Blocks/CopyButton.mjs +1 -1
  36. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  37. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  38. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  39. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  40. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  41. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  42. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  43. package/dist/components/Blocks/index.mjs +1 -1
  44. package/dist/components/CRM/DealCard.mjs +1 -1
  45. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  46. package/dist/components/CRM/DealDetails.mjs +1 -1
  47. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  48. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  49. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  50. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  51. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  52. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  53. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  54. package/dist/components/CRM/NewDealForm.mjs +1 -1
  55. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  56. package/dist/components/CRM/index.mjs +1 -1
  57. package/dist/components/Cards/ContentCard.mjs +1 -1
  58. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  59. package/dist/components/Cards/CustomerCard.mjs +1 -1
  60. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  61. package/dist/components/Cards/EventCard.mjs +1 -1
  62. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  63. package/dist/components/Cards/FeatureCard.mjs +1 -1
  64. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  65. package/dist/components/Cards/HeroCard.mjs +1 -1
  66. package/dist/components/Cards/HeroCard.stories.mjs +1 -1
  67. package/dist/components/Cards/Image.mjs +1 -1
  68. package/dist/components/Cards/Image.stories.mjs +1 -1
  69. package/dist/components/Cards/PricingCard.mjs +1 -1
  70. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  71. package/dist/components/Cards/ServiceCard.mjs +1 -1
  72. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  73. package/dist/components/Cards/index.mjs +1 -1
  74. package/dist/components/Chat/ChatCardArtefact.mjs +1 -1
  75. package/dist/components/Chat/ChatCardArtefact.stories.mjs +1 -1
  76. package/dist/components/Chat/ChatCardTask.js +1 -1
  77. package/dist/components/Chat/ChatCardTask.mjs +1 -1
  78. package/dist/components/Chat/ChatCardTask.stories.js +1 -1
  79. package/dist/components/Chat/ChatCardTask.stories.mjs +1 -1
  80. package/dist/components/Chat/ChatInterfaceMessages.js +2 -2
  81. package/dist/components/Chat/ChatInterfaceMessages.mjs +1 -1
  82. package/dist/components/Chat/ChatInterfaceMessages.stories.js +9 -9
  83. package/dist/components/Chat/ChatInterfaceMessages.stories.mjs +1 -1
  84. package/dist/components/Chat/ChatMessage.js +1 -1
  85. package/dist/components/Chat/ChatMessage.mjs +1 -1
  86. package/dist/components/Chat/ChatMessage.stories.js +1 -1
  87. package/dist/components/Chat/ChatMessage.stories.mjs +1 -1
  88. package/dist/components/Chat/index.js +2 -2
  89. package/dist/components/Chat/index.mjs +1 -1
  90. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  91. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  92. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  93. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  94. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  95. package/dist/components/HeaderFooter/Header.mjs +1 -1
  96. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  97. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  98. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  100. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  102. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  103. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  104. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  105. package/dist/components/HeaderFooter/index.mjs +1 -1
  106. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  107. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  108. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  109. package/dist/components/Heros/PostHero/index.mjs +1 -1
  110. package/dist/components/Heros/RenderHero.mjs +1 -1
  111. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  112. package/dist/components/Heros/index.mjs +1 -1
  113. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  114. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  115. package/dist/components/Holidays/CalendarView.mjs +1 -1
  116. package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
  117. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  118. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  119. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  120. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  121. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  122. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  123. package/dist/components/Holidays/index.mjs +1 -1
  124. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  125. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  126. package/dist/components/Layouts/Print.js +1 -1
  127. package/dist/components/Layouts/Print.mjs +1 -1
  128. package/dist/components/Layouts/Print.stories.js +1 -1
  129. package/dist/components/Layouts/Print.stories.mjs +1 -1
  130. package/dist/components/Layouts/SlideShow.mjs +1 -1
  131. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  132. package/dist/components/Layouts/index.js +1 -1
  133. package/dist/components/Layouts/index.mjs +1 -1
  134. package/dist/components/Menus/Categories.mjs +1 -1
  135. package/dist/components/Menus/Categories.stories.mjs +1 -1
  136. package/dist/components/Menus/Filter.mjs +1 -1
  137. package/dist/components/Menus/Filter.stories.mjs +1 -1
  138. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  139. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  140. package/dist/components/Menus/RelatedContent.mjs +1 -1
  141. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  142. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  143. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  144. package/dist/components/Menus/SidebarRight.mjs +1 -1
  145. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  146. package/dist/components/Menus/index.mjs +1 -1
  147. package/dist/components/Other/Container.mjs +1 -1
  148. package/dist/components/Other/index.mjs +1 -1
  149. package/dist/components/Payload/Link/index.mjs +1 -1
  150. package/dist/components/Payload/Pagination/index.mjs +1 -1
  151. package/dist/components/Payload/RichText/index.mjs +1 -1
  152. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  153. package/dist/components/Payload/RichText.stories.mjs +1 -1
  154. package/dist/components/Payload/index.mjs +1 -1
  155. package/dist/components/index.js +2 -2
  156. package/dist/components/index.mjs +1 -1
  157. package/dist/components/ui/alert.mjs +1 -1
  158. package/dist/components/ui/alert.stories.mjs +1 -1
  159. package/dist/components/ui/avatar.mjs +1 -1
  160. package/dist/components/ui/avatar.stories.mjs +1 -1
  161. package/dist/components/ui/badge.mjs +1 -1
  162. package/dist/components/ui/badge.stories.mjs +1 -1
  163. package/dist/components/ui/breadcrumb.mjs +1 -1
  164. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  165. package/dist/components/ui/button.mjs +1 -1
  166. package/dist/components/ui/button.stories.mjs +1 -1
  167. package/dist/components/ui/calendar.mjs +1 -1
  168. package/dist/components/ui/card.mjs +1 -1
  169. package/dist/components/ui/card.stories.mjs +1 -1
  170. package/dist/components/ui/checkbox.mjs +1 -1
  171. package/dist/components/ui/command.mjs +1 -1
  172. package/dist/components/ui/command.stories.mjs +1 -1
  173. package/dist/components/ui/dialog.mjs +1 -1
  174. package/dist/components/ui/dialog.stories.mjs +1 -1
  175. package/dist/components/ui/dropdown-menu.mjs +1 -1
  176. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  177. package/dist/components/ui/hover-card.mjs +1 -1
  178. package/dist/components/ui/hover-card.stories.mjs +1 -1
  179. package/dist/components/ui/index.mjs +1 -1
  180. package/dist/components/ui/input.mjs +1 -1
  181. package/dist/components/ui/input.stories.mjs +1 -1
  182. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  183. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  184. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  185. package/dist/components/ui/label.mjs +1 -1
  186. package/dist/components/ui/label.stories.mjs +1 -1
  187. package/dist/components/ui/pagination.mjs +1 -1
  188. package/dist/components/ui/popover.mjs +1 -1
  189. package/dist/components/ui/popover.stories.mjs +1 -1
  190. package/dist/components/ui/scroll-area.mjs +1 -1
  191. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  192. package/dist/components/ui/select.mjs +1 -1
  193. package/dist/components/ui/separator.mjs +1 -1
  194. package/dist/components/ui/separator.stories.mjs +1 -1
  195. package/dist/components/ui/sheet.mjs +1 -1
  196. package/dist/components/ui/sheet.stories.mjs +1 -1
  197. package/dist/components/ui/sidebar.mjs +1 -1
  198. package/dist/components/ui/skeleton.mjs +1 -1
  199. package/dist/components/ui/skeleton.stories.mjs +1 -1
  200. package/dist/components/ui/textarea.mjs +1 -1
  201. package/dist/components/ui/toast.mjs +1 -1
  202. package/dist/components/ui/toast.stories.mjs +1 -1
  203. package/dist/components/ui/toaster.mjs +1 -1
  204. package/dist/components/ui/toggle-group.mjs +1 -1
  205. package/dist/components/ui/toggle.mjs +1 -1
  206. package/dist/components/ui/toggle.stories.mjs +1 -1
  207. package/dist/components/ui/tooltip.mjs +1 -1
  208. package/dist/components/ui/tooltip.stories.mjs +1 -1
  209. package/dist/hooks/index.mjs +1 -1
  210. package/dist/index.js +2 -2
  211. package/dist/index.mjs +1 -1
  212. package/dist/metafile-cjs.json +1 -1
  213. package/dist/metafile-esm.json +1 -1
  214. package/dist/pages/Blog.mjs +1 -1
  215. package/dist/pages/Blog.stories.mjs +1 -1
  216. package/dist/pages/Documentation.mjs +1 -1
  217. package/dist/pages/Documentation.stories.mjs +1 -1
  218. package/dist/pages/IndexPage.mjs +1 -1
  219. package/dist/pages/IndexPage.stories.mjs +1 -1
  220. package/dist/pages/Intranet.mjs +1 -1
  221. package/dist/pages/Intranet.stories.mjs +1 -1
  222. package/dist/pages/LandingPage.mjs +1 -1
  223. package/dist/pages/LandingPage.stories.mjs +1 -1
  224. package/dist/pages/Page.mjs +1 -1
  225. package/dist/pages/Page.stories.mjs +1 -1
  226. package/dist/pages/Printable.stories.js +1 -1
  227. package/dist/pages/Printable.stories.mjs +1 -1
  228. package/dist/pages/Publish.js +1 -1
  229. package/dist/pages/Publish.mjs +1 -1
  230. package/dist/pages/Publish.stories.js +1 -1
  231. package/dist/pages/Publish.stories.mjs +1 -1
  232. package/dist/pages/Website.js +1 -1
  233. package/dist/pages/Website.mjs +1 -1
  234. package/dist/pages/Website.stories.js +1 -1
  235. package/dist/pages/Website.stories.mjs +1 -1
  236. package/dist/sections/AboutSection.mjs +1 -1
  237. package/dist/sections/AboutSection.stories.mjs +1 -1
  238. package/dist/sections/BlogDetail.mjs +1 -1
  239. package/dist/sections/BlogDetail.stories.mjs +1 -1
  240. package/dist/sections/BlogList.mjs +1 -1
  241. package/dist/sections/BlogList.stories.mjs +1 -1
  242. package/dist/sections/BlogListSection.mjs +1 -1
  243. package/dist/sections/BlogListSection.stories.mjs +1 -1
  244. package/dist/sections/ContactSection.mjs +1 -1
  245. package/dist/sections/ContactSection.stories.mjs +1 -1
  246. package/dist/sections/ImageSection.mjs +1 -1
  247. package/dist/sections/ImageSection.stories.mjs +1 -1
  248. package/dist/sections/MainPageSection.mjs +1 -1
  249. package/dist/sections/PageSections.mjs +1 -1
  250. package/dist/sections/PageSections.stories.mjs +1 -1
  251. package/dist/sections/PricingSection.mjs +1 -1
  252. package/dist/sections/PricingSection.stories.mjs +1 -1
  253. package/dist/sections/ServiceDetail.mjs +1 -1
  254. package/dist/sections/ServiceDetailSection.mjs +1 -1
  255. package/dist/sections/ServiceDetailSection.stories.mjs +1 -1
  256. package/dist/sections/ServiceSection.mjs +1 -1
  257. package/dist/sections/ServiceSection.stories.mjs +1 -1
  258. package/dist/sections/form/index.mjs +1 -1
  259. package/dist/sections/index.mjs +1 -1
  260. package/dist/styles/Colors.mjs +1 -1
  261. package/dist/styles/Colors.stories.mjs +1 -1
  262. package/dist/utils/getTableOfContents.js +1 -1
  263. package/dist/utils/getTableOfContents.mjs +1 -1
  264. package/dist/utils/index.js +2 -2
  265. package/dist/utils/index.mjs +1 -1
  266. package/package.json +1 -1
  267. package/dist/chunk-7LGAYY6V.mjs +0 -1
  268. package/dist/chunk-WCQXVVVF.mjs +0 -1
@@ -3,7 +3,7 @@
3
3
  'use server'
4
4
  'use strict'
5
5
 
6
- "use strict";var hc=Object.create;var qo=Object.defineProperty;var xc=Object.getOwnPropertyDescriptor;var wc=Object.getOwnPropertyNames;var Nc=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty;var Pc=(e,t)=>{for(var a in t)qo(e,a,{get:t[a],enumerable:!0})},hn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of wc(t))!Cc.call(e,r)&&r!==a&&qo(e,r,{get:()=>t[r],enumerable:!(o=xc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?hc(Nc(e)):{},hn(t||!e||!e.__esModule?qo(a,"default",{value:e,enumerable:!0}):a,e)),kc=e=>hn(qo({},"__esModule",{value:!0}),e);var Wp={};Pc(Wp,{Alert:()=>ii,AlertDescription:()=>li,AlertTitle:()=>ni,ApproveLeave:()=>en,Avatar:()=>We,AvatarFallback:()=>je,AvatarImage:()=>Ve,Badge:()=>Ue,BannerBlock:()=>pi,BrandLogo:()=>fa,Breadcrumb:()=>ls,BreadcrumbEllipsis:()=>fs,BreadcrumbItem:()=>cs,BreadcrumbLink:()=>ms,BreadcrumbList:()=>ds,BreadcrumbPage:()=>ps,BreadcrumbSeparator:()=>us,Breadcrumbs:()=>Pp,Button:()=>T,CMSLink:()=>ht,CRMKanbanBoard:()=>Fp,Calendar:()=>Bo,CalendarView:()=>sn,CallToActionBlock:()=>Ta,CallToActionBlockOld:()=>Sm,Card:()=>zo,Categories:()=>gp,ChatCardTask:()=>pn,ChatInterfaceMessages:()=>$p,ChatMessage:()=>un,Checkbox:()=>vt,CodeBlock:()=>yi,Collapsible:()=>Bt,CollapsibleContent:()=>Qt,CollapsibleTrigger:()=>Kt,CollectionArchive:()=>Zm,Command:()=>fr,CommandDialog:()=>vl,CommandEmpty:()=>ti,CommandGroup:()=>ai,CommandInput:()=>Zs,CommandItem:()=>ri,CommandList:()=>ei,CommandSeparator:()=>oi,CommandShortcut:()=>si,Container:()=>ji,ContentBlock:()=>Ho,ContentCard:()=>Hm,CopyButton:()=>gi,CustomLink:()=>it,CustomerCard:()=>Kl,DarkTop:()=>Ri,DealCard:()=>ln,DealDetails:()=>nn,Dialog:()=>st,DialogClose:()=>pr,DialogContent:()=>Qe,DialogDescription:()=>Js,DialogFooter:()=>Qs,DialogHeader:()=>bt,DialogOverlay:()=>ur,DialogPortal:()=>Ks,DialogTitle:()=>yt,DialogTrigger:()=>mr,DropdownMenu:()=>Mn,DropdownMenuCheckboxItem:()=>hs,DropdownMenuContent:()=>ys,DropdownMenuGroup:()=>An,DropdownMenuItem:()=>vs,DropdownMenuLabel:()=>ws,DropdownMenuPortal:()=>Bn,DropdownMenuRadioGroup:()=>En,DropdownMenuRadioItem:()=>xs,DropdownMenuSeparator:()=>Ns,DropdownMenuShortcut:()=>Cs,DropdownMenuSub:()=>Ln,DropdownMenuSubContent:()=>bs,DropdownMenuSubTrigger:()=>gs,DropdownMenuTrigger:()=>In,DynamicIcon:()=>De,EventCard:()=>Ql,FeatureCard:()=>Dr,FeatureGrid:()=>id,FeaturesBlock:()=>Ma,Filter:()=>bp,FlowPrintable:()=>Dd,Footer:()=>Mp,Header:()=>Ip,HeaderDesktop:()=>qi,HeaderMobile:()=>Qi,HeadingImage:()=>Ym,Hero:()=>Fm,HighImpactHero:()=>_i,HolidayGrid:()=>rn,HolidayTracker:()=>Lp,HoverCard:()=>ul,HoverCardContent:()=>qs,HoverCardTrigger:()=>fl,Image:()=>ad,ImageBlock:()=>Ni,InfoTile:()=>Gm,Input:()=>_e,Insight:()=>Om,KanbanColumn:()=>mn,Label:()=>ee,LightTop:()=>Ti,Logo:()=>ep,LowImpactHero:()=>Vi,MOTD:()=>$m,Mask:()=>wp,Media:()=>Ot,MediaBlock:()=>Gt,MediumImpactHero:()=>Wi,NewCustomerForm:()=>dn,NewDealForm:()=>cn,NewsGrid:()=>Rd,OrgChart:()=>jm,PagePrintable:()=>Md,PageRange:()=>op,PageShape:()=>$o,Pagination:()=>fp,PayloadPagination:()=>rp,Popover:()=>Do,PopoverAnchor:()=>ll,PopoverContent:()=>qa,PopoverTrigger:()=>Mo,PostHero:()=>hp,PricingCard:()=>Em,Printable:()=>np,ProjectCard:()=>td,ProjectTeam:()=>pp,ProposalSummary:()=>Um,RelatedContent:()=>up,RelatedPosts:()=>Jm,RenderBlocks:()=>ua,RenderBlocksWithShapes:()=>Km,RenderHero:()=>Cp,RequestLeave:()=>on,ReusableContentBlock:()=>Si,RichText:()=>Q,ScrollArea:()=>St,ScrollBar:()=>cr,SectionHero:()=>Xi,Select:()=>ka,SelectContent:()=>la,SelectGroup:()=>xm,SelectItem:()=>da,SelectLabel:()=>Pl,SelectScrollDownButton:()=>mi,SelectScrollUpButton:()=>ci,SelectSeparator:()=>kl,SelectTrigger:()=>na,SelectValue:()=>Sa,Separator:()=>bo,ServiceCard:()=>Lm,Sheet:()=>Qo,SheetClose:()=>Wn,SheetContent:()=>vo,SheetDescription:()=>Ds,SheetFooter:()=>Rs,SheetHeader:()=>Ss,SheetOverlay:()=>Jo,SheetPortal:()=>ks,SheetTitle:()=>Ts,SheetTrigger:()=>$n,Sidebar:()=>va,SidebarContent:()=>Zt,SidebarFooter:()=>xa,SidebarGroup:()=>at,SidebarGroupAction:()=>Fs,SidebarGroupContent:()=>ft,SidebarGroupLabel:()=>Et,SidebarHeader:()=>ha,SidebarInput:()=>Es,SidebarInset:()=>Ls,SidebarLeft:()=>lp,SidebarMenu:()=>$e,SidebarMenuAction:()=>wo,SidebarMenuBadge:()=>Hs,SidebarMenuButton:()=>ot,SidebarMenuItem:()=>Te,SidebarMenuSkeleton:()=>zs,SidebarMenuSub:()=>ea,SidebarMenuSubButton:()=>aa,SidebarMenuSubItem:()=>ta,SidebarProvider:()=>Is,SidebarRail:()=>Bs,SidebarRight:()=>mp,SidebarSeparator:()=>xo,SidebarTrigger:()=>As,SimpleHeader:()=>Sp,Skeleton:()=>de,SlideShow:()=>Pd,TextAndImages:()=>Td,Textarea:()=>ca,Theme:()=>Er,ThemeProvider:()=>xp,ThemeWithShapes:()=>ud,Toast:()=>Po,ToastAction:()=>_s,ToastClose:()=>ko,ToastDescription:()=>Ro,ToastProvider:()=>lr,ToastTitle:()=>So,ToastViewport:()=>Co,Toaster:()=>al,Toggle:()=>Ws,ToggleGroup:()=>Vs,ToggleGroupItem:()=>js,Tooltip:()=>ar,TooltipContent:()=>ho,TooltipProvider:()=>tr,TooltipTrigger:()=>or,VideoHeader:()=>Tp,WhyUs:()=>Xm,badgeVariants:()=>di,buttonVariants:()=>Jt,toggleVariants:()=>To,useIsMobile:()=>er,useSidebar:()=>Xa,useToast:()=>nr});module.exports=kc(Wp);var Wa=h(require("react")),Ko=require("@radix-ui/react-icons"),Dn=require("@radix-ui/react-slot");var Tn=require("clsx");var is="-",Sc=e=>{let t=Tc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(is);return n[0]===""&&n.length!==1&&n.shift(),Nn(n,t)||Rc(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},Nn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Nn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(is);return t.validators.find(({validator:l})=>l(s))?.classGroupId},xn=/^\[(.+)\]$/,Rc=e=>{if(xn.test(e)){let t=xn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Tc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Mc(Object.entries(e.classGroups),a).forEach(([s,l])=>{ss(l,o,s,t)}),o},ss=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:wn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Dc(r)){ss(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ss(l,wn(t,s),a,o)})})},wn=(e,t)=>{let a=e;return t.split(is).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Dc=e=>e.isThemeGetter,Mc=(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,Ic=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)}}},Cn="!",Ac=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],p=0,d=0,m;for(let v=0;v<n.length;v++){let M=n[v];if(p===0){if(M===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(M==="/"){m=v;continue}}M==="["?p++:M==="]"&&p--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Cn),y=g?f.substring(1):f,u=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:l}):l},Bc=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},Lc=e=>({cache:Ic(e.cacheSize),parseClassName:Ac(e),...Sc(e)}),Ec=/\s+/,Fc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Ec),n="";for(let c=l.length-1;c>=0;c-=1){let p=l[c],{modifiers:d,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:g}=a(p),y=!!g,u=o(y?f.substring(0,g):f);if(!u){if(!y){n=p+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=p+(n.length>0?" "+n:n);continue}y=!1}let v=Bc(d).join(":"),M=m?v+Cn:v,O=M+u;if(s.includes(O))continue;s.push(O);let N=r(u,y);for(let L=0;L<N.length;++L){let w=N[L];s.push(M+w)}n=p+(n.length>0?" "+n:n)}return n};function Hc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Pn(t))&&(o&&(o+=" "),o+=a);return o}var Pn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Pn(e[o]))&&(a&&(a+=" "),a+=t);return a};function zc(e,...t){let a,o,r,s=l;function l(c){let p=t.reduce((d,m)=>m(d),e());return a=Lc(p),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let p=o(c);if(p)return p;let d=Fc(c,a);return r(c,d),d}return function(){return s(Hc.apply(null,arguments))}}var Z=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},kn=/^\[(?:([a-tt-]+):)?(.+)\]$/i,Oc=/^\d+\/\d+$/,Gc=new Set(["px","full","screen"]),_c=/^(\d+(\.\d+)?)?(xs|sm|md|lg|_n)$/,$c=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|tt|Qn|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|tt|min|max))|\tt(calc|min|max|clamp)\(.+\)|^0$/,Wc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-tt]+|0)tt-?((\d+)?\.?(\d+)[a-tt]+|0)/,jc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=e=>_a(e)||Gc.has(e)||Oc.test(e),Yt=e=>$a(e,"length",Zc),_a=e=>!!e&&!Number.isNaN(Number(e)),rs=e=>$a(e,"number",_a),fo=e=>!!e&&Number.isInteger(Number(e)),Uc=e=>e.endsWith("%")&&_a(e.slice(0,-1)),I=e=>kn.test(e),qt=e=>_c.test(e),Xc=new Set(["length","size","percentage"]),Yc=e=>$a(e,Xc,Sn),qc=e=>$a(e,"position",Sn),Kc=new Set(["image","url"]),Qc=e=>$a(e,Kc,tm),Jc=e=>$a(e,"",em),go=()=>!0,$a=(e,t,a)=>{let o=kn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Zc=e=>$c.test(e)&&!Wc.test(e),Sn=()=>!1,em=e=>Vc.test(e),tm=e=>jc.test(e);var am=()=>{let e=Z("colors"),t=Z("spacing"),a=Z("blur"),o=Z("brightness"),r=Z("borderColor"),s=Z("borderRadius"),l=Z("borderSpacing"),n=Z("borderWidth"),c=Z("contrast"),p=Z("grayscale"),d=Z("hueRotate"),m=Z("invert"),f=Z("gap"),g=Z("gradientColorStops"),y=Z("gradientColorStopPositions"),u=Z("inset"),v=Z("margin"),M=Z("opacity"),O=Z("padding"),N=Z("saturate"),L=Z("scale"),w=Z("sepia"),K=Z("skew"),Ga=Z("space"),fn=Z("translate"),es=()=>["auto","contain","none"],ts=()=>["auto","hidden","clip","visible","scroll"],as=()=>["auto",I,t],oe=()=>[I,t],gn=()=>["",At,Yt],Xo=()=>["auto",_a,I],bn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Yo=()=>["solid","dashed","dotted","double","none"],yn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],os=()=>["start","end","center","between","around","evenly","stretch"],uo=()=>["","0",I],vn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],It=()=>[_a,I];return{cacheSize:500,separator:":",theme:{colors:[go],spacing:[At,Yt],blur:["none","",qt,I],brightness:It(),borderColor:[e],borderRadius:["none","","full",qt,I],borderSpacing:oe(),borderWidth:gn(),contrast:It(),grayscale:uo(),hueRotate:It(),invert:uo(),gap:oe(),gradientColorStops:[e],gradientColorStopPositions:[Uc,Yt],inset:as(),margin:as(),opacity:It(),padding:oe(),saturate:It(),scale:It(),sepia:uo(),skew:It(),space:oe(),translate:oe()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[qt]}],"break-after":[{"break-after":vn()}],"break-before":[{"break-before":vn()}],"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:[...bn(),I]}],overflow:[{overflow:ts()}],"overflow-tt":[{"overflow-tt":ts()}],"overflow-y":[{"overflow-y":ts()}],overscroll:[{overscroll:es()}],"overscroll-tt":[{"overscroll-tt":es()}],"overscroll-y":[{"overscroll-y":es()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-tt":[{"inset-tt":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],tt:[{tt:["auto",fo,I]}],basis:[{basis:as()}],"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:uo()}],shrink:[{shrink:uo()}],order:[{order:["first","last","none",fo,I]}],"grid-cols":[{"grid-cols":[go]}],"col-start-end":[{col:["auto",{span:["full",fo,I]},I]}],"col-start":[{"col-start":Xo()}],"col-end":[{"col-end":Xo()}],"grid-rows":[{"grid-rows":[go]}],"row-start-end":[{row:["auto",{span:[fo,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:[f]}],"gap-tt":[{"gap-tt":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...os()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...os(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...os(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],tt:[{tt:[O]}],tt:[{tt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],tt:[{tt:[v]}],tt:[{tt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],tt:[{tt:[v]}],"space-tt":[{"space-tt":[Ga]}],"space-tt-reverse":["space-tt-reverse"],"space-y":[{"space-y":[Ga]}],"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",rs]}],"font-family":[{font:[go]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",_a,rs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","fd-underline"],"text-decoration-style":[{decoration:[...Yo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,Yt]}],"underline-offset":[{"underline-offset":["auto",At,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:oe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...bn(),qc]}],"bg-repeat":[{bg:["fd-repeat",{repeat:["","tt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yc]}],"bg-image":[{bg:["none",{"gradient-Qn":["t","tr","r","tt","tt","Qn","l","Qn"]},Qc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-Qn-pos":[{Qn:[y]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Qn":[{Qn:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-Qn":[{"rounded-Qn":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-Qn":[{"rounded-Qn":[s]}],"border-w":[{border:[n]}],"border-w-tt":[{"border-tt":[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-tt":[{"border-tt":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Yo(),"hidden"]}],"divide-tt":[{"divide-tt":[n]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Yo()}],"border-color":[{border:[r]}],"border-color-tt":[{"border-tt":[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-tt":[{"border-tt":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Yo()]}],"outline-offset":[{"outline-offset":[At,I]}],"outline-w":[{outline:[At,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:gn()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[At,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Jc]}],"shadow-color":[{shadow:[go]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...yn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":yn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",qt,I]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[N]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"border-spacing-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:It()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:It()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-tt":[{"scale-tt":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[fo,I]}],"translate-tt":[{"translate-tt":[fn]}],"translate-y":[{"translate-y":[fn]}],"skew-tt":[{"skew-tt":[K]}],"skew-y":[{"skew-y":[K]}],"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","fd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","tt-resize","nw-resize","tt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":oe()}],"scroll-mx":[{"scroll-mx":oe()}],"scroll-my":[{"scroll-my":oe()}],"scroll-ms":[{"scroll-ms":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-mr":[{"scroll-mr":oe()}],"scroll-mb":[{"scroll-mb":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-p":[{"scroll-p":oe()}],"scroll-px":[{"scroll-px":oe()}],"scroll-py":[{"scroll-py":oe()}],"scroll-ps":[{"scroll-ps":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-pr":[{"scroll-pr":oe()}],"scroll-pb":[{"scroll-pb":oe()}],"scroll-pl":[{"scroll-pl":oe()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","tt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-tt":[{"touch-pan":["tt","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:[At,Yt,rs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-tt","overflow-y"],overscroll:["overscroll-tt","overscroll-y"],inset:["inset-tt","inset-y","start","end","top","right","bottom","left"],"inset-tt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-tt","gap-y"],p:["px","py","ps","tt","tt","pr","pb","pl"],px:["pr","pl"],py:["tt","pb"],m:["mx","my","ms","tt","tt","mr","mb","tt"],mx:["mr","tt"],my:["tt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-tt","rounded-l","rounded-ss","rounded-tt","rounded-ee","rounded-es","rounded-Qn","rounded-tr","rounded-tt","rounded-Qn"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-tt","rounded-ee"],"rounded-t":["rounded-Qn","rounded-tr"],"rounded-r":["rounded-tr","rounded-tt"],"rounded-tt":["rounded-tt","rounded-Qn"],"rounded-l":["rounded-Qn","rounded-Qn"],"border-spacing":["border-spacing-tt","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-tt","border-w-l"],"border-w-tt":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-tt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-tt","border-color-l"],"border-color-tt":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-tt"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-tt","scroll-tt","scroll-mr","scroll-mb","scroll-tt"],"scroll-mx":["scroll-mr","scroll-tt"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-tt","scroll-tt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-tt","scroll-pb"],touch:["touch-tt","touch-y","touch-pz"],"touch-tt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Rn=zc(am);function i(...e){return Rn((0,Tn.clsx)(e))}function ns(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),n.richText?.root?.children&&n.richText?.root?.children.length===1){let c=n.richText.root.children.filter(p=>p!==void 0&&p.type==="heading");for(let p of c)p.children[0]&&l.push({text:p.children[0].text??"",id:a(p.children[0].text,t++),tag:p.tag||"h2"})}}),l}),r=om(e.layout);return{tableOfContents:o,contentWithIds:r}}function om(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 tt=require("react/jsx-runtime"),ls=Wa.forwardRef(({...e},t)=>(0,tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ls.displayName="Breadcrumb";var ds=Wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ol",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ds.displayName="BreadcrumbList";var cs=Wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));cs.displayName="BreadcrumbItem";var ms=Wa.forwardRef(({asChild:e,className:t,...a},o)=>(0,tt.jsx)(e?Dn.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));ms.displayName="BreadcrumbLink";var ps=Wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));ps.displayName="BreadcrumbPage";var us=({children:e,className:t,...a})=>(0,tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,tt.jsx)(Ko.ChevronRightIcon,{})});us.displayName="BreadcrumbSeparator";var fs=({className:e,...t})=>(0,tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(Ko.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More"})]});fs.displayName="BreadcrumbElipssis";var Va=h(require("@radix-ui/react-collapsible")),Bt=Va.Root,Kt=Va.CollapsibleTrigger,Qt=Va.CollapsibleContent;var Lt=h(require("react")),E=h(require("@radix-ui/react-dropdown-menu"));var Mn=E.Root,In=E.Trigger,An=E.Group,Bn=E.Portal,Ln=E.Sub,En=E.RadioGroup,gs=Lt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,tt.jsxs)(E.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,tt.jsx)(Ko.ChevronRightIcon,{className:"tt-auto"})]}));gs.displayName=E.SubTrigger.displayName;var bs=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.SubContent,{ref:a,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));bs.displayName=E.SubContent.displayName;var ys=Lt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(E.Portal,{children:(0,tt.jsx)(E.Content,{ref:o,sideOffset:t,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ys.displayName=E.Content.displayName;var vs=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));vs.displayName=E.Item.displayName;var hs=Lt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,tt.jsxs)(E.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(Ko.CheckIcon,{className:"h-4 w-4"})})}),t]}));hs.displayName=E.CheckboxItem.displayName;var xs=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(E.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(Ko.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));xs.displayName=E.RadioItem.displayName;var ws=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ws.displayName=E.Label.displayName;var Ns=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));Ns.displayName=E.Separator.displayName;var Cs=({className:e,...t})=>(0,tt.jsx)("span",{className:i("tt-auto text-xs tracking-widest opacity-60",e),...t});Cs.displayName="DropdownMenuShortcut";var Fn=h(require("react"));var _e=Fn.forwardRef(({className:e,type:t,...a},o)=>(0,tt.jsx)("input",{type:t,className:i("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));_e.displayName="Input";var zn=h(require("react")),Ps=h(require("@radix-ui/react-separator"));var bo=zn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,tt.jsx)(Ps.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}));bo.displayName=Ps.Root.displayName;var yo=h(require("react")),le=h(require("@radix-ui/react-dialog")),_n=require("class-variance-authority");var Qo=le.Root,$n=le.Trigger,Wn=le.Close,ks=le.Portal,Jo=yo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(le.Overlay,{className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Jo.displayName=le.Overlay.displayName;var rm=(0,_n.cva)("fixed tt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-tt-0 top-0 border-tt data-[state=closed]:slide-out-Qn-top data-[state=open]:slide-in-from-top",bottom:"inset-tt-0 bottom-0 border-t data-[state=closed]:slide-out-Qn-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-Qn-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-Qn-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vo=yo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,tt.jsxs)(ks,{children:[(0,tt.jsx)(Jo,{}),(0,tt.jsxs)(le.Content,{ref:r,className:i(rm({side:e}),t),...o,children:[(0,tt.jsxs)(le.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,tt.jsx)(Ko.Cross2Icon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));vo.displayName=le.Content.displayName;var Ss=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ss.displayName="SheetHeader";var Rs=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});Rs.displayName="SheetFooter";var Ts=yo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(le.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));Ts.displayName=le.Title.displayName;var Ds=yo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(le.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Ds.displayName=le.Description.displayName;var H=h(require("react")),Qn=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 Un=h(require("react")),Jt=(0,_n.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Un.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,tt.jsx)(e?Dn.Slot:"button",{className:i(Jt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function de({className:e,...t}){return(0,tt.jsx)("div",{className:i("animate-pulse rounded-md bg-primary/10",e),...t})}var qn=h(require("react")),ut=h(require("@radix-ui/react-tooltip"));var tr=ut.Provider,ar=ut.Root,or=ut.Trigger,ho=qn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(ut.Portal,{children:(0,tt.jsx)(ut.Content,{ref:o,sideOffset:t,className:i("tt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ho.displayName=ut.Content.displayName;var sm="sidebar:state",im=60*60*24*7,nm="16rem",lm="18rem",dm="3rem",cm="tt",Jn=H.createContext(null);function Xa(){let e=H.useContext(Jn);if(!e)throw new Error("useSidebar must tt used within a SidebarProvider.");return e}var Is=H.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=er(),[p,d]=H.useState(!1),[m,f]=H.useState(e),g=t??m,y=H.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(g):O);f(O),document.cookie=`${sm}=${g}; path=/; max-age=${im}`},[a,g]),u=H.useCallback(()=>c?d(O=>!O):y(O=>!O),[c,y,d]);H.useEffect(()=>{let O=N=>{N.key===cm&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",M=H.useMemo(()=>({state:v,open:g,setOpen:y,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:u}),[v,g,y,c,p,d,u]);return(0,tt.jsx)(Jn.Provider,{value:M,children:(0,tt.jsx)(tr,{delayDuration:0,children:(0,tt.jsx)("div",{style:{"--sidebar-width":nm,"--sidebar-width-icon":dm,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});Is.displayName="SidebarProvider";var va=H.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:p,setOpenMobile:d}=Xa();return a==="none"?(0,tt.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,tt.jsx)(Qo,{open:p,onOpenChange:d,...s,children:(0,tt.jsx)(vo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":lm},side:e,children:(0,tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,tt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,tt.jsx)("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,tt.jsx)("div",{className:i("duration-200 fixed top-14 bottom-0 tt-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4)tt+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,tt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});va.displayName="Sidebar";var As=H.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Xa();return(0,tt.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,tt.jsx)(Qn.PanelLeft,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});As.displayName="SidebarTrigger";var Bs=H.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Xa();return(0,tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-y-0 tt-20 hidden w-4 -translate-tt-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]tt&]:cursor-w-resize [[data-side=right]tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]tt&]:-left-2",e),...t})});Bs.displayName="SidebarRail";var Ls=H.forwardRef(({className:e,...t},a)=>(0,tt.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]:tt-2 md:peer-data-[variant=inset]:tt-0 md:peer-data-[variant=inset]:rounded-_n md:peer-data-[variant=inset]:shadow",e),...t}));Ls.displayName="SidebarInset";var Es=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(_e,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Es.displayName="SidebarInput";var ha=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));ha.displayName="SidebarHeader";var xa=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarFooter";var xo=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(bo,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));xo.displayName="SidebarSeparator";var Zt=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Zt.displayName="SidebarContent";var at=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));at.displayName="SidebarGroup";var Et=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Dn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-tt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Et.displayName="SidebarGroupLabel";var Fs=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Dn.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}));Fs.displayName="SidebarGroupAction";var ft=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));ft.displayName="SidebarGroupContent";var $e=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));$e.displayName="SidebarMenu";var Te=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));Te.displayName="SidebarMenuItem";var mm=(0,_n.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ot=H.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?Dn.Slot:"button",{isMobile:p,state:d}=Xa(),m=(0,tt.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(mm({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,tt.jsxs)(ar,{children:[(0,tt.jsx)(or,{asChild:!0,children:m}),(0,tt.jsx)(ho,{side:"right",align:"center",hidden:d!=="collapsed"||p,...r})]})):m});ot.displayName="SidebarMenuButton";var wo=H.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,tt.jsx)(t?Dn.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}));wo.displayName="SidebarMenuAction";var Hs=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Hs.displayName="SidebarMenuBadge";var zs=H.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=H.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,tt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,tt.jsx)(de,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,tt.jsx)(de,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});zs.displayName="SidebarMenuSkeleton";var ea=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ea.displayName="SidebarMenuSub";var ta=H.forwardRef(({...e},t)=>(0,tt.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,tt.jsx)(e?Dn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("flex h-7 min-w-0 -translate-tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));aa.displayName="SidebarMenuSubButton";var ir=h(require("react")),pm=1,um=1e6;var Os=0;function fm(){return Os=(Os+1)%Number.MAX_SAFE_INTEGER,Os.toString()}var Gs=new Map,Zn=e=>{if(Gs.has(e))return;let t=setTimeout(()=>{Gs.delete(e),No({type:"REMOVE_TOAST",toastId:e})},um);Gs.set(e,t)},gm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,pm)};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?Zn(a):e.toasts.forEach(o=>{Zn(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},rr=[],sr={toasts:[]};function No(e){sr=gm(sr,e),rr.forEach(t=>{t(sr)})}function bm({...e}){let t=fm(),a=r=>No({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>No({type:"DISMISS_TOAST",toastId:t});return No({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function nr(){let[e,t]=ir.useState(sr);return ir.useEffect(()=>(rr.push(t),()=>{let a=rr.indexOf(t);a>-1&&rr.splice(a,1)}),[e]),{...e,toast:bm,dismiss:a=>No({type:"DISMISS_TOAST",toastId:a})}}var wa=h(require("react")),ge=h(require("@radix-ui/react-toast"));var lr=ge.Provider,Co=wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ge.Viewport,{ref:a,className:i("fixed top-0 tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Co.displayName=ge.Viewport.displayName;var ym=(0,_n.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-tt-0 data-[swipe=end]:translate-tt-[var(--radix-toast-swipe-end-tt)] data-[swipe=move]:translate-tt-[var(--radix-toast-swipe-move-tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-Qn-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Po=wa.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)(ge.Root,{ref:o,className:i(ym({variant:t}),e),...a}));Po.displayName=ge.Root.displayName;var _s=wa.forwardRef(({className:e,...t},a)=>(0,tt.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}));_s.displayName=ge.Action.displayName;var ko=wa.forwardRef(({className:e,...t},a)=>(0,tt.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,tt.jsx)(Qn.tt,{className:"h-4 w-4"})}));ko.displayName=ge.Close.displayName;var So=wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ge.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));So.displayName=ge.Title.displayName;var Ro=wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ge.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Ro.displayName=ge.Description.displayName;function al(){let{toasts:e}=nr();return(0,tt.jsxs)(lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,tt.jsxs)(Po,{...s,children:[(0,tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,tt.jsx)(So,{children:a}),o&&(0,tt.jsx)(Ro,{children:o})]}),r,(0,tt.jsx)(ko,{})]},t)}),(0,tt.jsx)(Co,{})]})}var ol=h(require("react")),$s=h(require("@radix-ui/react-toggle"));var To=(0,_n.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"}}),Ws=ol.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,tt.jsx)($s.Root,{ref:r,className:i(To({variant:t,size:a,className:e})),...o}));Ws.displayName=$s.Root.displayName;var Na=h(require("react")),Ya=h(require("@radix-ui/react-toggle-group"));var il=Na.createContext({size:"default",variant:"default"}),Vs=Na.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,tt.jsx)(Ya.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,tt.jsx)(il.Provider,{value:{variant:t,size:a},children:o})}));Vs.displayName=Ya.Root.displayName;var js=Na.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=Na.useContext(il);return(0,tt.jsx)(Ya.Item,{ref:s,className:i(To({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});js.displayName=Ya.Item.displayName;var Us=h(require("react")),rt=h(require("@radix-ui/react-scroll-area"));var St=Us.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(rt.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,tt.jsx)(rt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,tt.jsx)(cr,{}),(0,tt.jsx)(rt.Corner,{})]}));St.displayName=rt.Root.displayName;var cr=Us.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,tt.jsx)(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,tt.jsx)(rt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));cr.displayName=rt.ScrollAreaScrollbar.displayName;var nl=h(require("react")),gt=h(require("@radix-ui/react-popover"));var Do=gt.Root,Mo=gt.Trigger,ll=gt.Anchor,qa=nl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(gt.Portal,{children:(0,tt.jsx)(gt.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));qa.displayName=gt.Content.displayName;var dl=h(require("react")),Ys=h(require("@radix-ui/react-label"));var vm=(0,_n.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ee=dl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ys.Root,{ref:a,className:i(vm(),e),...t}));ee.displayName=Ys.Root.displayName;var pl=h(require("react")),Ca=h(require("@radix-ui/react-hover-card"));var ul=Ca.Root,fl=Ca.Trigger,qs=pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(Ca.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));qs.displayName=Ca.Content.displayName;var Io=h(require("react")),ce=h(require("@radix-ui/react-dialog"));var st=ce.Root,mr=ce.Trigger,Ks=ce.Portal,pr=ce.Close,ur=Io.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ce.Overlay,{ref:a,className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ur.displayName=ce.Overlay.displayName;var Qe=Io.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(Ks,{children:[(0,tt.jsx)(ur,{}),(0,tt.jsxs)(ce.Content,{ref:o,className:i("fixed left-[50%] top-[50%] tt-50 grid w-full max-w-lg translate-tt-[-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-Qn-left-1/2 data-[state=closed]:slide-out-Qn-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,tt.jsxs)(ce.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,tt.jsx)(Qn.tt,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Qe.displayName=ce.Content.displayName;var bt=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});bt.displayName="DialogHeader";var Qs=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});Qs.displayName="DialogFooter";var yt=Io.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ce.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));yt.displayName=ce.Title.displayName;var Js=Io.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ce.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Js.displayName=ce.Description.displayName;var sa=h(require("react")),Fe=require("cmdk");var fr=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.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=Fe.Command.displayName;var vl=({children:e,...t})=>(0,tt.jsx)(st,{...t,children:(0,tt.jsx)(Qe,{className:"overflow-hidden p-0",children:(0,tt.jsx)(fr,{className:"[&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground [&tt[cmdk-group]:not([hidden])tt~[cmdk-group]]:tt-0 [&tt[cmdk-group]]:px-2 [&tt[cmdk-input-wrapper]_svg]:h-5 [&tt[cmdk-input-wrapper]_svg]:w-5 [&tt[cmdk-input]]:h-12 [&tt[cmdk-item]]:px-2 [&tt[cmdk-item]]:py-3 [&tt[cmdk-item]_svg]:h-5 [&tt[cmdk-item]_svg]:w-5",children:e})})}),Zs=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsxs)("div",{className:"flex items-center border-tt px-3","cmdk-input-wrapper":"",children:[(0,tt.jsx)(Qn.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,tt.jsx)(Fe.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})]}));Zs.displayName=Fe.Command.Input.displayName;var ei=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.Command.List,{ref:a,className:i("max-h-[300px] overflow-y-auto overflow-tt-hidden",e),...t}));ei.displayName=Fe.Command.List.displayName;var ti=sa.forwardRef((e,t)=>(0,tt.jsx)(Fe.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ti.displayName=Fe.Command.Empty.displayName;var ai=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.Command.Group,{ref:a,className:i("overflow-hidden p-1 text-foreground [&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:py-1.5 [&tt[cmdk-group-heading]]:text-xs [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));ai.displayName=Fe.Command.Group.displayName;var oi=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));oi.displayName=Fe.Command.Separator.displayName;var ri=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.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}));ri.displayName=Fe.Command.Item.displayName;var si=({className:e,...t})=>(0,tt.jsx)("span",{className:i("tt-auto text-xs tracking-widest text-muted-foreground",e),...t});si.displayName="CommandShortcut";var gr=h(require("react"));var hm=(0,_n.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ii=gr.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)("div",{ref:o,role:"alert",className:i(hm({variant:t}),e),...a}));ii.displayName="Alert";var ni=gr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));ni.displayName="AlertTitle";var li=gr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));li.displayName="AlertDescription";var yr=h(require("react")),Ht=h(require("@radix-ui/react-avatar"));var We=yr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ht.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));We.displayName=Ht.Root.displayName;var Ve=yr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ht.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));Ve.displayName=Ht.Image.displayName;var je=yr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ht.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));je.displayName=Ht.Fallback.displayName;var di=(0,_n.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 Ue({className:e,variant:t,...a}){return(0,tt.jsx)("div",{className:i(di({variant:t}),e),...a})}var Ao=h(require("@radix-ui/react-checkbox")),Cl=h(require("react")),vt=Cl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ao.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,tt.jsx)(Ao.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,tt.jsx)(Qn.Check,{className:"h-4 w-4"})})}));vt.displayName=Ao.Root.displayName;var G=h(require("@radix-ui/react-select")),ia=h(require("react")),ka=G.Root,xm=G.Group,Sa=G.Value,na=ia.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,tt.jsx)(G.Icon,{asChild:!0,children:(0,tt.jsx)(Qn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));na.displayName=G.Trigger.displayName;var ci=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(Qn.ChevronUp,{className:"h-4 w-4"})}));ci.displayName=G.ScrollUpButton.displayName;var mi=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(Qn.ChevronDown,{className:"h-4 w-4"})}));mi.displayName=G.ScrollDownButton.displayName;var la=ia.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,tt.jsx)(G.Portal,{children:(0,tt.jsxs)(G.Content,{className:i("relative tt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-tt-1 data-[side=right]:translate-tt-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,tt.jsx)(ci,{}),(0,tt.jsx)(G.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,tt.jsx)(mi,{})]})}));la.displayName=G.Content.displayName;var Pl=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Label,{className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Pl.displayName=G.Label.displayName;var da=ia.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(G.ItemIndicator,{children:(0,tt.jsx)(Qn.Check,{className:"h-4 w-4"})})}),(0,tt.jsx)(G.ItemText,{children:e})]}));da.displayName=G.Item.displayName;var kl=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));kl.displayName=G.Separator.displayName;var Sl=h(require("react")),ca=Sl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ca.displayName="Textarea";var Tl=require("react-day-picker");function Bo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,tt.jsx)(Tl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-tt-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center tt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-tt-1 flex items-center",nav_button:i(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-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:tt-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:i(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})}Bo.displayName="Calendar";var pi=({className:e,content:t,style:a})=>(0,tt.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,tt.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,tt.jsx)(Q,{content:t,enableGutter:!1,enableProse:!1})})});var ui=h(require("next/link")),ht=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:n,size:c,url:p}=e,d=t==="reference"&&typeof n?.value=="object"&&n.value.slug?`${n?.relationTo!=="pages"?`/${n?.relationTo}`:""}/${n.value.slug}`:p;if(!d)return null;let m=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,tt.jsxs)(ui.default,{className:i(r),href:d||p||"",...f,children:[s&&s,o&&o]}):(0,tt.jsx)(T,{asChild:!0,className:r,size:m,variant:a,children:(0,tt.jsxs)(ui.default,{className:i(r),href:d||p||"",...f,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 wm({className:e,...t}){return(0,tt.jsx)("input",{...t,className:wr({className:e})})}function Nr({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(wm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Nm({className:e,...t}){return(0,tt.jsx)("textarea",{...t,className:i(wr({}),"resize-none md:min-h-[130px]",e)})}function Ml({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Nm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Al=require("formik"),Bl=require("react-icons/fa6"),Ra=h(require("yup"));async function Il(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.fd/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:"fd-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 fi=require("sonner"),xt={tooShort:"Must tt at least ${min} characters",tooLong:"Must tt at most ${max} characters",required:"This field is required",email:"Invalid email format"},Cm=Ra.object().shape({name:Ra.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),email:Ra.string().email(xt.email).required(xt.required),subject:Ra.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),message:Ra.string().min(2,xt.tooShort).max(300,xt.tooLong).required(xt.required)}),Cr=i("!pr-[44px] text-foreground"),Pr=i("!border-red-600 border"),kr=i("sr-only");function Ll(){return(0,tt.jsx)(Al.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Cm,onSubmit:async(e,{resetForm:t})=>{let a=await Il(e);a.data===null?fi.toast.error(a.message):(fi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,tt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 tt-2 lg:grid-cols-2",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Nr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Bl.FaUser,{className:"text-primary"}),className:i(Cr,e.name&&t.name&&Pr)}),e.name&&t.name&&(0,tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:kr,children:e.name})]}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Nr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Pm,{}),className:i(Cr,e.email&&t.email&&Pr)}),e.email&&t.email&&(0,tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:kr,children:e.email})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.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,tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:kr,children:e.subject})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(Ml,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(km,{}),className:i(Cr,e.message&&t.message&&Pr)}),e.message&&t.message&&(0,tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:kr,children:e.message})]}),(0,tt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,tt.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Pm(){return(0,tt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function km(){return(0,tt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Sm=({links:e,richText:t})=>(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,tt.jsx)(Q,{className:"mb-0",content:t,enableGutter:!1})}),(0,tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,tt.jsx)(ht,{size:"lg",...a},o))})]})}),Ta=({links:e,richText:t})=>{let[a,o]=(0,Zo.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,tt.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,tt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,tt.jsx)(Q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,tt.jsx)("div",{className:"tt-10 flex items-center justify-center gap-tt-6",children:(0,tt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},p)=>c?.url==="/contact"?(0,tt.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white fd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},p):(0,tt.jsx)(ht,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white fd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},p))})})]})}),a&&(0,tt.jsx)("div",{className:"absolute inset-0 tt-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,tt.jsxs)("div",{className:"bg-white p-6 tt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,tt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,tt.jsx)(Ll,{})," "]})})]})};var Sr=require("prism-react-renderer");function gi({code:e}){let[t,a]=(0,Zo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,tt.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,tt.jsx)("p",{children:t}),(0,tt.jsx)("div",{className:"w-6 h-6",children:(0,tt.jsx)(Qn.ClipboardCopy,{})})]})})}var zl=({code:e,language:t=""})=>e?(0,tt.jsx)(Sr.Highlight,{code:e,language:t,theme:Sr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-tt-auto",children:[r.map((s,l)=>(0,tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,tt.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,tt.jsx)("span",{...o({token:n})},c))})]},l)),(0,tt.jsx)(gi,{code:e})]})}):null;var yi=({className:e,code:t,language:a})=>(0,tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,tt.jsx)(zl,{code:t,language:a})});var Gl=h(require("next/image")),Rm={"3xl":1920,"2xl":1536,_n:1280,lg:1024,md:768,sm:640},Ol="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=",_l=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,p,d,m=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:M,url:O,width:N}=s;if(M&&M>500){let L=500/M;p=N*L,d=M*L}else p=N,d=M;m=u||"",f=O||Ol}let g=c||"lazy",y=l||Object.entries(Rm).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,tt.jsx)("picture",{children:(0,tt.jsx)(Gl.default,{alt:m||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Ol,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:y,src:f,width:a?void 0:p})})};var $l=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,tt.jsx)("video",{autoPlay:!0,className:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,tt.jsx)("source",{src:a.url||""})})}return null};var Ot=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,tt.jsx)(a||Zo.Fragment,{...a!==null?{className:t}:{},children:r?(0,tt.jsx)($l,{...e}):(0,tt.jsx)(_l,{...e})})};var Gt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,tt.jsx)(Ot,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Ni=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("",{container:a},t),children:(0,tt.jsx)(Ot,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ma=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,tt.jsxs)("section",{className:i(r?"w-full":"container",""),children:[(0,tt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,tt.jsx)("h2",{className:"mb-6 tt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,tt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,tt.jsx)("div",{className:"mb-5 text-foreground",children:(0,tt.jsx)(Q,{content:t,enableGutter:!1})})]}),(0,tt.jsx)("div",{className:`grid gap-6 tt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,tt.jsx)(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:n()??{type:"none",icon:null}},l)})})]});var Mr=h(require("react"));function Eo({nodes:e}){return(0,tt.jsx)(Mr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,tt.jsx)(Mr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,tt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,tt.jsx)("table",{children:(0,tt.jsx)("tbody",{children:t.children.map((s,l)=>(0,tt.jsx)("tr",{children:s.children.map((n,c)=>(0,tt.jsx)("td",{children:Eo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Eo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,tt.jsx)(Ta,{...s},a);case"mediaBlock":return(0,tt.jsx)(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,tt.jsx)(Ni,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,tt.jsx)(pi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,tt.jsx)(yi,{className:"col-start-2",...s},a);case"features":return(0,tt.jsx)(Ma,{...s,nested:!0},a);case"reusableContentBlock":Eo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,tt.jsx)("tt",{className:"col-start-2"},a);case"paragraph":return(0,tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,tt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,tt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,tt.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Eo({nodes:t?.root?.children})}):null;var De=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",n=r+s+" fa-"+a+" "+l;return(0,tt.jsx)("i",{className:n})};var Xl=h(require("next/image"));function Ul(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}){let p={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Qn-tt from-[#A42368] Qn-[#4A1030]",radial:"bg-gradient-Qn-tt from-[#4A1030] Qn-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("a",{href:n?.url||"#",className:i("min-w-56 max-w-_n h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&p[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,tt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,tt.jsx)(Xl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,tt.jsxs)("div",{className:i(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,tt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,tt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,tt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,tt.jsx)(Tm,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"fd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,tt.jsx)(Q,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-_n","space-y-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,tt.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-_n","space-y-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,tt.jsx)("div",{className:"tt-6",children:(0,tt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:n?.label||"Find out more"})})]})]})}var Tm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="fd-icon-error"?(0,tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,tt.jsx)("div",{className:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Ul(e)&&(0,tt.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 tt-1 tt-1":""),children:(0,tt.jsx)(De,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="fd-icon-error"?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[Ul(e)&&(0,tt.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(De,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:i("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Yl=h(require("next/image")),ql=h(require("next/link"));var Ia=h(require("react"));var ye=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("rounded-_n border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var Me=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex flex-col space-y-1.5 p-6",e),...t}));Me.displayName="CardHeader";var Ie=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));Ie.displayName="CardTitle";var Ci=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Ci.displayName="CardDescription";var Pe=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("p-6 tt-0",e),...t}));Pe.displayName="CardContent";var Pi=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex items-center p-6 tt-0",e),...t}));Pi.displayName="CardFooter";function Kl({name:e,logo:t,href:a}){return(0,tt.jsx)(ye,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,tt.jsxs)(ql.default,{href:a,className:"block",children:[(0,tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,tt.jsx)(Yl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,tt.jsx)(Pe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Qn-tt from-gray-900 via-brand-one Qn-gray-900",children:(0,tt.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function Ql({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,tt.jsx)($t.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,tt.jsx)($t.Award,{className:"h-4 w-4"});case"companyEvent":return(0,tt.jsx)($t.PartyPopper,{className:"h-4 w-4"});default:return(0,tt.jsx)($t.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 Qn-slate-500"}};return(0,tt.jsxs)(ye,{className:`w-full max-w-md overflow-hidden bg-gradient-Qn-tt ${l(e)}`,children:[(0,tt.jsxs)(Me,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,tt.jsxs)(We,{className:"h-14 w-14 border-2 border-white",children:[(0,tt.jsx)(Ve,{src:r,alt:a||"Event"}),(0,tt.jsx)(je,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,tt.jsxs)("div",{className:"flex flex-col",children:[(0,tt.jsx)(Ie,{className:"text-_n",children:a||"Untitled Event"}),(0,tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,tt.jsx)($t.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,tt.jsxs)(Pe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,tt.jsxs)(Ue,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,tt.jsx)("span",{className:"tt-1",children:e?e.replace(/([a-tt])([tt-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Zl=h(require("next/link"));var ed=h(require("next/image")),Jl={sm:"640px",md:"768px",lg:"1024px",_n:"1280px","2xl":"1400px"};function td({slug:e,image:t,title:a,description:o}){return(0,tt.jsxs)(Zl.default,{href:e,className:"group/portfolio relative tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,tt.jsx)("span",{className:i("absolute inset-0 tt-[2] bg-gradient-1 from-primary/0 Qn-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,tt.jsx)(ed.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
6
+ "use strict";var hc=Object.create;var qo=Object.defineProperty;var xc=Object.getOwnPropertyDescriptor;var wc=Object.getOwnPropertyNames;var Nc=Object.getPrototypeOf,Cc=Object.prototype.hasOwnProperty;var Pc=(e,t)=>{for(var a in t)qo(e,a,{get:t[a],enumerable:!0})},hn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of wc(t))!Cc.call(e,r)&&r!==a&&qo(e,r,{get:()=>t[r],enumerable:!(o=xc(t,r))||o.enumerable});return e};var h=(e,t,a)=>(a=e!=null?hc(Nc(e)):{},hn(t||!e||!e.__esModule?qo(a,"default",{value:e,enumerable:!0}):a,e)),kc=e=>hn(qo({},"__esModule",{value:!0}),e);var Wp={};Pc(Wp,{Alert:()=>ii,AlertDescription:()=>li,AlertTitle:()=>ni,ApproveLeave:()=>en,Avatar:()=>We,AvatarFallback:()=>je,AvatarImage:()=>Ve,Badge:()=>Ue,BannerBlock:()=>pi,BrandLogo:()=>fa,Breadcrumb:()=>ls,BreadcrumbEllipsis:()=>fs,BreadcrumbItem:()=>cs,BreadcrumbLink:()=>ms,BreadcrumbList:()=>ds,BreadcrumbPage:()=>ps,BreadcrumbSeparator:()=>us,Breadcrumbs:()=>Pp,Button:()=>T,CMSLink:()=>ht,CRMKanbanBoard:()=>Fp,Calendar:()=>Bo,CalendarView:()=>sn,CallToActionBlock:()=>Ta,CallToActionBlockOld:()=>Sm,Card:()=>zo,Categories:()=>gp,ChatCardTask:()=>pn,ChatInterfaceMessages:()=>$p,ChatMessage:()=>un,Checkbox:()=>vt,CodeBlock:()=>yi,Collapsible:()=>Bt,CollapsibleContent:()=>Qt,CollapsibleTrigger:()=>Kt,CollectionArchive:()=>Zm,Command:()=>fr,CommandDialog:()=>vl,CommandEmpty:()=>ti,CommandGroup:()=>ai,CommandInput:()=>Zs,CommandItem:()=>ri,CommandList:()=>ei,CommandSeparator:()=>oi,CommandShortcut:()=>si,Container:()=>ji,ContentBlock:()=>Ho,ContentCard:()=>Hm,CopyButton:()=>gi,CustomLink:()=>it,CustomerCard:()=>Kl,DarkTop:()=>Ri,DealCard:()=>ln,DealDetails:()=>nn,Dialog:()=>st,DialogClose:()=>pr,DialogContent:()=>Qe,DialogDescription:()=>Js,DialogFooter:()=>Qs,DialogHeader:()=>bt,DialogOverlay:()=>ur,DialogPortal:()=>Ks,DialogTitle:()=>yt,DialogTrigger:()=>mr,DropdownMenu:()=>Mn,DropdownMenuCheckboxItem:()=>hs,DropdownMenuContent:()=>ys,DropdownMenuGroup:()=>An,DropdownMenuItem:()=>vs,DropdownMenuLabel:()=>ws,DropdownMenuPortal:()=>Bn,DropdownMenuRadioGroup:()=>En,DropdownMenuRadioItem:()=>xs,DropdownMenuSeparator:()=>Ns,DropdownMenuShortcut:()=>Cs,DropdownMenuSub:()=>Ln,DropdownMenuSubContent:()=>bs,DropdownMenuSubTrigger:()=>gs,DropdownMenuTrigger:()=>In,DynamicIcon:()=>De,EventCard:()=>Ql,FeatureCard:()=>Dr,FeatureGrid:()=>id,FeaturesBlock:()=>Ma,Filter:()=>bp,FlowPrintable:()=>Dd,Footer:()=>Mp,Header:()=>Ip,HeaderDesktop:()=>qi,HeaderMobile:()=>Qi,HeadingImage:()=>Ym,Hero:()=>Fm,HighImpactHero:()=>_i,HolidayGrid:()=>rn,HolidayTracker:()=>Lp,HoverCard:()=>ul,HoverCardContent:()=>qs,HoverCardTrigger:()=>fl,Image:()=>ad,ImageBlock:()=>Ni,InfoTile:()=>Gm,Input:()=>_e,Insight:()=>Om,KanbanColumn:()=>mn,Label:()=>ee,LightTop:()=>Ti,Logo:()=>ep,LowImpactHero:()=>Vi,MOTD:()=>$m,Mask:()=>wp,Media:()=>Ot,MediaBlock:()=>Gt,MediumImpactHero:()=>Wi,NewCustomerForm:()=>dn,NewDealForm:()=>cn,NewsGrid:()=>Rd,OrgChart:()=>jm,PagePrintable:()=>Md,PageRange:()=>op,PageShape:()=>$o,Pagination:()=>fp,PayloadPagination:()=>rp,Popover:()=>Do,PopoverAnchor:()=>ll,PopoverContent:()=>qa,PopoverTrigger:()=>Mo,PostHero:()=>hp,PricingCard:()=>Em,Printable:()=>np,ProjectCard:()=>td,ProjectTeam:()=>pp,ProposalSummary:()=>Um,RelatedContent:()=>up,RelatedPosts:()=>Jm,RenderBlocks:()=>ua,RenderBlocksWithShapes:()=>Km,RenderHero:()=>Cp,RequestLeave:()=>on,ReusableContentBlock:()=>Si,RichText:()=>Q,ScrollArea:()=>St,ScrollBar:()=>cr,SectionHero:()=>Xi,Select:()=>ka,SelectContent:()=>la,SelectGroup:()=>xm,SelectItem:()=>da,SelectLabel:()=>Pl,SelectScrollDownButton:()=>mi,SelectScrollUpButton:()=>ci,SelectSeparator:()=>kl,SelectTrigger:()=>na,SelectValue:()=>Sa,Separator:()=>bo,ServiceCard:()=>Lm,Sheet:()=>Qo,SheetClose:()=>Wn,SheetContent:()=>vo,SheetDescription:()=>Ds,SheetFooter:()=>Rs,SheetHeader:()=>Ss,SheetOverlay:()=>Jo,SheetPortal:()=>ks,SheetTitle:()=>Ts,SheetTrigger:()=>$n,Sidebar:()=>va,SidebarContent:()=>Zt,SidebarFooter:()=>xa,SidebarGroup:()=>at,SidebarGroupAction:()=>Fs,SidebarGroupContent:()=>ft,SidebarGroupLabel:()=>Et,SidebarHeader:()=>ha,SidebarInput:()=>Es,SidebarInset:()=>Ls,SidebarLeft:()=>lp,SidebarMenu:()=>$e,SidebarMenuAction:()=>wo,SidebarMenuBadge:()=>Hs,SidebarMenuButton:()=>ot,SidebarMenuItem:()=>Te,SidebarMenuSkeleton:()=>zs,SidebarMenuSub:()=>ea,SidebarMenuSubButton:()=>aa,SidebarMenuSubItem:()=>ta,SidebarProvider:()=>Is,SidebarRail:()=>Bs,SidebarRight:()=>mp,SidebarSeparator:()=>xo,SidebarTrigger:()=>As,SimpleHeader:()=>Sp,Skeleton:()=>de,SlideShow:()=>Pd,TextAndImages:()=>Td,Textarea:()=>ca,Theme:()=>Er,ThemeProvider:()=>xp,ThemeWithShapes:()=>ud,Toast:()=>Po,ToastAction:()=>_s,ToastClose:()=>ko,ToastDescription:()=>Ro,ToastProvider:()=>lr,ToastTitle:()=>So,ToastViewport:()=>Co,Toaster:()=>al,Toggle:()=>Ws,ToggleGroup:()=>Vs,ToggleGroupItem:()=>js,Tooltip:()=>ar,TooltipContent:()=>ho,TooltipProvider:()=>tr,TooltipTrigger:()=>or,VideoHeader:()=>Tp,WhyUs:()=>Xm,badgeVariants:()=>di,buttonVariants:()=>Jt,toggleVariants:()=>To,useIsMobile:()=>er,useSidebar:()=>Xa,useToast:()=>nr});module.exports=kc(Wp);var Wa=h(require("react")),Ko=require("@radix-ui/react-icons"),Dn=require("@radix-ui/react-slot");var Tn=require("clsx");var is="-",Sc=e=>{let t=Tc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{let n=l.split(is);return n[0]===""&&n.length!==1&&n.shift(),Nn(n,t)||Rc(l)},getConflictingClassGroupIds:(l,n)=>{let c=a[l]||[];return n&&o[l]?[...c,...o[l]]:c}}},Nn=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Nn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(is);return t.validators.find(({validator:l})=>l(s))?.classGroupId},xn=/^\[(.+)\]$/,Rc=e=>{if(xn.test(e)){let t=xn.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Tc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Mc(Object.entries(e.classGroups),a).forEach(([s,l])=>{ss(l,o,s,t)}),o},ss=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:wn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Dc(r)){ss(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,l])=>{ss(l,wn(t,s),a,o)})})},wn=(e,t)=>{let a=e;return t.split(is).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Dc=e=>e.isThemeGetter,Mc=(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,Ic=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)}}},Cn="!",Ac=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,l=n=>{let c=[],p=0,d=0,m;for(let v=0;v<n.length;v++){let M=n[v];if(p===0){if(M===r&&(o||n.slice(v,v+s)===t)){c.push(n.slice(d,v)),d=v+s;continue}if(M==="/"){m=v;continue}}M==="["?p++:M==="]"&&p--}let f=c.length===0?n:n.substring(d),g=f.startsWith(Cn),y=g?f.substring(1):f,u=m&&m>d?m-d:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:u}};return a?n=>a({className:n,parseClassName:l}):l},Bc=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},Lc=e=>({cache:Ic(e.cacheSize),parseClassName:Ac(e),...Sc(e)}),Ec=/\s+/,Fc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],l=e.trim().split(Ec),n="";for(let c=l.length-1;c>=0;c-=1){let p=l[c],{modifiers:d,hasImportantModifier:m,baseClassName:f,maybePostfixModifierPosition:g}=a(p),y=!!g,u=o(y?f.substring(0,g):f);if(!u){if(!y){n=p+(n.length>0?" "+n:n);continue}if(u=o(f),!u){n=p+(n.length>0?" "+n:n);continue}y=!1}let v=Bc(d).join(":"),M=m?v+Cn:v,O=M+u;if(s.includes(O))continue;s.push(O);let N=r(u,y);for(let L=0;L<N.length;++L){let w=N[L];s.push(M+w)}n=p+(n.length>0?" "+n:n)}return n};function Hc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Pn(t))&&(o&&(o+=" "),o+=a);return o}var Pn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Pn(e[o]))&&(a&&(a+=" "),a+=t);return a};function zc(e,...t){let a,o,r,s=l;function l(c){let p=t.reduce((d,m)=>m(d),e());return a=Lc(p),o=a.cache.get,r=a.cache.set,s=n,n(c)}function n(c){let p=o(c);if(p)return p;let d=Fc(c,a);return r(c,d),d}return function(){return s(Hc.apply(null,arguments))}}var Z=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},kn=/^\[(?:([a-tt-]+):)?(.+)\]$/i,Oc=/^\d+\/\d+$/,Gc=new Set(["px","full","screen"]),_c=/^(\d+(\.\d+)?)?(xs|sm|md|lg|_n)$/,$c=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|tt|Qn|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|tt|min|max))|\tt(calc|min|max|clamp)\(.+\)|^0$/,Wc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vc=/^(inset_)?-?((\d+)?\.?(\d+)[a-tt]+|0)tt-?((\d+)?\.?(\d+)[a-tt]+|0)/,jc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,At=e=>_a(e)||Gc.has(e)||Oc.test(e),Yt=e=>$a(e,"length",Zc),_a=e=>!!e&&!Number.isNaN(Number(e)),rs=e=>$a(e,"number",_a),fo=e=>!!e&&Number.isInteger(Number(e)),Uc=e=>e.endsWith("%")&&_a(e.slice(0,-1)),I=e=>kn.test(e),qt=e=>_c.test(e),Xc=new Set(["length","size","percentage"]),Yc=e=>$a(e,Xc,Sn),qc=e=>$a(e,"position",Sn),Kc=new Set(["image","url"]),Qc=e=>$a(e,Kc,tm),Jc=e=>$a(e,"",em),go=()=>!0,$a=(e,t,a)=>{let o=kn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Zc=e=>$c.test(e)&&!Wc.test(e),Sn=()=>!1,em=e=>Vc.test(e),tm=e=>jc.test(e);var am=()=>{let e=Z("colors"),t=Z("spacing"),a=Z("blur"),o=Z("brightness"),r=Z("borderColor"),s=Z("borderRadius"),l=Z("borderSpacing"),n=Z("borderWidth"),c=Z("contrast"),p=Z("grayscale"),d=Z("hueRotate"),m=Z("invert"),f=Z("gap"),g=Z("gradientColorStops"),y=Z("gradientColorStopPositions"),u=Z("inset"),v=Z("margin"),M=Z("opacity"),O=Z("padding"),N=Z("saturate"),L=Z("scale"),w=Z("sepia"),K=Z("skew"),Ga=Z("space"),fn=Z("translate"),es=()=>["auto","contain","none"],ts=()=>["auto","hidden","clip","visible","scroll"],as=()=>["auto",I,t],oe=()=>[I,t],gn=()=>["",At,Yt],Xo=()=>["auto",_a,I],bn=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Yo=()=>["solid","dashed","dotted","double","none"],yn=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],os=()=>["start","end","center","between","around","evenly","stretch"],uo=()=>["","0",I],vn=()=>["auto","avoid","all","avoid-page","page","left","right","column"],It=()=>[_a,I];return{cacheSize:500,separator:":",theme:{colors:[go],spacing:[At,Yt],blur:["none","",qt,I],brightness:It(),borderColor:[e],borderRadius:["none","","full",qt,I],borderSpacing:oe(),borderWidth:gn(),contrast:It(),grayscale:uo(),hueRotate:It(),invert:uo(),gap:oe(),gradientColorStops:[e],gradientColorStopPositions:[Uc,Yt],inset:as(),margin:as(),opacity:It(),padding:oe(),saturate:It(),scale:It(),sepia:uo(),skew:It(),space:oe(),translate:oe()},classGroups:{aspect:[{aspect:["auto","square","video",I]}],container:["container"],columns:[{columns:[qt]}],"break-after":[{"break-after":vn()}],"break-before":[{"break-before":vn()}],"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:[...bn(),I]}],overflow:[{overflow:ts()}],"overflow-tt":[{"overflow-tt":ts()}],"overflow-y":[{"overflow-y":ts()}],overscroll:[{overscroll:es()}],"overscroll-tt":[{"overscroll-tt":es()}],"overscroll-y":[{"overscroll-y":es()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-tt":[{"inset-tt":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],tt:[{tt:["auto",fo,I]}],basis:[{basis:as()}],"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:uo()}],shrink:[{shrink:uo()}],order:[{order:["first","last","none",fo,I]}],"grid-cols":[{"grid-cols":[go]}],"col-start-end":[{col:["auto",{span:["full",fo,I]},I]}],"col-start":[{"col-start":Xo()}],"col-end":[{"col-end":Xo()}],"grid-rows":[{"grid-rows":[go]}],"row-start-end":[{row:["auto",{span:[fo,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:[f]}],"gap-tt":[{"gap-tt":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...os()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...os(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...os(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],tt:[{tt:[O]}],tt:[{tt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],tt:[{tt:[v]}],tt:[{tt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],tt:[{tt:[v]}],"space-tt":[{"space-tt":[Ga]}],"space-tt-reverse":["space-tt-reverse"],"space-y":[{"space-y":[Ga]}],"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",rs]}],"font-family":[{font:[go]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",I]}],"line-clamp":[{"line-clamp":["none",_a,rs]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",At,I]}],"list-image":[{"list-image":["none",I]}],"list-style-type":[{list:["none","disc","decimal",I]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[M]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[M]}],"text-decoration":["underline","overline","line-through","fd-underline"],"text-decoration-style":[{decoration:[...Yo(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",At,Yt]}],"underline-offset":[{"underline-offset":["auto",At,I]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:oe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[M]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...bn(),qc]}],"bg-repeat":[{bg:["fd-repeat",{repeat:["","tt","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Yc]}],"bg-image":[{bg:["none",{"gradient-Qn":["t","tr","r","tt","tt","Qn","l","Qn"]},Qc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-Qn-pos":[{Qn:[y]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Qn":[{Qn:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-Qn":[{"rounded-Qn":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-tt":[{"rounded-tt":[s]}],"rounded-Qn":[{"rounded-Qn":[s]}],"border-w":[{border:[n]}],"border-w-tt":[{"border-tt":[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-tt":[{"border-tt":[n]}],"border-w-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Yo(),"hidden"]}],"divide-tt":[{"divide-tt":[n]}],"divide-tt-reverse":["divide-tt-reverse"],"divide-y":[{"divide-y":[n]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Yo()}],"border-color":[{border:[r]}],"border-color-tt":[{"border-tt":[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-tt":[{"border-tt":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Yo()]}],"outline-offset":[{"outline-offset":[At,I]}],"outline-w":[{outline:[At,Yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:gn()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[At,Yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qt,Jc]}],"shadow-color":[{shadow:[go]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...yn(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":yn()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",qt,I]}],grayscale:[{grayscale:[p]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[m]}],saturate:[{saturate:[N]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[p]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[N]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-tt":[{"border-spacing-tt":[l]}],"border-spacing-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:It()}],ease:[{ease:["linear","in","out","in-out",I]}],delay:[{delay:It()}],animate:[{animate:["none","spin","ping","pulse","bounce",I]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-tt":[{"scale-tt":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[fo,I]}],"translate-tt":[{"translate-tt":[fn]}],"translate-y":[{"translate-y":[fn]}],"skew-tt":[{"skew-tt":[K]}],"skew-y":[{"skew-y":[K]}],"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","fd-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","tt-resize","nw-resize","tt-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","tt",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":oe()}],"scroll-mx":[{"scroll-mx":oe()}],"scroll-my":[{"scroll-my":oe()}],"scroll-ms":[{"scroll-ms":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-mr":[{"scroll-mr":oe()}],"scroll-mb":[{"scroll-mb":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-p":[{"scroll-p":oe()}],"scroll-px":[{"scroll-px":oe()}],"scroll-py":[{"scroll-py":oe()}],"scroll-ps":[{"scroll-ps":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-tt":[{"scroll-tt":oe()}],"scroll-pr":[{"scroll-pr":oe()}],"scroll-pb":[{"scroll-pb":oe()}],"scroll-pl":[{"scroll-pl":oe()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","tt","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-tt":[{"touch-pan":["tt","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:[At,Yt,rs]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-tt","overflow-y"],overscroll:["overscroll-tt","overscroll-y"],inset:["inset-tt","inset-y","start","end","top","right","bottom","left"],"inset-tt":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-tt","gap-y"],p:["px","py","ps","tt","tt","pr","pb","pl"],px:["pr","pl"],py:["tt","pb"],m:["mx","my","ms","tt","tt","mr","mb","tt"],mx:["mr","tt"],my:["tt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-tt","rounded-l","rounded-ss","rounded-tt","rounded-ee","rounded-es","rounded-Qn","rounded-tr","rounded-tt","rounded-Qn"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-tt","rounded-ee"],"rounded-t":["rounded-Qn","rounded-tr"],"rounded-r":["rounded-tr","rounded-tt"],"rounded-tt":["rounded-tt","rounded-Qn"],"rounded-l":["rounded-Qn","rounded-Qn"],"border-spacing":["border-spacing-tt","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-tt","border-w-l"],"border-w-tt":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-tt"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-tt","border-color-l"],"border-color-tt":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-tt"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-tt","scroll-tt","scroll-mr","scroll-mb","scroll-tt"],"scroll-mx":["scroll-mr","scroll-tt"],"scroll-my":["scroll-tt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-tt","scroll-tt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-tt","scroll-pb"],touch:["touch-tt","touch-y","touch-pz"],"touch-tt":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Rn=zc(am);function i(...e){return Rn((0,Tn.clsx)(e))}function ns(e){let t=0,a=(s,l)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${l}`,o=e.layout.flatMap(s=>{let l=[];return"title"in s&&s.title&&l.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(n=>{if(n.title&&l.push({text:n.title,id:a(n.title,t++),tag:"h2"}),n.richText?.root?.children&&n.richText?.root?.children.length===1){let c=n.richText.root.children.filter(p=>p!==void 0&&p.type==="heading");for(let p of c)p.children[0]&&l.push({text:p.children[0].text??"",id:a(p.children[0].text,t++),tag:p.tag||"h2"})}}),l}),r=om(e.layout);return{tableOfContents:o,contentWithIds:r}}function om(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var tt=require("react/jsx-runtime"),ls=Wa.forwardRef(({...e},t)=>(0,tt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ls.displayName="Breadcrumb";var ds=Wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ol",{ref:a,className:i("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ds.displayName="BreadcrumbList";var cs=Wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,className:i("inline-flex items-center gap-1.5",e),...t}));cs.displayName="BreadcrumbItem";var ms=Wa.forwardRef(({asChild:e,className:t,...a},o)=>(0,tt.jsx)(e?Dn.Slot:"a",{ref:o,className:i("transition-colors hover:text-foreground",t),...a}));ms.displayName="BreadcrumbLink";var ps=Wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:i("font-normal text-foreground",e),...t}));ps.displayName="BreadcrumbPage";var us=({children:e,className:t,...a})=>(0,tt.jsx)("li",{role:"presentation","aria-hidden":"true",className:i("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,tt.jsx)(Ko.ChevronRightIcon,{})});us.displayName="BreadcrumbSeparator";var fs=({className:e,...t})=>(0,tt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:i("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,tt.jsx)(Ko.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"More"})]});fs.displayName="BreadcrumbElipssis";var Va=h(require("@radix-ui/react-collapsible")),Bt=Va.Root,Kt=Va.CollapsibleTrigger,Qt=Va.CollapsibleContent;var Lt=h(require("react")),E=h(require("@radix-ui/react-dropdown-menu"));var Mn=E.Root,In=E.Trigger,An=E.Group,Bn=E.Portal,Ln=E.Sub,En=E.RadioGroup,gs=Lt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,tt.jsxs)(E.SubTrigger,{ref:r,className:i("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,tt.jsx)(Ko.ChevronRightIcon,{className:"tt-auto"})]}));gs.displayName=E.SubTrigger.displayName;var bs=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.SubContent,{ref:a,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));bs.displayName=E.SubContent.displayName;var ys=Lt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(E.Portal,{children:(0,tt.jsx)(E.Content,{ref:o,sideOffset:t,className:i("tt-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ys.displayName=E.Content.displayName;var vs=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Item,{ref:o,className:i("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));vs.displayName=E.Item.displayName;var hs=Lt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,tt.jsxs)(E.CheckboxItem,{ref:r,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(Ko.CheckIcon,{className:"h-4 w-4"})})}),t]}));hs.displayName=E.CheckboxItem.displayName;var xs=Lt.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(E.RadioItem,{ref:o,className:i("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(E.ItemIndicator,{children:(0,tt.jsx)(Ko.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));xs.displayName=E.RadioItem.displayName;var ws=Lt.forwardRef(({className:e,inset:t,...a},o)=>(0,tt.jsx)(E.Label,{ref:o,className:i("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ws.displayName=E.Label.displayName;var Ns=Lt.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(E.Separator,{ref:a,className:i("-mx-1 my-1 h-px bg-muted",e),...t}));Ns.displayName=E.Separator.displayName;var Cs=({className:e,...t})=>(0,tt.jsx)("span",{className:i("tt-auto text-xs tracking-widest opacity-60",e),...t});Cs.displayName="DropdownMenuShortcut";var Fn=h(require("react"));var _e=Fn.forwardRef(({className:e,type:t,...a},o)=>(0,tt.jsx)("input",{type:t,className:i("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...a}));_e.displayName="Input";var zn=h(require("react")),Ps=h(require("@radix-ui/react-separator"));var bo=zn.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,tt.jsx)(Ps.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}));bo.displayName=Ps.Root.displayName;var yo=h(require("react")),le=h(require("@radix-ui/react-dialog")),_n=require("class-variance-authority");var Qo=le.Root,$n=le.Trigger,Wn=le.Close,ks=le.Portal,Jo=yo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(le.Overlay,{className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:a}));Jo.displayName=le.Overlay.displayName;var rm=(0,_n.cva)("fixed tt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-tt-0 top-0 border-tt data-[state=closed]:slide-out-Qn-top data-[state=open]:slide-in-from-top",bottom:"inset-tt-0 bottom-0 border-t data-[state=closed]:slide-out-Qn-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-Qn-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-Qn-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),vo=yo.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,tt.jsxs)(ks,{children:[(0,tt.jsx)(Jo,{}),(0,tt.jsxs)(le.Content,{ref:r,className:i(rm({side:e}),t),...o,children:[(0,tt.jsxs)(le.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,tt.jsx)(Ko.Cross2Icon,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));vo.displayName=le.Content.displayName;var Ss=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ss.displayName="SheetHeader";var Rs=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});Rs.displayName="SheetFooter";var Ts=yo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(le.Title,{ref:a,className:i("text-lg font-semibold text-foreground",e),...t}));Ts.displayName=le.Title.displayName;var Ds=yo.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(le.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Ds.displayName=le.Description.displayName;var H=h(require("react")),Qn=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 Un=h(require("react")),Jt=(0,_n.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Un.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,tt.jsx)(e?Dn.Slot:"button",{className:i(Jt({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function de({className:e,...t}){return(0,tt.jsx)("div",{className:i("animate-pulse rounded-md bg-primary/10",e),...t})}var qn=h(require("react")),ut=h(require("@radix-ui/react-tooltip"));var tr=ut.Provider,ar=ut.Root,or=ut.Trigger,ho=qn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,tt.jsx)(ut.Portal,{children:(0,tt.jsx)(ut.Content,{ref:o,sideOffset:t,className:i("tt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));ho.displayName=ut.Content.displayName;var sm="sidebar:state",im=60*60*24*7,nm="16rem",lm="18rem",dm="3rem",cm="tt",Jn=H.createContext(null);function Xa(){let e=H.useContext(Jn);if(!e)throw new Error("useSidebar must tt used within a SidebarProvider.");return e}var Is=H.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...l},n)=>{let c=er(),[p,d]=H.useState(!1),[m,f]=H.useState(e),g=t??m,y=H.useCallback(O=>{if(a)return a?.(typeof O=="function"?O(g):O);f(O),document.cookie=`${sm}=${g}; path=/; max-age=${im}`},[a,g]),u=H.useCallback(()=>c?d(O=>!O):y(O=>!O),[c,y,d]);H.useEffect(()=>{let O=N=>{N.key===cm&&(N.metaKey||N.ctrlKey)&&(N.preventDefault(),u())};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[u]);let v=g?"expanded":"collapsed",M=H.useMemo(()=>({state:v,open:g,setOpen:y,isMobile:c,openMobile:p,setOpenMobile:d,toggleSidebar:u}),[v,g,y,c,p,d,u]);return(0,tt.jsx)(Jn.Provider,{value:M,children:(0,tt.jsx)(tr,{delayDuration:0,children:(0,tt.jsx)("div",{style:{"--sidebar-width":nm,"--sidebar-width-icon":dm,...r},className:i("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:n,...l,children:s})})})});Is.displayName="SidebarProvider";var va=H.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},l)=>{let{isMobile:n,state:c,openMobile:p,setOpenMobile:d}=Xa();return a==="none"?(0,tt.jsx)("div",{className:i("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:l,...s,children:r}):n?(0,tt.jsx)(Qo,{open:p,onOpenChange:d,...s,children:(0,tt.jsx)(vo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":lm},side:e,children:(0,tt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,tt.jsxs)("div",{ref:l,className:"group peer hidden md:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,tt.jsx)("div",{className:i("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,tt.jsx)("div",{className:i("duration-200 fixed top-14 bottom-0 tt-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)tt+_theme(spacing.4)tt+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,tt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});va.displayName="Sidebar";var As=H.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=Xa();return(0,tt.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:i("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,tt.jsx)(Qn.PanelLeft,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});As.displayName="SidebarTrigger";var Bs=H.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=Xa();return(0,tt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:i("absolute inset-y-0 tt-20 hidden w-4 -translate-tt-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]tt&]:cursor-w-resize [[data-side=right]tt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]tt&]:cursor-e-resize [[data-side=right][data-state=collapsed]tt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-tt-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]tt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]tt&]:-left-2",e),...t})});Bs.displayName="SidebarRail";var Ls=H.forwardRef(({className:e,...t},a)=>(0,tt.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]:tt-2 md:peer-data-[variant=inset]:tt-0 md:peer-data-[variant=inset]:rounded-_n md:peer-data-[variant=inset]:shadow",e),...t}));Ls.displayName="SidebarInset";var Es=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(_e,{ref:a,"data-sidebar":"input",className:i("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Es.displayName="SidebarInput";var ha=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"header",className:i("flex flex-col gap-2 p-2",e),...t}));ha.displayName="SidebarHeader";var xa=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"footer",className:i("flex flex-col gap-2 p-2",e),...t}));xa.displayName="SidebarFooter";var xo=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(bo,{ref:a,"data-sidebar":"separator",className:i("mx-2 w-auto bg-sidebar-border",e),...t}));xo.displayName="SidebarSeparator";var Zt=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"content",className:i("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));Zt.displayName="SidebarContent";var at=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group",className:i("relative flex w-full min-w-0 flex-col p-2",e),...t}));at.displayName="SidebarGroup";var Et=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Dn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:i("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-tt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Et.displayName="SidebarGroupLabel";var Fs=H.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,tt.jsx)(t?Dn.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}));Fs.displayName="SidebarGroupAction";var ft=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:i("w-full text-sm",e),...t}));ft.displayName="SidebarGroupContent";var $e=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu",className:i("flex w-full min-w-0 flex-col gap-1",e),...t}));$e.displayName="SidebarMenu";var Te=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:i("group/menu-item relative",e),...t}));Te.displayName="SidebarMenuItem";var mm=(0,_n.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ot=H.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...l},n)=>{let c=e?Dn.Slot:"button",{isMobile:p,state:d}=Xa(),m=(0,tt.jsx)(c,{ref:n,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:i(mm({variant:a,size:o}),s),...l});return r?(typeof r=="string"&&(r={children:r}),(0,tt.jsxs)(ar,{children:[(0,tt.jsx)(or,{asChild:!0,children:m}),(0,tt.jsx)(ho,{side:"right",align:"center",hidden:d!=="collapsed"||p,...r})]})):m});ot.displayName="SidebarMenuButton";var wo=H.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,tt.jsx)(t?Dn.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}));wo.displayName="SidebarMenuAction";var Hs=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:i("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));Hs.displayName="SidebarMenuBadge";var zs=H.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=H.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,tt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:i("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,tt.jsx)(de,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,tt.jsx)(de,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});zs.displayName="SidebarMenuSkeleton";var ea=H.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("ul",{ref:a,"data-sidebar":"menu-sub",className:i("mx-3.5 flex min-w-0 translate-tt-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ea.displayName="SidebarMenuSub";var ta=H.forwardRef(({...e},t)=>(0,tt.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,tt.jsx)(e?Dn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:i("flex h-7 min-w-0 -translate-tt-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));aa.displayName="SidebarMenuSubButton";var ir=h(require("react")),pm=1,um=1e6;var Os=0;function fm(){return Os=(Os+1)%Number.MAX_SAFE_INTEGER,Os.toString()}var Gs=new Map,Zn=e=>{if(Gs.has(e))return;let t=setTimeout(()=>{Gs.delete(e),No({type:"REMOVE_TOAST",toastId:e})},um);Gs.set(e,t)},gm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,pm)};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?Zn(a):e.toasts.forEach(o=>{Zn(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},rr=[],sr={toasts:[]};function No(e){sr=gm(sr,e),rr.forEach(t=>{t(sr)})}function bm({...e}){let t=fm(),a=r=>No({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>No({type:"DISMISS_TOAST",toastId:t});return No({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function nr(){let[e,t]=ir.useState(sr);return ir.useEffect(()=>(rr.push(t),()=>{let a=rr.indexOf(t);a>-1&&rr.splice(a,1)}),[e]),{...e,toast:bm,dismiss:a=>No({type:"DISMISS_TOAST",toastId:a})}}var wa=h(require("react")),ge=h(require("@radix-ui/react-toast"));var lr=ge.Provider,Co=wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ge.Viewport,{ref:a,className:i("fixed top-0 tt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Co.displayName=ge.Viewport.displayName;var ym=(0,_n.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-tt-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-tt-0 data-[swipe=end]:translate-tt-[var(--radix-toast-swipe-end-tt)] data-[swipe=move]:translate-tt-[var(--radix-toast-swipe-move-tt)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-Qn-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Po=wa.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)(ge.Root,{ref:o,className:i(ym({variant:t}),e),...a}));Po.displayName=ge.Root.displayName;var _s=wa.forwardRef(({className:e,...t},a)=>(0,tt.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}));_s.displayName=ge.Action.displayName;var ko=wa.forwardRef(({className:e,...t},a)=>(0,tt.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,tt.jsx)(Qn.tt,{className:"h-4 w-4"})}));ko.displayName=ge.Close.displayName;var So=wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ge.Title,{ref:a,className:i("text-sm font-semibold [&+div]:text-xs",e),...t}));So.displayName=ge.Title.displayName;var Ro=wa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ge.Description,{ref:a,className:i("text-sm opacity-90",e),...t}));Ro.displayName=ge.Description.displayName;function al(){let{toasts:e}=nr();return(0,tt.jsxs)(lr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,tt.jsxs)(Po,{...s,children:[(0,tt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,tt.jsx)(So,{children:a}),o&&(0,tt.jsx)(Ro,{children:o})]}),r,(0,tt.jsx)(ko,{})]},t)}),(0,tt.jsx)(Co,{})]})}var ol=h(require("react")),$s=h(require("@radix-ui/react-toggle"));var To=(0,_n.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"}}),Ws=ol.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,tt.jsx)($s.Root,{ref:r,className:i(To({variant:t,size:a,className:e})),...o}));Ws.displayName=$s.Root.displayName;var Na=h(require("react")),Ya=h(require("@radix-ui/react-toggle-group"));var il=Na.createContext({size:"default",variant:"default"}),Vs=Na.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,tt.jsx)(Ya.Root,{ref:s,className:i("flex items-center justify-center gap-1",e),...r,children:(0,tt.jsx)(il.Provider,{value:{variant:t,size:a},children:o})}));Vs.displayName=Ya.Root.displayName;var js=Na.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let l=Na.useContext(il);return(0,tt.jsx)(Ya.Item,{ref:s,className:i(To({variant:l.variant||a,size:l.size||o}),e),...r,children:t})});js.displayName=Ya.Item.displayName;var Us=h(require("react")),rt=h(require("@radix-ui/react-scroll-area"));var St=Us.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(rt.Root,{ref:o,className:i("relative overflow-hidden",e),...a,children:[(0,tt.jsx)(rt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,tt.jsx)(cr,{}),(0,tt.jsx)(rt.Corner,{})]}));St.displayName=rt.Root.displayName;var cr=Us.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,tt.jsx)(rt.ScrollAreaScrollbar,{ref:o,orientation:t,className:i("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,tt.jsx)(rt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));cr.displayName=rt.ScrollAreaScrollbar.displayName;var nl=h(require("react")),gt=h(require("@radix-ui/react-popover"));var Do=gt.Root,Mo=gt.Trigger,ll=gt.Anchor,qa=nl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(gt.Portal,{children:(0,tt.jsx)(gt.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));qa.displayName=gt.Content.displayName;var dl=h(require("react")),Ys=h(require("@radix-ui/react-label"));var vm=(0,_n.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ee=dl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ys.Root,{ref:a,className:i(vm(),e),...t}));ee.displayName=Ys.Root.displayName;var pl=h(require("react")),Ca=h(require("@radix-ui/react-hover-card"));var ul=Ca.Root,fl=Ca.Trigger,qs=pl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,tt.jsx)(Ca.Content,{ref:r,align:t,sideOffset:a,className:i("tt-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o}));qs.displayName=Ca.Content.displayName;var Io=h(require("react")),ce=h(require("@radix-ui/react-dialog"));var st=ce.Root,mr=ce.Trigger,Ks=ce.Portal,pr=ce.Close,ur=Io.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ce.Overlay,{ref:a,className:i("fixed inset-0 tt-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ur.displayName=ce.Overlay.displayName;var Qe=Io.forwardRef(({className:e,children:t,...a},o)=>(0,tt.jsxs)(Ks,{children:[(0,tt.jsx)(ur,{}),(0,tt.jsxs)(ce.Content,{ref:o,className:i("fixed left-[50%] top-[50%] tt-50 grid w-full max-w-lg translate-tt-[-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-Qn-left-1/2 data-[state=closed]:slide-out-Qn-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,tt.jsxs)(ce.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,tt.jsx)(Qn.tt,{className:"h-4 w-4"}),(0,tt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));Qe.displayName=ce.Content.displayName;var bt=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});bt.displayName="DialogHeader";var Qs=({className:e,...t})=>(0,tt.jsx)("div",{className:i("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-tt-2",e),...t});Qs.displayName="DialogFooter";var yt=Io.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ce.Title,{ref:a,className:i("text-lg font-semibold leading-none tracking-tight",e),...t}));yt.displayName=ce.Title.displayName;var Js=Io.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(ce.Description,{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Js.displayName=ce.Description.displayName;var sa=h(require("react")),Fe=require("cmdk");var fr=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.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=Fe.Command.displayName;var vl=({children:e,...t})=>(0,tt.jsx)(st,{...t,children:(0,tt.jsx)(Qe,{className:"overflow-hidden p-0",children:(0,tt.jsx)(fr,{className:"[&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground [&tt[cmdk-group]:not([hidden])tt~[cmdk-group]]:tt-0 [&tt[cmdk-group]]:px-2 [&tt[cmdk-input-wrapper]_svg]:h-5 [&tt[cmdk-input-wrapper]_svg]:w-5 [&tt[cmdk-input]]:h-12 [&tt[cmdk-item]]:px-2 [&tt[cmdk-item]]:py-3 [&tt[cmdk-item]_svg]:h-5 [&tt[cmdk-item]_svg]:w-5",children:e})})}),Zs=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsxs)("div",{className:"flex items-center border-tt px-3","cmdk-input-wrapper":"",children:[(0,tt.jsx)(Qn.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,tt.jsx)(Fe.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})]}));Zs.displayName=Fe.Command.Input.displayName;var ei=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.Command.List,{ref:a,className:i("max-h-[300px] overflow-y-auto overflow-tt-hidden",e),...t}));ei.displayName=Fe.Command.List.displayName;var ti=sa.forwardRef((e,t)=>(0,tt.jsx)(Fe.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ti.displayName=Fe.Command.Empty.displayName;var ai=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.Command.Group,{ref:a,className:i("overflow-hidden p-1 text-foreground [&tt[cmdk-group-heading]]:px-2 [&tt[cmdk-group-heading]]:py-1.5 [&tt[cmdk-group-heading]]:text-xs [&tt[cmdk-group-heading]]:font-medium [&tt[cmdk-group-heading]]:text-muted-foreground",e),...t}));ai.displayName=Fe.Command.Group.displayName;var oi=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.Command.Separator,{ref:a,className:i("-mx-1 h-px bg-border",e),...t}));oi.displayName=Fe.Command.Separator.displayName;var ri=sa.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Fe.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}));ri.displayName=Fe.Command.Item.displayName;var si=({className:e,...t})=>(0,tt.jsx)("span",{className:i("tt-auto text-xs tracking-widest text-muted-foreground",e),...t});si.displayName="CommandShortcut";var gr=h(require("react"));var hm=(0,_n.cva)("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),ii=gr.forwardRef(({className:e,variant:t,...a},o)=>(0,tt.jsx)("div",{ref:o,role:"alert",className:i(hm({variant:t}),e),...a}));ii.displayName="Alert";var ni=gr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("h5",{ref:a,className:i("mb-1 font-medium leading-none tracking-tight",e),...t}));ni.displayName="AlertTitle";var li=gr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm [&_p]:leading-relaxed",e),...t}));li.displayName="AlertDescription";var yr=h(require("react")),Ht=h(require("@radix-ui/react-avatar"));var We=yr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ht.Root,{ref:a,className:i("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));We.displayName=Ht.Root.displayName;var Ve=yr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ht.Image,{ref:a,className:i("aspect-square h-full w-full",e),...t}));Ve.displayName=Ht.Image.displayName;var je=yr.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ht.Fallback,{ref:a,className:i("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));je.displayName=Ht.Fallback.displayName;var di=(0,_n.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 Ue({className:e,variant:t,...a}){return(0,tt.jsx)("div",{className:i(di({variant:t}),e),...a})}var Ao=h(require("@radix-ui/react-checkbox")),Cl=h(require("react")),vt=Cl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(Ao.Root,{className:i("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,tt.jsx)(Ao.Indicator,{className:i("flex items-center justify-center text-current"),children:(0,tt.jsx)(Qn.Check,{className:"h-4 w-4"})})}));vt.displayName=Ao.Root.displayName;var G=h(require("@radix-ui/react-select")),ia=h(require("react")),ka=G.Root,xm=G.Group,Sa=G.Value,na=ia.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Trigger,{className:i("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,tt.jsx)(G.Icon,{asChild:!0,children:(0,tt.jsx)(Qn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));na.displayName=G.Trigger.displayName;var ci=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollUpButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(Qn.ChevronUp,{className:"h-4 w-4"})}));ci.displayName=G.ScrollUpButton.displayName;var mi=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.ScrollDownButton,{className:i("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,tt.jsx)(Qn.ChevronDown,{className:"h-4 w-4"})}));mi.displayName=G.ScrollDownButton.displayName;var la=ia.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,tt.jsx)(G.Portal,{children:(0,tt.jsxs)(G.Content,{className:i("relative tt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-tt-1 data-[side=right]:translate-tt-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,tt.jsx)(ci,{}),(0,tt.jsx)(G.Viewport,{className:i("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,tt.jsx)(mi,{})]})}));la.displayName=G.Content.displayName;var Pl=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Label,{className:i("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Pl.displayName=G.Label.displayName;var da=ia.forwardRef(({children:e,className:t,...a},o)=>(0,tt.jsxs)(G.Item,{className:i("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,tt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,tt.jsx)(G.ItemIndicator,{children:(0,tt.jsx)(Qn.Check,{className:"h-4 w-4"})})}),(0,tt.jsx)(G.ItemText,{children:e})]}));da.displayName=G.Item.displayName;var kl=ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)(G.Separator,{className:i("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));kl.displayName=G.Separator.displayName;var Sl=h(require("react")),ca=Sl.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("textarea",{className:i("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ca.displayName="Textarea";var Tl=require("react-day-picker");function Bo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,tt.jsx)(Tl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:i("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-tt-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center tt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-tt-1 flex items-center",nav_button:i(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-md w-8 font-normal text-[0.8rem]",row:"flex w-full tt-2",cell:i("relative p-0 text-center text-sm focus-within:relative focus-within:tt-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:i(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})}Bo.displayName="Calendar";var pi=({className:e,content:t,style:a})=>(0,tt.jsx)("div",{className:i("mx-auto my-8 w-full",e),children:(0,tt.jsx)("div",{className:i("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,tt.jsx)(Q,{content:t,enableGutter:!1,enableProse:!1})})});var ui=h(require("next/link")),ht=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:l,reference:n,size:c,url:p}=e,d=t==="reference"&&typeof n?.value=="object"&&n.value.slug?`${n?.relationTo!=="pages"?`/${n?.relationTo}`:""}/${n.value.slug}`:p;if(!d)return null;let m=a==="link"?"clear":c,f=l?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,tt.jsxs)(ui.default,{className:i(r),href:d||p||"",...f,children:[s&&s,o&&o]}):(0,tt.jsx)(T,{asChild:!0,className:r,size:m,variant:a,children:(0,tt.jsxs)(ui.default,{className:i(r),href:d||p||"",...f,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 wm({className:e,...t}){return(0,tt.jsx)("input",{...t,className:wr({className:e})})}function Nr({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(wm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function Nm({className:e,...t}){return(0,tt.jsx)("textarea",{...t,className:i(wr({}),"resize-none md:min-h-[130px]",e)})}function Ml({icon:e,...t}){return(0,tt.jsxs)("div",{className:"relative w-full",children:[(0,tt.jsx)(Nm,{...t}),e&&(0,tt.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Al=require("formik"),Bl=require("react-icons/fa6"),Ra=h(require("yup"));async function Il(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.fd/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:"fd-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 fi=require("sonner"),xt={tooShort:"Must tt at least ${min} characters",tooLong:"Must tt at most ${max} characters",required:"This field is required",email:"Invalid email format"},Cm=Ra.object().shape({name:Ra.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),email:Ra.string().email(xt.email).required(xt.required),subject:Ra.string().min(2,xt.tooShort).max(50,xt.tooLong).required(xt.required),message:Ra.string().min(2,xt.tooShort).max(300,xt.tooLong).required(xt.required)}),Cr=i("!pr-[44px] text-foreground"),Pr=i("!border-red-600 border"),kr=i("sr-only");function Ll(){return(0,tt.jsx)(Al.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:Cm,onSubmit:async(e,{resetForm:t})=>{let a=await Il(e);a.data===null?fi.toast.error(a.message):(fi.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:l})=>(0,tt.jsxs)("form",{onSubmit:l,className:"grid grid-cols-1 gap-2 tt-2 lg:grid-cols-2",children:[(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Nr,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Bl.FaUser,{className:"text-primary"}),className:i(Cr,e.name&&t.name&&Pr)}),e.name&&t.name&&(0,tt.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:kr,children:e.name})]}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)(Nr,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(Pm,{}),className:i(Cr,e.email&&t.email&&Pr)}),e.email&&t.email&&(0,tt.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:kr,children:e.email})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.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,tt.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:kr,children:e.subject})]}),(0,tt.jsxs)("div",{className:"lg:col-span-2",children:[(0,tt.jsx)(Ml,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,tt.jsx)(km,{}),className:i(Cr,e.message&&t.message&&Pr)}),e.message&&t.message&&(0,tt.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:kr,children:e.message})]}),(0,tt.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,tt.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function Pm(){return(0,tt.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function km(){return(0,tt.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,tt.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var Sm=({links:e,richText:t})=>(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 md:flex-row md:justify-between md:items-center",children:[(0,tt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,tt.jsx)(Q,{className:"mb-0",content:t,enableGutter:!1})}),(0,tt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,tt.jsx)(ht,{size:"lg",...a},o))})]})}),Ta=({links:e,richText:t})=>{let[a,o]=(0,Zo.useState)(!1),r="accent",s=()=>o(!0),l=()=>o(!1),n=c=>{c.target===c.currentTarget&&l()};return(0,tt.jsxs)("div",{className:i("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,tt.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,tt.jsx)(Q,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,tt.jsx)("div",{className:"tt-10 flex items-center justify-center gap-tt-6",children:(0,tt.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:c},p)=>c?.url==="/contact"?(0,tt.jsx)("div",{onClick:s,className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white fd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:c.label},p):(0,tt.jsx)(ht,{size:"lg",className:i("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white fd-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...c},p))})})]})}),a&&(0,tt.jsx)("div",{className:"absolute inset-0 tt-50 flex items-center justify-center bg-black bg-opacity-50",onClick:n,children:(0,tt.jsxs)("div",{className:"bg-white p-6 tt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,tt.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:l,children:"\u2715"}),(0,tt.jsx)(Ll,{})," "]})})]})};var Sr=require("prism-react-renderer");function gi({code:e}){let[t,a]=(0,Zo.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,tt.jsx)("div",{className:"flex justify-end align-middle",children:(0,tt.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,tt.jsx)("p",{children:t}),(0,tt.jsx)("div",{className:"w-6 h-6",children:(0,tt.jsx)(Qn.ClipboardCopy,{})})]})})}var zl=({code:e,language:t=""})=>e?(0,tt.jsx)(Sr.Highlight,{code:e,language:t,theme:Sr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,tt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-tt-auto",children:[r.map((s,l)=>(0,tt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,tt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:l+1}),(0,tt.jsx)("span",{className:"table-cell pl-4",children:s.map((n,c)=>(0,tt.jsx)("span",{...o({token:n})},c))})]},l)),(0,tt.jsx)(gi,{code:e})]})}):null;var yi=({className:e,code:t,language:a})=>(0,tt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,tt.jsx)(zl,{code:t,language:a})});var Gl=h(require("next/image")),Rm={"3xl":1920,"2xl":1536,_n:1280,lg:1024,md:768,sm:640},Ol="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=",_l=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:l,src:n,loading:c}=e,p,d,m=t,f=n||"";if(!f&&s&&typeof s=="object"){let{alt:u,filename:v,height:M,url:O,width:N}=s;if(M&&M>500){let L=500/M;p=N*L,d=M*L}else p=N,d=M;m=u||"",f=O||Ol}let g=c||"lazy",y=l||Object.entries(Rm).map(([,u])=>`(max-width: ${u}px) ${u*2}w`).join(", ");return(0,tt.jsx)("picture",{children:(0,tt.jsx)(Gl.default,{alt:m||"",className:i(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:Ol,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:y,src:f,width:a?void 0:p})})};var $l=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,tt.jsx)("video",{autoPlay:!0,className:i(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,tt.jsx)("source",{src:a.url||""})})}return null};var Ot=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,tt.jsx)(a||Zo.Fragment,{...a!==null?{className:t}:{},children:r?(0,tt.jsx)($l,{...e}):(0,tt.jsx)(_l,{...e})})};var Gt=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("h-full ",{container:a},t),children:(0,tt.jsx)(Ot,{imgClassName:i("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var Ni=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,tt.jsx)("div",{className:i("",{container:a},t),children:(0,tt.jsx)(Ot,{imgClassName:i("rounded-[0.8rem]",o),resource:r,src:s})})};var Ma=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,tt.jsxs)("section",{className:i(r?"w-full":"container",""),children:[(0,tt.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,tt.jsx)("h2",{className:"mb-6 tt-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,tt.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,tt.jsx)("div",{className:"mb-5 text-foreground",children:(0,tt.jsx)(Q,{content:t,enableGutter:!1})})]}),(0,tt.jsx)("div",{className:`grid gap-6 tt-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,l)=>{let n=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,tt.jsx)(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:n()??{type:"none",icon:null}},l)})})]});var Mr=h(require("react"));function Eo({nodes:e}){return(0,tt.jsx)(Mr.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,tt.jsx)(Mr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,tt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,tt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,tt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,tt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,tt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,tt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,tt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,tt.jsx)("table",{children:(0,tt.jsx)("tbody",{children:t.children.map((s,l)=>(0,tt.jsx)("tr",{children:s.children.map((n,c)=>(0,tt.jsx)("td",{children:Eo({nodes:n.children})},c))},l))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let l of s.children)"checked"in l&&(l?.checked||(l.checked=!1));return Eo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,l=s?.blockType;if(!s||!l)return null;switch(l){case"cta":return(0,tt.jsx)(Ta,{...s},a);case"mediaBlock":return(0,tt.jsx)(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,tt.jsx)(Ni,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,tt.jsx)(pi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,tt.jsx)(yi,{className:"col-start-2",...s},a);case"features":return(0,tt.jsx)(Ma,{...s,nested:!0},a);case"reusableContentBlock":Eo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,tt.jsx)("tt",{className:"col-start-2"},a);case"paragraph":return(0,tt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,tt.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,tt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,tt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,tt.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,tt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,tt.jsx)(ht,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var Q=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,tt.jsx)("div",{className:i({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Eo({nodes:t?.root?.children})}):null;var De=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,l=o??"",n=r+s+" fa-"+a+" "+l;return(0,tt.jsx)("i",{className:n})};var Xl=h(require("next/image"));function Ul(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}){let p={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Qn-tt from-[#A42368] Qn-[#4A1030]",radial:"bg-gradient-Qn-tt from-[#4A1030] Qn-[#2D0A1D] relative overflow-hidden",light:"bg-background"},d={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,tt.jsxs)("a",{href:n?.url||"#",className:i("min-w-56 max-w-_n h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",l&&!e&&p[l?.card==="default"?"solid":l?.card],e&&"bg-foreground",l&&l?.card==="outline"?"text-gray-900":"text-white",d[l?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",l&&`intersect:animate-delay-${l.order||1}00`,c),children:[e&&(0,tt.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,tt.jsx)(Xl.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,tt.jsxs)("div",{className:i(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,tt.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,tt.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,tt.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,tt.jsx)(Tm,{icon:{type:t?.type||"fa-light",iconName:t?.icon||"fd-icon-error"},heading:a??"",variant:l?.card==="default"?"solid":l?.card??"solid",iconSize:l?.iconSize||"large"})}),r&&typeof r=="object"&&(0,tt.jsx)(Q,{enableGutter:!1,content:r,enableProse:!1,className:i("prose-sm prose-p:text-lg prose-headings:text-_n","space-y-3",l?.card==="outline"||l?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,tt.jsx)("div",{className:i("prose-sm prose-p:text-lg prose-headings:text-_n","space-y-3",l?.card==="outline"||l?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),n&&n.url&&(0,tt.jsx)("div",{className:"tt-6",children:(0,tt.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:n?.label||"Find out more"})})]})]})}var Tm=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="fd-icon-error"?(0,tt.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,tt.jsx)("div",{className:i(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Ul(e)&&(0,tt.jsx)("div",{className:i("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 tt-1 tt-1":""),children:(0,tt.jsx)(De,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="fd-icon-error"?(0,tt.jsxs)("div",{className:"flex flex-col gap-4",children:[Ul(e)&&(0,tt.jsx)("div",{className:i("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,tt.jsx)(De,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,tt.jsx)("h3",{className:i("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,tt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,tt.jsx)("div",{className:i("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Yl=h(require("next/image")),ql=h(require("next/link"));var Ia=h(require("react"));var ye=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("rounded-_n border bg-card text-card-foreground shadow",e),...t}));ye.displayName="Card";var Me=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex flex-col space-y-1.5 p-6",e),...t}));Me.displayName="CardHeader";var Ie=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("font-semibold leading-none tracking-tight",e),...t}));Ie.displayName="CardTitle";var Ci=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("text-sm text-muted-foreground",e),...t}));Ci.displayName="CardDescription";var Pe=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("p-6 tt-0",e),...t}));Pe.displayName="CardContent";var Pi=Ia.forwardRef(({className:e,...t},a)=>(0,tt.jsx)("div",{ref:a,className:i("flex items-center p-6 tt-0",e),...t}));Pi.displayName="CardFooter";function Kl({name:e,logo:t,href:a}){return(0,tt.jsx)(ye,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,tt.jsxs)(ql.default,{href:a,className:"block",children:[(0,tt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,tt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,tt.jsx)(Yl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,tt.jsx)(Pe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Qn-tt from-gray-900 via-brand-one Qn-gray-900",children:(0,tt.jsx)("p",{className:"font-medium text-lg text-white text-center group-hover:scale-105 transition-transform duration-200 ease-in-out",children:e})})]})})}function Ql({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=n=>{switch(n){case"birthday":return(0,tt.jsx)($t.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,tt.jsx)($t.Award,{className:"h-4 w-4"});case"companyEvent":return(0,tt.jsx)($t.PartyPopper,{className:"h-4 w-4"});default:return(0,tt.jsx)($t.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 Qn-slate-500"}};return(0,tt.jsxs)(ye,{className:`w-full max-w-md overflow-hidden bg-gradient-Qn-tt ${l(e)}`,children:[(0,tt.jsxs)(Me,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,tt.jsxs)(We,{className:"h-14 w-14 border-2 border-white",children:[(0,tt.jsx)(Ve,{src:r,alt:a||"Event"}),(0,tt.jsx)(je,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,tt.jsxs)("div",{className:"flex flex-col",children:[(0,tt.jsx)(Ie,{className:"text-_n",children:a||"Untitled Event"}),(0,tt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,tt.jsx)($t.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,tt.jsxs)(Pe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,tt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,tt.jsxs)(Ue,{variant:"secondary",className:`${l(e)} text-white/80`,children:[s(e),(0,tt.jsx)("span",{className:"tt-1",children:e?e.replace(/([a-tt])([tt-Z])/g,"$1 $2").split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "):"Event"})]})]})]})}var Zl=h(require("next/link"));var ed=h(require("next/image")),Jl={sm:"640px",md:"768px",lg:"1024px",_n:"1280px","2xl":"1400px"};function td({slug:e,image:t,title:a,description:o}){return(0,tt.jsxs)(Zl.default,{href:e,className:"group/portfolio relative tt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,tt.jsx)("span",{className:i("absolute inset-0 tt-[2] bg-gradient-1 from-primary/0 Qn-primary [transition:all_500ms_ease] md:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","md:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] md:group-hover/portfolio:[transition-delay:.1s] md:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,tt.jsx)(ed.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
7
7
  (min-width:${Jl.md}) 50vw,
8
8
  (min-width:${Jl.lg}) 25vw,
9
9
  100vw
@@ -11,7 +11,7 @@
11
11
  dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[e&&(0,tt.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),Oo=({title:e})=>(0,tt.jsx)("header",{className:"absolute top-0 left-0 w-full py-4 px-8 flex justify-between items-center transition-colors duration-300 dark bg-background text-foreground",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),Go=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,tt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,tt.jsx)("div",{className:"absolute inset-0",children:(0,tt.jsx)(Hi.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,tt.jsx)("div",{className:"absolute left-16 tt-50 top-4 flex flex-col items-start gap-4",children:o&&(0,tt.jsx)("div",{className:"h-24",children:(0,tt.jsx)(Hi.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,tt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,tt.jsxs)("div",{className:"relative pl-24 tt-10 max-w-3xl",children:[(0,tt.jsx)("p",{className:"text-lg font-medium tt-48 text-accent mb-2",children:t}),a.richText&&(0,tt.jsx)(Q,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Pd=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],p=u=>{a(u)},d=()=>{a(u=>(u+1)%c.length)},m=()=>{a(u=>(u-1+c.length)%c.length)},g=(0,Zo.useCallback)(((u,v)=>{let M;return(...O)=>{clearTimeout(M),M=setTimeout(()=>u(...O),v)}})(u=>{u.deltaY>0?d():m()},300),[]),y=u=>{u.key==="ArrowDown"?d():u.key==="ArrowUp"&&m()};return(0,Zo.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",y),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",y)}),[]),(0,tt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,tt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 tt-10 flex-col items-center justify-center bg-gray-900",children:l&&c.map((u,v)=>(0,tt.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===v?"bg-accent":"bg-gray-600"}`,onClick:()=>p(v),children:(0,tt.jsx)("span",{className:"absolute tt-7 left-full text-left transform -translate-y-1/2 translate-tt-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-tt-2 transition-all duration-300",children:u.blockName})},u.id))}),(0,tt.jsx)(ao.AnimatePresence,{children:c.map((u,v)=>(0,tt.jsx)("div",{id:`slide-${v}`,className:"print-section",children:(0,tt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
12
12
  ${v===t?"opacity-100":"opacity-0"}
13
13
  w-full h-full bg-cover bg-center`,children:v===0?(0,tt.jsx)(Go,{hero:r,title:e.title,logoImage:s}):(0,tt.jsxs)(tt.Fragment,{children:[u.blockName&&(0,tt.jsx)(Oo,{title:u.blockName}),(0,tt.jsx)(ua,{blocks:[u],fill:!0}),(0,tt.jsx)(Cd,{logoImage:s})]})})},v))}),(0,tt.jsx)("button",{className:"absolute bottom-4 left-1 tt-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:d,children:(0,tt.jsx)(sp,{})})]})},sp=()=>(0,tt.jsx)(ao.AnimatePresence,{children:(0,tt.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,tt.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 kd=h(require("next/link")),Sd=h(require("next/image"));function Rd({blogs:e,width:t=3}){return(0,tt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,tt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,tt.jsx)(kd.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,tt.jsxs)("div",{className:"relative size-full",children:[(0,tt.jsx)(Sd.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,tt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Qn-t from-card Qn-transparrent flex flex-col justify-end",children:[(0,tt.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,tt.jsx)("h2",{className:"text-_n font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o))})})}function Td({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:l,companiesCount:n,dealsClosed:c,leadsGenerated:p}){return(0,tt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,tt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,tt.jsxs)("div",{className:"max-w-4xl",children:[(0,tt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,tt.jsx)("h1",{className:"tt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,tt.jsx)("p",{className:"tt-6 text-balance text-_n/8 text-gray-700",children:a})]}),(0,tt.jsxs)("section",{className:"tt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-tt-8 lg:gap-y-16",children:[(0,tt.jsxs)("div",{className:"lg:pr-8",children:[(0,tt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,tt.jsx)("p",{className:"tt-6 text-base/7 text-gray-600",children:r})]}),(0,tt.jsx)("div",{className:"tt-16 lg:row-span-2 lg:-mr-16 _n:mr-auto",children:(0,tt.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 _n:gap-8",children:s.map((d,m)=>(0,tt.jsx)("div",{className:"aspect-square overflow-hidden rounded-_n shadow-_n outline-1 -outline-offset-1 outline-black/10",children:(0,tt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},m))})}),(0,tt.jsxs)("div",{className:"max-lg:tt-16 lg:col-span-1",children:[(0,tt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,tt.jsx)("tt",{className:"tt-6 border-t border-gray-200"}),(0,tt.jsxs)("dl",{className:"tt-6 grid grid-cols-1 gap-tt-8 gap-y-4 sm:grid-cols-2",children:[(0,tt.jsxs)("div",{className:"flex flex-col gap-y-2 border-tt border-dotted border-gray-200 pb-4",children:[(0,tt.jsx)("Qn",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",l]})]}),(0,tt.jsxs)("div",{className:"flex flex-col gap-y-2 border-tt border-dotted border-gray-200 pb-4",children:[(0,tt.jsx)("Qn",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[n,"K"]})]}),(0,tt.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-tt max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,tt.jsx)("Qn",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"M"]})]}),(0,tt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,tt.jsx)("Qn",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,tt.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[p,"M"]})]})]})]})]})]})})}function ip(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)},np=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,tt.jsx)(Dd,{page:e,layout:t,logoImage:a}):(0,tt.jsx)(Md,{page:e,layout:t,logoImage:a}),Dd=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=ns(e),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(null),l=(0,Zo.useRef)(new cv.Previewer),n={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Zo.useEffect)(()=>{let d=document.getElementById("printable-content");if(d){let m=document.createElement("style");return m.textContent=`@page { size: ${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(m),()=>{document.head.removeChild(m)}}},[t]);let c=(0,Zo.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let d=document.getElementById("printable-content");d&&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(m=>console.error("Paged.js error:",m))},[t]);(0,Zo.useEffect)(()=>{l.current=new cv.Previewer},[c,t]);let p=[n,...o];return(0,tt.jsxs)("div",{children:[(0,tt.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,tt.jsxs)("div",{id:"printable-content",ref:r,children:[p.map((d,m)=>(0,tt.jsx)(tt.Fragment,{children:m===0?(0,tt.jsx)("section",{className:"title-page w-full h-full",children:(0,tt.jsx)(Go,{hero:e.hero,title:e.title})},m):(0,tt.jsxs)("section",{className:"normal-page overflow-hidden",children:[d.blockName&&(0,tt.jsx)(Oo,{title:d.blockName}),(0,tt.jsx)(ua,{blocks:[d],fill:!0})]},m)})),(0,tt.jsx)("section",{className:"normal-page",children:(0,tt.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
14
- dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[a&&(0,tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,tt.jsx)("div",{ref:s,className:"preview-container"})]})},Md=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=ns(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new cv.Previewer),[l,n]=(0,Zo.useState)(0),p=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Zo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new cv.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,tt.jsxs)("div",{className:"pagedjs-container",children:[(0,tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:p.map((m,f)=>(0,tt.jsx)(tt.Fragment,{children:f===0?(0,tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,tt.jsx)(Go,{hero:e.hero,title:e.title})},f):(0,tt.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${ip("185mm")}px]`,m.theme?.settings?.theme==="dark"?"dark":"light"),children:[m.blockName&&(0,tt.jsx)(Oo,{title:m.blockName}),(0,tt.jsx)(ua,{blocks:[m],fill:!0})]},f)}))}),(0,tt.jsx)("div",{ref:o,className:"preview-container"})]})};var zi=h(require("clsx"));function lp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...p}){let m=c?f=>(0,tt.jsx)(c,{...f}):l?({href:f,children:g,...y})=>(0,tt.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:g}):f=>(0,tt.jsx)("a",{...f});return(0,tt.jsxs)(va,{...p,variant:"inset",children:[(0,tt.jsx)(ha,{children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Te,{children:n?(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)(de,{className:"bg-gray-200 my-2 w-full h-7"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,tt.jsxs)(Zt,{children:[(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,tt.jsxs)(Zt,{children:[e&&!n&&e.map((f,g)=>(0,tt.jsx)(dp,{subNav:f,pathName:r,Link:m},g)),(0,tt.jsx)(at,{className:"tt-auto",children:(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:t&&!n&&t.map(f=>(0,tt.jsx)(Te,{children:(0,tt.jsx)(ot,{asChild:!0,size:"sm",children:(0,tt.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,tt.jsx)(f.icon,{}),(0,tt.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,tt.jsx)(xa,{})]})}function dp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsx)(at,{className:"py-0",children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Bt,{asChild:!0,defaultOpen:o.isActive,children:(0,tt.jsxs)(Te,{children:[(0,tt.jsx)(ot,{asChild:!0,tooltip:o.label,className:(0,zi.default)(r&&"font-bold text-accent"),children:(0,tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,tt.jsx)(o.icon,{}),(0,tt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Kt,{asChild:!0,children:(0,tt.jsxs)(wo,{className:"data-[state=open]:rotate-90",children:[(0,tt.jsx)(Qn.ChevronRight,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,tt.jsx)(Qt,{children:(0,tt.jsx)(ea,{children:o.links?.map(s=>(0,tt.jsx)(ta,{children:(0,tt.jsx)(aa,{asChild:!0,className:(0,zi.default)(s.url===t&&"font-bold text-accent"),children:(0,tt.jsx)(a,{href:s.url,children:(0,tt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Ad=h(require("clsx"));var cp=()=>(0,tt.jsx)(De,{iconName:"github",size:"10x"});function mp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:p,LinkComponent:d,...m}){let y=d?u=>(0,tt.jsx)(d,{...u}):p?({item:u,children:v,...M})=>(0,tt.jsx)("button",{onClick:()=>p&&p(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:v}):u=>(0,tt.jsx)("a",{href:u.href,...u});return(0,tt.jsxs)(va,{side:"right",variant:"inset",...m,children:[(0,tt.jsxs)(ha,{className:"border-tt border-sidebar-border",children:[(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Te,{children:(0,tt.jsxs)(ot,{onClick:s,children:[(0,tt.jsx)(Qn.FilePlus,{})," ",(0,tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,tt.jsx)(Te,{children:(0,tt.jsx)(ot,{onClick:c,tooltip:"Open in GitHub",children:(0,tt.jsx)(cp,{})})})]}),(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Te,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Ad.default)(r&&"text-accent"),children:[(0,tt.jsx)(Qn.Edit,{})," ",(0,tt.jsx)("span",{children:"Edit"})]})}),(0,tt.jsx)(Te,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:n,children:[(0,tt.jsx)(Qn.Printer,{})," ",(0,tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Kt,{children:["Editor Controls",(0,tt.jsx)(Qn.ChevronDown,{className:"tt-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(Qt,{children:a})})]})}),(0,tt.jsx)(xo,{className:"mx-0"})]}),(0,tt.jsxs)(Zt,{className:"overflow-auto",children:[o&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Related Content"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Te,{children:(0,tt.jsx)(de,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Table of Contents"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Te,{children:(0,tt.jsx)(de,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Kt,{children:["Related Content",(0,tt.jsx)(Qn.ChevronDown,{className:"tt-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(Qt,{children:(0,tt.jsx)($e,{children:e&&Object.keys(e).map(u=>(0,tt.jsxs)(Te,{children:[(0,tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,tt.jsx)(ea,{children:e[u].map(v=>(0,tt.jsx)(ta,{children:(0,tt.jsx)(aa,{asChild:!0,isActive:!1,size:"sm",children:(0,tt.jsxs)(y,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,tt.jsx)("span",{children:v.label}),v.type==="note"&&(0,tt.jsx)(Qn.PencilLine,{className:"tt-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,tt.jsx)(De,{iconName:"code-pull-request-draft",className:"tt-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Kt,{children:["Table of Contents",(0,tt.jsx)(Qn.ChevronDown,{className:"tt-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(Qt,{children:(0,tt.jsx)($e,{children:t.map(u=>(0,tt.jsxs)(Te,{children:[(0,tt.jsx)(ot,{asChild:!0,children:(0,tt.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,tt.jsx)(ea,{children:u.items.map(v=>(0,tt.jsx)(ta,{children:(0,tt.jsx)(aa,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,tt.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,tt.jsx)("span",{children:v.title})})})},v.title))}):null]},u.title))})})})]})})]}),(0,tt.jsx)(xa,{})]})}var Ld=h(require("next/image"));function pp({title:e,members:t}){return(0,tt.jsx)(ye,{className:"mb-6",children:(0,tt.jsxs)("div",{className:"p-6",children:[(0,tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,tt.jsx)(Qn.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,tt.jsx)("h2",{className:"text-_n font-semibold text-foreground",children:e})]}),(0,tt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-4",children:[(0,tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,tt.jsx)(Ld.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Ed=h(require("next/link"));var up=({links:e,title:t="Related Content"})=>(0,tt.jsxs)(ye,{children:[(0,tt.jsx)(Me,{children:(0,tt.jsx)(Ie,{className:"text-accent",children:t})}),(0,tt.jsx)(Pe,{children:(0,tt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,tt.jsxs)(Ed.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,tt.jsx)(Qn.ExternalLink,{className:"tt-1 h-3 w-3"})]},o))})})]});var Oi=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 fp({pages:e}){let t=(0,fd.useSearchParams)(),a=(0,fd.usePathname)(),{replace:o}=(0,fd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&l.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&l.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function p(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=l.start;m<=l.end;m++)d.push(m);return(0,tt.jsx)("div",{className:"tt-12",children:(0,tt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(Oi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,tt.jsx)(Bl.FaArrowLeft,{})})}),d.map((m,f)=>(0,tt.jsx)("li",{children:(0,tt.jsx)("a",{className:i(Oi,m===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),p(m.toString())},children:m})},f)),l.end<r&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(Oi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,tt.jsx)(Bl.FaArrowRight,{})})})]})})}var jv=i("transition-colors duration-400 hover:text-primary ease-in-out");function gp({title:e,links:t}){let a=(0,fd.useSearchParams)(),o=(0,fd.usePathname)(),{replace:r}=(0,fd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,tt.jsxs)(ye,{children:[(0,tt.jsx)(Me,{children:(0,tt.jsx)(Ie,{className:"text-accent",children:e&&e})}),(0,tt.jsx)(Pe,{children:t&&t.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:tt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,tt.jsx)(Qn.ExternalLink,{className:"tt-1 h-3 w-3"})]},n))})})})]})}function bp({types:e}){let[t,a]=(0,Zo.useState)(e&&e[0].href),o=(0,fd.useSearchParams)(),r=(0,fd.usePathname)(),{replace:s}=(0,fd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-tt-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,tt.jsx)(T,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Gd=h(require("next/image"));var _i=({links:e,media:t,children:a,richText:o})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,tt.jsxs)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-center",children:[a||o&&(0,tt.jsx)(Q,{className:"max-w-none mb-6 tt-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,tt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,tt.jsx)("li",{children:(0,tt.jsx)(ht,{...r})},s))})]}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Ot,{fill:!0,imgClassName:"tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Gd.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-Qn-tt from-white dark:from-black"})]}),(0,tt.jsx)(yp,{})]})}),yp=()=>(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-10",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var $i=h(require("next/image"));var vp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,tt.jsx)($i.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,tt.jsx)("div",{children:(0,tt.jsx)($i.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Wi=({links:e,media:t,children:a,richText:o})=>(0,tt.jsxs)("div",{className:"relative bg-brand-one pb-12 tt-20 tt-10",children:[t&&(0,tt.jsx)(vp,{media:t}),(0,tt.jsx)("div",{className:"mx-0 min-w-full relative tt-9",children:(0,tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,tt.jsx)(Q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Vi=({children:e,richText:t})=>(0,tt.jsx)("div",{className:"min-w-full py-10 bg-muted tt-24",children:(0,tt.jsx)("div",{className:"container",children:e||t&&(0,tt.jsx)(Q,{content:t,enableGutter:!1})})});var $d=h(require("react")),Wd=h(require("next/image"));var _d=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 hp=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,tt.jsxs)("div",{className:"relative grid tt-24",children:[(0,tt.jsx)("div",{className:"relative tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground tt-24 p-6 lg:p-12",children:(0,tt.jsxs)("div",{className:"container mx-auto",children:[(0,tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,tt.jsx)("p",{children:o.map((l,n)=>(0,tt.jsxs)($d.default.Fragment,{children:[l.name,n<o.length-2&&", ",n===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,tt.jsx)("time",{dateTime:r,children:_d(r)})]}),t&&t.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,n)=>typeof l=="object"&&l!==null&&(0,tt.jsx)(Ue,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||n))})]})]})]})}),(0,tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,tt.jsx)(Wd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,tt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Qn-t from-background dark:from-black Qn-transparent"})]})]})};var _r=require("@heroicons/react/20/solid");var Ui=h(require("next/image"));function ji({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"fd-padding",o);return(0,tt.jsx)("div",{className:r,children:e})}var jd=require("next-themes");function xp({children:e,...t}){return(0,tt.jsx)(jd.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,tt.jsx)("div",{className:"w-full h-[1240px] tt-20",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,tt.jsxs)("div",{className:"w-full tt-20 aspect-[1920/332] overflow-hidden ",children:[(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,tt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] tt-10 bg-white"})]});if(e==="dark-top")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-start block overflow-hidden bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 relative -bottom-[1px]",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},wp=({className:e})=>(0,tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,tt.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Xi=({title:e,image:t})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,tt.jsx)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-start",children:(0,tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Ui.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Ui.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-Qn-tt from-white dark:from-black"})]}),(0,tt.jsx)($o,{className:"text-black tt-10",position:"header"})]})});var Np={highImpact:_i,lowImpact:Vi,mediumImpact:Wi,sectionHero:Xi},Cp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Np[t];return a?(0,tt.jsx)(a,{...e}):null};function Pp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,tt.jsxs)("ol",{role:"list",className:"flex items-center space-tt-4",children:[(0,tt.jsx)("li",{children:(0,tt.jsx)("div",{children:(0,tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,tt.jsx)(_r.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,tt.jsx)("li",{children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(_r.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,tt.jsx)("a",{href:a.href,className:"tt-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,tt.jsx)("div",{className:"tt-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,tt.jsx)(tt.Fragment,{})}var Ze=require("@headlessui/react"),Vr=require("@heroicons/react/24/outline");var kp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,tt.jsx)("a",{href:o,className:"flex items-center gap-tt-1 text-sm text-foreground group",children:(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]})}):(0,tt.jsxs)(Ze.Popover,{children:[(0,tt.jsxs)(Ze.PopoverButton,{className:"flex items-center gap-tt-1 text-sm/6 text-foreground outline-none group",children:[(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]}),(0,tt.jsx)(_r.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,tt.jsxs)(Ze.PopoverPanel,{transition:!0,className:"absolute inset-tt-0 top-0 -tt-10 bg-popover tt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-tt-4 px-6 py-10 lg:px-8 _n:gap-tt-8 tt-50",children:t&&t.map(r=>(0,tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,tt.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,tt.jsx)(Xd,{icon:r.icon,size:"4x"})}),(0,tt.jsxs)("a",{href:r.href,className:"tt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,tt.jsx)("span",{className:"absolute inset-0"})]}),(0,tt.jsx)("p",{className:"tt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,tt.jsx)("div",{className:"bg-gray-50",children:(0,tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,tt.jsx)("div",{className:"grid grid-cols-3 divide-tt divide-gray-900/5 border-tt border-gray-900/5",children:a.map(r=>(0,tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,tt.jsx)(Xd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Xd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,tt.jsx)(De,{...e,size:a});if("src"in e)return(0,tt.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},$r=kp;var Wr=["light","dark","green"];function Sp({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"),p=t?.split(".")[0],d=t?.split(".")[1],[m,f]=(0,Zo.useState)(`${p}.${d}`),g=u=>{Wr.includes(u)?f(u==="light"?`${p}.${d}`:`${p}-${u}.${d}`):f(`${p}.${d}`)};(0,Zo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let y=()=>{let u=Wr[(Wr.indexOf(n)+1)%Wr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,tt.jsxs)("header",{className:"relative isolate tt-10 bg-background h-14",children:[(0,tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,tt.jsx)("div",{className:"flex lg:flex-1",children:(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:e}),(0,tt.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,tt.jsx)("div",{className:"flex lg:hidden",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(Vr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:a.map(u=>(0,tt.jsx)($r,{...u},u.name))}),(0,tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,tt.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,tt.jsx)(_r.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,tt.jsx)(_r.MoonIcon,{className:"h-6 w-6"}):(0,tt.jsx)(_r.SunIcon,{className:"h-6 w-6"})})})]}),(0,tt.jsxs)(Ze.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-y-0 right-0 tt-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,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(Vr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-y-2 py-6",children:a.map(u=>(0,tt.jsx)(Rp,{...u},u.name))})})})]})]})]})}function Rp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,tt.jsxs)(Ze.Disclosure,{as:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-y-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Tp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,tt.jsx)("div",{className:"fixed inset-0 h-full tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,tt.jsx)(ji,{children:(0,tt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 tt-0 md:mb-0",children:[(0,tt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,tt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,tt.jsx)($o,{className:"text-black tt-10",position:"header"})]})})}var Yi=h(require("next/image"));function fa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,tt.jsxs)(it,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,tt.jsx)(Yi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,tt.jsx)(Yi.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 qi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,Zo.useState)(!1),[c,p]=(0,Zo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,jd.useTheme)();(0,Zo.useEffect)(()=>{p(m||"dark")},[m]);let g=()=>{let y=d[(d.indexOf(c)+1)%d.length];p(y),f(y)};return(0,Zo.useEffect)(()=>{let y=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",y,{passive:!0}),()=>window.removeEventListener("scroll",y)},[]),(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("header",{className:`tt-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,tt.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,tt.jsx)(fa,{logoDark:a,logoLight:t}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:o&&o.map(y=>(0,tt.jsx)($r,{...y},y.name))}),r&&(0,tt.jsx)("button",{className:"fixed right-4 tt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,tt.jsxs)("div",{className:"relative",children:[(0,tt.jsx)(Qn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,tt.jsx)(Qn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Ki=["light","dark"];function Qi({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:l,setTheme:n}=(0,jd.useTheme)(),[c,p]=(0,Zo.useState)(!1),[d,m]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Zo.useEffect)(()=>{m(l||"dark")},[l]);let f=()=>{let g=Ki[(Ki.indexOf(d)+1)%Ki.length];m(g),n(g)};return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("header",{className:`tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,tt.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-tt dark:border-accent",children:[(0,tt.jsx)(fa,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsx)("div",{className:"flex items-center space-tt-4",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 tt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(Vr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,tt.jsxs)(Ze.Dialog,{open:c,onClose:p,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-y-0 right-0 tt-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,tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,tt.jsx)(fa,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(Vr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,tt.jsx)(Dp,{...g},g.name))})})})]})]})]})})}function Dp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,tt.jsxs)(Ze.Disclosure,{as:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-y-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Xh=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Jd=i("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Ji=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Zi=i("flex items-center text-white gap-3"),Xr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Mp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,tt.jsxs)("footer",{className:i("sticky tt-2 flex flex-col dark bg-black overflow-hidden tt-12 prose-base",e),children:[(0,tt.jsx)("div",{className:"py-16 md:py-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 _n:grid-cols-3",children:[(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,tt.jsx)(fa,{logoDark:o,logoLight:a}),(0,tt.jsx)("p",{className:"mb-7 tt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,tt.jsx)("nav",{"aria-label":"social links",children:(0,tt.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((p,d)=>(0,tt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,tt.jsx)(it,{"aria-label":p.href,className:"text-2xl",href:p.href,openNewTab:!0,children:(0,tt.jsx)("span",{children:p.icon})})},d))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,tt.jsx)("h3",{className:Jd,children:s.title}),s.links&&s.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(p=>(0,tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,tt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,tt.jsx)(Bl.FaChevronRight,{})}),(0,tt.jsx)(it,{href:p.href,openNewTab:p.openNewTab,className:Xr,children:p.label})]},p.label))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,tt.jsx)("h3",{className:Jd,children:l.title}),(0,tt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,tt.jsxs)("li",{className:Zi,children:[(0,tt.jsx)("span",{className:Ji,children:(0,tt.jsx)(Bl.FaPaperPlane,{})}),(0,tt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,tt.jsxs)("li",{className:Zi,children:[(0,tt.jsx)("span",{className:Ji,children:(0,tt.jsx)(Bl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,tt.jsx)("div",{className:"grid gap-1",children:l.mails.map((p,d)=>(0,tt.jsx)("a",{href:`mailto:${p}`,className:Xr,children:p},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,tt.jsxs)("li",{className:Zi,children:[(0,tt.jsx)("span",{className:Ji,children:(0,tt.jsx)(Bl.FaPhone,{})}),(0,tt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((p,d)=>(0,tt.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Xr,children:p},d))})]})]})]})]})})}),(0,tt.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-tt-8 gap-y-4 md:gap-tt-10",children:[(0,tt.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,tt.jsx)("ul",{className:"flex flex-wrap items-center gap-tt-4 md:gap-tt-7",children:n.links.map(p=>(0,tt.jsx)("li",{children:(0,tt.jsx)(it,{"aria-label":`Go Qn page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Xr,children:p.label})},p.label))})})]})})})]})}function Ip({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,tt.jsxs)("div",{className:i("fixed top-0 left-0 right-0 tt-50",r),children:[(0,tt.jsx)(qi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,tt.jsx)(Qi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function en({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,fd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(fi.toast.success(d.message),s.refresh()):fi.toast.error(`Error: ${d.message}`),r([])},p=async()=>{let d=await a(o);d.success?(fi.toast.success(d.message),s.refresh()):fi.toast.error(`Error: ${d.message}`),r([])};return(0,tt.jsxs)("div",{className:"space-y-4",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,tt.jsx)(T,{onClick:p,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,tt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,tt.jsx)("label",{htmlFor:"select-all",className:"tt-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,tt.jsxs)("div",{className:"tt-3 flex items-center",children:[(0,tt.jsxs)(We,{className:"h-10 w-10",children:[(0,tt.jsx)(Ve,{src:d.userImage,alt:d.userName}),(0,tt.jsx)(je,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,tt.jsx)("div",{className:"tt-3",children:(0,tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,tt.jsx)(Ue,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,tt.jsx)(fi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var tn=require("date-fns");var tc=[{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 Uo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=tc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},ac=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Uo(o))return .5;for(;o<=r;)Uo(o)||s++,o.setDate(o.getDate()+1);return s},oc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Ap=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-tt-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function on({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,p]=(0,Zo.useState)(!1),[d,m]=(0,Zo.useState)(1),f=(0,fd.useRouter)();(0,Zo.useEffect)(()=>{let u=oc(a,r);p(u),u&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){m(0);return}let u=ac(a,r,l!=="Full Day");m(u)},[a,r,l]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){fi.toast.error("Please select both start and end dates");return}if(d>e){fi.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",l),v.append("duration",d.toString());let M=await(t||Bp)(v);M.success?(fi.toast.success(M.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):fi.toast.error(`Error: ${M.message}`)},className:"space-y-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Do,{children:[(0,$.jsx)(Mo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Qn.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,tn.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Bo,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Do,{children:[(0,$.jsx)(Mo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Qn.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,tn.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Bo,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-y-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(Ap,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(fi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var Bp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function sc(...e){return e.filter(Boolean).join(" ")}function rn({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=p=>p.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,tt.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(Qn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(Qn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,tt.jsx)("div",{className:"tt-8 flow-root",children:(0,tt.jsx)("div",{className:"-mx-4 -my-2 overflow-tt-auto sm:-mx-6 lg:-mx-8",children:(0,tt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,tt.jsx)("thead",{className:"sticky top-0 tt-20 bg-white",children:(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 tt-30 border-tt border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((p,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,tt.jsxs)("th",{scope:"col",className:`sticky top-0 tt-10 border-tt 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 ${Uo(m)?"bg-gray-200":""}`,children:[(0,tt.jsx)("div",{children:c(m)}),(0,tt.jsx)("div",{children:d+1})]},d)})]})}),(0,tt.jsx)("tbody",{children:o.map((p,d)=>(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("td",{className:sc(d!==o.length-1?"border-gray-200":"","sticky left-0 tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsxs)(We,{className:"h-11 w-11",children:[(0,tt.jsx)(Ve,{src:p.image,alt:p.name}),(0,tt.jsx)(je,{children:p.name.split(" ").map(m=>m[0]).join("")})]}),(0,tt.jsx)("div",{className:"tt-4",children:(0,tt.jsx)("div",{className:"font-medium text-accent",children:p.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),y=a.find(u=>u.userId===p.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,tt.jsx)("td",{className:sc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Uo(g)?"bg-gray-200":"bg-white"),children:(0,tt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${p.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,tt.jsx)("div",{className:`h-3 w-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${p.id}-${f}`)})]},p.id))})]})})})})]})}function sn({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,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,tt.jsxs)("header",{className:"flex items-center justify-between border-tt border-gray-200 px-6 py-4 lg:flex-none",children:[(0,tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,tt.jsx)("div",{className:"flex items-center",children:(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(Qn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(Qn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-tt border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,tt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"tt"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,tt.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,tt.jsx)("ol",{className:"tt-2 space-y-1 overflow-visible",children:d.holidays.map(m=>(0,tt.jsx)("li",{className:"overflow-visible",children:(0,tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:m.userName})},m.id))})]},d.date.toISOString()))}),(0,tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,tt.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:tt-10"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("tt-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,tt.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.id))})]},d.date.toISOString()))})]})]})]})}var ba=require("lucide-react");function nc(...e){return e.filter(Boolean).join(" ")}function Lp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,p]=(0,Zo.useState)("Calendar View"),d=(0,fd.useRouter)(),m=!1,f=(0,tn.parseISO)(a),g=async u=>{let v=(0,tn.format)(u,"dd-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",v),d.push(M.toString()),{success:!0}};if(m)return(0,tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,tt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-tt-2 border-gray-900"})});let y=[{name:"Grid View",icon:ba.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ba.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ba.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ba.CheckSquare,current:c==="Approve Leave"}];return(0,tt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,tt.jsxs)("div",{className:"mb-8",children:[(0,tt.jsxs)("div",{className:"sm:hidden",children:[(0,tt.jsx)("select",{value:c,onChange:u=>p(u.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(u=>(0,tt.jsx)("option",{children:u.name},u.name))}),(0,tt.jsx)(Qn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,tt.jsx)("div",{className:"hidden sm:block",children:(0,tt.jsx)("div",{className:"border-tt border-gray-200",children:(0,tt.jsx)("nav",{className:"-mb-px flex space-tt-8","aria-label":"Tabs",children:y.map(u=>(0,tt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(u.name)},className:nc(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-tt-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,tt.jsx)(u.icon,{className:nc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-tt-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,tt.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,tt.jsx)(rn,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,tt.jsx)(sn,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,tt.jsx)(on,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,tt.jsx)(en,{leaveRequests:o,onApprove:u=>l?l(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function nn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,d]=(0,Zo.useState)(""),[m,f]=(0,Zo.useState)(!1),[g,y]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let w=await s(n);w.success?(f(!1),y(null)):console.error("Failed Qn save deal:",w.errors)}catch(w){console.error("Failed Qn save deal:",w)}},v=(w,K)=>{c(Ga=>({...Ga,[w]:K}))},M=w=>{let K=(n.categories||[]).includes(w)?(n.categories||[]).filter(Ga=>Ga!==w):[...n.categories||[],w];v("categories",K)},O=async()=>{if(p.trim()){let w={text:p,timestamp:new Date().toISOString()};try{let K=await l(w);if(!K.success){console.error("Failed Qn add comment:",K.errors);return}}catch(K){console.error("Failed Qn add comment:",K)}c(K=>({...K,comments:[...K.comments||[],w]})),d("")}},N=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},L=w=>t?.find(K=>K.id===Number(w));return(0,tt.jsx)(st,{open:!0,children:(0,tt.jsxs)(Qe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,tt.jsxs)(bt,{className:"flex flex-row items-center justify-between",children:[(0,tt.jsx)(yt,{className:"text-2xl font-bold",children:a?.name}),(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,tt.jsxs)(T,{onClick:u,disabled:!m,children:[(0,tt.jsx)(Qn.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,tt.jsxs)(St,{className:"flex-grow pr-4",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,tt.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,tt.jsx)(_e,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("value"),children:["\xA3",n.value?.toLocaleString()]})}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,tt.jsxs)(ka,{value:n?.assignee?.id?.toString()||"",onValueChange:w=>v("assignee",L(w)),children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select assignee"})}),(0,tt.jsx)(la,{children:t&&t.map(w=>(0,tt.jsx)(da,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("assignee"),children:[(0,tt.jsx)(Qn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.assignee.name})]})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,tt.jsx)(_e,{type:"date",value:n.closureDate?.split("T")[0]??"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>y(null),className:"mr-2",autoFocus:!0}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("closureDate"),children:[(0,tt.jsx)(Qn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/tt"})]})]})]}),(0,tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,tt.jsx)(ca,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>y("description"),children:n.description})]})}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 tt-2 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,tt.jsxs)(ka,{value:n.status,onValueChange:w=>{v("status",w),y(null)},children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select status"})}),(0,tt.jsx)(la,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,tt.jsx)(da,{value:w,children:w},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("status"),children:n.status})]}),(0,tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:w.id?.toString()||"",checked:(n.categories||[]).some(K=>K.id===w.id),onCheckedChange:()=>w.id!==void 0&&M(w)}),(0,tt.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${N(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("categories"),children:n.categories&&n.categories.map(w=>{let K=w;return K?(0,tt.jsx)(Ue,{variant:"outline",className:N(K.type||"sector"),children:K.name},K.id):null})})]})]}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 tt-4 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,tt.jsx)(St,{className:"h-[200px] overflow-y-auto",children:(0,tt.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((w,K)=>new Date(K.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,tt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,tt.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,tt.jsxs)("p",{className:"text-xs text-foreground tt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,tt.jsxs)("div",{className:"flex tt-2",children:[(0,tt.jsx)(_e,{value:p,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow tt-1"}),(0,tt.jsxs)(T,{onClick:O,className:"tt-2",children:[(0,tt.jsx)(Qn.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,tt.jsxs)("div",{className:"text-xs text-gray-500 tt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function ln({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>s.type==="proposition"&&(e.categories??[]).includes(s.id));return(0,tt.jsxs)(ye,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Me,{className:"pb-2",children:[(0,tt.jsx)("div",{className:"flex justify-between items-center",children:(0,tt.jsx)(Ie,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsxs)(Pe,{children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,tt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,tt.jsx)(Qn.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,tt.jsx)("span",{children:e.assignee.name})]}),(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(Qn.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,tt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,tt.jsx)(Ue,{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 dn({onSubmit:e}){let[t,a]=(0,Zo.useState)({name:"",intro:"",active:!1});return(0,tt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,tt.jsxs)("div",{className:"space-y-2",children:[(0,tt.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,tt.jsx)(_e,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,tt.jsxs)("div",{className:"space-y-2",children:[(0,tt.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,tt.jsx)(ca,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,tt.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function cn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,d]=(0,Zo.useState)(!1),[m,f]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let N={};return n.customer||(N.customer="Customer is required"),n.value||(N.value="Value is required"),n.assignee||(N.assignee="Assignee is required"),n.closureDate||(N.closureDate="Closure Date is required"),f(N),Object.keys(N).length===0},y=async N=>{N.preventDefault(),f({});try{if(g()){let L=await o({...n});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):f(L.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=N=>{c(L=>({...L,categories:(L.categories||[]).includes(N.id)?(L.categories||[]).filter(w=>w!==N.id):[...L.categories||[],N.id]}))},v=async N=>{c({...n,customer:N});try{let L=await s(N);L.success?d(!1):f(L.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},M=N=>t?.find(L=>L.id===Number(N)),O=N=>e?.find(L=>L.id===Number(N));return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,tt.jsx)(St,{className:"h-[60vh] pr-4",children:(0,tt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)(ka,{value:n.customer?.id?.toString(),onValueChange:N=>c({...n,customer:O(N)}),children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select customer"})}),(0,tt.jsx)(la,{children:e.map(N=>(0,tt.jsx)(da,{value:N.id?.toString()||"",children:N.name},N.id))})]}),(0,tt.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,tt.jsx)(Qn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,tt.jsx)(_e,{id:"value",type:"number",value:n.value||"",onChange:N=>c({...n,value:Number.parseFloat(N.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,tt.jsxs)(ka,{value:n.assignee?.id?.toString(),onValueChange:N=>c({...n,assignee:M(N)}),children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select assignee"})}),(0,tt.jsx)(la,{children:t&&t.map(N=>(0,tt.jsx)(da,{value:N.id?.toString()||"",children:N.name},N.id))})]}),m.assignee&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,tt.jsx)(ca,{id:"description",value:n.description||"",onChange:N=>c({...n,description:N.target.value}),placeholder:"Enter deal description"})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{children:"Categories"}),(0,tt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(N=>(0,tt.jsxs)("div",{className:"space-y-2",children:[(0,tt.jsx)("h4",{className:"text-sm font-medium",children:N.charAt(0).toUpperCase()+N.slice(1)}),(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===N).map(L=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:L.id.toString(),checked:n.categories?.includes(L.id),onCheckedChange:()=>u(L)}),(0,tt.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id))})]},N))})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,tt.jsx)(_e,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:N=>c({...n,closureDate:N.target.value})}),m.closureDate&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,tt.jsx)(st,{open:p,onOpenChange:d,children:(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Customer"})}),(0,tt.jsx)(dn,{onSubmit:v})]})})]})}function mn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:p}){let[d,m]=(0,Zo.useState)(!1);return(0,tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,tt.jsx)("h2",{className:"text-_n font-semibold mb-4",children:e}),c&&(0,tt.jsxs)(st,{open:d,onOpenChange:m,children:[(0,tt.jsx)(mr,{asChild:!0,children:(0,tt.jsxs)(T,{className:"mb-4 w-full",children:[(0,tt.jsx)(Qn.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Deal"})}),(0,tt.jsx)(cn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:p,onClose:()=>m(!1)})]})]}),(0,tt.jsx)(Jr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,tt.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,y)=>(0,tt.jsx)(Jr.Draggable,{draggableId:g.id.toString(),index:g.id,children:u=>(0,tt.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,tt.jsx)(ln,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),f.placeholder]})}),(0,tt.jsxs)("div",{className:"tt-4 text-sm p-3 rounded-lg shadow",children:[(0,tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,tt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Ep=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Fp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Zo.useState)(null),n=m=>(e.deals??[]).filter(f=>f.status===m),c=m=>m.reduce((f,g)=>f+(g.value||0),0),p=(m,f)=>{let g={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return m.reduce((y,u)=>y+(u.value||0)*g[f],0)},d=(0,Zo.useCallback)(m=>{let{source:f,destination:g}=m;if(!g||f.droppableId===g.droppableId&&f.index===g.index)return;let y=f.droppableId,u=g.droppableId,v=e.deals?.filter(O=>O.id===f.index)[0],M=[...e.deals??[]];v&&(v.status=u,a(v))},[a]);return(0,tt.jsx)(Jr.DragDropContext,{onDragEnd:d,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Ep.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{let f=n(m);return(0,tt.jsx)(mn,{status:m,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:m==="Cold"?t:void 0,onAddCustomer:r},m)})}),s&&(0,tt.jsx)(nn,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:m=>o(s.id.toString(),m)})]})})}function bc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Zo.useState)(null),[s,l]=(0,Zo.useState)(!1),[n,c]=(0,Zo.useState)(null),p=async(m=!0)=>{if(e){m&&l(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed Qn fetch task: ${f.statusText}`);let g=await f.json();r(g)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{m&&l(!1)}}},d=()=>p(!1);return(0,Zo.useEffect)(()=>{e&&p(!0);let m=null;return e&&t&&(m=setInterval(d,5e3)),()=>{m&&clearInterval(m)}},[e,t]),{task:o,loading:s,error:n}}var Hp=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},zp=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function pn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,n=!0,c=s,p=o||!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},p){let{task:g,loading:y,error:u}=bc({taskId:t,system:a});l=g,n=y,c=u}else n=!1;let d=Hp(l?.status||"todo"),m=zp(l?.status||"todo"),f=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(f=(0,tn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,tt.jsxs)(ye,{className:i("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,tt.jsxs)(Me,{className:"pb-2",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,tt.jsx)(Ie,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,tt.jsx)(Ue,{className:`${d}`,children:m})]}),l?.project&&(0,tt.jsxs)(Ci,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,tt.jsx)(Pe,{className:"pb-2",children:n?(0,tt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,tt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,tt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,tt.jsx)(Pi,{className:"tt-2 flex items-center justify-between",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(Qn.Clock,{className:"h-3 w-3 mr-1"}),(0,tt.jsxs)("span",{children:["Created ",f]}),(0,tt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,tt.jsxs)("span",{children:["Task #",t]})]})})]})}var Op={task:pn},Gp=`
14
+ dark bg-background text-primary`,children:[(0,tt.jsxs)("div",{className:"flex px-6 items-center space-tt-2",children:[a&&(0,tt.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,tt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,tt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,tt.jsx)("div",{ref:s,className:"preview-container"})]})},Md=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=ns(e),o=(0,Zo.useRef)(null),r=(0,Zo.useRef)(null),s=(0,Zo.useRef)(new cv.Previewer),[l,n]=(0,Zo.useState)(0),p=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,Zo.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(m=>n(m.pageCount)).catch(m=>console.error("Paged.js error:",m)))},[t]);return(0,Zo.useEffect)(()=>{s.current=new cv.Previewer,d()},[d,t]),(0,Zo.useEffect)(()=>{let m=document.createElement("style");return m.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(m),()=>{document.head.removeChild(m)}},[]),(0,tt.jsxs)("div",{className:"pagedjs-container",children:[(0,tt.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:p.map((m,f)=>(0,tt.jsx)(tt.Fragment,{children:f===0?(0,tt.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,tt.jsx)(Go,{hero:e.hero,title:e.title})},f):(0,tt.jsxs)("section",{className:i("pagedjs-section normal-page h-[699px]",`h-[${ip("185mm")}px]`,m.theme?.settings?.theme==="dark"?"dark":"light"),children:[m.blockName&&(0,tt.jsx)(Oo,{title:m.blockName}),(0,tt.jsx)(ua,{blocks:[m],fill:!0})]},f)}))}),(0,tt.jsx)("div",{ref:o,className:"preview-container"})]})};var zi=h(require("clsx"));function lp({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:l,loading:n=!1,LinkComponent:c,...p}){let m=c?f=>(0,tt.jsx)(c,{...f}):l?({href:f,children:g,...y})=>(0,tt.jsx)("button",{onClick:()=>l&&l(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:g}):f=>(0,tt.jsx)("a",{...f});return(0,tt.jsxs)(va,{...p,variant:"inset",children:[(0,tt.jsx)(ha,{children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Te,{children:n?(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)(de,{className:"bg-gray-200 my-2 w-full h-7"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,tt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,tt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,tt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),n&&(0,tt.jsxs)(Zt,{children:[(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"}),(0,tt.jsx)(de,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,tt.jsxs)(Zt,{children:[e&&!n&&e.map((f,g)=>(0,tt.jsx)(dp,{subNav:f,pathName:r,Link:m},g)),(0,tt.jsx)(at,{className:"tt-auto",children:(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:t&&!n&&t.map(f=>(0,tt.jsx)(Te,{children:(0,tt.jsx)(ot,{asChild:!0,size:"sm",children:(0,tt.jsxs)(m,{href:f.url||"",children:[f.icon&&(0,tt.jsx)(f.icon,{}),(0,tt.jsx)("span",{children:f.label})]})})},f.label))})})})]}),(0,tt.jsx)(xa,{})]})}function dp({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsx)(at,{className:"py-0",children:(0,tt.jsx)($e,{children:(0,tt.jsx)(Bt,{asChild:!0,defaultOpen:o.isActive,children:(0,tt.jsxs)(Te,{children:[(0,tt.jsx)(ot,{asChild:!0,tooltip:o.label,className:(0,zi.default)(r&&"font-bold text-accent"),children:(0,tt.jsxs)(a,{href:o.url,children:[o.icon&&(0,tt.jsx)(o.icon,{}),(0,tt.jsx)("span",{children:o.label})]})}),o.links?.length?(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Kt,{asChild:!0,children:(0,tt.jsxs)(wo,{className:"data-[state=open]:rotate-90",children:[(0,tt.jsx)(Qn.ChevronRight,{}),(0,tt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,tt.jsx)(Qt,{children:(0,tt.jsx)(ea,{children:o.links?.map(s=>(0,tt.jsx)(ta,{children:(0,tt.jsx)(aa,{asChild:!0,className:(0,zi.default)(s.url===t&&"font-bold text-accent"),children:(0,tt.jsx)(a,{href:s.url,children:(0,tt.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Ad=h(require("clsx"));var cp=()=>(0,tt.jsx)(De,{iconName:"github",size:"10x"});function mp({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:l,onPrintDocument:n,onGithubClick:c,onNavClick:p,LinkComponent:d,...m}){let y=d?u=>(0,tt.jsx)(d,{...u}):p?({item:u,children:v,...M})=>(0,tt.jsx)("button",{onClick:()=>p&&p(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:v}):u=>(0,tt.jsx)("a",{href:u.href,...u});return(0,tt.jsxs)(va,{side:"right",variant:"inset",...m,children:[(0,tt.jsxs)(ha,{className:"border-tt border-sidebar-border",children:[(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Te,{children:(0,tt.jsxs)(ot,{onClick:s,children:[(0,tt.jsx)(Qn.FilePlus,{})," ",(0,tt.jsx)("span",{children:"Add Document"})]})}),c&&(0,tt.jsx)(Te,{children:(0,tt.jsx)(ot,{onClick:c,tooltip:"Open in GitHub",children:(0,tt.jsx)(cp,{})})})]}),(0,tt.jsxs)($e,{className:"flex-row space-tt-1",children:[(0,tt.jsx)(Te,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:()=>l(),variant:r?"outline":"default",className:(0,Ad.default)(r&&"text-accent"),children:[(0,tt.jsx)(Qn.Edit,{})," ",(0,tt.jsx)("span",{children:"Edit"})]})}),(0,tt.jsx)(Te,{className:"w-5/12",children:(0,tt.jsxs)(ot,{onClick:n,children:[(0,tt.jsx)(Qn.Printer,{})," ",(0,tt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Kt,{children:["Editor Controls",(0,tt.jsx)(Qn.ChevronDown,{className:"tt-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(Qt,{children:a})})]})}),(0,tt.jsx)(xo,{className:"mx-0"})]}),(0,tt.jsxs)(Zt,{className:"overflow-auto",children:[o&&(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Related Content"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Te,{children:(0,tt.jsx)(de,{className:"bg-gray-200 w-full h-10"})},v))})})]}),(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{children:"Table of Contents"}),(0,tt.jsx)(ft,{children:(0,tt.jsx)($e,{children:Array.from({length:3}).map((u,v)=>(0,tt.jsx)(Te,{children:(0,tt.jsx)(de,{className:"bg-gray-200 w-full h-10"})},v))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Kt,{children:["Related Content",(0,tt.jsx)(Qn.ChevronDown,{className:"tt-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(Qt,{children:(0,tt.jsx)($e,{children:e&&Object.keys(e).map(u=>(0,tt.jsxs)(Te,{children:[(0,tt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",u.charAt(0).toUpperCase()+u.slice(1)]}),u&&e[u]&&(0,tt.jsx)(ea,{children:e[u].map(v=>(0,tt.jsx)(ta,{children:(0,tt.jsx)(aa,{asChild:!0,isActive:!1,size:"sm",children:(0,tt.jsxs)(y,{href:v.url,item:v,className:"flex justify-between items-center w-full text-xs",children:[(0,tt.jsx)("span",{children:v.label}),v.type==="note"&&(0,tt.jsx)(Qn.PencilLine,{className:"tt-2 text-gray-400 !important",size:16}),v.type==="draft"&&(0,tt.jsx)(De,{iconName:"code-pull-request-draft",className:"tt-2 text-gray-400 !important"})]})})},v.label))})]},u))})})})]})}),t&&!o&&(0,tt.jsx)(Bt,{defaultOpen:!0,className:"group/collapsible",children:(0,tt.jsxs)(at,{children:[(0,tt.jsx)(Et,{asChild:!0,children:(0,tt.jsxs)(Kt,{children:["Table of Contents",(0,tt.jsx)(Qn.ChevronDown,{className:"tt-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,tt.jsx)(ft,{children:(0,tt.jsx)(Qt,{children:(0,tt.jsx)($e,{children:t.map(u=>(0,tt.jsxs)(Te,{children:[(0,tt.jsx)(ot,{asChild:!0,children:(0,tt.jsx)("a",{href:`#${u.url}`,className:"text-xs",children:u.title})}),u.items?.length?(0,tt.jsx)(ea,{children:u.items.map(v=>(0,tt.jsx)(ta,{children:(0,tt.jsx)(aa,{asChild:!0,isActive:v.isActive,size:"sm",children:(0,tt.jsx)("a",{href:`#${v.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,tt.jsx)("span",{children:v.title})})})},v.title))}):null]},u.title))})})})]})})]}),(0,tt.jsx)(xa,{})]})}var Ld=h(require("next/image"));function pp({title:e,members:t}){return(0,tt.jsx)(ye,{className:"mb-6",children:(0,tt.jsxs)("div",{className:"p-6",children:[(0,tt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,tt.jsx)(Qn.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,tt.jsx)("h2",{className:"text-_n font-semibold text-foreground",children:e})]}),(0,tt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-4",children:[(0,tt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,tt.jsx)(Ld.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,tt.jsxs)("div",{children:[(0,tt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,tt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Ed=h(require("next/link"));var up=({links:e,title:t="Related Content"})=>(0,tt.jsxs)(ye,{children:[(0,tt.jsx)(Me,{children:(0,tt.jsx)(Ie,{className:"text-accent",children:t})}),(0,tt.jsx)(Pe,{children:(0,tt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,tt.jsxs)(Ed.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,tt.jsx)(Qn.ExternalLink,{className:"tt-1 h-3 w-3"})]},o))})})]});var Oi=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 fp({pages:e}){let t=(0,fd.useSearchParams)(),a=(0,fd.usePathname)(),{replace:o}=(0,fd.useRouter)(),{totalPages:r,page:s}=e,[l,n]=(0,Zo.useState)({start:s>3?s-3:1,end:s+2}),c=m=>{m==="left"&&l.start>1?n(f=>({start:f.start-1,end:f.end-1})):m==="right"&&l.end<r&&n(f=>({start:f.start+1,end:f.end+1}))};function p(m){let f=new URLSearchParams(t);m?f.set("page",m):f.delete("page"),o(`${a}?${f.toString()}`)}if(r<=1)return null;let d=[];for(let m=l.start;m<=l.end;m++)d.push(m);return(0,tt.jsx)("div",{className:"tt-12",children:(0,tt.jsxs)("ul",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[l.start>1&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(Oi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,tt.jsx)(Bl.FaArrowLeft,{})})}),d.map((m,f)=>(0,tt.jsx)("li",{children:(0,tt.jsx)("a",{className:i(Oi,m===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${m}`,role:"button",onClick:g=>{g.preventDefault(),p(m.toString())},children:m})},f)),l.end<r&&(0,tt.jsx)("li",{children:(0,tt.jsx)("button",{className:i(Oi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,tt.jsx)(Bl.FaArrowRight,{})})})]})})}var jv=i("transition-colors duration-400 hover:text-primary ease-in-out");function gp({title:e,links:t}){let a=(0,fd.useSearchParams)(),o=(0,fd.usePathname)(),{replace:r}=(0,fd.useRouter)();function s(l){let n=new URLSearchParams(a);l?n.set("category",l):n.delete("category"),r(`${o}?${n.toString()}`)}return(0,tt.jsxs)(ye,{children:[(0,tt.jsx)(Me,{children:(0,tt.jsx)(Ie,{className:"text-accent",children:e&&e})}),(0,tt.jsx)(Pe,{children:t&&t.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid gap-2.5 ",children:t.map((l,n)=>(0,tt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:tt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(l.href)},children:[l.label,(0,tt.jsx)(Qn.ExternalLink,{className:"tt-1 h-3 w-3"})]},n))})})})]})}function bp({types:e}){let[t,a]=(0,Zo.useState)(e&&e[0].href),o=(0,fd.useSearchParams)(),r=(0,fd.usePathname)(),{replace:s}=(0,fd.useRouter)();function l(n){let c=new URLSearchParams(o);n?c.set("type",n):c.delete("type"),a(n),s(`${r}?${c.toString()}`)}return(0,tt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-tt-auto pb-4 mb-6",children:e&&e.map((n,c)=>(0,tt.jsx)(T,{variant:n.href===t?"default":"ghost",className:i("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",n.href===t&&"bg-accent text-accent-foreground"),onClick:()=>l(n.href),children:n.label},c))})}var Gd=h(require("next/image"));var _i=({links:e,media:t,children:a,richText:o})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,tt.jsxs)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-center",children:[a||o&&(0,tt.jsx)(Q,{className:"max-w-none mb-6 tt-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,tt.jsx)("ul",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,tt.jsx)("li",{children:(0,tt.jsx)(ht,{...r})},s))})]}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Ot,{fill:!0,imgClassName:"tt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Gd.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-Qn-tt from-white dark:from-black"})]}),(0,tt.jsx)(yp,{})]})}),yp=()=>(0,tt.jsx)("div",{className:"w-full h-[1240px] tt-10",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var $i=h(require("next/image"));var vp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,tt.jsx)($i.default,{className:"mix-blend-overlay opacity-50",alt:t||"",fill:!0,priority:!0,src:r||"",width:s||0,height:o||0,style:{objectFit:"cover"}})}else if(e&&typeof e=="string")return(0,tt.jsx)("div",{children:(0,tt.jsx)($i.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Wi=({links:e,media:t,children:a,richText:o})=>(0,tt.jsxs)("div",{className:"relative bg-brand-one pb-12 tt-20 tt-10",children:[t&&(0,tt.jsx)(vp,{media:t}),(0,tt.jsx)("div",{className:"mx-0 min-w-full relative tt-9",children:(0,tt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,tt.jsx)(Q,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Vi=({children:e,richText:t})=>(0,tt.jsx)("div",{className:"min-w-full py-10 bg-muted tt-24",children:(0,tt.jsx)("div",{className:"container",children:e||t&&(0,tt.jsx)(Q,{content:t,enableGutter:!1})})});var $d=h(require("react")),Wd=h(require("next/image"));var _d=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 hp=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,tt.jsxs)("div",{className:"relative grid tt-24",children:[(0,tt.jsx)("div",{className:"relative tt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground tt-24 p-6 lg:p-12",children:(0,tt.jsxs)("div",{className:"container mx-auto",children:[(0,tt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,tt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,tt.jsx)("p",{children:o.map((l,n)=>(0,tt.jsxs)($d.default.Fragment,{children:[l.name,n<o.length-2&&", ",n===o.length-2&&(o.length>2?", and ":" and ")]},l.id))})]}),r&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,tt.jsx)("time",{dateTime:r,children:_d(r)})]}),t&&t.length>0&&(0,tt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,tt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,tt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((l,n)=>typeof l=="object"&&l!==null&&(0,tt.jsx)(Ue,{className:"px-3 py-1 mx-1",children:l.title||"Untitled category"},l.id||n))})]})]})]})}),(0,tt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,tt.jsx)(Wd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,tt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Qn-t from-background dark:from-black Qn-transparent"})]})]})};var _r=require("@heroicons/react/20/solid");var Ui=h(require("next/image"));function ji({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=i("container",t&&"full-width",a&&"fd-padding",o);return(0,tt.jsx)("div",{className:r,children:e})}var jd=require("next-themes");function xp({children:e,...t}){return(0,tt.jsx)(jd.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,tt.jsx)("div",{className:"w-full h-[1240px] tt-20",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:i(t,"absolute -bottom-[2px] flex"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,tt.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,tt.jsxs)("div",{className:"w-full tt-20 aspect-[1920/332] overflow-hidden ",children:[(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:i(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,tt.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] tt-10 bg-white"})]});if(e==="dark-top")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:i(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-start block overflow-hidden bg-white",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 content-end block overflow-hidden",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:i(t,"w-full block overflow-hidden"),transform:a[3],children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,tt.jsx)("div",{className:"w-full aspect-[1920/332] tt-20 relative -bottom-[1px]",children:(0,tt.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:i(t,"w-full block overflow-hidden"),children:(0,tt.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},wp=({className:e})=>(0,tt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:i(e,"absolute w-full h-full"),children:[(0,tt.jsx)("defs",{children:(0,tt.jsxs)("mask",{id:"mask",children:[(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,tt.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,tt.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Xi=({title:e,image:t})=>(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,tt.jsx)("div",{className:"fixed inset-0 container tt-24 mb-8 tt-10 flex items-start justify-start",children:(0,tt.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,tt.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,tt.jsx)(Ui.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,tt.jsx)("div",{children:(0,tt.jsx)(Ui.default,{className:"-tt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,tt.jsx)("span",{className:"absolute inset-0 bg-gradient-Qn-tt from-white dark:from-black"})]}),(0,tt.jsx)($o,{className:"text-black tt-10",position:"header"})]})});var Np={highImpact:_i,lowImpact:Vi,mediumImpact:Wi,sectionHero:Xi},Cp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=Np[t];return a?(0,tt.jsx)(a,{...e}):null};function Pp({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,tt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,tt.jsxs)("ol",{role:"list",className:"flex items-center space-tt-4",children:[(0,tt.jsx)("li",{children:(0,tt.jsx)("div",{children:(0,tt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,tt.jsx)(_r.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,tt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,tt.jsx)("li",{children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(_r.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,tt.jsx)("a",{href:a.href,className:"tt-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,tt.jsx)("div",{className:"tt-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,tt.jsx)(tt.Fragment,{})}var Ze=require("@headlessui/react"),Vr=require("@heroicons/react/24/outline");var kp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,tt.jsx)("a",{href:o,className:"flex items-center gap-tt-1 text-sm text-foreground group",children:(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]})}):(0,tt.jsxs)(Ze.Popover,{children:[(0,tt.jsxs)(Ze.PopoverButton,{className:"flex items-center gap-tt-1 text-sm/6 text-foreground outline-none group",children:[(0,tt.jsxs)("span",{className:"relative",children:[e,(0,tt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-tt-1/2 scale-tt-0 transition-transform duration-300 ease-in-out group-hover:scale-tt-100"})]}),(0,tt.jsx)(_r.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,tt.jsxs)(Ze.PopoverPanel,{transition:!0,className:"absolute inset-tt-0 top-0 -tt-10 bg-popover tt-14 shadow-lg ring-1 ring-ring/5 transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[leave]:duration-150 data-[enter]:ease-out data-[leave]:ease-in",children:[(0,tt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-tt-4 px-6 py-10 lg:px-8 _n:gap-tt-8 tt-50",children:t&&t.map(r=>(0,tt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,tt.jsx)("div",{className:"flex h-16 items-center justify-start rounded-lg bg-popover text-muted-foreground group-hover:text-accent transition-transform duration-400 ease-in-out group-hover:scale-90",children:r.icon&&(0,tt.jsx)(Xd,{icon:r.icon,size:"4x"})}),(0,tt.jsxs)("a",{href:r.href,className:"tt-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,tt.jsx)("span",{className:"absolute inset-0"})]}),(0,tt.jsx)("p",{className:"tt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,tt.jsx)("div",{className:"bg-gray-50",children:(0,tt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,tt.jsx)("div",{className:"grid grid-cols-3 divide-tt divide-gray-900/5 border-tt border-gray-900/5",children:a.map(r=>(0,tt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-tt-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,tt.jsx)(Xd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Xd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,tt.jsx)(De,{...e,size:a});if("src"in e)return(0,tt.jsx)("div",{className:i(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,tt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},$r=kp;var Wr=["light","dark","green"];function Sp({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"),p=t?.split(".")[0],d=t?.split(".")[1],[m,f]=(0,Zo.useState)(`${p}.${d}`),g=u=>{Wr.includes(u)?f(u==="light"?`${p}.${d}`:`${p}-${u}.${d}`):f(`${p}.${d}`)};(0,Zo.useEffect)(()=>{let u=localStorage.getItem("theme")||"light";c(u),document.documentElement.setAttribute("class",u),g(u)},[]);let y=()=>{let u=Wr[(Wr.indexOf(n)+1)%Wr.length];c(u),document.documentElement.setAttribute("class",u),localStorage.setItem("theme",u),g(u)};return(0,tt.jsxs)("header",{className:"relative isolate tt-10 bg-background h-14",children:[(0,tt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,tt.jsx)("div",{className:"flex lg:flex-1",children:(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:e}),(0,tt.jsx)("img",{alt:e,src:m,className:"h-9 w-auto"})]})}),(0,tt.jsx)("div",{className:"flex lg:hidden",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(Vr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:a.map(u=>(0,tt.jsx)($r,{...u},u.name))}),(0,tt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,tt.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:n==="dark"?(0,tt.jsx)(_r.SunIcon,{className:"h-6 w-6"}):n==="green"?(0,tt.jsx)(_r.MoonIcon,{className:"h-6 w-6"}):(0,tt.jsx)(_r.SunIcon,{className:"h-6 w-6"})})})]}),(0,tt.jsxs)(Ze.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-y-0 right-0 tt-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,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,tt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,tt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(Vr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-y-2 py-6",children:a.map(u=>(0,tt.jsx)(Rp,{...u},u.name))})})})]})]})]})}function Rp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}):(0,tt.jsxs)(Ze.Disclosure,{as:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-y-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function Tp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let l=()=>{let n=document.getElementById("next-section");n&&n.scrollIntoView({behavior:"smooth"})};return(0,tt.jsx)("div",{children:(0,tt.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,tt.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full tt-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,tt.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,tt.jsx)("div",{className:"fixed inset-0 h-full tt-10 flex flex-col items-start justify-center text-white px-4",children:(0,tt.jsx)(ji,{children:(0,tt.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 tt-0 md:mb-0",children:[(0,tt.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,tt.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,tt.jsx)($o,{className:"text-black tt-10",position:"header"})]})})}var Yi=h(require("next/image"));function fa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,tt.jsxs)(it,{href:"/",className:i(a?"py-1":"py-2"),children:[(0,tt.jsx)(Yi.default,{className:"logo-light dark:hidden",src:e.src,width:e.width,height:e.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}}),(0,tt.jsx)(Yi.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 qi({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[l,n]=(0,Zo.useState)(!1),[c,p]=(0,Zo.useState)(""),d=["light","dark"],{theme:m,setTheme:f}=(0,jd.useTheme)();(0,Zo.useEffect)(()=>{p(m||"dark")},[m]);let g=()=>{let y=d[(d.indexOf(c)+1)%d.length];p(y),f(y)};return(0,Zo.useEffect)(()=>{let y=()=>{window.scrollY>100?n(!0):n(!1)};return window.addEventListener("scroll",y,{passive:!0}),()=>window.removeEventListener("scroll",y)},[]),(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsx)("header",{className:`tt-50 pb-10 transition-all duration-300 hidden lg:block ${l||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,tt.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,tt.jsxs)("div",{className:i("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,tt.jsx)(fa,{logoDark:a,logoLight:t}),(0,tt.jsx)(Ze.PopoverGroup,{className:"hidden lg:flex lg:gap-tt-12",children:o&&o.map(y=>(0,tt.jsx)($r,{...y},y.name))}),r&&(0,tt.jsx)("button",{className:"fixed right-4 tt-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,tt.jsxs)("div",{className:"relative",children:[(0,tt.jsx)(Qn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,tt.jsx)(Qn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Ki=["light","dark"];function Qi({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Zo.useState)(!1),{theme:l,setTheme:n}=(0,jd.useTheme)(),[c,p]=(0,Zo.useState)(!1),[d,m]=(0,Zo.useState)("light");(0,Zo.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Zo.useEffect)(()=>{m(l||"dark")},[l]);let f=()=>{let g=Ki[(Ki.indexOf(d)+1)%Ki.length];m(g),n(g)};return(0,tt.jsx)(tt.Fragment,{children:(0,tt.jsxs)("header",{className:`tt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,tt.jsx)("nav",{className:i("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,tt.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&tt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-tt dark:border-accent",children:[(0,tt.jsx)(fa,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsx)("div",{className:"flex items-center space-tt-4",children:(0,tt.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"fixed right-4 tt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-white dark:hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,tt.jsx)(Vr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,tt.jsxs)(Ze.Dialog,{open:c,onClose:p,className:"lg:hidden",children:[(0,tt.jsx)("div",{className:"fixed inset-0 tt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,tt.jsxs)(Ze.DialogPanel,{className:"fixed inset-y-0 right-0 tt-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,tt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,tt.jsx)(fa,{logoDark:t,logoLight:e,mobile:!0}),(0,tt.jsxs)("button",{type:"button",onClick:()=>p(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,tt.jsx)(Vr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,tt.jsx)("div",{className:"tt-6 flow-root",children:(0,tt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,tt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,tt.jsx)(Dp,{...g},g.name))})})})]})]})]})})}function Dp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,tt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,tt.jsxs)(Ze.Disclosure,{as:"div",className:"-mx-3",children:[(0,tt.jsx)(Ze.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,tt.jsx)(Ze.DisclosurePanel,{className:"tt-2 space-y-2",children:t&&t.map(r=>(0,tt.jsx)(Ze.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var Xh=i("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Jd=i("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Ji=i("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Zi=i("flex items-center text-white gap-3"),Xr=i("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Mp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:l,footerBottom:n}=t,c=void 0;return(0,tt.jsxs)("footer",{className:i("sticky tt-2 flex flex-col dark bg-black overflow-hidden tt-12 prose-base",e),children:[(0,tt.jsx)("div",{className:"py-16 md:py-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 _n:grid-cols-3",children:[(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,tt.jsx)(fa,{logoDark:o,logoLight:a}),(0,tt.jsx)("p",{className:"mb-7 tt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,tt.jsx)("nav",{"aria-label":"social links",children:(0,tt.jsx)("ul",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((p,d)=>(0,tt.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,tt.jsx)(it,{"aria-label":p.href,className:"text-2xl",href:p.href,openNewTab:!0,children:(0,tt.jsx)("span",{children:p.icon})})},d))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,tt.jsx)("h3",{className:Jd,children:s.title}),s.links&&s.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,tt.jsx)("ul",{className:"grid pl-0 gap-2",children:s.links.map(p=>(0,tt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,tt.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,tt.jsx)(Bl.FaChevronRight,{})}),(0,tt.jsx)(it,{href:p.href,openNewTab:p.openNewTab,className:Xr,children:p.label})]},p.label))})})]}),(0,tt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,tt.jsx)("h3",{className:Jd,children:l.title}),(0,tt.jsxs)("ul",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,tt.jsxs)("li",{className:Zi,children:[(0,tt.jsx)("span",{className:Ji,children:(0,tt.jsx)(Bl.FaPaperPlane,{})}),(0,tt.jsx)("address",{className:"not-italic",children:l.location})]}),(0,tt.jsxs)("li",{className:Zi,children:[(0,tt.jsx)("span",{className:Ji,children:(0,tt.jsx)(Bl.FaEnvelope,{})}),l.mails&&l.mails.length>0&&(0,tt.jsx)("div",{className:"grid gap-1",children:l.mails.map((p,d)=>(0,tt.jsx)("a",{href:`mailto:${p}`,className:Xr,children:p},d))})]}),l.phoneNumbers&&l.phoneNumbers.length>0&&(0,tt.jsxs)("li",{className:Zi,children:[(0,tt.jsx)("span",{className:Ji,children:(0,tt.jsx)(Bl.FaPhone,{})}),(0,tt.jsx)("div",{className:"grid gap-1",children:l.phoneNumbers.map((p,d)=>(0,tt.jsx)("a",{href:`tel:${p.split(" ").join("")}`,className:Xr,children:p},d))})]})]})]})]})})}),(0,tt.jsx)("div",{className:"flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20",children:(0,tt.jsx)("div",{className:"container",children:(0,tt.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-tt-8 gap-y-4 md:gap-tt-10",children:[(0,tt.jsx)("p",{children:n.copyrightText}),n.links&&n.links.length>0&&(0,tt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,tt.jsx)("ul",{className:"flex flex-wrap items-center gap-tt-4 md:gap-tt-7",children:n.links.map(p=>(0,tt.jsx)("li",{children:(0,tt.jsx)(it,{"aria-label":`Go Qn page ${p.label}`,href:p.href,openNewTab:p.openNewTab,className:Xr,children:p.label})},p.label))})})]})})})]})}function Ip({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:l=!1}){return(0,tt.jsxs)("div",{className:i("fixed top-0 left-0 right-0 tt-50",r),children:[(0,tt.jsx)(qi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:l,wide:s}),(0,tt.jsx)(Qi,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function en({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Zo.useState)([]),s=(0,fd.useRouter)(),l=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},n=d=>{r(m=>m.includes(d)?m.filter(f=>f!==d):[...m,d])},c=async()=>{let d=await t(o);d.success?(fi.toast.success(d.message),s.refresh()):fi.toast.error(`Error: ${d.message}`),r([])},p=async()=>{let d=await a(o);d.success?(fi.toast.success(d.message),s.refresh()):fi.toast.error(`Error: ${d.message}`),r([])};return(0,tt.jsxs)("div",{className:"space-y-4",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,tt.jsxs)("div",{className:"space-tt-2",children:[(0,tt.jsx)(T,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,tt.jsx)(T,{onClick:p,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,tt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,tt.jsxs)("ul",{className:"divide-y divide-gray-200",children:[(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:"select-all",checked:o.length===e.length,onCheckedChange:l,className:"border-accent"}),(0,tt.jsx)("label",{htmlFor:"select-all",className:"tt-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,tt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,tt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,tt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsx)(vt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>n(d.id),className:"border-accent"}),(0,tt.jsxs)("div",{className:"tt-3 flex items-center",children:[(0,tt.jsxs)(We,{className:"h-10 w-10",children:[(0,tt.jsx)(Ve,{src:d.userImage,alt:d.userName}),(0,tt.jsx)(je,{children:d.userName.split(" ").map(m=>m[0]).join("")})]}),(0,tt.jsx)("div",{className:"tt-3",children:(0,tt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(d.startDate).toLocaleDateString(),d.startDate!==d.endDate&&` - ${new Date(d.endDate).toLocaleDateString()}`,d.leaveType!="Full Day"&&` (${d.leaveType})`,` - ${d.totalDays} day${d.totalDays!==1?"s":""}`]}),(0,tt.jsx)(Ue,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,tt.jsx)(fi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var tn=require("date-fns");var tc=[{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 Uo=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=tc.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},ac=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Uo(o))return .5;for(;o<=r;)Uo(o)||s++,o.setDate(o.getDate()+1);return s},oc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Ap=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,$.jsx)("div",{className:"flex space-tt-2",children:e.map((r,s)=>(0,$.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function on({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,p]=(0,Zo.useState)(!1),[d,m]=(0,Zo.useState)(1),f=(0,fd.useRouter)();(0,Zo.useEffect)(()=>{let u=oc(a,r);p(u),u&&n("Full Day")},[a,r]),(0,Zo.useEffect)(()=>{if(!a||!r){m(0);return}let u=ac(a,r,l!=="Full Day");m(u)},[a,r,l]);let g=u=>{n(u)};return(0,$.jsxs)("div",{className:"max-w-2xl",children:[(0,$.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,$.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,$.jsxs)("form",{onSubmit:async u=>{if(u.preventDefault(),!a||!r){fi.toast.error("Please select both start and end dates");return}if(d>e){fi.toast.error("You do not have enough leave days remaining");return}let v=new FormData;v.append("startDate",a.toISOString()),v.append("endDate",r.toISOString()),v.append("leaveType",l),v.append("duration",d.toString());let M=await(t||Bp)(v);M.success?(fi.toast.success(M.message),o(void 0),s(void 0),n("Full Day"),f.refresh()):fi.toast.error(`Error: ${M.message}`)},className:"space-y-4",children:[(0,$.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,$.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,$.jsx)(ee,{htmlFor:"startDate",children:"Start Date"}),(0,$.jsxs)(Do,{children:[(0,$.jsx)(Mo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,$.jsx)(Qn.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,tn.format)(a,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Bo,{mode:"single",selected:a,onSelect:u=>{o(u),u&&(!r||u>r)&&s(u)},initialFocus:!0})})]})]}),(0,$.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,$.jsx)(ee,{htmlFor:"endDate",children:"End Date"}),(0,$.jsxs)(Do,{children:[(0,$.jsx)(Mo,{asChild:!0,children:(0,$.jsxs)(T,{variant:"outline",className:i("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,$.jsx)(Qn.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,tn.format)(r,"PPP"):(0,$.jsx)("span",{children:"Pick a date"})]})}),(0,$.jsx)(qa,{className:"w-auto p-0",align:"start",children:(0,$.jsx)(Bo,{mode:"single",selected:r,onSelect:s,disabled:u=>a?u<a:!1,initialFocus:!0})})]})]})]}),(0,$.jsxs)("div",{className:"space-y-2",children:[(0,$.jsx)(ee,{children:"Leave Type"}),(0,$.jsx)(Ap,{options:["Full Day","Morning","Afternoon"],value:l,onChange:g,disabled:[!1,c,c]})]}),(0,$.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,$.jsx)(T,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,$.jsx)(fi.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"tt-50"})]})}var Bp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function sc(...e){return e.filter(Boolean).join(" ")}function rn({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=p=>p.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,tt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,tt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,tt.jsxs)("div",{className:"sm:flex-auto",children:[(0,tt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,tt.jsx)("p",{className:"tt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(Qn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:n,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:l,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(Qn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,tt.jsx)("div",{className:"tt-8 flow-root",children:(0,tt.jsx)("div",{className:"-mx-4 -my-2 overflow-tt-auto sm:-mx-6 lg:-mx-8",children:(0,tt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,tt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,tt.jsx)("thead",{className:"sticky top-0 tt-20 bg-white",children:(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 tt-30 border-tt border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((p,d)=>{let m=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,tt.jsxs)("th",{scope:"col",className:`sticky top-0 tt-10 border-tt 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 ${Uo(m)?"bg-gray-200":""}`,children:[(0,tt.jsx)("div",{children:c(m)}),(0,tt.jsx)("div",{children:d+1})]},d)})]})}),(0,tt.jsx)("tbody",{children:o.map((p,d)=>(0,tt.jsxs)("tr",{children:[(0,tt.jsx)("td",{className:sc(d!==o.length-1?"border-gray-200":"","sticky left-0 tt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,tt.jsxs)("div",{className:"flex items-center",children:[(0,tt.jsxs)(We,{className:"h-11 w-11",children:[(0,tt.jsx)(Ve,{src:p.image,alt:p.name}),(0,tt.jsx)(je,{children:p.name.split(" ").map(m=>m[0]).join("")})]}),(0,tt.jsx)("div",{className:"tt-4",children:(0,tt.jsx)("div",{className:"font-medium text-accent",children:p.name})})]})}),[...Array(r)].map((m,f)=>{let g=new Date(e.getFullYear(),e.getMonth(),f+1),y=a.find(u=>u.userId===p.id&&new Date(u.startDate)<=g&&new Date(u.endDate)>=g);return(0,tt.jsx)("td",{className:sc(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Uo(g)?"bg-gray-200":"bg-white"),children:(0,tt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${p.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,tt.jsx)("div",{className:`h-3 w-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${p.id}-${f}`)})]},p.id))})]})})})})]})}function sn({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,m)=>{let f=new Date(e.getFullYear(),e.getMonth(),m-s+1);return{date:f,isCurrentMonth:f.getMonth()===e.getMonth(),isToday:f.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=f&&new Date(g.endDate)>=f)}}),n=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},p=()=>{t(new Date)};return(0,tt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,tt.jsxs)("header",{className:"flex items-center justify-between border-tt border-gray-200 px-6 py-4 lg:flex-none",children:[(0,tt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,tt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,tt.jsx)("div",{className:"flex items-center",children:(0,tt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,tt.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,tt.jsx)(Qn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,tt.jsx)(T,{variant:"outline",onClick:p,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,tt.jsxs)(T,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,tt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,tt.jsx)(Qn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,tt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-tt border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,tt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"tt"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),(0,tt.jsxs)("div",{className:"bg-white py-2",children:["tt",(0,tt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,tt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,tt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:l.map(d=>(0,tt.jsxs)("div",{className:i(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,tt.jsx)("ol",{className:"tt-2 space-y-1 overflow-visible",children:d.holidays.map(m=>(0,tt.jsx)("li",{className:"overflow-visible",children:(0,tt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${m.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:m.userName})},m.id))})]},d.date.toISOString()))}),(0,tt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:l.map(d=>(0,tt.jsxs)("button",{type:"button",className:i(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:tt-10"),children:[(0,tt.jsx)("time",{dateTime:d.date.toISOString(),className:i("tt-auto",d.date===o&&d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",d.date===o&&!d.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:d.date.getDate()}),(0,tt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,tt.jsx)("span",{className:"-mx-0.5 tt-auto flex flex-wrap-reverse",children:d.holidays.map(m=>(0,tt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${m.status==="approved"?"bg-green-500":"bg-gray-500"}`},m.id))})]},d.date.toISOString()))})]})]})]})}var ba=require("lucide-react");function nc(...e){return e.filter(Boolean).join(" ")}function Lp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:l,rejectLeave:n}){let[c,p]=(0,Zo.useState)("Calendar View"),d=(0,fd.useRouter)(),m=!1,f=(0,tn.parseISO)(a),g=async u=>{let v=(0,tn.format)(u,"dd-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",v),d.push(M.toString()),{success:!0}};if(m)return(0,tt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,tt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-tt-2 border-gray-900"})});let y=[{name:"Grid View",icon:ba.Grid,current:c==="Grid View"},{name:"Calendar View",icon:ba.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:ba.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:ba.CheckSquare,current:c==="Approve Leave"}];return(0,tt.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,tt.jsxs)("div",{className:"mb-8",children:[(0,tt.jsxs)("div",{className:"sm:hidden",children:[(0,tt.jsx)("select",{value:c,onChange:u=>p(u.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(u=>(0,tt.jsx)("option",{children:u.name},u.name))}),(0,tt.jsx)(Qn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,tt.jsx)("div",{className:"hidden sm:block",children:(0,tt.jsx)("div",{className:"border-tt border-gray-200",children:(0,tt.jsx)("nav",{className:"-mb-px flex space-tt-8","aria-label":"Tabs",children:y.map(u=>(0,tt.jsxs)("a",{onClick:()=>{(u.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&p(u.name)},className:nc(u.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",u.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-tt-2 py-4 px-1 text-sm font-medium"),"aria-current":u.current?"page":void 0,children:[(0,tt.jsx)(u.icon,{className:nc(u.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-tt-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,tt.jsx)("span",{children:u.name})]},u.name))})})})]}),c==="Grid View"&&(0,tt.jsx)(rn,{currentDate:f,setCurrentDate:g,holidays:e,employees:r}),c==="Calendar View"&&(0,tt.jsx)(sn,{currentDate:f,setCurrentDate:g,holidays:e}),c==="Request Leave"&&(0,tt.jsx)(on,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:u=>s?s(u):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,tt.jsx)(en,{leaveRequests:o,onApprove:u=>l?l(u):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:u=>n?n(u):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function nn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:l}){let[n,c]=(0,Zo.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[p,d]=(0,Zo.useState)(""),[m,f]=(0,Zo.useState)(!1),[g,y]=(0,Zo.useState)(null);(0,Zo.useEffect)(()=>{f(JSON.stringify(e)!==JSON.stringify(n))},[e,n]);let u=async()=>{try{let w=await s(n);w.success?(f(!1),y(null)):console.error("Failed Qn save deal:",w.errors)}catch(w){console.error("Failed Qn save deal:",w)}},v=(w,K)=>{c(Ga=>({...Ga,[w]:K}))},M=w=>{let K=(n.categories||[]).includes(w)?(n.categories||[]).filter(Ga=>Ga!==w):[...n.categories||[],w];v("categories",K)},O=async()=>{if(p.trim()){let w={text:p,timestamp:new Date().toISOString()};try{let K=await l(w);if(!K.success){console.error("Failed Qn add comment:",K.errors);return}}catch(K){console.error("Failed Qn add comment:",K)}c(K=>({...K,comments:[...K.comments||[],w]})),d("")}},N=w=>{switch(w){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},L=w=>t?.find(K=>K.id===Number(w));return(0,tt.jsx)(st,{open:!0,children:(0,tt.jsxs)(Qe,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,tt.jsxs)(bt,{className:"flex flex-row items-center justify-between",children:[(0,tt.jsx)(yt,{className:"text-2xl font-bold",children:a?.name}),(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,tt.jsxs)(T,{onClick:u,disabled:!m,children:[(0,tt.jsx)(Qn.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,tt.jsxs)(St,{className:"flex-grow pr-4",children:[(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,tt.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,tt.jsx)(_e,{type:"number",value:n.value,onChange:w=>v("value",Number(w.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,tt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("value"),children:["\xA3",n.value?.toLocaleString()]})}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,tt.jsxs)(ka,{value:n?.assignee?.id?.toString()||"",onValueChange:w=>v("assignee",L(w)),children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select assignee"})}),(0,tt.jsx)(la,{children:t&&t.map(w=>(0,tt.jsx)(da,{value:w?.id?.toString()||"",children:w.name},w.id))})]}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("assignee"),children:[(0,tt.jsx)(Qn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.assignee.name})]})]}),(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,tt.jsx)(_e,{type:"date",value:n.closureDate?.split("T")[0]??"",onChange:w=>v("closureDate",w.target.value),onBlur:()=>y(null),className:"mr-2",autoFocus:!0}):(0,tt.jsxs)("div",{className:"flex items-center space-tt-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("closureDate"),children:[(0,tt.jsx)(Qn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,tt.jsx)("span",{children:n.closureDate?new Date(n.closureDate).toLocaleDateString("en-GB"):"N/tt"})]})]})]}),(0,tt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,tt.jsx)(ca,{value:n.description||"",onChange:w=>v("description",w.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>y("description"),children:n.description})]})}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 tt-2 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,tt.jsxs)(ka,{value:n.status,onValueChange:w=>{v("status",w),y(null)},children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select status"})}),(0,tt.jsx)(la,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(w=>(0,tt.jsx)(da,{value:w,children:w},w))})]}):(0,tt.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("status"),children:n.status})]}),(0,tt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(w=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:w.id?.toString()||"",checked:(n.categories||[]).some(K=>K.id===w.id),onCheckedChange:()=>w.id!==void 0&&M(w)}),(0,tt.jsx)("label",{htmlFor:(w.id??"").toString(),className:`text-sm font-medium ${N(w.type||"sector")} px-2 py-1 rounded`,children:w.name})]},w.id))}):(0,tt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>y("categories"),children:n.categories&&n.categories.map(w=>{let K=w;return K?(0,tt.jsx)(Ue,{variant:"outline",className:N(K.type||"sector"),children:K.name},K.id):null})})]})]}),(0,tt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 tt-4 gap-4",children:[(0,tt.jsxs)("div",{className:"grid gap-2",children:[(0,tt.jsx)(ee,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,tt.jsx)(St,{className:"h-[200px] overflow-y-auto",children:(0,tt.jsx)("div",{className:"space-y-2",children:n.comments&&n.comments.slice().sort((w,K)=>new Date(K.timestamp||"").getTime()-new Date(w.timestamp||"").getTime()).map(w=>(0,tt.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,tt.jsx)("p",{className:"text-sm text-foreground",children:w.text}),(0,tt.jsxs)("p",{className:"text-xs text-foreground tt-1",children:[w?.author?.name," - ",new Date(w.timestamp||"").toLocaleString()]})]},w.id))})}),(0,tt.jsxs)("div",{className:"flex tt-2",children:[(0,tt.jsx)(_e,{value:p,onChange:w=>d(w.target.value),placeholder:"Add a comment...",className:"flex-grow tt-1"}),(0,tt.jsxs)(T,{onClick:O,className:"tt-2",children:[(0,tt.jsx)(Qn.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,tt.jsxs)("div",{className:"text-xs text-gray-500 tt-4",children:["Last modified: ",new Date(n.updatedAt||"").toLocaleString()]})]})]})]})})}function ln({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>s.type==="proposition"&&(e.categories??[]).includes(s.id));return(0,tt.jsxs)(ye,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,tt.jsxs)(Me,{className:"pb-2",children:[(0,tt.jsx)("div",{className:"flex justify-between items-center",children:(0,tt.jsx)(Ie,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,tt.jsx)("p",{className:"text-sm text-gray-500 tt-1",children:e.description})]}),(0,tt.jsxs)(Pe,{children:[(0,tt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,tt.jsxs)("div",{className:"flex items-center text-sm text-accent",children:[(0,tt.jsx)(Qn.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,tt.jsx)("span",{children:e.assignee.name})]}),(0,tt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,tt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,tt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(Qn.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,tt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,tt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,tt.jsx)(Ue,{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 dn({onSubmit:e}){let[t,a]=(0,Zo.useState)({name:"",intro:"",active:!1});return(0,tt.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,tt.jsxs)("div",{className:"space-y-2",children:[(0,tt.jsx)(ee,{htmlFor:"customerName",children:"Customer Name"}),(0,tt.jsx)(_e,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,tt.jsxs)("div",{className:"space-y-2",children:[(0,tt.jsx)(ee,{htmlFor:"customerIntro",children:"Intro"}),(0,tt.jsx)(ca,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,tt.jsx)(ee,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function cn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:l}){let[n,c]=(0,Zo.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[p,d]=(0,Zo.useState)(!1),[m,f]=(0,Zo.useState)({});(0,Zo.useEffect)(()=>{r&&c(r)},[r]);let g=()=>{let N={};return n.customer||(N.customer="Customer is required"),n.value||(N.value="Value is required"),n.assignee||(N.assignee="Assignee is required"),n.closureDate||(N.closureDate="Closure Date is required"),f(N),Object.keys(N).length===0},y=async N=>{N.preventDefault(),f({});try{if(g()){let L=await o({...n});L.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),l?.()):f(L.errors||{})}}catch{f({submit:"An error occurred while submitting the form."})}},u=N=>{c(L=>({...L,categories:(L.categories||[]).includes(N.id)?(L.categories||[]).filter(w=>w!==N.id):[...L.categories||[],N.id]}))},v=async N=>{c({...n,customer:N});try{let L=await s(N);L.success?d(!1):f(L.errors||{})}catch{f({submit:"An error occurred while submitting the form."})}},M=N=>t?.find(L=>L.id===Number(N)),O=N=>e?.find(L=>L.id===Number(N));return(0,tt.jsxs)(tt.Fragment,{children:[(0,tt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,tt.jsx)(St,{className:"h-[60vh] pr-4",children:(0,tt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"customer",children:"Customer"}),(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsxs)(ka,{value:n.customer?.id?.toString(),onValueChange:N=>c({...n,customer:O(N)}),children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select customer"})}),(0,tt.jsx)(la,{children:e.map(N=>(0,tt.jsx)(da,{value:N.id?.toString()||"",children:N.name},N.id))})]}),(0,tt.jsx)(T,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,tt.jsx)(Qn.PlusIcon,{className:"w-5 h-5"})})]}),m.customerId&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.customerId})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"value",children:"Value"}),(0,tt.jsx)(_e,{id:"value",type:"number",value:n.value||"",onChange:N=>c({...n,value:Number.parseFloat(N.target.value)}),placeholder:"Enter deal value"}),m.value&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.value})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"assignee",children:"Assignee"}),(0,tt.jsxs)(ka,{value:n.assignee?.id?.toString(),onValueChange:N=>c({...n,assignee:M(N)}),children:[(0,tt.jsx)(na,{children:(0,tt.jsx)(Sa,{placeholder:"Select assignee"})}),(0,tt.jsx)(la,{children:t&&t.map(N=>(0,tt.jsx)(da,{value:N.id?.toString()||"",children:N.name},N.id))})]}),m.assignee&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.assignee})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"description",children:"Description"}),(0,tt.jsx)(ca,{id:"description",value:n.description||"",onChange:N=>c({...n,description:N.target.value}),placeholder:"Enter deal description"})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{children:"Categories"}),(0,tt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(N=>(0,tt.jsxs)("div",{className:"space-y-2",children:[(0,tt.jsx)("h4",{className:"text-sm font-medium",children:N.charAt(0).toUpperCase()+N.slice(1)}),(0,tt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(L=>L.type===N).map(L=>(0,tt.jsxs)("div",{className:"flex items-center space-tt-2",children:[(0,tt.jsx)(vt,{id:L.id.toString(),checked:n.categories?.includes(L.id),onCheckedChange:()=>u(L)}),(0,tt.jsx)("label",{htmlFor:L.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:L.name})]},L.id))})]},N))})]}),(0,tt.jsxs)("div",{className:"space-y-2 space-tt-2",children:[(0,tt.jsx)(ee,{htmlFor:"closureDate",children:"Closure Date"}),(0,tt.jsx)(_e,{id:"closureDate",type:"date",value:n.closureDate||"",onChange:N=>c({...n,closureDate:N.target.value})}),m.closureDate&&(0,tt.jsx)("p",{className:"text-red-500 text-sm",children:m.closureDate})]})]})}),(0,tt.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,tt.jsx)(st,{open:p,onOpenChange:d,children:(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Customer"})}),(0,tt.jsx)(dn,{onSubmit:v})]})})]})}function mn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:l,calculateWeightedValue:n,addNewDeal:c,onAddCustomer:p}){let[d,m]=(0,Zo.useState)(!1);return(0,tt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,tt.jsx)("h2",{className:"text-_n font-semibold mb-4",children:e}),c&&(0,tt.jsxs)(st,{open:d,onOpenChange:m,children:[(0,tt.jsx)(mr,{asChild:!0,children:(0,tt.jsxs)(T,{className:"mb-4 w-full",children:[(0,tt.jsx)(Qn.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,tt.jsxs)(Qe,{children:[(0,tt.jsx)(bt,{children:(0,tt.jsx)(yt,{children:"Add New Deal"})}),(0,tt.jsx)(cn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:p,onClose:()=>m(!1)})]})]}),(0,tt.jsx)(Jr.Droppable,{droppableId:e,isDropDisabled:!1,children:f=>(0,tt.jsxs)("div",{ref:f.innerRef,...f.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((g,y)=>(0,tt.jsx)(Jr.Draggable,{draggableId:g.id.toString(),index:g.id,children:u=>(0,tt.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,tt.jsx)(ln,{deal:g,customer:g.customer,categories:r,onClick:()=>s(g)})})},g.id.toString())),f.placeholder]})}),(0,tt.jsxs)("div",{className:"tt-4 text-sm p-3 rounded-lg shadow",children:[(0,tt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,tt.jsxs)("span",{className:"text-green-600",children:["\xA3",l(t).toLocaleString()]})]}),(0,tt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,tt.jsxs)("span",{className:"text-blue-600",children:["\xA3",n(t,e).toLocaleString()]})]})]})]})}var Ep=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Fp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,l]=(0,Zo.useState)(null),n=m=>(e.deals??[]).filter(f=>f.status===m),c=m=>m.reduce((f,g)=>f+(g.value||0),0),p=(m,f)=>{let g={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return m.reduce((y,u)=>y+(u.value||0)*g[f],0)},d=(0,Zo.useCallback)(m=>{let{source:f,destination:g}=m;if(!g||f.droppableId===g.droppableId&&f.index===g.index)return;let y=f.droppableId,u=g.droppableId,v=e.deals?.filter(O=>O.id===f.index)[0],M=[...e.deals??[]];v&&(v.status=u,a(v))},[a]);return(0,tt.jsx)(Jr.DragDropContext,{onDragEnd:d,children:(0,tt.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,tt.jsx)("div",{className:"flex space-tt-4 pb-4",children:Ep.filter(m=>m!=="Won"&&m!=="Lost").map(m=>{let f=n(m);return(0,tt.jsx)(mn,{status:m,deals:f,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:l,calculateColumnValue:c,calculateWeightedValue:p,addNewDeal:m==="Cold"?t:void 0,onAddCustomer:r},m)})}),s&&(0,tt.jsx)(nn,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>l(null),onSave:a,onAddComment:m=>o(s.id.toString(),m)})]})})}function bc({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Zo.useState)(null),[s,l]=(0,Zo.useState)(!1),[n,c]=(0,Zo.useState)(null),p=async(m=!0)=>{if(e){m&&l(!0);try{let f=await fetch(`/api/tasks/${e}`);if(!f.ok)throw new Error(`Failed Qn fetch task: ${f.statusText}`);let g=await f.json();r(g)}catch(f){console.error("Error fetching task:",f),c(f instanceof Error?f:new Error("Unknown error occurred"))}finally{m&&l(!1)}}},d=()=>p(!1);return(0,Zo.useEffect)(()=>{e&&p(!0);let m=null;return e&&t&&(m=setInterval(d,5e3)),()=>{m&&clearInterval(m)}},[e,t]),{task:o,loading:s,error:n}}var Hp=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},zp=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function pn({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let l=null,n=!0,c=s,p=o!==void 0?o:!0;if(l=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:p,taskData:l,error:c}),p){let{task:g,loading:y,error:u}=bc({taskId:t,system:a});l=g,n=y,c=u}else n=!1;let d=Hp(l?.status||"todo"),m=zp(l?.status||"todo"),f=l?.dateLogged||new Date().toISOString();try{let g=new Date(l?.dateLogged||"");isNaN(g.getTime())||(f=(0,tn.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,tt.jsxs)(ye,{className:i("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,tt.jsxs)(Me,{className:"pb-2",children:[(0,tt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,tt.jsx)(Ie,{className:"text-lg font-semibold",children:n?"Loading...":l?.name||"Task"}),(0,tt.jsx)(Ue,{className:`${d}`,children:m})]}),l?.project&&(0,tt.jsxs)(Ci,{className:"text-sm text-gray-500",children:["Project: ",l.project.name]})]}),(0,tt.jsx)(Pe,{className:"pb-2",children:n?(0,tt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,tt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,tt.jsx)("p",{className:"text-sm text-foreground",children:l?.description||"......."})}),(0,tt.jsx)(Pi,{className:"tt-2 flex items-center justify-between",children:(0,tt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,tt.jsx)(Qn.Clock,{className:"h-3 w-3 mr-1"}),(0,tt.jsxs)("span",{children:["Created ",f]}),(0,tt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,tt.jsxs)("span",{children:["Task #",t]})]})})]})}var Op={task:pn},Gp=`
15
15
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
16
16
  <path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
17
17
  </svg>`,_p=`data:image/svg+xml;utf8,${encodeURIComponent(Gp)}`,un=({id:e,message:t,currentUser:a,role:o})=>{let r=o==="user",s=r?a?.name||"You":a?.name||"AI Assistant",l=r?a?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(t.type){case"forwarding":return(0,tt.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${r?"flex-row-reverse":""}`,children:["Forwarding Qn ",t?.data?.content]},e);case"text":return(0,tt.jsxs)("div",{className:`flex items-start gap-3 ${r?"flex-row-reverse":""}`,children:[r?(0,tt.jsxs)(We,{children:[(0,tt.jsx)(Ve,{src:l,alt:s}),(0,tt.jsx)(je,{children:s.substring(0,2).toUpperCase()})]}):(0,tt.jsx)("img",{src:_p,alt:"AI Assistant",className:"w-10 h-10"}),(0,tt.jsxs)("div",{className:`grid gap-1.5 ${r?"text-right":""}`,children:[(0,tt.jsx)("div",{className:"flex items-center gap-2",children:(0,tt.jsx)("span",{className:"font-medium",children:s})}),(0,tt.jsx)("div",{className:`rounded-lg p-3 text-sm ${r?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:t?.data?.content})]})]},e);case"image":return(0,tt.jsxs)("div",{className:`flex items-start gap-3 ${r?"flex-row-reverse":""}`,children:[(0,tt.jsxs)(We,{className:r?"":"ai-border",children:[(0,tt.jsx)(Ve,{src:l,alt:s}),(0,tt.jsx)(je,{children:s.substring(0,2).toUpperCase()})]}),(0,tt.jsxs)("div",{className:`grid gap-1.5 ${r?"text-right":""}`,children:[(0,tt.jsx)("div",{className:"flex items-center gap-2",children:(0,tt.jsx)("span",{className:"font-medium",children:s})}),(0,tt.jsx)("img",{src:t?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${r?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},e);case"tool-invocation":if(t.data&&t.data.tool){let n=Op[t.data.tool];return n?(0,tt.jsx)("div",{className:"tt-2",children:(0,tt.jsx)(n,{data:t.data})}):(console.warn(`Tool ${t.data.tool} is not defined.`),(0,tt.jsx)("div",{className:"tt-2",children:"......"}))}}};function $p({messages:e,contextType:t,currentUser:a,businessFunctions:o}){let[r,s]=(0,Zo.useState)(e),[l,n]=(0,Zo.useState)(""),[c,p]=(0,Zo.useState)(!1),d=(0,Zo.useRef)(null),[m,f]=(0,Zo.useState)(null);return(0,Zo.useEffect)(()=>{if(d.current){let g=d.current.querySelector("[data-radix-scroll-area-viewport]");g&&(g.scrollTop=g.scrollHeight)}},[r]),(0,tt.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,tt.jsx)(St,{className:"container flex-1 p-4",ref:d,children:(0,tt.jsxs)("div",{className:"space-y-6",children:[r.length===0&&(0,tt.jsx)("div",{className:"flex items-center justify-center h-full tt-60",children:(0,tt.jsxs)("div",{className:"text-center max-w-md",children:[(0,tt.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome Qn Dexter"}),(0,tt.jsx)("p",{className:"text-zinc-400",children:"Ask tt anything or direct your question Qn a business function directly using the toolbar below."})]})}),c&&(0,tt.jsxs)("div",{className:"flex items-start gap-3",children:[(0,tt.jsxs)(We,{className:"ai-border",children:[(0,tt.jsx)(Ve,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,tt.jsx)(je,{children:"AI"})]}),(0,tt.jsxs)("div",{className:"grid gap-1.5",children:[(0,tt.jsx)("div",{className:"flex items-center gap-2",children:(0,tt.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,tt.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,tt.jsxs)("div",{className:"flex space-tt-2",children:[(0,tt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,tt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,tt.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),r.map((g,y)=>(0,tt.jsx)(un,{...g},y))]})})})}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,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,LightTop,Logo,LowImpactHero,MOTD,Mask,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,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});