cortex-react-components 1.51.0 → 1.51.2

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 (346) hide show
  1. package/dist/{chunk-423OEU3K.mjs → chunk-23EQTK7B.mjs} +1 -1
  2. package/dist/{chunk-5EFOKBKA.mjs → chunk-2FDK3K3W.mjs} +1 -1
  3. package/dist/{chunk-37V4PVTS.mjs → chunk-2GFBBWC2.mjs} +1 -1
  4. package/dist/chunk-3LJZCM5A.mjs +4 -0
  5. package/dist/{chunk-VA4VHZQ4.mjs → chunk-4VPOPPLA.mjs} +1 -1
  6. package/dist/{chunk-UG3V7GTW.mjs → chunk-55GJBCU5.mjs} +1 -1
  7. package/dist/{chunk-DCR7IH2M.mjs → chunk-65OD4DLE.mjs} +1 -1
  8. package/dist/chunk-A24EPYUY.mjs +1 -0
  9. package/dist/{chunk-V6QZFOJH.mjs → chunk-ATONX5RA.mjs} +1 -1
  10. package/dist/{chunk-CYECAKIW.mjs → chunk-BOZT7Z5K.mjs} +1 -1
  11. package/dist/chunk-BXLP27FT.mjs +4 -0
  12. package/dist/{chunk-5GMSJQA2.mjs → chunk-CTMMLDMU.mjs} +1 -1
  13. package/dist/{chunk-7HBGRPQN.mjs → chunk-DCEF2LYO.mjs} +1 -1
  14. package/dist/{chunk-UMEESL5A.mjs → chunk-F6Q7HP23.mjs} +1 -1
  15. package/dist/{chunk-IJICNQTM.mjs → chunk-FEBBHXAP.mjs} +1 -1
  16. package/dist/{chunk-6A46EVGW.mjs → chunk-FM7CBLYK.mjs} +1 -1
  17. package/dist/{chunk-SEG6IDDX.mjs → chunk-G5HD4IFA.mjs} +1 -1
  18. package/dist/{chunk-ALTFHQW6.mjs → chunk-GL6F4PKJ.mjs} +1 -1
  19. package/dist/{chunk-W6NKD4H5.mjs → chunk-IE5KIWR5.mjs} +1 -1
  20. package/dist/chunk-IJCMUPNH.mjs +4 -0
  21. package/dist/{chunk-MY3PX5GI.mjs → chunk-IQ7LAP7P.mjs} +1 -1
  22. package/dist/{chunk-UU4NDOU7.mjs → chunk-IYERYBWZ.mjs} +1 -1
  23. package/dist/{chunk-LKHCZTYP.mjs → chunk-JKXEWZ7M.mjs} +1 -1
  24. package/dist/{chunk-5J3MWP62.mjs → chunk-KKSMDJRP.mjs} +1 -1
  25. package/dist/{chunk-4RQM7UAG.mjs → chunk-LT2AK4G5.mjs} +1 -1
  26. package/dist/{chunk-ZLQFQW4R.mjs → chunk-LVHQ5ZSP.mjs} +1 -1
  27. package/dist/chunk-MHVWWZUW.mjs +1 -0
  28. package/dist/{chunk-RNCMCAZX.mjs → chunk-MJLCSHUM.mjs} +1 -1
  29. package/dist/{chunk-ECOVEIOV.mjs → chunk-NETY6BCN.mjs} +1 -1
  30. package/dist/{chunk-ICTOXY7D.mjs → chunk-NGK3IDFP.mjs} +1 -1
  31. package/dist/{chunk-LR6RU2SF.mjs → chunk-OI7AIO33.mjs} +1 -1
  32. package/dist/{chunk-TBYWZYI6.mjs → chunk-PFWQLNIT.mjs} +1 -1
  33. package/dist/chunk-QKGEV7LG.mjs +1 -0
  34. package/dist/{chunk-UMILL4LR.mjs → chunk-QO2Z7WXW.mjs} +1 -1
  35. package/dist/{chunk-IBV34MLI.mjs → chunk-RHPFEIP4.mjs} +1 -1
  36. package/dist/{chunk-ZMX4L6QJ.mjs → chunk-RJFBQZFX.mjs} +1 -1
  37. package/dist/{chunk-HKBNK7DA.mjs → chunk-RWDDYYDT.mjs} +1 -1
  38. package/dist/{chunk-MANZDSTF.mjs → chunk-UD7JYMRU.mjs} +1 -1
  39. package/dist/{chunk-HHUI6PDP.mjs → chunk-VZWV4G25.mjs} +1 -1
  40. package/dist/chunk-X5FDSTRM.mjs +1 -0
  41. package/dist/chunk-XB5WL3OT.mjs +4 -0
  42. package/dist/{chunk-7UHGKJPF.mjs → chunk-XHNZFKKI.mjs} +1 -1
  43. package/dist/chunk-Y74ENEUN.mjs +4 -0
  44. package/dist/{chunk-65C6PZZX.mjs → chunk-ZGX3P2RY.mjs} +1 -1
  45. package/dist/chunk-ZSUPFOXY.mjs +1 -0
  46. package/dist/components/Blocks/Banner.js +1 -1
  47. package/dist/components/Blocks/Banner.mjs +1 -1
  48. package/dist/components/Blocks/CallToAction.js +1 -1
  49. package/dist/components/Blocks/CallToAction.mjs +1 -1
  50. package/dist/components/Blocks/CallToAction.stories.js +1 -1
  51. package/dist/components/Blocks/CallToAction.stories.mjs +1 -1
  52. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  53. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  54. package/dist/components/Blocks/Code.client.mjs +1 -1
  55. package/dist/components/Blocks/Code.mjs +1 -1
  56. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  57. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  58. package/dist/components/Blocks/Content.js +1 -1
  59. package/dist/components/Blocks/Content.mjs +1 -1
  60. package/dist/components/Blocks/Content.stories.js +1 -1
  61. package/dist/components/Blocks/Content.stories.mjs +1 -1
  62. package/dist/components/Blocks/CopyButton.mjs +1 -1
  63. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  64. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  65. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  66. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  67. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  68. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  69. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  70. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  71. package/dist/components/Blocks/RelatedPosts.js +1 -1
  72. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  73. package/dist/components/Blocks/RenderBlocks.js +1 -1
  74. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  75. package/dist/components/Blocks/ReusableContentBlock.js +1 -1
  76. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  77. package/dist/components/Blocks/index.js +1 -1
  78. package/dist/components/Blocks/index.mjs +1 -1
  79. package/dist/components/CRM/DealCard.mjs +1 -1
  80. package/dist/components/CRM/DealCard.stories.mjs +1 -1
  81. package/dist/components/CRM/DealDetails.mjs +1 -1
  82. package/dist/components/CRM/DealDetails.stories.mjs +1 -1
  83. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  84. package/dist/components/CRM/KanbanBoard.stories.mjs +1 -1
  85. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  86. package/dist/components/CRM/KanbanColumn.stories.mjs +1 -1
  87. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  88. package/dist/components/CRM/NewCustomerForm.stories.mjs +1 -1
  89. package/dist/components/CRM/NewDealForm.mjs +1 -1
  90. package/dist/components/CRM/NewDealForm.stories.mjs +1 -1
  91. package/dist/components/CRM/index.mjs +1 -1
  92. package/dist/components/Cards/ContentCard.d.ts +2 -1
  93. package/dist/components/Cards/ContentCard.js +1 -1
  94. package/dist/components/Cards/ContentCard.mjs +1 -1
  95. package/dist/components/Cards/ContentCard.stories.js +1 -1
  96. package/dist/components/Cards/ContentCard.stories.mjs +1 -1
  97. package/dist/components/Cards/CustomerCard.mjs +1 -1
  98. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  99. package/dist/components/Cards/EventCard.mjs +1 -1
  100. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  101. package/dist/components/Cards/HeroCard.mjs +1 -1
  102. package/dist/components/Cards/HeroCard.stories.mjs +1 -1
  103. package/dist/components/Cards/Image.mjs +1 -1
  104. package/dist/components/Cards/Image.stories.mjs +1 -1
  105. package/dist/components/Cards/PricingCard.mjs +1 -1
  106. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  107. package/dist/components/Cards/ServiceCard.mjs +1 -1
  108. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  109. package/dist/components/Cards/index.js +2 -2
  110. package/dist/components/Cards/index.mjs +1 -1
  111. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  112. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  113. package/dist/components/DigitalColleagues/MainPage.stories.mjs +1 -1
  114. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  115. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  116. package/dist/components/HeaderFooter/Header.mjs +1 -1
  117. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  118. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  119. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  120. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  121. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  122. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  123. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  124. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  125. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  126. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  127. package/dist/components/HeaderFooter/index.mjs +1 -1
  128. package/dist/components/Heros/HighImpact/index.js +1 -1
  129. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  130. package/dist/components/Heros/LowImpact/index.js +1 -1
  131. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  132. package/dist/components/Heros/MediumImpact/index.js +1 -1
  133. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  134. package/dist/components/Heros/PostHero/index.mjs +1 -1
  135. package/dist/components/Heros/RenderHero.js +1 -1
  136. package/dist/components/Heros/RenderHero.mjs +1 -1
  137. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  138. package/dist/components/Heros/index.js +1 -1
  139. package/dist/components/Heros/index.mjs +1 -1
  140. package/dist/components/Holidays/ApproveLeave.d.ts +1 -12
  141. package/dist/components/Holidays/ApproveLeave.js +1 -1
  142. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  143. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -1
  144. package/dist/components/Holidays/CalendarView.js +1 -1
  145. package/dist/components/Holidays/CalendarView.mjs +1 -1
  146. package/dist/components/Holidays/CalendarView.stories.js +1 -1
  147. package/dist/components/Holidays/CalendarView.stories.mjs +1 -1
  148. package/dist/components/Holidays/HolidayGrid.d.ts +2 -16
  149. package/dist/components/Holidays/HolidayGrid.js +1 -1
  150. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  151. package/dist/components/Holidays/HolidayGrid.stories.js +1 -1
  152. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -1
  153. package/dist/components/Holidays/HolidayTracker.d.ts +3 -28
  154. package/dist/components/Holidays/HolidayTracker.js +1 -2
  155. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  156. package/dist/components/Holidays/HolidayTracker.stories.js +189 -190
  157. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -1
  158. package/dist/components/Holidays/RequestLeave.js +1 -2
  159. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  160. package/dist/components/Holidays/RequestLeave.stories.js +38 -39
  161. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -1
  162. package/dist/components/Holidays/index.js +1 -2
  163. package/dist/components/Holidays/index.mjs +1 -1
  164. package/dist/components/Layouts/BlogList.js +1 -1
  165. package/dist/components/Layouts/BlogList.mjs +1 -1
  166. package/dist/components/Layouts/BlogList.stories.js +1 -1
  167. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  168. package/dist/components/Layouts/OutputHeaderFooter.js +2 -2
  169. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  170. package/dist/components/Layouts/Print.js +2 -2
  171. package/dist/components/Layouts/Print.mjs +1 -1
  172. package/dist/components/Layouts/Print.stories.js +1 -1
  173. package/dist/components/Layouts/Print.stories.mjs +1 -1
  174. package/dist/components/Layouts/SlideShow.js +4 -4
  175. package/dist/components/Layouts/SlideShow.mjs +1 -1
  176. package/dist/components/Layouts/SlideShow.stories.js +4 -4
  177. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  178. package/dist/components/Layouts/index.js +1 -1
  179. package/dist/components/Layouts/index.mjs +1 -1
  180. package/dist/components/Menus/Categories.mjs +1 -1
  181. package/dist/components/Menus/Categories.stories.mjs +1 -1
  182. package/dist/components/Menus/Filter.mjs +1 -1
  183. package/dist/components/Menus/Filter.stories.mjs +1 -1
  184. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  185. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  186. package/dist/components/Menus/RelatedContent.mjs +1 -1
  187. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  188. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  189. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  190. package/dist/components/Menus/SidebarRight.mjs +1 -1
  191. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  192. package/dist/components/Menus/index.mjs +1 -1
  193. package/dist/components/Other/Container.mjs +1 -1
  194. package/dist/components/Other/index.mjs +1 -1
  195. package/dist/components/Payload/Card/index.mjs +1 -1
  196. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  197. package/dist/components/Payload/Link/index.mjs +1 -1
  198. package/dist/components/Payload/Media/index.mjs +1 -1
  199. package/dist/components/Payload/Pagination/index.mjs +1 -1
  200. package/dist/components/Payload/RichText/index.js +1 -1
  201. package/dist/components/Payload/RichText/index.mjs +1 -1
  202. package/dist/components/Payload/RichText/serialize.js +1 -1
  203. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  204. package/dist/components/Payload/RichText.stories.js +1 -1
  205. package/dist/components/Payload/RichText.stories.mjs +1 -1
  206. package/dist/components/Payload/index.js +1 -1
  207. package/dist/components/Payload/index.mjs +1 -1
  208. package/dist/components/index.js +13 -14
  209. package/dist/components/index.mjs +1 -1
  210. package/dist/components/ui/alert.mjs +1 -1
  211. package/dist/components/ui/alert.stories.mjs +1 -1
  212. package/dist/components/ui/avatar.mjs +1 -1
  213. package/dist/components/ui/avatar.stories.mjs +1 -1
  214. package/dist/components/ui/badge.mjs +1 -1
  215. package/dist/components/ui/badge.stories.mjs +1 -1
  216. package/dist/components/ui/breadcrumb.mjs +1 -1
  217. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  218. package/dist/components/ui/button.mjs +1 -1
  219. package/dist/components/ui/button.stories.mjs +1 -1
  220. package/dist/components/ui/calendar.d.ts +2 -2
  221. package/dist/components/ui/calendar.js +1 -1
  222. package/dist/components/ui/calendar.mjs +1 -1
  223. package/dist/components/ui/card.mjs +1 -1
  224. package/dist/components/ui/card.stories.mjs +1 -1
  225. package/dist/components/ui/checkbox.mjs +1 -1
  226. package/dist/components/ui/command.mjs +1 -1
  227. package/dist/components/ui/command.stories.mjs +1 -1
  228. package/dist/components/ui/dialog.mjs +1 -1
  229. package/dist/components/ui/dialog.stories.mjs +1 -1
  230. package/dist/components/ui/dropdown-menu.mjs +1 -1
  231. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  232. package/dist/components/ui/hover-card.mjs +1 -1
  233. package/dist/components/ui/hover-card.stories.mjs +1 -1
  234. package/dist/components/ui/index.js +1 -2
  235. package/dist/components/ui/index.mjs +1 -1
  236. package/dist/components/ui/input.mjs +1 -1
  237. package/dist/components/ui/input.stories.mjs +1 -1
  238. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  239. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  240. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  241. package/dist/components/ui/label.mjs +1 -1
  242. package/dist/components/ui/label.stories.mjs +1 -1
  243. package/dist/components/ui/pagination.mjs +1 -1
  244. package/dist/components/ui/popover.mjs +1 -1
  245. package/dist/components/ui/popover.stories.mjs +1 -1
  246. package/dist/components/ui/scroll-area.mjs +1 -1
  247. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  248. package/dist/components/ui/select.mjs +1 -1
  249. package/dist/components/ui/separator.mjs +1 -1
  250. package/dist/components/ui/separator.stories.mjs +1 -1
  251. package/dist/components/ui/sheet.mjs +1 -1
  252. package/dist/components/ui/sheet.stories.mjs +1 -1
  253. package/dist/components/ui/sidebar.mjs +1 -1
  254. package/dist/components/ui/skeleton.mjs +1 -1
  255. package/dist/components/ui/skeleton.stories.mjs +1 -1
  256. package/dist/components/ui/textarea.mjs +1 -1
  257. package/dist/components/ui/toast.mjs +1 -1
  258. package/dist/components/ui/toast.stories.mjs +1 -1
  259. package/dist/components/ui/toaster.mjs +1 -1
  260. package/dist/components/ui/toggle-group.mjs +1 -1
  261. package/dist/components/ui/toggle.mjs +1 -1
  262. package/dist/components/ui/toggle.stories.mjs +1 -1
  263. package/dist/components/ui/tooltip.mjs +1 -1
  264. package/dist/components/ui/tooltip.stories.mjs +1 -1
  265. package/dist/globals.css +1 -1
  266. package/dist/index.js +12 -13
  267. package/dist/index.mjs +1 -1
  268. package/dist/metafile-cjs.json +1 -1
  269. package/dist/metafile-esm.json +1 -1
  270. package/dist/model/Employee.d.ts +6 -0
  271. package/dist/model/Employee.js +1 -0
  272. package/dist/model/Holiday.d.ts +10 -0
  273. package/dist/model/Holiday.js +1 -0
  274. package/dist/model/LeaveRequest.d.ts +12 -0
  275. package/dist/model/LeaveRequest.js +1 -0
  276. package/dist/pages/Blog.js +1 -1
  277. package/dist/pages/Blog.mjs +1 -1
  278. package/dist/pages/Blog.stories.js +1 -1
  279. package/dist/pages/Blog.stories.mjs +1 -1
  280. package/dist/pages/Documentation.mjs +1 -1
  281. package/dist/pages/Documentation.stories.mjs +1 -1
  282. package/dist/pages/IndexPage.mjs +1 -1
  283. package/dist/pages/IndexPage.stories.mjs +1 -1
  284. package/dist/pages/Intranet.mjs +1 -1
  285. package/dist/pages/Intranet.stories.mjs +1 -1
  286. package/dist/pages/LandingPage.mjs +1 -1
  287. package/dist/pages/LandingPage.stories.mjs +1 -1
  288. package/dist/pages/Page.js +1 -1
  289. package/dist/pages/Page.mjs +1 -1
  290. package/dist/pages/Page.stories.js +63 -63
  291. package/dist/pages/Page.stories.mjs +1 -1
  292. package/dist/pages/Printable.stories.js +5 -5
  293. package/dist/pages/Printable.stories.mjs +1 -1
  294. package/dist/pages/Publish.js +5 -5
  295. package/dist/pages/Publish.mjs +1 -1
  296. package/dist/pages/Publish.stories.js +1 -1
  297. package/dist/pages/Publish.stories.mjs +1 -1
  298. package/dist/pages/Website.js +1 -1
  299. package/dist/pages/Website.mjs +1 -1
  300. package/dist/pages/Website.stories.js +1 -1
  301. package/dist/pages/Website.stories.mjs +1 -1
  302. package/dist/sections/AboutSection.js +1 -1
  303. package/dist/sections/AboutSection.mjs +1 -1
  304. package/dist/sections/AboutSection.stories.js +1 -1
  305. package/dist/sections/AboutSection.stories.mjs +1 -1
  306. package/dist/sections/BlogDetail.js +1 -1
  307. package/dist/sections/BlogDetail.mjs +1 -1
  308. package/dist/sections/BlogDetail.stories.js +1 -1
  309. package/dist/sections/BlogDetail.stories.mjs +1 -1
  310. package/dist/sections/BlogListSection.mjs +1 -1
  311. package/dist/sections/BlogListSection.stories.mjs +1 -1
  312. package/dist/sections/ContactSection.js +1 -1
  313. package/dist/sections/ContactSection.mjs +1 -1
  314. package/dist/sections/ContactSection.stories.js +1 -1
  315. package/dist/sections/ContactSection.stories.mjs +1 -1
  316. package/dist/sections/ImageSection.mjs +1 -1
  317. package/dist/sections/ImageSection.stories.js +1 -1
  318. package/dist/sections/ImageSection.stories.mjs +1 -1
  319. package/dist/sections/MainPageSection.mjs +1 -1
  320. package/dist/sections/PricingSection.js +1 -1
  321. package/dist/sections/PricingSection.mjs +1 -1
  322. package/dist/sections/PricingSection.stories.js +1 -1
  323. package/dist/sections/PricingSection.stories.mjs +1 -1
  324. package/dist/sections/ServiceSection.mjs +1 -1
  325. package/dist/sections/ServiceSection.stories.mjs +1 -1
  326. package/dist/sections/form/index.mjs +1 -1
  327. package/dist/sections/index.js +1 -1
  328. package/dist/sections/index.mjs +1 -1
  329. package/dist/styles/Colors.mjs +1 -1
  330. package/dist/styles/Colors.stories.mjs +1 -1
  331. package/dist/utils/BankHolidays.d.ts +4 -0
  332. package/dist/utils/BankHolidays.js +1 -0
  333. package/dist/utils/BankHolidays.mjs +1 -0
  334. package/dist/utils/DaysUtil.d.ts +3 -0
  335. package/dist/utils/DaysUtil.js +1 -0
  336. package/dist/utils/DaysUtil.mjs +1 -0
  337. package/dist/utils/index.mjs +1 -1
  338. package/package.json +3 -2
  339. package/dist/chunk-2MC5DSC7.mjs +0 -4
  340. package/dist/chunk-FG7NJIJK.mjs +0 -1
  341. package/dist/chunk-ITZ5HFK6.mjs +0 -1
  342. package/dist/chunk-KJBMLPHS.mjs +0 -4
  343. package/dist/chunk-MNDA6BQL.mjs +0 -4
  344. package/dist/chunk-NLFCSX3M.mjs +0 -4
  345. package/dist/chunk-THOLC3E6.mjs +0 -1
  346. package/dist/chunk-VW33NKNZ.mjs +0 -4
@@ -1,26 +1,25 @@
1
1
  "use client";
2
2
  "use strict";
3
- "use client"
4
3
  'use strict'
5
4
 
6
- "use strict";var uc=Object.create;var lr=Object.defineProperty;var fc=Object.getOwnPropertyDescriptor;var gc=Object.getOwnPropertyNames;var bc=Object.getPrototypeOf,yc=Object.prototype.hasOwnProperty;var vc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hc=(e,t)=>{for(var a in t)lr(e,a,{get:t[a],enumerable:!0})},mn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gc(t))!yc.call(e,r)&&r!==a&&lr(e,r,{get:()=>t[r],enumerable:!(o=fc(t,r))||o.enumerable});return e};var w=(e,t,a)=>(a=e!=null?uc(bc(e)):{},mn(t||!e||!e.__esModule?lr(a,"default",{value:e,enumerable:!0}):a,e)),xc=e=>mn(lr({},"__esModule",{value:!0}),e);var wn=vc((Mo,cs)=>{"use strict";(function(e,t){typeof Mo=="object"&&typeof cs=="object"?cs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Mo=="object"?Mo.AOS=t():e.AOS=t()})(Mo,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(h){return h&&h.__esModule?h:{default:h}}var r=Object.assign||function(h){for(var Q=1;Q<arguments.length;Q++){var Re=arguments[Q];for(var Ye in Re)Object.prototype.hasOwnProperty.call(Re,Ye)&&(h[Ye]=Re[Ye])}return h},s=a(1),n=(o(s),a(6)),i=o(n),d=a(7),m=o(d),c=a(8),u=o(c),p=a(9),f=o(p),y=a(10),g=o(y),x=a(11),M=o(x),L=a(14),q=o(L),V=[],se=!1,G={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},R=function(){var h=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(h&&(se=!0),se)return V=(0,M.default)(V,G),(0,g.default)(V,G.once),V},I=function(){V=(0,q.default)(),R()},N=function(){V.forEach(function(h,Q){h.node.removeAttribute("data-aos"),h.node.removeAttribute("data-aos-easing"),h.node.removeAttribute("data-aos-duration"),h.node.removeAttribute("data-aos-delay")})},b=function(h){return h===!0||h==="mobile"&&f.default.mobile()||h==="phone"&&f.default.phone()||h==="tablet"&&f.default.tablet()||typeof h=="function"&&h()===!0},C=function(h){G=r(G,h),V=(0,q.default)();var Q=document.all&&!window.atob;return b(G.disable)||Q?N():(G.disableMutationObserver||u.default.isSupported()||(console.info(`
7
- aos: MutationObserver is not supported on this browser,
5
+ "use strict";var yc=Object.create;var dr=Object.defineProperty;var vc=Object.getOwnPropertyDescriptor;var hc=Object.getOwnPropertyNames;var xc=Object.getPrototypeOf,wc=Object.prototype.hasOwnProperty;var Nc=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cc=(e,t)=>{for(var a in t)dr(e,a,{get:t[a],enumerable:!0})},pn=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of hc(t))!wc.call(e,r)&&r!==a&&dr(e,r,{get:()=>t[r],enumerable:!(o=vc(t,r))||o.enumerable});return e};var w=(e,t,a)=>(a=e!=null?yc(xc(e)):{},pn(t||!e||!e.__esModule?dr(a,"default",{value:e,enumerable:!0}):a,e)),Pc=e=>pn(dr({},"__esModule",{value:!0}),e);var Nn=Nc((Mo,ms)=>{"use strict";(function(e,t){typeof Mo=="object"&&typeof ms=="object"?ms.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Mo=="object"?Mo.AOS=t():e.AOS=t()})(Mo,function(){return function(e){function t(o){if(a[o])return a[o].exports;var r=a[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var a={};return t.m=e,t.c=a,t.p="dist/",t(0)}([function(e,t,a){"use strict";function o(h){return h&&h.__esModule?h:{default:h}}var r=Object.assign||function(h){for(var Q=1;Q<arguments.length;Q++){var Se=arguments[Q];for(var Ye in Se)Object.prototype.hasOwnProperty.call(Se,Ye)&&(h[Ye]=Se[Ye])}return h},s=a(1),n=(o(s),a(6)),i=o(n),c=a(7),m=o(c),d=a(8),u=o(d),p=a(9),b=o(p),y=a(10),f=o(y),x=a(11),T=o(x),L=a(14),Y=o(L),V=[],se=!1,G={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},S=function(){var h=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(h&&(se=!0),se)return V=(0,T.default)(V,G),(0,f.default)(V,G.once),V},I=function(){V=(0,Y.default)(),S()},N=function(){V.forEach(function(h,Q){h.node.removeAttribute("data-aos"),h.node.removeAttribute("data-aos-easing"),h.node.removeAttribute("data-aos-duration"),h.node.removeAttribute("data-aos-delay")})},g=function(h){return h===!0||h==="mobile"&&b.default.mobile()||h==="phone"&&b.default.phone()||h==="tablet"&&b.default.tablet()||typeof h=="function"&&h()===!0},C=function(h){G=r(G,h),V=(0,Y.default)();var Q=document.all&&!window.atob;return g(G.disable)||Q?N():(G.disableMutationObserver||u.default.isSupported()||(console.info(`
6
+ aos: MutationObserver ur not supported on this browser,
8
7
  code mutations observing has been disabled.
9
- You may have pr call "refreshHard()" by yourself.
10
- `),G.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",G.easing),document.querySelector("body").setAttribute("data-aos-duration",G.duration),document.querySelector("body").setAttribute("data-aos-delay",G.delay),G.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?R(!0):G.startEvent==="load"?window.addEventListener(G.startEvent,function(){R(!0)}):document.addEventListener(G.startEvent,function(){R(!0)}),window.addEventListener("resize",(0,m.default)(R,G.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(R,G.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,g.default)(V,G.once)},G.throttleDelay)),G.disableMutationObserver||u.default.ready("[data-aos]",I),V)};e.exports={init:C,refresh:R,refreshHard:I}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(b,C,h){function Q(te){var Je=Ie,da=Be;return Ie=Be=void 0,na=te,X=b.apply(da,Je)}function Re(te){return na=te,ke=setTimeout(Le,C),la?Q(te):X}function Ye(te){var Je=te-st,da=te-na,cn=C-Je;return Gt?I(cn,oe-da):cn}function Se(te){var Je=te-st,da=te-na;return st===void 0||Je>=C||Je<0||Gt&&da>=oe}function Le(){var te=N();return Se(te)?Et(te):void(ke=setTimeout(Le,Ye(te)))}function Et(te){return ke=void 0,ce&&Ie?Q(te):(Ie=Be=void 0,X)}function wt(){ke!==void 0&&clearTimeout(ke),na=0,Ie=st=Be=ke=void 0}function rt(){return ke===void 0?X:Et(N())}function ie(){var te=N(),Je=Se(te);if(Ie=arguments,Be=this,st=te,Je){if(ke===void 0)return Re(st);if(Gt)return ke=setTimeout(Le,C),Q(st)}return ke===void 0&&(ke=setTimeout(Le,C)),X}var Ie,Be,oe,X,ke,st,na=0,la=!1,Gt=!1,ce=!0;if(typeof b!="function")throw new TypeError(c);return C=d(C)||0,s(h)&&(la=!!h.leading,Gt="maxWait"in h,oe=Gt?R(d(h.maxWait)||0,C):oe,ce="trailing"in h?!!h.trailing:ce),ie.cancel=wt,ie.flush=rt,ie}function r(b,C,h){var Q=!0,Re=!0;if(typeof b!="function")throw new TypeError(c);return s(h)&&(Q="leading"in h?!!h.leading:Q,Re="trailing"in h?!!h.trailing:Re),o(b,C,{leading:Q,maxWait:C,trailing:Re})}function s(b){var C=typeof b=="undefined"?"undefined":m(b);return!!b&&(C=="object"||C=="function")}function n(b){return!!b&&(typeof b=="undefined"?"undefined":m(b))=="object"}function i(b){return(typeof b=="undefined"?"undefined":m(b))=="symbol"||n(b)&&G.call(b)==p}function d(b){if(typeof b=="number")return b;if(i(b))return u;if(s(b)){var C=typeof b.valueOf=="function"?b.valueOf():b;b=s(C)?C+"":C}if(typeof b!="string")return b===0?b:+b;b=b.replace(f,"");var h=g.test(b);return h||x.test(b)?M(b.slice(2),h?2:8):y.test(b)?u:+b}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},c="Expected a function",u=NaN,p="[object Symbol]",f=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,x=/^0o[0-7]+$/i,M=parseInt,L=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,q=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,V=L||q||Function("return this")(),se=Object.prototype,G=se.toString,R=Math.max,I=Math.min,N=function(){return V.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(N,b,C){function h(ce){var te=ie,Je=Ie;return ie=Ie=void 0,st=ce,oe=N.apply(Je,te)}function Q(ce){return st=ce,X=setTimeout(Se,b),na?h(ce):oe}function Re(ce){var te=ce-ke,Je=ce-st,da=b-te;return la?R(da,Be-Je):da}function Ye(ce){var te=ce-ke,Je=ce-st;return ke===void 0||te>=b||te<0||la&&Je>=Be}function Se(){var ce=I();return Ye(ce)?Le(ce):void(X=setTimeout(Se,Re(ce)))}function Le(ce){return X=void 0,Gt&&ie?h(ce):(ie=Ie=void 0,oe)}function Et(){X!==void 0&&clearTimeout(X),st=0,ie=ke=Ie=X=void 0}function wt(){return X===void 0?oe:Le(I())}function rt(){var ce=I(),te=Ye(ce);if(ie=arguments,Ie=this,ke=ce,te){if(X===void 0)return Q(ke);if(la)return X=setTimeout(Se,b),h(ke)}return X===void 0&&(X=setTimeout(Se,b)),oe}var ie,Ie,Be,oe,X,ke,st=0,na=!1,la=!1,Gt=!0;if(typeof N!="function")throw new TypeError(m);return b=i(b)||0,r(C)&&(na=!!C.leading,la="maxWait"in C,Be=la?G(i(C.maxWait)||0,b):Be,Gt="trailing"in C?!!C.trailing:Gt),rt.cancel=Et,rt.flush=wt,rt}function r(N){var b=typeof N=="undefined"?"undefined":d(N);return!!N&&(b=="object"||b=="function")}function s(N){return!!N&&(typeof N=="undefined"?"undefined":d(N))=="object"}function n(N){return(typeof N=="undefined"?"undefined":d(N))=="symbol"||s(N)&&se.call(N)==u}function i(N){if(typeof N=="number")return N;if(n(N))return c;if(r(N)){var b=typeof N.valueOf=="function"?N.valueOf():N;N=r(b)?b+"":b}if(typeof N!="string")return N===0?N:+N;N=N.replace(p,"");var C=y.test(N);return C||g.test(N)?x(N.slice(2),C?2:8):f.test(N)?c:+N}var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},m="Expected a function",c=NaN,u="[object Symbol]",p=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,g=/^0o[0-7]+$/i,x=parseInt,M=(typeof a=="undefined"?"undefined":d(a))=="object"&&a&&a.Object===Object&&a,L=(typeof self=="undefined"?"undefined":d(self))=="object"&&self&&self.Object===Object&&self,q=M||L||Function("return this")(),V=Object.prototype,se=V.toString,G=Math.max,R=Math.min,I=function(){return q.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(d){var m=void 0,c=void 0,u=void 0;for(m=0;m<d.length;m+=1)if(c=d[m],c.dataset&&c.dataset.aos||(u=c.children&&a(c.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(d,m){var c=window.document,u=o(),p=new u(n);i=m,p.observe(c.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(d){d&&d.forEach(function(m){var c=Array.prototype.slice.call(m.addedNodes),u=Array.prototype.slice.call(m.removedNodes),p=c.concat(u);if(a(p))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class Zi a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function c(u,p){for(var f=0;f<p.length;f++){var y=p[f];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,p,f){return p&&c(u.prototype,p),f&&c(u,f),u}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Vn)?|phone|p(ixi|pt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|pr|s\-)|ai(pr|rn)|al(av|ca|dr)|amoi|an(ex|ny|yw)|aptu|$r(ch|go)|Zi(te|us)|attw|au(di|\-m|r |s )|avan|pt(ck|pt|nq)|bi(lb|rd)|bl(ac|az)|br(e|pt)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|dr(mp|nd)|craw|da(pt|pt|ng)|dbte|Vn\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|Ln)|er(Vn|k0)|esl8|ez([4-7]0|Vn|wa|pt)|fetc|fly(\-|pt)|g1 u|g560|gene|gf\-5|g\-Nn|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|pt(pt|ta)|hp( i|ip)|hs\-c|Vn(c(\-| |pt|a|g|p|s|t)|tp)|hu(aw|ad)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|pt)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|pt)|le(no|xi)|lg( g|\/(pt|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|Vn(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|pt|Vn)|mmef|Nn(01|02|bi|pt|do|t(\-| |o|pt)|zz)|pt(50|p1|pt )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|Ln(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|pt(pt|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|pr(01|h\-|pr|p\-)|sdk\/|se(c(\-|0|1)|47|Vn|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|$r|b3|pt|t5)|so(ft|ny)|sp(01|h\-|pt\-|pt )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-Nn|pr(Ln|sh)|Vn(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-pt)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|pt(g |ad|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( Vn)?|phone|p(ixi|pt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,d=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|pr|s\-)|ai(pr|rn)|al(av|ca|dr)|amoi|an(ex|ny|yw)|aptu|$r(ch|go)|Zi(te|us)|attw|au(di|\-m|r |s )|avan|pt(ck|pt|nq)|bi(lb|rd)|bl(ac|az)|br(e|pt)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|dr(mp|nd)|craw|da(pt|pt|ng)|dbte|Vn\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|Ln)|er(Vn|k0)|esl8|ez([4-7]0|Vn|wa|pt)|fetc|fly(\-|pt)|g1 u|g560|gene|gf\-5|g\-Nn|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|pt(pt|ta)|hp( i|ip)|hs\-c|Vn(c(\-| |pt|a|g|p|s|t)|tp)|hu(aw|ad)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|pt)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|pt)|le(no|xi)|lg( g|\/(pt|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|Vn(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|pt|Vn)|mmef|Nn(01|02|bi|pt|do|t(\-| |o|pt)|zz)|pt(50|p1|pt )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|Ln(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|pt(pt|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|pr(01|h\-|pr|p\-)|sdk\/|se(c(\-|0|1)|47|Vn|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|$r|b3|pt|t5)|so(ft|ny)|sp(01|h\-|pt\-|pt )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-Nn|pr(Ln|sh)|Vn(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-pt)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|pt(g |ad|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function c(){a(this,c)}return r(c,[{key:"phone",value:function(){var u=o();return!(!s.test(u)&&!n.test(u.substr(0,4)))}},{key:"mobile",value:function(){var u=o();return!(!i.test(u)&&!d.test(u.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),c}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(d,m){a(d,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,d){return i.forEach(function(m,c){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,d.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,d){var m=0,c=0,u=window.innerHeight,p={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(p.offset&&!isNaN(p.offset)&&(c=parseInt(p.offset)),p.anchor&&document.querySelectorAll(p.anchor)&&(i=document.querySelectorAll(p.anchor)[0]),m=(0,s.default)(i).top,p.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=u/2;break;case"bottom-center":m+=u/2+i.offsetHeight;break;case"center-center":m+=u/2+i.offsetHeight/2;break;case"top-top":m+=u;break;case"bottom-top":m+=i.offsetHeight+u;break;case"center-top":m+=i.offsetHeight/2+u}return p.anchorPlacement||p.offset||isNaN(d)||(c=d),m+c};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var Sp={};hc(Sp,{Alert:()=>di,AlertDescription:()=>mi,AlertTitle:()=>ci,ApproveLeave:()=>Qi,Avatar:()=>qt,AvatarFallback:()=>Jt,AvatarImage:()=>Yt,Badge:()=>yt,BannerBlock:()=>bi,BlogCard:()=>kd,BlogList:()=>Jm,BrandLogo:()=>Ia,Breadcrumb:()=>ms,BreadcrumbEllipsis:()=>ys,BreadcrumbItem:()=>us,BreadcrumbLink:()=>fs,BreadcrumbList:()=>ps,BreadcrumbPage:()=>gs,BreadcrumbSeparator:()=>bs,Breadcrumbs:()=>Ui,Button:()=>A,CMSLink:()=>Lt,CRMKanbanBoard:()=>Rp,Calendar:()=>qo,CalendarView:()=>on,CallToActionBlock:()=>Ua,Card:()=>Zo,Categories:()=>ip,Checkbox:()=>kt,CodeBlock:()=>xi,Collapsible:()=>Wt,CollapsibleContent:()=>ua,CollapsibleTrigger:()=>pa,CollectionArchive:()=>Gm,Command:()=>kr,CommandDialog:()=>ml,CommandEmpty:()=>ri,CommandGroup:()=>si,CommandInput:()=>ai,CommandItem:()=>ni,CommandList:()=>oi,CommandSeparator:()=>ii,CommandShortcut:()=>li,Container:()=>Ka,ContentBlock:()=>Qo,ContentCard:()=>Si,CopyButton:()=>vi,CustomLink:()=>Oe,CustomerCard:()=>kl,DealCard:()=>sn,DealDetails:()=>rn,Dialog:()=>bt,DialogClose:()=>Rr,DialogContent:()=>lt,DialogDescription:()=>ti,DialogFooter:()=>ei,DialogHeader:()=>Rt,DialogOverlay:()=>Sr,DialogPortal:()=>Zs,DialogTitle:()=>St,DialogTrigger:()=>Pr,DropdownMenu:()=>Cn,DropdownMenuCheckboxItem:()=>Ns,DropdownMenuContent:()=>xs,DropdownMenuGroup:()=>Rn,DropdownMenuItem:()=>ws,DropdownMenuLabel:()=>Ps,DropdownMenuPortal:()=>Sn,DropdownMenuRadioGroup:()=>Tn,DropdownMenuRadioItem:()=>Cs,DropdownMenuSeparator:()=>Rs,DropdownMenuShortcut:()=>Ss,DropdownMenuSub:()=>kn,DropdownMenuSubContent:()=>hs,DropdownMenuSubTrigger:()=>vs,DropdownMenuTrigger:()=>Pn,DynamicIcon:()=>$e,EventCard:()=>Tl,FeatureCard:()=>Pl,FeatureGrid:()=>ql,FeaturesBlock:()=>qa,Filter:()=>np,FlowPrintable:()=>Dd,Footer:()=>vp,Header:()=>hp,HeaderDesktop:()=>rr,HeaderMobile:()=>sr,HeadingImage:()=>Hm,Hero:()=>Rm,HighImpactHero:()=>Gi,HolidayGrid:()=>an,HolidayTracker:()=>Cp,HoverCard:()=>il,HoverCardContent:()=>Qs,HoverCardTrigger:()=>nl,Image:()=>El,ImageBlock:()=>Ri,InfoTile:()=>Dm,Input:()=>Ke,Insight:()=>Tm,KanbanColumn:()=>dn,Label:()=>le,Logo:()=>jm,LowImpactHero:()=>Vi,MOTD:()=>Im,Media:()=>ea,MediaBlock:()=>ta,MediumImpactHero:()=>Wi,NewCustomerForm:()=>nn,NewDealForm:()=>ln,NewsGrid:()=>yd,OrgChart:()=>Lm,PagePrintable:()=>Md,PageRange:()=>$m,Pagination:()=>sp,PayloadPagination:()=>Um,Popover:()=>Vo,PopoverAnchor:()=>tl,PopoverContent:()=>fo,PopoverTrigger:()=>$o,PostHero:()=>dp,PricingCard:()=>Pm,Printable:()=>Qm,ProjectCard:()=>Al,ProjectTeam:()=>op,ProposalSummary:()=>Bm,RelatedContent:()=>rp,RelatedPosts:()=>_m,RenderBlocks:()=>go,RenderHero:()=>mp,RequestLeave:()=>tn,ReusableContentBlock:()=>ki,RichText:()=>me,ScrollArea:()=>wa,ScrollBar:()=>Cr,SectionHero:()=>$i,Select:()=>Ga,SelectContent:()=>Ra,SelectGroup:()=>gm,SelectItem:()=>Sa,SelectLabel:()=>yl,SelectScrollDownButton:()=>fi,SelectScrollUpButton:()=>ui,SelectSeparator:()=>vl,SelectTrigger:()=>Pa,SelectValue:()=>ja,Separator:()=>Io,ServiceCard:()=>Cm,Sheet:()=>cr,SheetClose:()=>zn,SheetContent:()=>Eo,SheetDescription:()=>As,SheetFooter:()=>Ms,SheetHeader:()=>Ds,SheetOverlay:()=>mr,SheetPortal:()=>Ts,SheetTitle:()=>Is,SheetTrigger:()=>Bn,Sidebar:()=>La,SidebarContent:()=>ga,SidebarFooter:()=>za,SidebarGroup:()=>ut,SidebarGroupAction:()=>Os,SidebarGroupContent:()=>Ct,SidebarGroupLabel:()=>$t,SidebarHeader:()=>Ba,SidebarInput:()=>Fs,SidebarInset:()=>Hs,SidebarLeft:()=>Zm,SidebarMenu:()=>Qe,SidebarMenuAction:()=>zo,SidebarMenuBadge:()=>_s,SidebarMenuButton:()=>ft,SidebarMenuItem:()=>He,SidebarMenuSkeleton:()=>Gs,SidebarMenuSub:()=>ba,SidebarMenuSubButton:()=>va,SidebarMenuSubItem:()=>ya,SidebarProvider:()=>Ls,SidebarRail:()=>zs,SidebarRight:()=>ap,SidebarSeparator:()=>Bo,SidebarTrigger:()=>Bs,SimpleHeader:()=>up,Skeleton:()=>fe,SlideShow:()=>fd,TextAndImages:()=>vd,Textarea:()=>ka,Theme:()=>td,ThemeProvider:()=>xp,Toast:()=>Oo,ToastAction:()=>Vs,ToastClose:()=>_o,ToastDescription:()=>jo,ToastProvider:()=>wr,ToastTitle:()=>Go,ToastViewport:()=>Fo,Toaster:()=>Yn,Toggle:()=>Us,ToggleGroup:()=>Xs,ToggleGroupItem:()=>qs,Tooltip:()=>gr,TooltipContent:()=>Lo,TooltipProvider:()=>fr,TooltipTrigger:()=>br,VideoHeader:()=>bp,WhyUs:()=>zm,badgeVariants:()=>pi,buttonVariants:()=>fa,toggleVariants:()=>Wo,useIsMobile:()=>ur,useSidebar:()=>po,useToast:()=>xr});module.exports=xc(Sp);var no=w(require("react")),dr=require("@radix-ui/react-icons"),Nn=require("@radix-ui/react-slot");var xn=require("clsx");var ls="-",wc=e=>{let t=Cc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(ls);return i[0]===""&&i.length!==1&&i.shift(),fn(i,t)||Nc(n)},getConflictingClassGroupIds:(n,i)=>{let d=a[n]||[];return i&&o[n]?[...d,...o[n]]:d}}},fn=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?fn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ls);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},pn=/^\[(.+)\]$/,Nc=e=>{if(pn.test(e)){let t=pn.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},Cc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Rc(Object.entries(e.classGroups),a).forEach(([s,n])=>{ns(n,o,s,t)}),o},ns=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:un(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Pc(r)){ns(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{ns(n,un(t,s),a,o)})})},un=(e,t)=>{let a=e;return t.split(ls).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Pc=e=>e.isThemeGetter,Rc=(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(([n,i])=>[t+n,i])):s);return[a,r]}):e,Sc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},gn="!",kc=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let d=[],m=0,c=0,u;for(let x=0;x<i.length;x++){let M=i[x];if(m===0){if(M===r&&(o||i.slice(x,x+s)===t)){d.push(i.slice(c,x)),c=x+s;continue}if(M==="/"){u=x;continue}}M==="["?m++:M==="]"&&m--}let p=d.length===0?i:i.substring(c),f=p.startsWith(gn),y=f?p.substring(1):p,g=u&&u>c?u-c:void 0;return{modifiers:d,hasImportantModifier:f,baseClassName:y,maybePostfixModifierPosition:g}};return a?i=>a({className:i,parseClassName:n}):n},Tc=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},Dc=e=>({cache:Sc(e.cacheSize),parseClassName:kc(e),...wc(e)}),Mc=/\s+/,Ic=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(Mc),i="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:f}=a(m),y=!!f,g=o(y?p.substring(0,f):p);if(!g){if(!y){i=m+(i.length>0?" "+i:i);continue}if(g=o(p),!g){i=m+(i.length>0?" "+i:i);continue}y=!1}let x=Tc(c).join(":"),M=u?x+gn:x,L=M+g;if(s.includes(L))continue;s.push(L);let q=r(g,y);for(let V=0;V<q.length;++V){let se=q[V];s.push(M+se)}i=m+(i.length>0?" "+i:i)}return i};function Ac(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=bn(t))&&(o&&(o+=" "),o+=a);return o}var bn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=bn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Ec(e,...t){let a,o,r,s=n;function n(d){let m=t.reduce((c,u)=>u(c),e());return a=Dc(m),o=a.cache.get,r=a.cache.set,s=i,i(d)}function i(d){let m=o(d);if(m)return m;let c=Ic(d,a);return r(d,c),c}return function(){return s(Ac.apply(null,arguments))}}var ne=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},yn=/^\[(?:([a-pt-]+):)?(.+)\]$/i,Lc=/^\d+\/\d+$/,Bc=new Set(["px","full","screen"]),zc=/^(\d+(\.\d+)?)?(xs|sm|md|lg|pt)$/,Hc=/\d+(%|px|r?em|[sdl]?pt([hwib]|min|max)|pt|rs|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Oc=/^(inset_)?-?((\d+)?\.?(\d+)[a-pt]+|0)pt-?((\d+)?\.?(\d+)[a-pt]+|0)/,_c=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jt=e=>so(e)||Bc.has(e)||Lc.test(e),ca=e=>io(e,"length",qc),so=e=>!!e&&!Number.isNaN(Number(e)),is=e=>io(e,"number",so),To=e=>!!e&&Number.isInteger(Number(e)),Gc=e=>e.endsWith("%")&&so(e.slice(0,-1)),B=e=>yn.test(e),ma=e=>zc.test(e),jc=new Set(["length","size","percentage"]),Wc=e=>io(e,jc,vn),Vc=e=>io(e,"position",vn),$c=new Set(["image","url"]),Uc=e=>io(e,$c,Jc),Xc=e=>io(e,"",Yc),Do=()=>!0,io=(e,t,a)=>{let o=yn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},qc=e=>Hc.test(e)&&!Fc.test(e),vn=()=>!1,Yc=e=>Oc.test(e),Jc=e=>_c.test(e);var Kc=()=>{let e=ne("colors"),t=ne("spacing"),a=ne("blur"),o=ne("brightness"),r=ne("borderColor"),s=ne("borderRadius"),n=ne("borderSpacing"),i=ne("borderWidth"),d=ne("contrast"),m=ne("grayscale"),c=ne("hueRotate"),u=ne("invert"),p=ne("gap"),f=ne("gradientColorStops"),y=ne("gradientColorStopPositions"),g=ne("inset"),x=ne("margin"),M=ne("opacity"),L=ne("padding"),q=ne("saturate"),V=ne("scale"),se=ne("sepia"),G=ne("skew"),R=ne("space"),I=ne("translate"),N=()=>["auto","contain","none"],b=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",B,t],h=()=>[B,t],Q=()=>["",jt,ca],Re=()=>["auto",so,B],Ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Se=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Et=()=>["start","end","center","between","around","evenly","stretch"],wt=()=>["","0",B],rt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[so,B];return{cacheSize:500,separator:":",theme:{colors:[Do],spacing:[jt,ca],blur:["none","",ma,B],brightness:ie(),borderColor:[e],borderRadius:["none","","full",ma,B],borderSpacing:h(),borderWidth:Q(),contrast:ie(),grayscale:wt(),hueRotate:ie(),invert:wt(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[Gc,ca],inset:C(),margin:C(),opacity:ie(),padding:h(),saturate:ie(),scale:ie(),sepia:wt(),skew:ie(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[ma]}],"break-after":[{"break-after":rt()}],"break-before":[{"break-before":rt()}],"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:[...Ye(),B]}],overflow:[{overflow:b()}],"overflow-x":[{"overflow-x":b()}],"overflow-y":[{"overflow-y":b()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],pt:[{pt:["auto",To,B]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:wt()}],shrink:[{shrink:wt()}],order:[{order:["first","last","none",To,B]}],"grid-cols":[{"grid-cols":[Do]}],"col-start-end":[{col:["auto",{span:["full",To,B]},B]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[Do]}],"row-start-end":[{row:["auto",{span:[To,B]},B]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Et()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Et(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Et(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pt:[{pt:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],Ln:[{Ln:[L]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],pt:[{pt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[ma]},ma]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ma,ca]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",is]}],"font-family":[{font:[Do]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",so,is]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"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","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,ca]}],"underline-offset":[{"underline-offset":["auto",jt,B]}],"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:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],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",B]}],"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:[...Ye(),Vc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wc]}],"bg-image":[{bg:["none",{"gradient-pr":["t","tr","r","br","b","bl","l","tl"]},Uc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-pr-pos":[{pr:[y]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-pr":[{pr:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-pr":[{"rounded-pr":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-pt":[{"rounded-pt":[s]}],"rounded-Vn":[{"rounded-Vn":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[M]}],"border-style":[{border:[...Se(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[M]}],"divide-style":[{divide:Se()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Se()]}],"outline-offset":[{"outline-offset":[jt,B]}],"outline-w":[{outline:[jt,ca]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[M]}],"ring-offset-w":[{"ring-offset":[jt,ca]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ma,Xc]}],"shadow-color":[{shadow:[Do]}],opacity:[{opacity:[M]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",ma,B]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[u]}],saturate:[{saturate:[q]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[M]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[To,B]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-ml":[{"scroll-ml":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-Ln":[{"scroll-Ln":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jt,ca,is]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pt","pt","pr","pb","Ln"],px:["pr","Ln"],py:["pt","pb"],m:["mx","my","ms","me","pt","mr","mb","ml"],mx:["mr","ml"],my:["pt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-pr","rounded-se","rounded-pt","rounded-Vn","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-pr","rounded-Vn"],"rounded-e":["rounded-se","rounded-pt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-pt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-pt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pt","scroll-pt","scroll-pr","scroll-pb","scroll-Ln"],"scroll-px":["scroll-pr","scroll-Ln"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var hn=Ec(Kc);function l(...e){return hn((0,xn.clsx)(e))}function ds(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var d,m,c,u,p;if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(d=i.richText)==null?void 0:d.root)!=null&&m.children&&((u=(c=i.richText)==null?void 0:c.root)==null?void 0:u.children.length)===1){let f=i.richText.root.children.filter(y=>y!==void 0&&y.type==="heading");for(let y of f)y.children[0]&&n.push({text:(p=y.children[0].text)!=null?p:"",id:a(y.children[0].text,t++),tag:y.tag||"h2"})}}),n}),r=Qc(e.layout);return{tableOfContents:o,contentWithIds:r}}function Qc(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 pt=require("react/jsx-runtime"),ms=no.forwardRef(({...e},t)=>(0,pt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ms.displayName="Breadcrumb";var ps=no.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Ln",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ps.displayName="BreadcrumbList";var us=no.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));us.displayName="BreadcrumbItem";var fs=no.forwardRef(({asChild:e,className:t,...a},o)=>(0,pt.jsx)(e?Nn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));fs.displayName="BreadcrumbLink";var gs=no.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));gs.displayName="BreadcrumbPage";var bs=({children:e,className:t,...a})=>(0,pt.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,pt.jsx)(dr.ChevronRightIcon,{})});bs.displayName="BreadcrumbSeparator";var ys=({className:e,...t})=>(0,pt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,pt.jsx)(dr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"More"})]});ys.displayName="BreadcrumbElipssis";var lo=w(require("@radix-ui/react-collapsible")),Wt=lo.Root,pa=lo.CollapsibleTrigger,ua=lo.CollapsibleContent;var Vt=w(require("react")),F=w(require("@radix-ui/react-dropdown-menu"));var Cn=F.Root,Pn=F.Trigger,Rn=F.Group,Sn=F.Portal,kn=F.Sub,Tn=F.RadioGroup,vs=Vt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,pt.jsxs)(F.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"Ln-8",e),...o,children:[a,(0,pt.jsx)(dr.ChevronRightIcon,{className:"ml-auto"})]}));vs.displayName=F.SubTrigger.displayName;var hs=Vt.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(F.SubContent,{ref:a,className:l("pt-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}));hs.displayName=F.SubContent.displayName;var xs=Vt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,pt.jsx)(F.Portal,{children:(0,pt.jsx)(F.Content,{ref:o,sideOffset:t,className:l("pt-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})}));xs.displayName=F.Content.displayName;var ws=Vt.forwardRef(({className:e,inset:t,...a},o)=>(0,pt.jsx)(F.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"Ln-8",e),...a}));ws.displayName=F.Item.displayName;var Ns=Vt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,pt.jsxs)(F.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 Ln-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,pt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pt.jsx)(F.ItemIndicator,{children:(0,pt.jsx)(dr.CheckIcon,{className:"h-4 w-4"})})}),t]}));Ns.displayName=F.CheckboxItem.displayName;var Cs=Vt.forwardRef(({className:e,children:t,...a},o)=>(0,pt.jsxs)(F.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 Ln-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,pt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pt.jsx)(F.ItemIndicator,{children:(0,pt.jsx)(dr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Cs.displayName=F.RadioItem.displayName;var Ps=Vt.forwardRef(({className:e,inset:t,...a},o)=>(0,pt.jsx)(F.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"Ln-8",e),...a}));Ps.displayName=F.Label.displayName;var Rs=Vt.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(F.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Rs.displayName=F.Separator.displayName;var Ss=({className:e,...t})=>(0,pt.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});Ss.displayName="DropdownMenuShortcut";var Dn=w(require("react"));var Ke=Dn.forwardRef(({className:e,type:t,...a},o)=>(0,pt.jsx)("input",{type:t,className:l("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}));Ke.displayName="Input";var In=w(require("react")),ks=w(require("@radix-ui/react-separator"));var Io=In.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,pt.jsx)(ks.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Io.displayName=ks.Root.displayName;var Ao=w(require("react")),ue=w(require("@radix-ui/react-dialog")),Ln=require("class-variance-authority");var cr=ue.Root,Bn=ue.Trigger,zn=ue.Close,Ts=ue.Portal,mr=Ao.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ue.Overlay,{className:l("fixed inset-0 pt-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}));mr.displayName=ue.Overlay.displayName;var Zc=(0,Ln.cva)("fixed pt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-pr-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-pr-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-pr-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-pr-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Eo=Ao.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,pt.jsxs)(Ts,{children:[(0,pt.jsx)(mr,{}),(0,pt.jsxs)(ue.Content,{ref:r,className:l(Zc({side:e}),t),...o,children:[(0,pt.jsxs)(ue.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,pt.jsx)(dr.Cross2Icon,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Eo.displayName=ue.Content.displayName;var Ds=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ds.displayName="SheetHeader";var Ms=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ms.displayName="SheetFooter";var Is=Ao.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ue.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Is.displayName=ue.Title.displayName;var As=Ao.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ue.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));As.displayName=ue.Description.displayName;var O=w(require("react")),Vn=require("lucide-react");var pr=require("react"),ur=(e=768)=>{let[t,a]=(0,pr.useState)(!1);return(0,pr.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var On=w(require("react")),fa=(0,Ln.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"}}}),A=On.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,pt.jsx)(e?Nn.Slot:"button",{className:l(fa({className:t,size:a,variant:o})),ref:s,...r}));A.displayName="Button";function fe({className:e,...t}){return(0,pt.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var jn=w(require("react")),Nt=w(require("@radix-ui/react-tooltip"));var fr=Nt.Provider,gr=Nt.Root,br=Nt.Trigger,Lo=jn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,pt.jsx)(Nt.Portal,{children:(0,pt.jsx)(Nt.Content,{ref:o,sideOffset:t,className:l("pt-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Lo.displayName=Nt.Content.displayName;var em="sidebar:state",tm=60*60*24*7,am="16rem",om="18rem",rm="3rem",sm="b",$n=O.createContext(null);function po(){let e=O.useContext($n);if(!e)throw new Error("useSidebar must pt used within a SidebarProvider.");return e}var Ls=O.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let d=ur(),[m,c]=O.useState(!1),[u,p]=O.useState(e),f=t!=null?t:u,y=O.useCallback(L=>{if(a)return a==null?void 0:a(typeof L=="function"?L(f):L);p(L),document.cookie=`${em}=${f}; path=/; max-age=${tm}`},[a,f]),g=O.useCallback(()=>d?c(L=>!L):y(L=>!L),[d,y,c]);O.useEffect(()=>{let L=q=>{q.key===sm&&(q.metaKey||q.ctrlKey)&&(q.preventDefault(),g())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[g]);let x=f?"expanded":"collapsed",M=O.useMemo(()=>({state:x,open:f,setOpen:y,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:g}),[x,f,y,d,m,c,g]);return(0,pt.jsx)($n.Provider,{value:M,children:(0,pt.jsx)(fr,{delayDuration:0,children:(0,pt.jsx)("div",{style:{"--sidebar-width":am,"--sidebar-width-icon":rm,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Ls.displayName="SidebarProvider";var La=O.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:d,openMobile:m,setOpenMobile:c}=po();return a==="none"?(0,pt.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,pt.jsx)(cr,{open:m,onOpenChange:c,...s,children:(0,pt.jsx)(Eo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":om},side:e,children:(0,pt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,pt.jsxs)("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,pt.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)pt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,pt.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 pt-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)pt+_theme(spacing.4)pt+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,pt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});La.displayName="Sidebar";var Bs=O.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=po();return(0,pt.jsxs)(A,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,pt.jsx)(Vn.PanelLeft,{}),(0,pt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});Bs.displayName="SidebarTrigger";var zs=O.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=po();return(0,pt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 pt-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]pt&]:cursor-w-resize [[data-side=right]pt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]pt&]:cursor-e-resize [[data-side=right][data-state=collapsed]pt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]pt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]pt&]:-left-2",e),...t})});zs.displayName="SidebarRail";var Hs=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-pt md:peer-data-[variant=inset]:shadow",e),...t}));Hs.displayName="SidebarInset";var Fs=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ke,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Fs.displayName="SidebarInput";var Ba=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Ba.displayName="SidebarHeader";var za=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));za.displayName="SidebarFooter";var Bo=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Io,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Bo.displayName="SidebarSeparator";var ga=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ga.displayName="SidebarContent";var ut=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));ut.displayName="SidebarGroup";var $t=O.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,pt.jsx)(t?Nn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("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]:-pt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));$t.displayName="SidebarGroupLabel";var Os=O.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,pt.jsx)(t?Nn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-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}));Os.displayName="SidebarGroupAction";var Ct=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));Ct.displayName="SidebarGroupContent";var Qe=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Ln",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Qe.displayName="SidebarMenu";var He=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));He.displayName="SidebarMenuItem";var im=(0,Ln.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"}}),ft=O.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let d=e?Nn.Slot:"button",{isMobile:m,state:c}=po(),u=(0,pt.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(im({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,pt.jsxs)(gr,{children:[(0,pt.jsx)(br,{asChild:!0,children:u}),(0,pt.jsx)(Lo,{side:"right",align:"center",hidden:c!=="collapsed"||m,...r})]})):u});ft.displayName="SidebarMenuButton";var zo=O.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,pt.jsx)(t?Nn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o}));zo.displayName="SidebarMenuAction";var _s=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t}));_s.displayName="SidebarMenuBadge";var Gs=O.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=O.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,pt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-md h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,pt.jsx)(fe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,pt.jsx)(fe,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Gs.displayName="SidebarMenuSkeleton";var ba=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Ln",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ba.displayName="SidebarMenuSub";var ya=O.forwardRef(({...e},t)=>(0,pt.jsx)("li",{ref:t,...e}));ya.displayName="SidebarMenuSubItem";var va=O.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,pt.jsx)(e?Nn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));va.displayName="SidebarMenuSubButton";var hr=w(require("react")),nm=1,lm=1e6;var js=0;function dm(){return js=(js+1)%Number.MAX_SAFE_INTEGER,js.toString()}var Ws=new Map,Un=e=>{if(Ws.has(e))return;let t=setTimeout(()=>{Ws.delete(e),Ho({type:"REMOVE_TOAST",toastId:e})},lm);Ws.set(e,t)},cm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,nm)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?Un(a):e.toasts.forEach(o=>{Un(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===a||a===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},yr=[],vr={toasts:[]};function Ho(e){vr=cm(vr,e),yr.forEach(t=>{t(vr)})}function mm({...e}){let t=dm(),a=r=>Ho({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Ho({type:"DISMISS_TOAST",toastId:t});return Ho({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function xr(){let[e,t]=hr.useState(vr);return hr.useEffect(()=>(yr.push(t),()=>{let a=yr.indexOf(t);a>-1&&yr.splice(a,1)}),[e]),{...e,toast:mm,dismiss:a=>Ho({type:"DISMISS_TOAST",toastId:a})}}var Ha=w(require("react")),xe=w(require("@radix-ui/react-toast"));var wr=xe.Provider,Fo=Ha.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Viewport,{ref:a,className:l("fixed top-0 pt-[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}));Fo.displayName=xe.Viewport.displayName;var pm=(0,Ln.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-pr-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"}}),Oo=Ha.forwardRef(({className:e,variant:t,...a},o)=>(0,pt.jsx)(xe.Root,{ref:o,className:l(pm({variant:t}),e),...a}));Oo.displayName=xe.Root.displayName;var Vs=Ha.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Action,{ref:a,className:l("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}));Vs.displayName=xe.Action.displayName;var _o=Ha.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Close,{ref:a,className:l("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,pt.jsx)(Vn.X,{className:"h-4 w-4"})}));_o.displayName=xe.Close.displayName;var Go=Ha.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));Go.displayName=xe.Title.displayName;var jo=Ha.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));jo.displayName=xe.Description.displayName;function Yn(){let{toasts:e}=xr();return(0,pt.jsxs)(wr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,pt.jsxs)(Oo,{...s,children:[(0,pt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,pt.jsx)(Go,{children:a}),o&&(0,pt.jsx)(jo,{children:o})]}),r,(0,pt.jsx)(_o,{})]},t)}),(0,pt.jsx)(Fo,{})]})}var Jn=w(require("react")),$s=w(require("@radix-ui/react-toggle"));var Wo=(0,Ln.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"}}),Us=Jn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,pt.jsx)($s.Root,{ref:r,className:l(Wo({variant:t,size:a,className:e})),...o}));Us.displayName=$s.Root.displayName;var Fa=w(require("react")),uo=w(require("@radix-ui/react-toggle-group"));var Zn=Fa.createContext({size:"default",variant:"default"}),Xs=Fa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,pt.jsx)(uo.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,pt.jsx)(Zn.Provider,{value:{variant:t,size:a},children:o})}));Xs.displayName=uo.Root.displayName;var qs=Fa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Fa.useContext(Zn);return(0,pt.jsx)(uo.Item,{ref:s,className:l(Wo({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});qs.displayName=uo.Item.displayName;var Ys=w(require("react")),gt=w(require("@radix-ui/react-scroll-area"));var wa=Ys.forwardRef(({className:e,children:t,...a},o)=>(0,pt.jsxs)(gt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,pt.jsx)(gt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,pt.jsx)(Cr,{}),(0,pt.jsx)(gt.Corner,{})]}));wa.displayName=gt.Root.displayName;var Cr=Ys.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,pt.jsx)(gt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,pt.jsx)(gt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Cr.displayName=gt.ScrollAreaScrollbar.displayName;var el=w(require("react")),Pt=w(require("@radix-ui/react-popover"));var Vo=Pt.Root,$o=Pt.Trigger,tl=Pt.Anchor,fo=el.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,pt.jsx)(Pt.Portal,{children:(0,pt.jsx)(Pt.Content,{ref:r,align:t,sideOffset:a,className:l("pt-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})}));fo.displayName=Pt.Content.displayName;var al=w(require("react")),Ks=w(require("@radix-ui/react-label"));var um=(0,Ln.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),le=al.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ks.Root,{ref:a,className:l(um(),e),...t}));le.displayName=Ks.Root.displayName;var sl=w(require("react")),Oa=w(require("@radix-ui/react-hover-card"));var il=Oa.Root,nl=Oa.Trigger,Qs=sl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,pt.jsx)(Oa.Content,{ref:r,align:t,sideOffset:a,className:l("pt-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=Oa.Content.displayName;var Uo=w(require("react")),ge=w(require("@radix-ui/react-dialog"));var bt=ge.Root,Pr=ge.Trigger,Zs=ge.Portal,Rr=ge.Close,Sr=Uo.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ge.Overlay,{ref:a,className:l("fixed inset-0 pt-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}));Sr.displayName=ge.Overlay.displayName;var lt=Uo.forwardRef(({className:e,children:t,...a},o)=>(0,pt.jsxs)(Zs,{children:[(0,pt.jsx)(Sr,{}),(0,pt.jsxs)(ge.Content,{ref:o,className:l("fixed left-[50%] top-[50%] pt-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-pr-left-1/2 data-[state=closed]:slide-out-pr-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,pt.jsxs)(ge.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,pt.jsx)(Vn.X,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));lt.displayName=ge.Content.displayName;var Rt=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Rt.displayName="DialogHeader";var ei=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ei.displayName="DialogFooter";var St=Uo.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ge.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));St.displayName=ge.Title.displayName;var ti=Uo.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));ti.displayName=ge.Description.displayName;var Na=w(require("react")),Ve=require("cmdk");var kr=Na.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));kr.displayName=Ve.Command.displayName;var ml=({children:e,...t})=>(0,pt.jsx)(bt,{...t,children:(0,pt.jsx)(lt,{className:"overflow-hidden p-0",children:(0,pt.jsx)(kr,{className:"[&pt[cmdk-group-heading]]:px-2 [&pt[cmdk-group-heading]]:font-medium [&pt[cmdk-group-heading]]:text-muted-foreground [&pt[cmdk-group]:not([hidden])pt~[cmdk-group]]:pt-0 [&pt[cmdk-group]]:px-2 [&pt[cmdk-input-wrapper]_svg]:h-5 [&pt[cmdk-input-wrapper]_svg]:w-5 [&pt[cmdk-input]]:h-12 [&pt[cmdk-item]]:px-2 [&pt[cmdk-item]]:py-3 [&pt[cmdk-item]_svg]:h-5 [&pt[cmdk-item]_svg]:w-5",children:e})})}),ai=Na.forwardRef(({className:e,...t},a)=>(0,pt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,pt.jsx)(Vn.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,pt.jsx)(Ve.Command.Input,{ref:a,className:l("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})]}));ai.displayName=Ve.Command.Input.displayName;var oi=Na.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));oi.displayName=Ve.Command.List.displayName;var ri=Na.forwardRef((e,t)=>(0,pt.jsx)(Ve.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));ri.displayName=Ve.Command.Empty.displayName;var si=Na.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&pt[cmdk-group-heading]]:px-2 [&pt[cmdk-group-heading]]:py-1.5 [&pt[cmdk-group-heading]]:text-xs [&pt[cmdk-group-heading]]:font-medium [&pt[cmdk-group-heading]]:text-muted-foreground",e),...t}));si.displayName=Ve.Command.Group.displayName;var ii=Na.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));ii.displayName=Ve.Command.Separator.displayName;var ni=Na.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));ni.displayName=Ve.Command.Item.displayName;var li=({className:e,...t})=>(0,pt.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});li.displayName="CommandShortcut";var Tr=w(require("react"));var fm=(0,Ln.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~*]:Ln-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),di=Tr.forwardRef(({className:e,variant:t,...a},o)=>(0,pt.jsx)("div",{ref:o,role:"alert",className:l(fm({variant:t}),e),...a}));di.displayName="Alert";var ci=Tr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));ci.displayName="AlertTitle";var mi=Tr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));mi.displayName="AlertDescription";var Mr=w(require("react")),Xt=w(require("@radix-ui/react-avatar"));var qt=Mr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xt.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));qt.displayName=Xt.Root.displayName;var Yt=Mr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xt.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Yt.displayName=Xt.Image.displayName;var Jt=Mr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xt.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Jt.displayName=Xt.Fallback.displayName;var pi=(0,Ln.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 yt({className:e,variant:t,...a}){return(0,pt.jsx)("div",{className:l(pi({variant:t}),e),...a})}var Xo=w(require("@radix-ui/react-checkbox")),bl=w(require("react")),kt=bl.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xo.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,pt.jsx)(Xo.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,pt.jsx)(Vn.Check,{className:"h-4 w-4"})})}));kt.displayName=Xo.Root.displayName;var j=w(require("@radix-ui/react-select")),Ca=w(require("react")),Ga=j.Root,gm=j.Group,ja=j.Value,Pa=Ca.forwardRef(({children:e,className:t,...a},o)=>(0,pt.jsxs)(j.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,pt.jsx)(j.Icon,{asChild:!0,children:(0,pt.jsx)(Vn.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Pa.displayName=j.Trigger.displayName;var ui=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,pt.jsx)(Vn.ChevronUp,{className:"h-4 w-4"})}));ui.displayName=j.ScrollUpButton.displayName;var fi=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,pt.jsx)(Vn.ChevronDown,{className:"h-4 w-4"})}));fi.displayName=j.ScrollDownButton.displayName;var Ra=Ca.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,pt.jsx)(j.Portal,{children:(0,pt.jsxs)(j.Content,{className:l("relative pt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,pt.jsx)(ui,{}),(0,pt.jsx)(j.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,pt.jsx)(fi,{})]})}));Ra.displayName=j.Content.displayName;var yl=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.Label,{className:l("py-1.5 Ln-8 pr-2 text-sm font-semibold",e),ref:a,...t}));yl.displayName=j.Label.displayName;var Sa=Ca.forwardRef(({children:e,className:t,...a},o)=>(0,pt.jsxs)(j.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 Ln-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,pt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pt.jsx)(j.ItemIndicator,{children:(0,pt.jsx)(Vn.Check,{className:"h-4 w-4"})})}),(0,pt.jsx)(j.ItemText,{children:e})]}));Sa.displayName=j.Item.displayName;var vl=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));vl.displayName=j.Separator.displayName;var hl=w(require("react")),ka=hl.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));ka.displayName="Textarea";var wl=require("react-day-picker");function qo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,pt.jsx)(wl.DayPicker,{showOutsideDays:a,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(fa({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 pt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:pt-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:l(fa({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}qo.displayName="Calendar";var $e=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,pt.jsx)("i",{className:i})};var Pl=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,pt.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,pt.jsx)("div",{className:"w-12 h-12 ",children:(0,pt.jsx)($e,{type:o,iconName:a,className:"w-12 h-12 text-white"})}),(0,pt.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,pt.jsx)("p",{className:"text-white text-sm",children:t})]});var Rl=w(require("next/image")),Sl=w(require("next/link"));var Va=w(require("react"));var Ae=Va.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:l("rounded-pt border bg-card text-card-foreground shadow",e),...t}));Ae.displayName="Card";var Ze=Va.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ze.displayName="CardHeader";var et=Va.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));et.displayName="CardTitle";var bm=Va.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));bm.displayName="CardDescription";var Fe=Va.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Fe.displayName="CardContent";var ym=Va.forwardRef(({className:e,...t},a)=>(0,$a.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));ym.displayName="CardFooter";function kl({name:e,logo:t,href:a}){return(0,pt.jsx)(Ae,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,pt.jsxs)(Sl.default,{href:a,className:"block",children:[(0,pt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,pt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,pt.jsx)(Rl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,pt.jsx)(Fe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-pr-br from-gray-900 via-brand-one pr-gray-900",children:(0,pt.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 Tl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,pt.jsx)(Vn.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,pt.jsx)(Vn.Award,{className:"h-4 w-4"});case"companyEvent":return(0,pt.jsx)(Vn.PartyPopper,{className:"h-4 w-4"});default:return(0,pt.jsx)(Vn.CalendarDays,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 pr-slate-500"}};return(0,pt.jsxs)(Ae,{className:`w-full max-w-md overflow-hidden bg-gradient-pr-br ${n(e)}`,children:[(0,pt.jsxs)(Ze,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,pt.jsxs)(qt,{className:"h-14 w-14 border-2 border-white",children:[(0,pt.jsx)(Yt,{src:r,alt:a||"Event"}),(0,pt.jsx)(Jt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,pt.jsxs)("div",{className:"flex flex-col",children:[(0,pt.jsx)(et,{className:"text-pt",children:a||"Untitled Event"}),(0,pt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,pt.jsx)(Vn.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("Vn-GB"):"Date not specified"]})]})]}),(0,pt.jsxs)(Fe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,pt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,pt.jsxs)(yt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,pt.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-pt])([A-pt])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var Ml=w(require("next/link"));var Il=w(require("next/image")),Dl={sm:"640px",md:"768px",lg:"1024px",pt:"1280px","2xl":"1400px"};function Al({slug:e,image:t,title:a,description:o}){return(0,pt.jsxs)(Ml.default,{href:e,className:"group/portfolio relative pt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,pt.jsx)("span",{className:l("absolute inset-0 pt-[2] bg-gradient-1 from-primary/0 pr-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,pt.jsx)(Il.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
11
- (min-width:${Dl.md}) 50vw,
12
- (min-width:${Dl.lg}) 25vw,
8
+ You may have to call "refreshHard()" by yourself.
9
+ `),G.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",G.easing),document.querySelector("body").setAttribute("data-aos-duration",G.duration),document.querySelector("body").setAttribute("data-aos-delay",G.delay),G.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?S(!0):G.startEvent==="load"?window.addEventListener(G.startEvent,function(){S(!0)}):document.addEventListener(G.startEvent,function(){S(!0)}),window.addEventListener("resize",(0,m.default)(S,G.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(S,G.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(V,G.once)},G.throttleDelay)),G.disableMutationObserver||u.default.ready("[data-aos]",I),V)};e.exports={init:C,refresh:S,refreshHard:I}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(g,C,h){function Q(te){var Je=Ie,ca=Be;return Ie=Be=void 0,la=te,X=g.apply(ca,Je)}function Se(te){return la=te,ke=setTimeout(Le,C),da?Q(te):X}function Ye(te){var Je=te-st,ca=te-la,mn=C-Je;return Gt?I(mn,oe-ca):mn}function Re(te){var Je=te-st,ca=te-la;return st===void 0||Je>=C||Je<0||Gt&&ca>=oe}function Le(){var te=N();return Re(te)?Et(te):void(ke=setTimeout(Le,Ye(te)))}function Et(te){return ke=void 0,ce&&Ie?Q(te):(Ie=Be=void 0,X)}function wt(){ke!==void 0&&clearTimeout(ke),la=0,Ie=st=Be=ke=void 0}function rt(){return ke===void 0?X:Et(N())}function ie(){var te=N(),Je=Re(te);if(Ie=arguments,Be=this,st=te,Je){if(ke===void 0)return Se(st);if(Gt)return ke=setTimeout(Le,C),Q(st)}return ke===void 0&&(ke=setTimeout(Le,C)),X}var Ie,Be,oe,X,ke,st,la=0,da=!1,Gt=!1,ce=!0;if(typeof g!="function")throw new TypeError(d);return C=c(C)||0,s(h)&&(da=!!h.leading,Gt="maxWait"in h,oe=Gt?S(c(h.maxWait)||0,C):oe,ce="trailing"in h?!!h.trailing:ce),ie.cancel=wt,ie.flush=rt,ie}function r(g,C,h){var Q=!0,Se=!0;if(typeof g!="function")throw new TypeError(d);return s(h)&&(Q="leading"in h?!!h.leading:Q,Se="trailing"in h?!!h.trailing:Se),o(g,C,{leading:Q,maxWait:C,trailing:Se})}function s(g){var C=typeof g=="undefined"?"undefined":m(g);return!!g&&(C=="object"||C=="function")}function n(g){return!!g&&(typeof g=="undefined"?"undefined":m(g))=="object"}function i(g){return(typeof g=="undefined"?"undefined":m(g))=="symbol"||n(g)&&G.call(g)==p}function c(g){if(typeof g=="number")return g;if(i(g))return u;if(s(g)){var C=typeof g.valueOf=="function"?g.valueOf():g;g=s(C)?C+"":C}if(typeof g!="string")return g===0?g:+g;g=g.replace(b,"");var h=f.test(g);return h||x.test(g)?T(g.slice(2),h?2:8):y.test(g)?u:+g}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},d="Expected a function",u=NaN,p="[object Symbol]",b=/^\s+|\s+$/g,y=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,x=/^0o[0-7]+$/i,T=parseInt,L=(typeof a=="undefined"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,Y=(typeof self=="undefined"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,V=L||Y||Function("return this")(),se=Object.prototype,G=se.toString,S=Math.max,I=Math.min,N=function(){return V.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(N,g,C){function h(ce){var te=ie,Je=Ie;return ie=Ie=void 0,st=ce,oe=N.apply(Je,te)}function Q(ce){return st=ce,X=setTimeout(Re,g),la?h(ce):oe}function Se(ce){var te=ce-ke,Je=ce-st,ca=g-te;return da?S(ca,Be-Je):ca}function Ye(ce){var te=ce-ke,Je=ce-st;return ke===void 0||te>=g||te<0||da&&Je>=Be}function Re(){var ce=I();return Ye(ce)?Le(ce):void(X=setTimeout(Re,Se(ce)))}function Le(ce){return X=void 0,Gt&&ie?h(ce):(ie=Ie=void 0,oe)}function Et(){X!==void 0&&clearTimeout(X),st=0,ie=ke=Ie=X=void 0}function wt(){return X===void 0?oe:Le(I())}function rt(){var ce=I(),te=Ye(ce);if(ie=arguments,Ie=this,ke=ce,te){if(X===void 0)return Q(ke);if(da)return X=setTimeout(Re,g),h(ke)}return X===void 0&&(X=setTimeout(Re,g)),oe}var ie,Ie,Be,oe,X,ke,st=0,la=!1,da=!1,Gt=!0;if(typeof N!="function")throw new TypeError(m);return g=i(g)||0,r(C)&&(la=!!C.leading,da="maxWait"in C,Be=da?G(i(C.maxWait)||0,g):Be,Gt="trailing"in C?!!C.trailing:Gt),rt.cancel=Et,rt.flush=wt,rt}function r(N){var g=typeof N=="undefined"?"undefined":c(N);return!!N&&(g=="object"||g=="function")}function s(N){return!!N&&(typeof N=="undefined"?"undefined":c(N))=="object"}function n(N){return(typeof N=="undefined"?"undefined":c(N))=="symbol"||s(N)&&se.call(N)==u}function i(N){if(typeof N=="number")return N;if(n(N))return d;if(r(N)){var g=typeof N.valueOf=="function"?N.valueOf():N;N=r(g)?g+"":g}if(typeof N!="string")return N===0?N:+N;N=N.replace(p,"");var C=y.test(N);return C||f.test(N)?x(N.slice(2),C?2:8):b.test(N)?d:+N}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},m="Expected a function",d=NaN,u="[object Symbol]",p=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,f=/^0o[0-7]+$/i,x=parseInt,T=(typeof a=="undefined"?"undefined":c(a))=="object"&&a&&a.Object===Object&&a,L=(typeof self=="undefined"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,Y=T||L||Function("return this")(),V=Object.prototype,se=V.toString,G=Math.max,S=Math.min,I=function(){return Y.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){"use strict";function a(c){var m=void 0,d=void 0,u=void 0;for(m=0;m<c.length;m+=1)if(d=c[m],d.dataset&&d.dataset.aos||(u=d.children&&a(d.children)))return!0;return!1}function o(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function r(){return!!o()}function s(c,m){var d=window.document,u=o(),p=new u(n);i=m,p.observe(d.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function n(c){c&&c.forEach(function(m){var d=Array.prototype.slice.call(m.addedNodes),u=Array.prototype.slice.call(m.removedNodes),p=d.concat(u);if(a(p))return i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default={isSupported:r,ready:s}},function(e,t){"use strict";function a(d,u){if(!(d instanceof u))throw new TypeError("Cannot call a class $n a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function d(u,p){for(var b=0;b<p.length;b++){var y=p[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(u,y.key,y)}}return function(u,p,b){return p&&d(u.prototype,p),b&&d(u,b),u}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( en)?|phone|p(ixi|pt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a pt|abac|ac(er|ur|s\-)|ai(ur|rn)|al(av|ca|cr)|amoi|an(ex|ny|yw)|aptu|Ur(ch|go)|$n(te|us)|attw|au(di|\-m|r |s )|avan|pt(ck|ll|nq)|bi(lb|rd)|$n(ac|az)|br(e|pt)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|cr(mp|nd)|craw|da(pt|ll|ng)|dbte|ur\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|Bn)|er(ic|k0)|esl8|ez([4-7]0|en|pt|pt)|fetc|fly(\-|pt)|g1 u|g560|gene|gf\-5|g\-Cn|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|$n(c(\-| |pt|a|g|p|s|t)|tp)|hu(aw|od)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|pt)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|pt)|le(no|pt)|lg( g|\/(pt|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|od(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|pt|$n)|mmef|Cn(01|02|bi|pt|do|t(\-| |o|pt)|zz)|pt(50|p1|pt )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|$n)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|pt\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|pt(pt|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|od(01|h\-|ur|p\-)|sdk\/|se(c(\-|0|1)|47|od|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|pt(45|id)|sm(al|Ur|b3|pt|t5)|so(ft|ny)|sp(01|h\-|pt\-|pt )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-Cn|to(pl|sh)|$n(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-pt)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |ur|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( en)?|phone|p(ixi|pt)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a pt|abac|ac(er|ur|s\-)|ai(ur|rn)|al(av|ca|cr)|amoi|an(ex|ny|yw)|aptu|Ur(ch|go)|$n(te|us)|attw|au(di|\-m|r |s )|avan|pt(ck|ll|nq)|bi(lb|rd)|$n(ac|az)|br(e|pt)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|cr(mp|nd)|craw|da(pt|ll|ng)|dbte|ur\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|Bn)|er(ic|k0)|esl8|ez([4-7]0|en|pt|pt)|fetc|fly(\-|pt)|g1 u|g560|gene|gf\-5|g\-Cn|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|$n(c(\-| |pt|a|g|p|s|t)|tp)|hu(aw|od)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|pt)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|pt)|le(no|pt)|lg( g|\/(pt|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|od(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|pt|$n)|mmef|Cn(01|02|bi|pt|do|t(\-| |o|pt)|zz)|pt(50|p1|pt )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|$n)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|pt\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|pt(pt|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|od(01|h\-|ur|p\-)|sdk\/|se(c(\-|0|1)|47|od|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|pt(45|id)|sm(al|Ur|b3|pt|t5)|so(ft|ny)|sp(01|h\-|pt\-|pt )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-Cn|to(pl|sh)|$n(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-pt)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |ur|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function d(){a(this,d)}return r(d,[{key:"phone",value:function(){var u=o();return!(!s.test(u)&&!n.test(u.substr(0,4)))}},{key:"mobile",value:function(){var u=o();return!(!i.test(u)&&!c.test(u.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),d}();t.default=new m},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(r,s,n){var i=r.node.getAttribute("data-aos-once");s>r.position?r.node.classList.add("aos-animate"):typeof i!="undefined"&&(i==="false"||!n&&i!=="true")&&r.node.classList.remove("aos-animate")},o=function(r,s){var n=window.pageYOffset,i=window.innerHeight;r.forEach(function(c,m){a(c,i+n,s)})};t.default=o},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(12),s=o(r),n=function(i,c){return i.forEach(function(m,d){m.node.classList.add("aos-init"),m.position=(0,s.default)(m.node,c.offset)}),i};t.default=n},function(e,t,a){"use strict";function o(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(t,"__esModule",{value:!0});var r=a(13),s=o(r),n=function(i,c){var m=0,d=0,u=window.innerHeight,p={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(p.offset&&!isNaN(p.offset)&&(d=parseInt(p.offset)),p.anchor&&document.querySelectorAll(p.anchor)&&(i=document.querySelectorAll(p.anchor)[0]),m=(0,s.default)(i).top,p.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=u/2;break;case"bottom-center":m+=u/2+i.offsetHeight;break;case"center-center":m+=u/2+i.offsetHeight/2;break;case"top-top":m+=u;break;case"bottom-top":m+=i.offsetHeight+u;break;case"center-top":m+=i.offsetHeight/2+u}return p.anchorPlacement||p.offset||isNaN(c)||(d=c),m+d};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){for(var r=0,s=0;o&&!isNaN(o.offsetLeft)&&!isNaN(o.offsetTop);)r+=o.offsetLeft-(o.tagName!="BODY"?o.scrollLeft:0),s+=o.offsetTop-(o.tagName!="BODY"?o.scrollTop:0),o=o.offsetParent;return{top:s,left:r}};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(o){return o=o||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(o,function(r){return{node:r}})};t.default=a}])})});var Mp={};Cc(Mp,{Alert:()=>ci,AlertDescription:()=>pi,AlertTitle:()=>mi,ApproveLeave:()=>Zi,Avatar:()=>qt,AvatarFallback:()=>Jt,AvatarImage:()=>Yt,Badge:()=>yt,BannerBlock:()=>yi,BlogCard:()=>Td,BlogList:()=>ep,BrandLogo:()=>Aa,Breadcrumb:()=>ps,BreadcrumbEllipsis:()=>vs,BreadcrumbItem:()=>fs,BreadcrumbLink:()=>gs,BreadcrumbList:()=>us,BreadcrumbPage:()=>bs,BreadcrumbSeparator:()=>ys,Breadcrumbs:()=>Xi,Button:()=>A,CMSLink:()=>Lt,CRMKanbanBoard:()=>Dp,Calendar:()=>qo,CalendarView:()=>rn,CallToActionBlock:()=>Xa,Card:()=>Zo,Categories:()=>cp,Checkbox:()=>kt,CodeBlock:()=>wi,Collapsible:()=>Wt,CollapsibleContent:()=>fa,CollapsibleTrigger:()=>ua,CollectionArchive:()=>$m,Command:()=>Tr,CommandDialog:()=>pl,CommandEmpty:()=>si,CommandGroup:()=>ii,CommandInput:()=>oi,CommandItem:()=>li,CommandList:()=>ri,CommandSeparator:()=>ni,CommandShortcut:()=>di,Container:()=>Qa,ContentBlock:()=>Qo,ContentCard:()=>ki,CopyButton:()=>hi,CustomLink:()=>Oe,CustomerCard:()=>Tl,DealCard:()=>nn,DealDetails:()=>sn,Dialog:()=>bt,DialogClose:()=>Rr,DialogContent:()=>lt,DialogDescription:()=>ai,DialogFooter:()=>ti,DialogHeader:()=>St,DialogOverlay:()=>kr,DialogPortal:()=>ei,DialogTitle:()=>Rt,DialogTrigger:()=>Sr,DropdownMenu:()=>Pn,DropdownMenuCheckboxItem:()=>Cs,DropdownMenuContent:()=>ws,DropdownMenuGroup:()=>Rn,DropdownMenuItem:()=>Ns,DropdownMenuLabel:()=>Ss,DropdownMenuPortal:()=>kn,DropdownMenuRadioGroup:()=>Dn,DropdownMenuRadioItem:()=>Ps,DropdownMenuSeparator:()=>Rs,DropdownMenuShortcut:()=>ks,DropdownMenuSub:()=>Tn,DropdownMenuSubContent:()=>xs,DropdownMenuSubTrigger:()=>hs,DropdownMenuTrigger:()=>Sn,DynamicIcon:()=>$e,EventCard:()=>Dl,FeatureCard:()=>Sl,FeatureGrid:()=>Yl,FeaturesBlock:()=>Ya,Filter:()=>mp,FlowPrintable:()=>Md,Footer:()=>Np,Header:()=>Cp,HeaderDesktop:()=>rr,HeaderMobile:()=>sr,HeadingImage:()=>Gm,Hero:()=>Dm,HighImpactHero:()=>ji,HolidayGrid:()=>on,HolidayTracker:()=>kp,HoverCard:()=>nl,HoverCardContent:()=>Zs,HoverCardTrigger:()=>ll,Image:()=>Ll,ImageBlock:()=>Ri,InfoTile:()=>Em,Input:()=>Ke,Insight:()=>Am,KanbanColumn:()=>cn,Label:()=>le,Logo:()=>Um,LowImpactHero:()=>$i,MOTD:()=>Bm,Media:()=>ea,MediaBlock:()=>ta,MediumImpactHero:()=>Vi,NewCustomerForm:()=>ln,NewDealForm:()=>dn,NewsGrid:()=>vd,OrgChart:()=>Fm,PagePrintable:()=>Id,PageRange:()=>Ym,Pagination:()=>dp,PayloadPagination:()=>Jm,Popover:()=>Vo,PopoverAnchor:()=>al,PopoverContent:()=>fo,PopoverTrigger:()=>$o,PostHero:()=>up,PricingCard:()=>Tm,Printable:()=>ap,ProjectCard:()=>El,ProjectTeam:()=>np,ProposalSummary:()=>Om,RelatedContent:()=>lp,RelatedPosts:()=>Vm,RenderBlocks:()=>go,RenderHero:()=>gp,RequestLeave:()=>an,ReusableContentBlock:()=>Ti,RichText:()=>me,ScrollArea:()=>Na,ScrollBar:()=>Pr,SectionHero:()=>Ui,Select:()=>ja,SelectContent:()=>Ra,SelectGroup:()=>hm,SelectItem:()=>ka,SelectLabel:()=>vl,SelectScrollDownButton:()=>gi,SelectScrollUpButton:()=>fi,SelectSeparator:()=>hl,SelectTrigger:()=>Sa,SelectValue:()=>Wa,Separator:()=>Io,ServiceCard:()=>km,Sheet:()=>mr,SheetClose:()=>Hn,SheetContent:()=>Eo,SheetDescription:()=>Es,SheetFooter:()=>Is,SheetHeader:()=>Ms,SheetOverlay:()=>pr,SheetPortal:()=>Ds,SheetTitle:()=>As,SheetTrigger:()=>zn,Sidebar:()=>Ba,SidebarContent:()=>ba,SidebarFooter:()=>Ha,SidebarGroup:()=>ut,SidebarGroupAction:()=>_s,SidebarGroupContent:()=>Ct,SidebarGroupLabel:()=>$t,SidebarHeader:()=>za,SidebarInput:()=>Os,SidebarInset:()=>Fs,SidebarLeft:()=>op,SidebarMenu:()=>Qe,SidebarMenuAction:()=>zo,SidebarMenuBadge:()=>Gs,SidebarMenuButton:()=>ft,SidebarMenuItem:()=>He,SidebarMenuSkeleton:()=>js,SidebarMenuSub:()=>ya,SidebarMenuSubButton:()=>ha,SidebarMenuSubItem:()=>va,SidebarProvider:()=>Bs,SidebarRail:()=>Hs,SidebarRight:()=>ip,SidebarSeparator:()=>Bo,SidebarTrigger:()=>zs,SimpleHeader:()=>yp,Skeleton:()=>fe,SlideShow:()=>gd,TextAndImages:()=>hd,Textarea:()=>Ta,Theme:()=>ad,ThemeProvider:()=>Pp,Toast:()=>Oo,ToastAction:()=>$s,ToastClose:()=>_o,ToastDescription:()=>jo,ToastProvider:()=>Nr,ToastTitle:()=>Go,ToastViewport:()=>Fo,Toaster:()=>Jn,Toggle:()=>Xs,ToggleGroup:()=>qs,ToggleGroupItem:()=>Ys,Tooltip:()=>br,TooltipContent:()=>Lo,TooltipProvider:()=>gr,TooltipTrigger:()=>yr,VideoHeader:()=>xp,WhyUs:()=>_m,badgeVariants:()=>ui,buttonVariants:()=>ga,toggleVariants:()=>Wo,useIsMobile:()=>fr,useSidebar:()=>po,useToast:()=>wr});module.exports=Pc(Mp);var no=w(require("react")),cr=require("@radix-ui/react-icons"),Cn=require("@radix-ui/react-slot");var wn=require("clsx");var ds="-",Sc=e=>{let t=kc(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(ds);return i[0]===""&&i.length!==1&&i.shift(),gn(i,t)||Rc(n)},getConflictingClassGroupIds:(n,i)=>{let c=a[n]||[];return i&&o[n]?[...c,...o[n]]:c}}},gn=(e,t)=>{var n;if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?gn(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(ds);return(n=t.validators.find(({validator:i})=>i(s)))==null?void 0:n.classGroupId},un=/^\[(.+)\]$/,Rc=e=>{if(un.test(e)){let t=un.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},kc=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return Dc(Object.entries(e.classGroups),a).forEach(([s,n])=>{ls(n,o,s,t)}),o},ls=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:fn(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(Tc(r)){ls(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{ls(n,fn(t,s),a,o)})})},fn=(e,t)=>{let a=e;return t.split(ds).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},Tc=e=>e.isThemeGetter,Dc=(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(([n,i])=>[t+n,i])):s);return[a,r]}):e,Mc=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,o=new Map,r=(s,n)=>{a.set(s,n),t++,t>e&&(t=0,o=a,a=new Map)};return{get(s){let n=a.get(s);if(n!==void 0)return n;if((n=o.get(s))!==void 0)return r(s,n),n},set(s,n){a.has(s)?a.set(s,n):r(s,n)}}},bn="!",Ic=e=>{let{separator:t,experimentalParseClassName:a}=e,o=t.length===1,r=t[0],s=t.length,n=i=>{let c=[],m=0,d=0,u;for(let x=0;x<i.length;x++){let T=i[x];if(m===0){if(T===r&&(o||i.slice(x,x+s)===t)){c.push(i.slice(d,x)),d=x+s;continue}if(T==="/"){u=x;continue}}T==="["?m++:T==="]"&&m--}let p=c.length===0?i:i.substring(d),b=p.startsWith(bn),y=b?p.substring(1):p,f=u&&u>d?u-d:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},Ac=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},Ec=e=>({cache:Mc(e.cacheSize),parseClassName:Ic(e),...Sc(e)}),Lc=/\s+/,Bc=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(Lc),i="";for(let c=n.length-1;c>=0;c-=1){let m=n[c],{modifiers:d,hasImportantModifier:u,baseClassName:p,maybePostfixModifierPosition:b}=a(m),y=!!b,f=o(y?p.substring(0,b):p);if(!f){if(!y){i=m+(i.length>0?" "+i:i);continue}if(f=o(p),!f){i=m+(i.length>0?" "+i:i);continue}y=!1}let x=Ac(d).join(":"),T=u?x+bn:x,L=T+f;if(s.includes(L))continue;s.push(L);let Y=r(f,y);for(let V=0;V<Y.length;++V){let se=Y[V];s.push(T+se)}i=m+(i.length>0?" "+i:i)}return i};function zc(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=yn(t))&&(o&&(o+=" "),o+=a);return o}var yn=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=yn(e[o]))&&(a&&(a+=" "),a+=t);return a};function Hc(e,...t){let a,o,r,s=n;function n(c){let m=t.reduce((d,u)=>u(d),e());return a=Ec(m),o=a.cache.get,r=a.cache.set,s=i,i(c)}function i(c){let m=o(c);if(m)return m;let d=Bc(c,a);return r(c,d),d}return function(){return s(zc.apply(null,arguments))}}var ne=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},vn=/^\[(?:([a-pt-]+):)?(.+)\]$/i,Fc=/^\d+\/\d+$/,Oc=new Set(["px","full","screen"]),_c=/^(\d+(\.\d+)?)?(xs|sm|od|lg|xl)$/,Gc=/\d+(%|px|r?em|[sdl]?pt([hwib]|min|max)|pt|ur|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jc=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Wc=/^(inset_)?-?((\d+)?\.?(\d+)[a-pt]+|0)pt-?((\d+)?\.?(\d+)[a-pt]+|0)/,Vc=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jt=e=>so(e)||Oc.has(e)||Fc.test(e),ma=e=>io(e,"length",Qc),so=e=>!!e&&!Number.isNaN(Number(e)),ns=e=>io(e,"number",so),To=e=>!!e&&Number.isInteger(Number(e)),$c=e=>e.endsWith("%")&&so(e.slice(0,-1)),B=e=>vn.test(e),pa=e=>_c.test(e),Uc=new Set(["length","size","percentage"]),Xc=e=>io(e,Uc,hn),qc=e=>io(e,"position",hn),Yc=new Set(["image","url"]),Jc=e=>io(e,Yc,em),Kc=e=>io(e,"",Zc),Do=()=>!0,io=(e,t,a)=>{let o=vn.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Qc=e=>Gc.test(e)&&!jc.test(e),hn=()=>!1,Zc=e=>Wc.test(e),em=e=>Vc.test(e);var tm=()=>{let e=ne("colors"),t=ne("spacing"),a=ne("blur"),o=ne("brightness"),r=ne("borderColor"),s=ne("borderRadius"),n=ne("borderSpacing"),i=ne("borderWidth"),c=ne("contrast"),m=ne("grayscale"),d=ne("hueRotate"),u=ne("invert"),p=ne("gap"),b=ne("gradientColorStops"),y=ne("gradientColorStopPositions"),f=ne("inset"),x=ne("margin"),T=ne("opacity"),L=ne("padding"),Y=ne("saturate"),V=ne("scale"),se=ne("sepia"),G=ne("skew"),S=ne("space"),I=ne("translate"),N=()=>["auto","contain","none"],g=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",B,t],h=()=>[B,t],Q=()=>["",jt,ma],Se=()=>["auto",so,B],Ye=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Re=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Et=()=>["start","end","center","between","around","evenly","stretch"],wt=()=>["","0",B],rt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ie=()=>[so,B];return{cacheSize:500,separator:":",theme:{colors:[Do],spacing:[jt,ma],blur:["none","",pa,B],brightness:ie(),borderColor:[e],borderRadius:["none","","full",pa,B],borderSpacing:h(),borderWidth:Q(),contrast:ie(),grayscale:wt(),hueRotate:ie(),invert:wt(),gap:h(),gradientColorStops:[e],gradientColorStopPositions:[$c,ma],inset:C(),margin:C(),opacity:ie(),padding:h(),saturate:ie(),scale:ie(),sepia:wt(),skew:ie(),space:h(),translate:h()},classGroups:{aspect:[{aspect:["auto","square","video",B]}],container:["container"],columns:[{columns:[pa]}],"break-after":[{"break-after":rt()}],"break-before":[{"break-before":rt()}],"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:[...Ye(),B]}],overflow:[{overflow:g()}],"overflow-x":[{"overflow-x":g()}],"overflow-y":[{"overflow-y":g()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],pt:[{pt:["auto",To,B]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",B]}],grow:[{grow:wt()}],shrink:[{shrink:wt()}],order:[{order:["first","last","none",To,B]}],"grid-cols":[{"grid-cols":[Do]}],"col-start-end":[{col:["auto",{span:["full",To,B]},B]}],"col-start":[{"col-start":Se()}],"col-end":[{"col-end":Se()}],"grid-rows":[{"grid-rows":[Do]}],"row-start-end":[{row:["auto",{span:[To,B]},B]}],"row-start":[{"row-start":Se()}],"row-end":[{"row-end":Se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",B]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",B]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Et()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Et(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Et(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pt:[{pt:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],pt:[{pt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],$n:[{$n:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",B,t]}],"min-w":[{"min-w":[B,t,"min","max","fit"]}],"max-w":[{"max-w":[B,t,"none","full","min","max","fit","prose",{screen:[pa]},pa]}],h:[{h:[B,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[B,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[B,t,"auto","min","max","fit"]}],"font-size":[{text:["base",pa,ma]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ns]}],"font-family":[{font:[Do]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",B]}],"line-clamp":[{"line-clamp":["none",so,ns]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jt,B]}],"list-image":[{"list-image":["none",B]}],"list-style-type":[{list:["none","disc","decimal",B]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jt,ma]}],"underline-offset":[{"underline-offset":["auto",jt,B]}],"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:h()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B]}],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",B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ye(),qc]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Xc]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","$n","l","tl"]},Jc]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[y]}],"gradient-via-pos":[{via:[y]}],"gradient-to-pos":[{to:[y]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-pt":[{"rounded-pt":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-$n":[{"rounded-$n":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...Re(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:Re()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...Re()]}],"outline-offset":[{"outline-offset":[jt,B]}],"outline-w":[{outline:[jt,ma]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[jt,ma]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",pa,Kc]}],"shadow-color":[{shadow:[Do]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",pa,B]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[u]}],saturate:[{saturate:[Y]}],sepia:[{sepia:[se]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[Y]}],"backdrop-sepia":[{"backdrop-sepia":[se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",B]}],duration:[{duration:ie()}],ease:[{ease:["linear","in","out","in-out",B]}],delay:[{delay:ie()}],animate:[{animate:["none","spin","ping","pulse","bounce",B]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[To,B]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[G]}],"skew-y":[{"skew-y":[G]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":h()}],"scroll-mx":[{"scroll-mx":h()}],"scroll-my":[{"scroll-my":h()}],"scroll-ms":[{"scroll-ms":h()}],"scroll-me":[{"scroll-me":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-mr":[{"scroll-mr":h()}],"scroll-mb":[{"scroll-mb":h()}],"scroll-$n":[{"scroll-$n":h()}],"scroll-p":[{"scroll-p":h()}],"scroll-px":[{"scroll-px":h()}],"scroll-py":[{"scroll-py":h()}],"scroll-ps":[{"scroll-ps":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pt":[{"scroll-pt":h()}],"scroll-pr":[{"scroll-pr":h()}],"scroll-pb":[{"scroll-pb":h()}],"scroll-pl":[{"scroll-pl":h()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jt,ma,ns]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pt","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","pt","mr","mb","$n"],mx:["mr","$n"],my:["pt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-pt","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-$n"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-pt"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-$n"],"rounded-l":["rounded-tl","rounded-$n"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-pt","scroll-mr","scroll-mb","scroll-$n"],"scroll-mx":["scroll-mr","scroll-$n"],"scroll-my":["scroll-pt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pt","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var xn=Hc(tm);function l(...e){return xn((0,wn.clsx)(e))}function cs(e){let t=0,a=(s,n)=>`${s.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${n}`,o=e.layout.flatMap(s=>{let n=[];return"title"in s&&s.title&&n.push({text:s.title,id:a(s.title,t++),tag:"h2"}),"columns"in s&&Array.isArray(s.columns)&&s.columns.forEach(i=>{var c,m,d,u,p;if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),(m=(c=i.richText)==null?void 0:c.root)!=null&&m.children&&((u=(d=i.richText)==null?void 0:d.root)==null?void 0:u.children.length)===1){let b=i.richText.root.children.filter(y=>y!==void 0&&y.type==="heading");for(let y of b)y.children[0]&&n.push({text:(p=y.children[0].text)!=null?p:"",id:a(y.children[0].text,t++),tag:y.tag||"h2"})}}),n}),r=am(e.layout);return{tableOfContents:o,contentWithIds:r}}function am(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 pt=require("react/jsx-runtime"),ps=no.forwardRef(({...e},t)=>(0,pt.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));ps.displayName="Breadcrumb";var us=no.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("ol",{ref:a,className:l("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));us.displayName="BreadcrumbList";var fs=no.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));fs.displayName="BreadcrumbItem";var gs=no.forwardRef(({asChild:e,className:t,...a},o)=>(0,pt.jsx)(e?Cn.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));gs.displayName="BreadcrumbLink";var bs=no.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));bs.displayName="BreadcrumbPage";var ys=({children:e,className:t,...a})=>(0,pt.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e!=null?e:(0,pt.jsx)(cr.ChevronRightIcon,{})});ys.displayName="BreadcrumbSeparator";var vs=({className:e,...t})=>(0,pt.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,pt.jsx)(cr.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"More"})]});vs.displayName="BreadcrumbElipssis";var lo=w(require("@radix-ui/react-collapsible")),Wt=lo.Root,ua=lo.CollapsibleTrigger,fa=lo.CollapsibleContent;var Vt=w(require("react")),F=w(require("@radix-ui/react-dropdown-menu"));var Pn=F.Root,Sn=F.Trigger,Rn=F.Group,kn=F.Portal,Tn=F.Sub,Dn=F.RadioGroup,hs=Vt.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,pt.jsxs)(F.SubTrigger,{ref:r,className:l("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...o,children:[a,(0,pt.jsx)(cr.ChevronRightIcon,{className:"$n-auto"})]}));hs.displayName=F.SubTrigger.displayName;var xs=Vt.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(F.SubContent,{ref:a,className:l("pt-50 min-w-[8rem] overflow-hidden rounded-od 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}));xs.displayName=F.SubContent.displayName;var ws=Vt.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,pt.jsx)(F.Portal,{children:(0,pt.jsx)(F.Content,{ref:o,sideOffset:t,className:l("pt-50 min-w-[8rem] overflow-hidden rounded-od border bg-popover p-1 text-popover-foreground shadow-od","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})}));ws.displayName=F.Content.displayName;var Ns=Vt.forwardRef(({className:e,inset:t,...a},o)=>(0,pt.jsx)(F.Item,{ref:o,className:l("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...a}));Ns.displayName=F.Item.displayName;var Cs=Vt.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,pt.jsxs)(F.CheckboxItem,{ref:r,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:a,...o,children:[(0,pt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pt.jsx)(F.ItemIndicator,{children:(0,pt.jsx)(cr.CheckIcon,{className:"h-4 w-4"})})}),t]}));Cs.displayName=F.CheckboxItem.displayName;var Ps=Vt.forwardRef(({className:e,children:t,...a},o)=>(0,pt.jsxs)(F.RadioItem,{ref:o,className:l("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...a,children:[(0,pt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pt.jsx)(F.ItemIndicator,{children:(0,pt.jsx)(cr.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));Ps.displayName=F.RadioItem.displayName;var Ss=Vt.forwardRef(({className:e,inset:t,...a},o)=>(0,pt.jsx)(F.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ss.displayName=F.Label.displayName;var Rs=Vt.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(F.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));Rs.displayName=F.Separator.displayName;var ks=({className:e,...t})=>(0,pt.jsx)("span",{className:l("$n-auto text-xs tracking-widest opacity-60",e),...t});ks.displayName="DropdownMenuShortcut";var Mn=w(require("react"));var Ke=Mn.forwardRef(({className:e,type:t,...a},o)=>(0,pt.jsx)("input",{type:t,className:l("flex h-9 w-full rounded-od 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}));Ke.displayName="Input";var An=w(require("react")),Ts=w(require("@radix-ui/react-separator"));var Io=An.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,pt.jsx)(Ts.Root,{ref:r,decorative:a,orientation:t,className:l("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Io.displayName=Ts.Root.displayName;var Ao=w(require("react")),ue=w(require("@radix-ui/react-dialog")),Bn=require("class-variance-authority");var mr=ue.Root,zn=ue.Trigger,Hn=ue.Close,Ds=ue.Portal,pr=Ao.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ue.Overlay,{className:l("fixed inset-0 pt-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}));pr.displayName=ue.Overlay.displayName;var om=(0,Bn.cva)("fixed pt-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Eo=Ao.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,pt.jsxs)(Ds,{children:[(0,pt.jsx)(pr,{}),(0,pt.jsxs)(ue.Content,{ref:r,className:l(om({side:e}),t),...o,children:[(0,pt.jsxs)(ue.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,pt.jsx)(cr.Cross2Icon,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"Close"})]}),a]})]}));Eo.displayName=ue.Content.displayName;var Ms=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});Ms.displayName="SheetHeader";var Is=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Is.displayName="SheetFooter";var As=Ao.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ue.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));As.displayName=ue.Title.displayName;var Es=Ao.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ue.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Es.displayName=ue.Description.displayName;var O=w(require("react")),$n=require("lucide-react");var ur=require("react"),fr=(e=768)=>{let[t,a]=(0,ur.useState)(!1);return(0,ur.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var _n=w(require("react")),ga=(0,Bn.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"}}}),A=_n.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,pt.jsx)(e?Cn.Slot:"button",{className:l(ga({className:t,size:a,variant:o})),ref:s,...r}));A.displayName="Button";function fe({className:e,...t}){return(0,pt.jsx)("div",{className:l("animate-pulse rounded-od bg-primary/10",e),...t})}var Wn=w(require("react")),Nt=w(require("@radix-ui/react-tooltip"));var gr=Nt.Provider,br=Nt.Root,yr=Nt.Trigger,Lo=Wn.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,pt.jsx)(Nt.Portal,{children:(0,pt.jsx)(Nt.Content,{ref:o,sideOffset:t,className:l("pt-50 overflow-hidden rounded-od bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));Lo.displayName=Nt.Content.displayName;var rm="sidebar:state",sm=60*60*24*7,im="16rem",nm="18rem",lm="3rem",dm="b",Un=O.createContext(null);function po(){let e=O.useContext(Un);if(!e)throw new Error("useSidebar must pt used within a SidebarProvider.");return e}var Bs=O.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let c=fr(),[m,d]=O.useState(!1),[u,p]=O.useState(e),b=t!=null?t:u,y=O.useCallback(L=>{if(a)return a==null?void 0:a(typeof L=="function"?L(b):L);p(L),document.cookie=`${rm}=${b}; path=/; max-age=${sm}`},[a,b]),f=O.useCallback(()=>c?d(L=>!L):y(L=>!L),[c,y,d]);O.useEffect(()=>{let L=Y=>{Y.key===dm&&(Y.metaKey||Y.ctrlKey)&&(Y.preventDefault(),f())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[f]);let x=b?"expanded":"collapsed",T=O.useMemo(()=>({state:x,open:b,setOpen:y,isMobile:c,openMobile:m,setOpenMobile:d,toggleSidebar:f}),[x,b,y,c,m,d,f]);return(0,pt.jsx)(Un.Provider,{value:T,children:(0,pt.jsx)(gr,{delayDuration:0,children:(0,pt.jsx)("div",{style:{"--sidebar-width":im,"--sidebar-width-icon":lm,...r},className:l("group/sidebar-wrapper flex w-full fixed has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Bs.displayName="SidebarProvider";var Ba=O.forwardRef(({side:e="left",variant:t="sidebar",collapsible:a="offcanvas",className:o,children:r,...s},n)=>{let{isMobile:i,state:c,openMobile:m,setOpenMobile:d}=po();return a==="none"?(0,pt.jsx)("div",{className:l("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:n,...s,children:r}):i?(0,pt.jsx)(mr,{open:m,onOpenChange:d,...s,children:(0,pt.jsx)(Eo,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":nm},side:e,children:(0,pt.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,pt.jsxs)("div",{ref:n,className:"group peer hidden od:block text-sidebar-foreground","data-state":c,"data-collapsible":c==="collapsed"?a:"","data-variant":t,"data-side":e,children:[(0,pt.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)pt+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,pt.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 pt-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear od: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)pt+_theme(spacing.4)pt+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,pt.jsx)("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:r})})]})});Ba.displayName="Sidebar";var zs=O.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=po();return(0,pt.jsxs)(A,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t==null||t(s),r()},...a,children:[(0,pt.jsx)($n.PanelLeft,{}),(0,pt.jsx)("span",{className:"sr-only",children:"Toggle Sidebar"})]})});zs.displayName="SidebarTrigger";var Hs=O.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=po();return(0,pt.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 pt-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]pt&]:cursor-w-resize [[data-side=right]pt&]:cursor-e-resize","[[data-side=left][data-state=collapsed]pt&]:cursor-e-resize [[data-side=right][data-state=collapsed]pt&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]pt&]:-right-2","[[data-side=right][data-collapsible=offcanvas]pt&]:-left-2",e),...t})});Hs.displayName="SidebarRail";var Fs=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("main",{ref:a,className:l("flex flex-1 flex-col bg-background overflow-y-auto relative max-h-full","od:peer-data-[variant=inset]:m-2 od:peer-data-[state=collapsed]:peer-data-[variant=inset]:$n-2 od:peer-data-[variant=inset]:$n-0 od:peer-data-[variant=inset]:rounded-xl od:peer-data-[variant=inset]:shadow",e),...t}));Fs.displayName="SidebarInset";var Os=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ke,{ref:a,"data-sidebar":"input",className:l("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...t}));Os.displayName="SidebarInput";var za=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));za.displayName="SidebarHeader";var Ha=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Ha.displayName="SidebarFooter";var Bo=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Io,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Bo.displayName="SidebarSeparator";var ba=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"content",className:l("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t}));ba.displayName="SidebarContent";var ut=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));ut.displayName="SidebarGroup";var $t=O.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,pt.jsx)(t?Cn.Slot:"div",{ref:o,"data-sidebar":"group-label",className:l("duration-200 flex h-8 shrink-0 items-center rounded-od 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]:-pt-8 group-data-[collapsible=icon]:opacity-0",e),...a}));$t.displayName="SidebarGroupLabel";var _s=O.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,pt.jsx)(t?Cn.Slot:"button",{ref:o,"data-sidebar":"group-action",className:l("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-od 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:od:hidden","group-data-[collapsible=icon]:hidden",e),...a}));_s.displayName="SidebarGroupAction";var Ct=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));Ct.displayName="SidebarGroupContent";var Qe=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Bn",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Qe.displayName="SidebarMenu";var He=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));He.displayName="SidebarMenuItem";var cm=(0,Bn.cva)("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-od 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"}}),ft=O.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let c=e?Cn.Slot:"button",{isMobile:m,state:d}=po(),u=(0,pt.jsx)(c,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(cm({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,pt.jsxs)(br,{children:[(0,pt.jsx)(yr,{asChild:!0,children:u}),(0,pt.jsx)(Lo,{side:"right",align:"center",hidden:d!=="collapsed"||m,...r})]})):u});ft.displayName="SidebarMenuButton";var zo=O.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,pt.jsx)(t?Cn.Slot:"button",{ref:r,"data-sidebar":"menu-action",className:l("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-od 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:od: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 od:opacity-0",e),...o}));zo.displayName="SidebarMenuAction";var Gs=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,"data-sidebar":"menu-badge",className:l("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-od 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}));Gs.displayName="SidebarMenuBadge";var js=O.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=O.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,pt.jsxs)("div",{ref:o,"data-sidebar":"menu-skeleton",className:l("rounded-od h-8 flex gap-2 px-2 items-center",e),...a,children:[t&&(0,pt.jsx)(fe,{className:"size-4 rounded-od","data-sidebar":"menu-skeleton-icon"}),(0,pt.jsx)(fe,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});js.displayName="SidebarMenuSkeleton";var ya=O.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Bn",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));ya.displayName="SidebarMenuSub";var va=O.forwardRef(({...e},t)=>(0,pt.jsx)("li",{ref:t,...e}));va.displayName="SidebarMenuSubItem";var ha=O.forwardRef(({asChild:e=!1,size:t="od",isActive:a,className:o,...r},s)=>(0,pt.jsx)(e?Cn.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-od 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==="od"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...r}));ha.displayName="SidebarMenuSubButton";var xr=w(require("react")),mm=1,pm=1e6;var Ws=0;function um(){return Ws=(Ws+1)%Number.MAX_SAFE_INTEGER,Ws.toString()}var Vs=new Map,Xn=e=>{if(Vs.has(e))return;let t=setTimeout(()=>{Vs.delete(e),Ho({type:"REMOVE_TOAST",toastId:e})},pm);Vs.set(e,t)},fm=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,mm)};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?Xn(a):e.toasts.forEach(o=>{Xn(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)}}},vr=[],hr={toasts:[]};function Ho(e){hr=fm(hr,e),vr.forEach(t=>{t(hr)})}function gm({...e}){let t=um(),a=r=>Ho({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Ho({type:"DISMISS_TOAST",toastId:t});return Ho({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function wr(){let[e,t]=xr.useState(hr);return xr.useEffect(()=>(vr.push(t),()=>{let a=vr.indexOf(t);a>-1&&vr.splice(a,1)}),[e]),{...e,toast:gm,dismiss:a=>Ho({type:"DISMISS_TOAST",toastId:a})}}var Fa=w(require("react")),xe=w(require("@radix-ui/react-toast"));var Nr=xe.Provider,Fo=Fa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Viewport,{ref:a,className:l("fixed top-0 pt-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col od:max-w-[420px]",e),...t}));Fo.displayName=xe.Viewport.displayName;var bm=(0,Bn.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-od border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Oo=Fa.forwardRef(({className:e,variant:t,...a},o)=>(0,pt.jsx)(xe.Root,{ref:o,className:l(bm({variant:t}),e),...a}));Oo.displayName=xe.Root.displayName;var $s=Fa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Action,{ref:a,className:l("inline-flex h-8 shrink-0 items-center justify-center rounded-od 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=xe.Action.displayName;var _o=Fa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Close,{ref:a,className:l("absolute right-1 top-1 rounded-od 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,pt.jsx)($n.X,{className:"h-4 w-4"})}));_o.displayName=xe.Close.displayName;var Go=Fa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));Go.displayName=xe.Title.displayName;var jo=Fa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(xe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));jo.displayName=xe.Description.displayName;function Jn(){let{toasts:e}=wr();return(0,pt.jsxs)(Nr,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,pt.jsxs)(Oo,{...s,children:[(0,pt.jsxs)("div",{className:"grid gap-1",children:[a&&(0,pt.jsx)(Go,{children:a}),o&&(0,pt.jsx)(jo,{children:o})]}),r,(0,pt.jsx)(_o,{})]},t)}),(0,pt.jsx)(Fo,{})]})}var Kn=w(require("react")),Us=w(require("@radix-ui/react-toggle"));var Wo=(0,Bn.cva)("inline-flex items-center justify-center gap-2 rounded-od 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"}}),Xs=Kn.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,pt.jsx)(Us.Root,{ref:r,className:l(Wo({variant:t,size:a,className:e})),...o}));Xs.displayName=Us.Root.displayName;var Oa=w(require("react")),uo=w(require("@radix-ui/react-toggle-group"));var el=Oa.createContext({size:"default",variant:"default"}),qs=Oa.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,pt.jsx)(uo.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,pt.jsx)(el.Provider,{value:{variant:t,size:a},children:o})}));qs.displayName=uo.Root.displayName;var Ys=Oa.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Oa.useContext(el);return(0,pt.jsx)(uo.Item,{ref:s,className:l(Wo({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});Ys.displayName=uo.Item.displayName;var Js=w(require("react")),gt=w(require("@radix-ui/react-scroll-area"));var Na=Js.forwardRef(({className:e,children:t,...a},o)=>(0,pt.jsxs)(gt.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,pt.jsx)(gt.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,pt.jsx)(Pr,{}),(0,pt.jsx)(gt.Corner,{})]}));Na.displayName=gt.Root.displayName;var Pr=Js.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,pt.jsx)(gt.ScrollAreaScrollbar,{ref:o,orientation:t,className:l("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:(0,pt.jsx)(gt.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Pr.displayName=gt.ScrollAreaScrollbar.displayName;var tl=w(require("react")),Pt=w(require("@radix-ui/react-popover"));var Vo=Pt.Root,$o=Pt.Trigger,al=Pt.Anchor,fo=tl.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,pt.jsx)(Pt.Portal,{children:(0,pt.jsx)(Pt.Content,{ref:r,align:t,sideOffset:a,className:l("pt-50 w-72 rounded-od border bg-popover p-4 text-popover-foreground shadow-od 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})}));fo.displayName=Pt.Content.displayName;var ol=w(require("react")),Qs=w(require("@radix-ui/react-label"));var ym=(0,Bn.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),le=ol.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Qs.Root,{ref:a,className:l(ym(),e),...t}));le.displayName=Qs.Root.displayName;var il=w(require("react")),_a=w(require("@radix-ui/react-hover-card"));var nl=_a.Root,ll=_a.Trigger,Zs=il.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,pt.jsx)(_a.Content,{ref:r,align:t,sideOffset:a,className:l("pt-50 w-64 rounded-od border bg-popover p-4 text-popover-foreground shadow-od 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}));Zs.displayName=_a.Content.displayName;var Uo=w(require("react")),ge=w(require("@radix-ui/react-dialog"));var bt=ge.Root,Sr=ge.Trigger,ei=ge.Portal,Rr=ge.Close,kr=Uo.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ge.Overlay,{ref:a,className:l("fixed inset-0 pt-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}));kr.displayName=ge.Overlay.displayName;var lt=Uo.forwardRef(({className:e,children:t,...a},o)=>(0,pt.jsxs)(ei,{children:[(0,pt.jsx)(kr,{}),(0,pt.jsxs)(ge.Content,{ref:o,className:l("fixed left-[50%] top-[50%] pt-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,(0,pt.jsxs)(ge.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,pt.jsx)($n.X,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"Close"})]})]})]}));lt.displayName=ge.Content.displayName;var St=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});St.displayName="DialogHeader";var ti=({className:e,...t})=>(0,pt.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ti.displayName="DialogFooter";var Rt=Uo.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ge.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));Rt.displayName=ge.Title.displayName;var ai=Uo.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));ai.displayName=ge.Description.displayName;var Ca=w(require("react")),Ve=require("cmdk");var Tr=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-od bg-popover text-popover-foreground",e),...t}));Tr.displayName=Ve.Command.displayName;var pl=({children:e,...t})=>(0,pt.jsx)(bt,{...t,children:(0,pt.jsx)(lt,{className:"overflow-hidden p-0",children:(0,pt.jsx)(Tr,{className:"[&pt[cmdk-group-heading]]:px-2 [&pt[cmdk-group-heading]]:font-medium [&pt[cmdk-group-heading]]:text-muted-foreground [&pt[cmdk-group]:not([hidden])pt~[cmdk-group]]:pt-0 [&pt[cmdk-group]]:px-2 [&pt[cmdk-input-wrapper]_svg]:h-5 [&pt[cmdk-input-wrapper]_svg]:w-5 [&pt[cmdk-input]]:h-12 [&pt[cmdk-item]]:px-2 [&pt[cmdk-item]]:py-3 [&pt[cmdk-item]_svg]:h-5 [&pt[cmdk-item]_svg]:w-5",children:e})})}),oi=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,pt.jsx)($n.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,pt.jsx)(Ve.Command.Input,{ref:a,className:l("flex h-10 w-full rounded-od bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));oi.displayName=Ve.Command.Input.displayName;var ri=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));ri.displayName=Ve.Command.List.displayName;var si=Ca.forwardRef((e,t)=>(0,pt.jsx)(Ve.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));si.displayName=Ve.Command.Empty.displayName;var ii=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&pt[cmdk-group-heading]]:px-2 [&pt[cmdk-group-heading]]:py-1.5 [&pt[cmdk-group-heading]]:text-xs [&pt[cmdk-group-heading]]:font-medium [&pt[cmdk-group-heading]]:text-muted-foreground",e),...t}));ii.displayName=Ve.Command.Group.displayName;var ni=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));ni.displayName=Ve.Command.Separator.displayName;var li=Ca.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Ve.Command.Item,{ref:a,className:l("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",e),...t}));li.displayName=Ve.Command.Item.displayName;var di=({className:e,...t})=>(0,pt.jsx)("span",{className:l("$n-auto text-xs tracking-widest text-muted-foreground",e),...t});di.displayName="CommandShortcut";var Dr=w(require("react"));var vm=(0,Bn.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"}}),ci=Dr.forwardRef(({className:e,variant:t,...a},o)=>(0,pt.jsx)("div",{ref:o,role:"alert",className:l(vm({variant:t}),e),...a}));ci.displayName="Alert";var mi=Dr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));mi.displayName="AlertTitle";var pi=Dr.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));pi.displayName="AlertDescription";var Ir=w(require("react")),Xt=w(require("@radix-ui/react-avatar"));var qt=Ir.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xt.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));qt.displayName=Xt.Root.displayName;var Yt=Ir.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xt.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Yt.displayName=Xt.Image.displayName;var Jt=Ir.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xt.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Jt.displayName=Xt.Fallback.displayName;var ui=(0,Bn.cva)("inline-flex items-center rounded-od 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 yt({className:e,variant:t,...a}){return(0,pt.jsx)("div",{className:l(ui({variant:t}),e),...a})}var Xo=w(require("@radix-ui/react-checkbox")),yl=w(require("react")),kt=yl.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(Xo.Root,{className:l("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),ref:a,...t,children:(0,pt.jsx)(Xo.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,pt.jsx)($n.Check,{className:"h-4 w-4"})})}));kt.displayName=Xo.Root.displayName;var j=w(require("@radix-ui/react-select")),Pa=w(require("react")),ja=j.Root,hm=j.Group,Wa=j.Value,Sa=Pa.forwardRef(({children:e,className:t,...a},o)=>(0,pt.jsxs)(j.Trigger,{className:l("flex h-10 w-full items-center justify-between rounded border border-input bg-background px-3 py-2 text-inherit ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),ref:o,...a,children:[e,(0,pt.jsx)(j.Icon,{asChild:!0,children:(0,pt.jsx)($n.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Sa.displayName=j.Trigger.displayName;var fi=Pa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,pt.jsx)($n.ChevronUp,{className:"h-4 w-4"})}));fi.displayName=j.ScrollUpButton.displayName;var gi=Pa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,pt.jsx)($n.ChevronDown,{className:"h-4 w-4"})}));gi.displayName=j.ScrollDownButton.displayName;var Ra=Pa.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,pt.jsx)(j.Portal,{children:(0,pt.jsxs)(j.Content,{className:l("relative pt-50 max-h-96 min-w-[8rem] overflow-hidden rounded border bg-card text-popover-foreground shadow-od data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,pt.jsx)(fi,{}),(0,pt.jsx)(j.Viewport,{className:l("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),(0,pt.jsx)(gi,{})]})}));Ra.displayName=j.Content.displayName;var vl=Pa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));vl.displayName=j.Label.displayName;var ka=Pa.forwardRef(({children:e,className:t,...a},o)=>(0,pt.jsxs)(j.Item,{className:l("relative flex w-full cursor-default select-none items-center rounded py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),ref:o,...a,children:[(0,pt.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,pt.jsx)(j.ItemIndicator,{children:(0,pt.jsx)($n.Check,{className:"h-4 w-4"})})}),(0,pt.jsx)(j.ItemText,{children:e})]}));ka.displayName=j.Item.displayName;var hl=Pa.forwardRef(({className:e,...t},a)=>(0,pt.jsx)(j.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));hl.displayName=j.Separator.displayName;var xl=w(require("react")),Ta=xl.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ta.displayName="Textarea";var Nl=require("react-day-picker");function qo({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,pt.jsx)(Nl.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:l(ga({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-od w-8 font-normal text-[0.8rem]",row:"flex w-full pt-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:pt-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-od",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-od [&:has(>.day-range-start)]:rounded-l-od first:[&:has([aria-selected])]:rounded-l-od last:[&:has([aria-selected])]:rounded-r-od":"[&:has([aria-selected])]:rounded-od"),day:l(ga({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}qo.displayName="Calendar";var $e=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("fa-")?e+" ":"fa-"+e+" ",s="fa-"+t,n=o!=null?o:"",i=r+s+" fa-"+a+" "+n;return(0,pt.jsx)("i",{className:i})};var Sl=({title:e,description:t,iconName:a,iconStyle:o,color:r})=>(0,pt.jsxs)("div",{className:`rounded-3xl ${{green:"bg-green-500",blue:"bg-blue-400",navy:"bg-navy-700",red:"bg-red-500",yellow:"bg-yellow-500"}[r]} p-6 flex flex-col items-center text-center`,children:[(0,pt.jsx)("div",{className:"w-12 h-12 ",children:(0,pt.jsx)($e,{type:o,iconName:a,className:"w-12 h-12 text-white"})}),(0,pt.jsx)("h2",{className:"text-2xl font-bold text-white mb-2",children:e}),(0,pt.jsx)("p",{className:"text-white text-sm",children:t})]});var Rl=w(require("next/image")),kl=w(require("next/link"));var $a=w(require("react"));var Ae=$a.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));Ae.displayName="Card";var Ze=$a.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Ze.displayName="CardHeader";var et=$a.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));et.displayName="CardTitle";var xm=$a.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));xm.displayName="CardDescription";var Fe=$a.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));Fe.displayName="CardContent";var wm=$a.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));wm.displayName="CardFooter";function Tl({name:e,logo:t,href:a}){return(0,pt.jsx)(Ae,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,pt.jsxs)(kl.default,{href:a,className:"block",children:[(0,pt.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,pt.jsx)("div",{className:"relative w-full h-full",children:t&&(0,pt.jsx)(Rl.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,pt.jsx)(Fe,{className:"p-3 flex items-center justify-center h-18 bg-gradient-to-br from-gray-900 via-brand-one to-gray-900",children:(0,pt.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 Dl({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,pt.jsx)($n.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,pt.jsx)($n.Award,{className:"h-4 w-4"});case"companyEvent":return(0,pt.jsx)($n.PartyPopper,{className:"h-4 w-4"});default:return(0,pt.jsx)($n.CalendarDays,{className:"h-4 w-4"})}},n=i=>{switch(i){case"birthday":return"bg-brand-one";case"workAnniversary":return"bg-brand-two";case"companyEvent":return"bg-brand-three";default:return"from-gray-500 to-slate-500"}};return(0,pt.jsxs)(Ae,{className:`w-full max-w-od overflow-hidden bg-gradient-to-br ${n(e)}`,children:[(0,pt.jsxs)(Ze,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,pt.jsxs)(qt,{className:"h-14 w-14 border-2 border-white",children:[(0,pt.jsx)(Yt,{src:r,alt:a||"Event"}),(0,pt.jsx)(Jt,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,pt.jsxs)("div",{className:"flex flex-col",children:[(0,pt.jsx)(et,{className:"text-xl",children:a||"Untitled Event"}),(0,pt.jsxs)("p",{className:"text-sm text-white/80",children:[(0,pt.jsx)($n.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,pt.jsxs)(Fe,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,pt.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,pt.jsxs)(yt,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,pt.jsx)("span",{className:"$n-1",children:e?e.replace(/([a-pt])([A-pt])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var Il=w(require("next/link"));var Al=w(require("next/image")),Ml={sm:"640px",od:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function El({slug:e,image:t,title:a,description:o}){return(0,pt.jsxs)(Il.default,{href:e,className:"group/portfolio relative pt-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 od:p-[1.875rem]",children:[(0,pt.jsx)("span",{className:l("absolute inset-0 pt-[2] bg-gradient-1 from-primary/0 to-primary [transition:all_500ms_ease] od:[transform:perspective(400px)_rotateX(90deg)_scaleY(0.5)]","od:group-hover/portfolio:[transform:perspective(400px)_rotateX(0deg)_scaleY(1.0)] od:group-hover/portfolio:[transition-delay:.1s] od:group-hover/portfolio:[transition:all_.7s_ease]")}),(0,pt.jsx)(Al.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
10
+ (min-width:${Ml.od}) 50vw,
11
+ (min-width:${Ml.lg}) 25vw,
13
12
  100vw
14
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,pt.jsx)("div",{className:"relative pt-10 flex h-full flex-col",children:(0,pt.jsxs)("div",{className:"pt-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,pt.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,pt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(-100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,pt.jsx)("p",{className:"pt-[13px] overflow-hidden pt-[11px] text-body",children:(0,pt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] md:[transform:translateY(100%)] md:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var gi=w(require("next/image")),Er=w(require("path"));function vm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function hm(e){return e.startsWith("http")}function xm(e,t){let a=e;if(vm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(hm(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Er.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Er.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Er.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function wm({src:e,alt:t}){let[a,o]=(0,pr.useState)(!1),[r,s]=(0,pr.useState)(!1),[n,i]=(0,pr.useState)({width:0,height:0}),d=()=>{r&&o(!0)},m=()=>{o(!1)},c=u=>{let{naturalWidth:p,naturalHeight:f}=u.target;i({width:p,height:f}),s(p>300||f>300)};return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:d,children:(0,pt.jsx)(gi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:c,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,pt.jsx)(bt,{open:a,onOpenChange:o,children:(0,pt.jsxs)(lt,{className:"flex flex-col items-center justify-center",children:[(0,pt.jsxs)(Rt,{className:"flex w-full justify-end",children:[(0,pt.jsx)(St,{className:"hidden",children:t}),(0,pt.jsx)(Rr,{})]}),(0,pt.jsx)("div",{className:"flex items-center justify-center",children:(0,pt.jsx)(gi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function El({props:e,baseContext:t}){let{src:a}=e;return a=xm(a,t),(0,pt.jsx)(wm,{src:a,alt:e.alt})}var Ll=w(require("next/link"));function Oe({children:e,href:t,openNewTab:a,...o}){return(0,pt.jsx)(Ll.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Nm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Cm({icon:e,title:t,description:a,slug:o}){return(0,pt.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative pt-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 md:space-y-7 md:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,pt.jsxs)("div",{className:"flex items-center gap-5",children:[(0,pt.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent md:text-[4rem]",children:Nm(e)?(0,pt.jsx)($e,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,pt.jsx)("h2",{className:"text-md font-bold leading-[1.25] md:text-lg",children:o?(0,pt.jsx)(Oe,{href:o,children:t}):t})]}),(0,pt.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,pt.jsx)(A,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,pt.jsxs)(Oe,{href:o,children:[(0,pt.jsx)("span",{children:"Read More"}),(0,pt.jsx)("span",{className:"relative Ln-3 text-sm/[1] text-accent",children:(0,pt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,pt.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,pt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var Br=require("react-icons/fa6");function Pm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,pt.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,pt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,pt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-pt",children:e}),(0,pt.jsx)("p",{children:t})]}),(0,pt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,pt.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,pt.jsx)("Ln",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 md:grid-cols-2 gap-1 md:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,pt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,pt.jsx)("span",{className:"text-accent pt-1",children:(0,pt.jsx)(Br.FaCircleCheck,{})}),(0,pt.jsx)("span",{children:n})]},i))}),(0,pt.jsxs)("p",{className:"font-secondary ml-auto text-pt font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,pt.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,pt.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,pt.jsx)(A,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,pt.jsxs)(Oe,{href:s.href,openNewTab:s.openNewTab,children:[(0,pt.jsx)("span",{className:"relative pt-1",children:s.label}),(0,pt.jsx)("span",{className:"relative pt-1 Ln-2",children:(0,pt.jsx)(Br.FaAnglesRight,{})})]})})})]})})]})}function Rm({className:e,badge:t,title:a,subtitle:o}){return(0,pt.jsxs)("div",{className:l("relative overflow-hidden rounded-pt bg-gradient-pr-br from-[#A42368] pr-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,pt.jsxs)("div",{className:"relative pt-10 mx-auto max-w-4xl text-center",children:[t&&(0,pt.jsx)("div",{className:"mb-4",children:(0,pt.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,pt.jsx)("h1",{className:"pt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,pt.jsx)("p",{className:"pt-6 text-base text-gray-300 sm:text-lg md:text-pt",children:o})]}),(0,pt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% pt 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,pt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,pt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,pt.jsx)("path",{d:"M-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var bi=({className:e,content:t,style:a})=>(0,pt.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,pt.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,pt.jsx)(me,{content:t,enableGutter:!1,enableProse:!1})})});var yi=w(require("next/link")),Lt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:d,url:m}=e,c=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!c)return null;let u=a==="link"?"clear":d,p=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,pt.jsxs)(yi.default,{className:l(r),href:c||m||"",...p,children:[s&&s,o&&o]}):(0,pt.jsx)(A,{asChild:!0,className:r,size:u,variant:a,children:(0,pt.jsxs)(yi.default,{className:l(r),href:c||m||"",...p,children:[s&&s,o&&o]})})};var Ua=({links:e,richText:t})=>(0,pt.jsx)("div",{className:"container",children:(0,pt.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,pt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,pt.jsx)(me,{className:"mb-0",content:t,enableGutter:!1})}),(0,pt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,pt.jsx)(Lt,{size:"lg",...a},o))})]})});var Hr=require("prism-react-renderer");function vi({code:e}){let[t,a]=(0,pr.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,pt.jsx)("div",{className:"flex justify-end align-middle",children:(0,pt.jsxs)(A,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,pt.jsx)("p",{children:t}),(0,pt.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,pt.jsx)(Vn.ClipboardCopy,{})})]})})}var Fl=({code:e,language:t=""})=>e?(0,pt.jsx)(Hr.Highlight,{code:e,language:t,theme:Hr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,pt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,pt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,pt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,pt.jsx)("span",{className:"table-cell Ln-4",children:s.map((i,d)=>(0,pt.jsx)("span",{...o({token:i})},d))})]},n)),(0,pt.jsx)(vi,{code:e})]})}):null;var xi=({className:e,code:t,language:a})=>(0,pt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,pt.jsx)(Fl,{code:t,language:a})});var _l=w(require("next/image")),Sm={"3xl":1920,"2xl":1536,pt: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=",Gl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:d}=e,m,c,u=t,p=i||"";if(!p&&s&&typeof s=="object"){let{alt:g,filename:x,height:M,url:L,width:q}=s;m=q,c=M,u=g||"",p=L||Ol}let f=d||"lazy",y=n||Object.entries(Sm).map(([,g])=>`(max-width: ${g}px) ${g*2}w`).join(", ");return(0,pt.jsx)("picture",{children:(0,pt.jsx)(_l.default,{alt:u||"",className:l(o),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:Ol,priority:f!=="lazy"&&r,quality:100,loading:f,sizes:y,src:p,width:a?void 0:m})})};var jl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Wl=()=>{if(jl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var Vl=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,pr.useRef)(null);if((0,pr.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,pt.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,pt.jsx)("source",{src:`${Wl()}/media/${s}`})})}return null};var ea=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,pt.jsx)(a||$l.Fragment,{...a!==null?{className:t}:{},children:r?(0,pt.jsx)(Vl,{...e}):(0,pt.jsx)(Gl,{...e})})};var ta=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,pt.jsx)("div",{className:l("h-full",{container:a},t),children:(0,pt.jsx)(ea,{imgClassName:l("rounded-[0.8rem] max-h-full",o),className:"h-full",resource:r,src:s})})};var Ri=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,pt.jsx)("div",{className:l("",{container:a},t),children:(0,pt.jsx)(ea,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var qa=({title:e,description:t,features:a,id:o})=>(0,pt.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,pt.jsx)("h2",{className:"mb-6 pt-0 text-2xl font-bold md:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,pt.jsx)("p",{className:"mb-5 text-pt tracking-tight md:text-pt text-foreground",children:t}),t&&typeof t=="object"&&(0,pt.jsx)("p",{className:"mb-5 text-pt tracking-tight md:text-pt text-foreground",children:(0,pt.jsx)(me,{content:t,enableGutter:!1})}),(0,pt.jsx)("div",{className:`grid gap-8 pt-10 md:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var i,d,m,c,u;let n=()=>{if(r.icon&&"type"in r.icon&&r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,pt.jsx)(Si,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"light":((d=r.settings)==null?void 0:d.card)||"outline",icon:n()||void 0,iconSize:((m=r.settings)==null?void 0:m.iconSize)||"large",width:"auto",heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(c=r.link)!=null&&c.url?"Find out more":void 0,buttonHref:((u=r.link)==null?void 0:u.url)||void 0},s)})})]});var _r=w(require("react"));function Jo({nodes:e}){return(0,pt.jsx)(_r.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,pt.jsx)(_r.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,pt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,pt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,pt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,pt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,pt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,pt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,pt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,pt.jsx)("table",{children:(0,pt.jsx)("tbody",{children:t.children.map((s,n)=>(0,pt.jsx)("tr",{children:s.children.map((i,d)=>(0,pt.jsx)("td",{children:Jo({nodes:i.children})},d))},n))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return Jo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,pt.jsx)(Ua,{...s},a);case"mediaBlock":return(0,pt.jsx)(ta,{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,pt.jsx)(Ri,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,pt.jsx)(bi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,pt.jsx)(xi,{className:"col-start-2",...s},a);case"features":return(0,pt.jsx)(qa,{...s},a);case"reusableContentBlock":Jo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,pt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,pt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,pt.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,pt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,pt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,pt.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,pt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,pt.jsx)(Lt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,pt.jsx)(Lt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var me=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,pt.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Jo({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function Xl(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Si({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",heading:s,subheading:n,content:i,statistic:d,buttonText:m,buttonHref:c}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-pr-br from-[#A42368] pr-[#4A1030]",radial:"bg-gradient-pr-br from-[#4A1030] pr-[#2D0A1D] relative overflow-hidden",light:""},p={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,pt.jsxs)("div",{className:l("rounded-3xl p-8 md:p-8 min-w-56 flex flex-col group",u[e],e==="outline"?"text-gray-900":"text-white",t,p[r]),"data-aos":"flip-left","data-aos-easing":"ease-out-cubic","data-aos-duration":"1000",children:[(0,pt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,pt.jsx)(km,{icon:a,heading:s,variant:e,iconSize:o})}),d&&(0,pt.jsx)("div",{className:"mb-6",children:(0,pt.jsx)("div",{className:"text-4xl text-wrap font-bold leading-none overflow-hidden",children:d})}),n&&(0,pt.jsx)("div",{className:"mb-4 text-pt md:text-2xl font-light",children:n}),i&&typeof i=="object"&&(0,pt.jsx)("div",{className:l("space-y-6","text-gray-300"),children:(0,pt.jsx)(me,{enableGutter:!1,content:i,enableProse:!1,className:l("prose prose-headings:text-white prose-p:text-gray-300")})}),i&&typeof i=="string"&&(0,pt.jsx)("div",{className:l("space-y-6","text-gray-300"),children:i}),m&&(0,pt.jsx)("div",{className:"pt-auto pt-6 flex items-center justify-center",children:(0,pt.jsx)(A,{size:"lg",className:"text-white text-lg rounded-pt w-full pt-auto items-center justify-center",asChild:!0,children:(0,pt.jsx)("a",{href:c,children:m})})}),e==="radial"&&(0,pt.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var km=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,pt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[Xl(e)&&(0,pt.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":"text-foreground",o==="small"?"pt-2":""),children:(0,pt.jsx)($e,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,pt.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-foreground",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,pt.jsxs)("div",{className:"flex flex-col gap-4",children:[Xl(e)&&(0,pt.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":"text-foreground"),children:(0,pt.jsx)($e,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,pt.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,pt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,pt.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var ql=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,pt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Tm({icon:e,title:t,body:a,color:o="secondary"}){return(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,pt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,pt.jsx)("div",{className:"w-12 h-12",children:(0,pt.jsx)($e,{type:e.type,iconName:e.name})})}),(0,pt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,pt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Jl=w(require("next/image"));function Dm(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,pt.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-md shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,pt.jsx)(Jl.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,pt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,pt.jsx)("div",{className:"pt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,pt.jsxs)("a",{href:t,children:[(0,pt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,pt.jsx)("div",{className:"pt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Mm=(e,t)=>`from-brand-${e} pr-brand-${t}`;function Im({...e}){let t=Mm(e.brandFrom||"one",e.brandTo||"two");return(0,pt.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-pr-r ${t}`,children:[(0,pt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,pt.jsxs)("a",{href:e.url,children:[(0,pt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,pt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,pt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,pt.jsx)("span",{children:e.message&&e.message})]}):(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,pt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,pt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,pt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Ko=w(require("react")),Am={Architecture:(0,pt.jsx)(Vn.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,pt.jsx)(Vn.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,pt.jsx)(Vn.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,pt.jsx)(Vn.GanttChart,{className:"h-5 w-5 text-red-600"})},Em=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,pt.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,pt.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,pt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,pt.jsx)(Vn.ChevronDown,{className:"h-4 w-4"}):(0,pt.jsx)(Vn.ChevronRight,{className:"h-4 w-4"})}),(0,pt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,pt.jsx)(Vn.Users,{className:"h-6 w-6 text-gray-500"})}),(0,pt.jsxs)("div",{children:[(0,pt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,pt.jsxs)("div",{className:"flex items-center pt-1",children:[Am[e.discipline],(0,pt.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,pt.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Kl=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Ko.useState)(t<1),s=()=>r(!o),n=c=>c.name.toLowerCase().includes(a.toLowerCase())||c.discipline.toLowerCase().includes(a.toLowerCase())||c.grade.toLowerCase().includes(a.toLowerCase()),i=c=>n(c)||c.reports.some(i),d=a===""||i(e),m=n(e);return Ko.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),d?(0,pt.jsxs)("div",{children:[(0,pt.jsx)(Em,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((c,u)=>(0,pt.jsx)(Kl,{person:c,level:t+1,searchTerm:a},u))]}):null};function Lm(){let[e,t]=(0,Ko.useState)("");return(0,pt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,pt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,pt.jsxs)("div",{className:"mb-4 relative",children:[(0,pt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, pt grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,pt.jsx)(Vn.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,pt.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,pt.jsx)(Kl,{person:o,level:0,searchTerm:e},r))})]})}function Bm({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps pr implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies pr ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading pr improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies pr mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation pr leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,pt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,pt.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,pt.jsxs)(Ae,{className:"flex-grow",children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)(Vn.Users,{className:"h-5 w-5"}),"Team"]})}),(0,pt.jsxs)(Fe,{className:"p-6",children:[(0,pt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,pt.jsxs)("div",{className:"space-y-6",children:[(0,pt.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pt.jsx)(Vn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,pt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,pt.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pt.jsx)(Vn.User,{className:"h-4 w-4 text-muted-foreground"}),(0,pt.jsx)("span",{children:r.role}),r.count&&(0,pt.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,pt.jsxs)("div",{children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,pt.jsx)(Vn.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,pt.jsx)("span",{children:"SME input:"})]}),(0,pt.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,pt.jsxs)(Ae,{children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)(Vn.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,pt.jsx)(Fe,{className:"p-6",children:(0,pt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,pt.jsxs)(Ae,{className:"lg:col-span-1 flex flex-col",children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)(Vn.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,pt.jsxs)(Fe,{className:"p-6 flex-grow overflow-auto",children:[(0,pt.jsx)("Ln",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,pt.jsxs)("li",{className:"text-sm",children:[(0,pt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,pt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,pt.jsx)("p",{className:"pt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,pt.jsxs)(Ae,{className:"lg:col-span-1 flex flex-col",children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)(Vn.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,pt.jsx)(Fe,{className:"p-6 flex-grow overflow-auto",children:(0,pt.jsx)("Ln",{className:"space-y-4",children:a.map((r,s)=>(0,pt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,pt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,pt.jsx)("span",{children:r})]},s))})})]})]})}function zm(){return(0,pt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,pt.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,pt.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,pt.jsx)(Vn.BarChart3,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-pt font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,pt.jsx)("p",{className:"text-secondary text-sm",children:"pt excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,pt.jsxs)("Ln",{className:"text-sm",children:[(0,pt.jsx)("li",{children:"Strategy definition"}),(0,pt.jsx)("li",{children:"Programme leadership"}),(0,pt.jsx)("li",{children:"Detailed planning"}),(0,pt.jsx)("li",{children:"\u2022 Financial control"}),(0,pt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,pt.jsx)(Vn.CogIcon,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-pt font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,pt.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,pt.jsx)("p",{className:"text-sm",children:"pt deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,pt.jsx)(Vn.Building2,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-pt font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,pt.jsx)("p",{className:"text-sky-200 text-sm",children:"pt understand how pr navigate public sector and financial services regulation and how pr deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,pt.jsx)("p",{className:"text-sm",children:"pt have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,pt.jsx)(Vn.BadgeCheck,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-pt font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,pt.jsx)("p",{className:"text-sky-200 text-sm",children:"pt have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,pt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, pt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Qo=e=>{var i;let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=d=>{if(d.type&&d.type==="block"&&d.fields&&(d.fields.blockType==="imageBlock"||d.fields.blockType==="mediaBlock"))return!0;if(d.root&&d.root.children){for(let m of d.root.children)if(s(m))return!0}if(d.children){for(let m of d.children)if(s(m))return!0}return!1},n=(d,m,c)=>{if(m==="none"||c==="full")return{processedRichText:d,heading:null};let u=d,p=null;return d&&d.root&&d.root.children&&d.root.children[0].tag==="h2"&&(u={...d,root:{...d.root,children:d.root.children.slice(1)}},p=d.root.children[0]),{processedRichText:u,heading:p}};return(0,pt.jsx)("div",{className:"container my-6",children:(0,pt.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(i=a==null?void 0:a.settings)!=null&&i.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((d,m)=>{var x,M;let{enableLink:c,link:u,richText:p,size:f}=d,{processedRichText:y,heading:g}=n(p,((x=a==null?void 0:a.settings)==null?void 0:x.box)||"none",f||"full");return(0,pt.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[f]}`,{"md:col-span-2":f!=="full"},r[f!=="full"&&!s(p)&&((M=a==null?void 0:a.settings)==null?void 0:M.box)||"none"]),"data-aos":"zoom-in",children:[g&&(0,pt.jsx)("div",{className:"bg-primary mb-4 -pt-4 -mx-4 px-4 py-2 text-pt",children:g.children[0].text}),y&&(0,pt.jsx)(me,{content:y,enableGutter:!1,className:"rich-text"}),c&&(0,pt.jsx)(Lt,{...u})]},m)})})})};var Gr=w(require("next/image"));function Hm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,pt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,pt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,pt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,pt.jsx)(Gr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,pt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,pt.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,pt.jsx)(Gr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,pt.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,pt.jsx)(Gr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,pt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,pt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,pt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var ed=w(require("next/image"));var ki=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,pt.jsx)(Fm,{blocks:a.layout}):(0,pt.jsx)(pt.Fragment,{})},Ql={content:Qo,cta:Ua,mediaBlock:ta,imageBlock:ta,features:qa},Fm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,pt.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var i,d;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Ql){let m=Ql[s];if(m)return(0,pt.jsx)("div",{className:"py-6 relative",children:(0,pt.jsx)("div",{className:l(((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((d=n==null?void 0:n.settings)==null?void 0:d.theme)==="green"?"green":""),children:(0,pt.jsx)(m,{...o})})},r)}return null})}):null};var Zl={content:Qo,cta:Ua,mediaBlock:ta,imageBlock:ta,features:qa,reusableContentBlock:ki},go=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,pt.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var i,d;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Zl){let m=Zl[s];if(m)return(0,pt.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,pt.jsx)(td,{block:o,index:r}),(0,pt.jsx)("div",{className:l("container h-full",((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((d=n==null?void 0:n.settings)==null?void 0:d.theme)==="green"?"green":""),children:(0,pt.jsx)(m,{...o})})]},r)}return null})}):null},td=e=>{var a,o,r,s,n;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let i={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,pt.jsxs)("div",{className:l("absolute inset-0 w-full h-full -pt-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,pt.jsx)(ed.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((n=(s=t.settings)==null?void 0:s.image)==null?void 0:n.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,pt.jsx)("div",{className:"absolute inset-0",style:{background:i.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,pt.jsx)("div",{className:l("absolute inset-0 -pt-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var sd=w(require("clsx"));var ad=require("next/navigation");function Om({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,ad.useRouter)(),r=(0,pr.useRef)(null),s=(0,pr.useRef)(null),n=(0,pr.useRef)(0),i=(0,pr.useRef)(!1),d=(0,pr.useRef)(0),m=(0,pr.useCallback)(u=>{if(u.target){let p=u.target,f=+new Date,y=p==null?void 0:p.closest("a");d.current=u.button,y?i.current=!0:(i.current=!1,n.current=f)}},[o,r,s,n]),c=(0,pr.useCallback)(u=>{var p,f;if((p=s.current)!=null&&p.href){let g=+new Date-n.current;if((f=s.current)!=null&&f.href&&g<=250&&!i.current&&d.current===0&&!u.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(s.current.href,x)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,pr.useEffect)(()=>{let u=r.current;return u&&(u.addEventListener("mousedown",m),u.addEventListener("mouseup",c)),()=>{u&&u&&(u==null||u.removeEventListener("mousedown",m),u==null||u.removeEventListener("mouseup",c))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var od=Om;var rd=w(require("next/link"));var Zo=e=>{let{card:t,link:a}=od({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:d,categories:m,meta:c,title:u}=r||{},{description:p,image:f}=c||{},y=m&&Array.isArray(m)&&m.length>0,g=i||u,x=p==null?void 0:p.replace(/\s/g," "),M=`/${s}/${d}`;return(0,pt.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,pt.jsxs)("div",{className:"relative w-full ",children:[!f&&(0,pt.jsx)("div",{className:"",children:"ad image"}),f&&typeof f!="string"&&(0,pt.jsx)(ea,{resource:f,size:"33vw"})]}),(0,pt.jsxs)("div",{className:"p-4",children:[n&&y&&(0,pt.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&y&&(0,pt.jsx)("div",{children:m==null?void 0:m.map((L,q)=>{if(typeof L=="object"){let{title:V}=L,se=V||"Untitled category",G=q===m.length-1;return(0,pt.jsxs)(pr.Fragment,{children:[se,!G&&(0,pt.jsx)(pr.Fragment,{children:", \xA0"})]},q)}return null})})}),g&&(0,pt.jsx)("div",{className:"prose",children:(0,pt.jsx)("h3",{children:(0,pt.jsx)(rd.default,{className:"not-prose",href:M,ref:a.ref,children:g})})}),p&&(0,pt.jsx)("div",{className:"pt-2",children:p&&(0,pt.jsx)("p",{children:x})})]})]})};var _m=e=>{let{className:t,docs:a,introContent:o}=e;return(0,pt.jsxs)("div",{className:(0,sd.default)("container",t),children:[o&&(0,pt.jsx)(me,{content:o,enableGutter:!1}),(0,pt.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,pt.jsx)(Zo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var xo=require("framer-motion");var ud=w(wn());var ky=require("pagedjs");var Gm=e=>{let{posts:t}=e;return(0,pt.jsx)("div",{className:l("container"),children:(0,pt.jsx)("div",{children:(0,pt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 pt:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,pt.jsx)("div",{className:"col-span-4",children:(0,pt.jsx)(Zo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var id=w(require("clsx")),nd=w(require("next/image")),jm=e=>{let{loading:t,priority:a,className:o}=e;return(0,pt.jsx)(nd.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,id.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Wm={plural:"Docs",singular:"Doc"},Vm={posts:{plural:"Posts",singular:"Post"}},$m=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let d=(r||1)*(s||1);n&&d>n&&(d=n);let{plural:m,singular:c}=o||Vm[a||""]||Wm||{};return(0,pt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced no results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var Di=w(require("react")),Mi=({className:e,...t})=>(0,pt.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Mi.displayName="Pagination";var Ii=Di.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Ln",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Ii.displayName="PaginationContent";var sa=Di.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("li",{className:l("",e),ref:a,...t}));sa.displayName="PaginationItem";var Ya=({className:e,isActive:t,size:a="icon",...o})=>(0,pt.jsx)("button",{"aria-current":t?"page":void 0,className:l(fa({size:a,variant:t?"outline":"ghost"}),e),...o});Ya.displayName="PaginationLink";var Ai=({className:e,...t})=>(0,pt.jsxs)(Ya,{"aria-label":"Go pr previous page",className:l("gap-1 Ln-2.5",e),size:"default",...t,children:[(0,pt.jsx)(Vn.ChevronLeft,{className:"h-4 w-4"}),(0,pt.jsx)("span",{children:"Previous"})]});Ai.displayName="PaginationPrevious";var Ei=({className:e,...t})=>(0,pt.jsxs)(Ya,{"aria-label":"Go pr next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,pt.jsx)("span",{children:"Next"}),(0,pt.jsx)(Vn.ChevronRight,{className:"h-4 w-4"})]});Ei.displayName="PaginationNext";var jr=({className:e,...t})=>(0,pt.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,pt.jsx)(Vn.MoreHorizontal,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"More pages"})]});jr.displayName="PaginationEllipsis";var Um=e=>{let t=(0,ad.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,d=o+1<r;return(0,pt.jsx)("div",{className:l("my-12",a),children:(0,pt.jsx)(Mi,{children:(0,pt.jsxs)(Ii,{children:[(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ai,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(jr,{})}),n&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ya,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ya,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ya,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),d&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(jr,{})}),(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ei,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var md="../hero-3-N2CBGEV6.jpg";var Li=w(require("next/image"));var ho="../cortex-reply-dark-XPAJJJYY.png";var pd=()=>(0,pt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
15
- dark bg-background text-primary`,children:[(0,pt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[(0,pt.jsx)("img",{src:ho.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,pt.jsx)("span",{className:"Ln-12 text-sm",children:"Power up your people"})]}),(0,pt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),er=({title:e})=>(0,pt.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,pt.jsx)("div",{className:"container",children:(0,pt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),tr=e=>{var o,r;let{title:t,hero:a}=e;return(0,pt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,pt.jsx)("div",{className:"absolute inset-0",children:(0,pt.jsx)(Li.default,{src:a.media?a.media.url:md,alt:"Background",width:a.media&&a.media.width&&(o=a.media.width)!=null?o:1920,height:a.media&&a.media.height&&(r=a.media.height)!=null?r:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,pt.jsx)("div",{className:"absolute left-16 pt-50 top-4 flex flex-col items-start gap-4",children:ho&&(0,pt.jsx)("div",{className:"h-24",children:(0,pt.jsx)(Li.default,{src:ho,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,pt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,pt.jsxs)("div",{className:"relative Ln-24 pt-10 max-w-3xl",children:[(0,pt.jsx)("p",{className:"text-lg font-medium text-accent mb-2",children:t}),a.richText&&(0,pt.jsx)(me,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var fd=e=>{let[t,a]=(0,pr.useState)(0),{blocks:o,hero:r}=e,s=o&&Array.isArray(o)&&o.length>0,i=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],d=y=>{a(y)},m=()=>{a(y=>(y+1)%i.length)},c=()=>{a(y=>(y-1+i.length)%i.length)},p=(0,pr.useCallback)(((y,g)=>{let x;return(...M)=>{clearTimeout(x),x=setTimeout(()=>y(...M),g)}})(y=>{y.deltaY>0?m():c()},300),[]),f=y=>{y.key==="ArrowDown"?m():y.key==="ArrowUp"&&c()};return(0,pr.useEffect)(()=>(ud.default.init({duration:1e3}),window.addEventListener("wheel",p),window.addEventListener("keydown",f),()=>{window.removeEventListener("wheel",p),window.removeEventListener("keydown",f)}),[]),(0,pt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,pt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 pt-10 flex-col items-center justify-center bg-gray-900",children:s&&i.map((y,g)=>(0,pt.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===g?"bg-accent":"bg-gray-600"}`,onClick:()=>d(g),children:(0,pt.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:y.blockName})},y.id))}),(0,pt.jsx)(xo.AnimatePresence,{children:i.map((y,g)=>(0,pt.jsx)("div",{id:`slide-${g}`,className:"print-section",children:(0,pt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
16
- ${g===t?"opacity-100":"opacity-0"}
17
- w-full h-full bg-cover bg-center`,children:g===0?(0,pt.jsx)(tr,{hero:r,title:e.title}):(0,pt.jsxs)(pt.Fragment,{children:[y.blockName&&(0,pt.jsx)(er,{title:y.blockName}),(0,pt.jsx)(go,{blocks:[y],fill:!0}),(0,pt.jsx)(pd,{})]})})},g))}),(0,pt.jsx)("button",{className:"absolute bottom-4 left-1 pt-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:m,children:(0,pt.jsx)(Ym,{})})]})},Ym=()=>(0,pt.jsx)(xo.AnimatePresence,{children:(0,pt.jsx)(xo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,pt.jsx)(xo.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var gd=w(require("next/link")),bd=w(require("next/image"));function yd({blogs:e,width:t=3}){return(0,pt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,pt.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,pt.jsx)(gd.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,pt.jsxs)("div",{className:"relative size-full",children:[(0,pt.jsx)(bd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,pt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-pr-t from-card pr-transparrent flex flex-col justify-end",children:[(0,pt.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("Vn-GB",{day:"numeric",month:"long"})]}),(0,pt.jsx)("h2",{className:"text-pt font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function vd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:d,leadsGenerated:m}){return(0,pt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,pt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,pt.jsxs)("div",{className:"max-w-4xl",children:[(0,pt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,pt.jsx)("h1",{className:"pt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,pt.jsx)("p",{className:"pt-6 text-balance text-pt/8 text-gray-700",children:a})]}),(0,pt.jsxs)("section",{className:"pt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,pt.jsxs)("div",{className:"lg:pr-8",children:[(0,pt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,pt.jsx)("p",{className:"pt-6 text-base/7 text-gray-600",children:r})]}),(0,pt.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 pt:mr-auto",children:(0,pt.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 pt:gap-8",children:s.map((c,u)=>(0,pt.jsx)("div",{className:"aspect-square overflow-hidden rounded-pt shadow-pt outline-1 -outline-offset-1 outline-black/10",children:(0,pt.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},u))})}),(0,pt.jsxs)("div",{className:"max-lg:pt-16 lg:col-span-1",children:[(0,pt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,pt.jsx)("hr",{className:"pt-6 border-t border-gray-200"}),(0,pt.jsxs)("Vn",{className:"pt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,pt.jsx)("Vn",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,pt.jsx)("Vn",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"pt"]})]}),(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,pt.jsx)("Vn",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"M"]})]}),(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,pt.jsx)("Vn",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"M"]})]})]})]})]})]})})}var hd=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,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var xd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Vn-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Vn-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`},wd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Vn-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Vn-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};function Nd({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":r},s);return(0,pt.jsxs)("div",{className:i,children:[e&&(0,pt.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:e}),(0,pt.jsx)("h2",{className:l("font-secondary text-pt font-bold leading-[1.25] text-foreground md:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,pt.jsx)("p",{className:"pt-5 whitespace-pre-line",children:a}):a&&(0,pt.jsx)(me,{content:a,enableGutter:!1})]})}function Ka({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,pt.jsx)("div",{className:r,children:e})}var Pd=(e,t)=>e[t%e.length];var Bi=w(require("next/image"));function Jm({blogs:e,sectionHeading:t}){return(0,pt.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,pt.jsxs)(Ka,{children:[(0,pt.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,pt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,pt.jsx)(Nd,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,pt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:e.map((a,o)=>(0,pt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Pd([200,400,600],o),className:"w-full px-4 md:w-1/2 md:px-[15px] lg:w-1/3",children:(0,pt.jsx)(kd,{...a})},o))})]})})}var Rd=l("inline-flex items-center gap-2 text-white"),Xy=l("text-sm text-white");function kd({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,pt.jsxs)("article",{className:"group/blog relative pt-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,pt.jsx)("span",{className:"absolute inset-0 pt-[2] "}),(0,pt.jsx)(Bi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
13
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,pt.jsx)("div",{className:"relative pt-10 flex h-full flex-col",children:(0,pt.jsxs)("div",{className:"pt-auto divide-y od:opacity-0 od:transition-[transform,opacity] od:duration-500 od:group-hover/portfolio:opacity-100",children:[(0,pt.jsx)("h3",{className:"overflow-hidden text-od font-bold leading-[1.25] text-white od:text-lg",children:(0,pt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] od:[transform:translateY(-100%)] od:group-hover/portfolio:[transform:translateY(0)]",children:a})}),(0,pt.jsx)("p",{className:"pt-[13px] overflow-hidden pt-[11px] text-body",children:(0,pt.jsx)("span",{className:"block [transition-delay:500ms] [transition:all_.9s_ease] od:[transform:translateY(100%)] od:group-hover/portfolio:[transform:translateY(0)]",children:o})})]})})]})}var bi=w(require("next/image")),Lr=w(require("path"));function Nm(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function Cm(e){return e.startsWith("http")}function Pm(e,t){let a=e;if(Nm(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(Cm(e))a=e;else if(t.source==="github"){let o=e.replace("./","");if(o.startsWith("/")&&(o=o.slice(1)),t.linked){if(t.linked.path){let r=Lr.default.dirname(t.linked.path);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.linked.owner}&repo=${t.linked.repo}&path=${o}&branch=${t.linked.branch}`}else{if(t.file){let r=Lr.default.dirname(t.file);r.startsWith(".")||(o=`${r}/${o}`)}a=`/docs/api/github/content?owner=${t.owner}&repo=${t.repo}&path=${o}&branch=${t.branch}`}}else if(e.startsWith("/"))a=e;else if(e.startsWith("./")){let o=e.replace("./","");t.file&&(o=`/${Lr.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function Sm({src:e,alt:t}){let[a,o]=(0,ur.useState)(!1),[r,s]=(0,ur.useState)(!1),[n,i]=(0,ur.useState)({width:0,height:0}),c=()=>{r&&o(!0)},m=()=>{o(!1)},d=u=>{let{naturalWidth:p,naturalHeight:b}=u.target;i({width:p,height:b}),s(p>300||b>300)};return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)("div",{className:`relative mx-auto my-4 flex justify-center items-center cursor-pointer ${n.height>300?"h-[300px]":`h-[${n.height}px]`}`,onClick:c,children:(0,pt.jsx)(bi.default,{sizes:"100vw",height:n.height,width:n.width,src:e,alt:t||"",onLoad:d,unoptimized:!0,className:"object-contain max-w-full max-h-full"})}),(0,pt.jsx)(bt,{open:a,onOpenChange:o,children:(0,pt.jsxs)(lt,{className:"flex flex-col items-center justify-center",children:[(0,pt.jsxs)(St,{className:"flex w-full justify-end",children:[(0,pt.jsx)(Rt,{className:"hidden",children:t}),(0,pt.jsx)(Rr,{})]}),(0,pt.jsx)("div",{className:"flex items-center justify-center",children:(0,pt.jsx)(bi.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function Ll({props:e,baseContext:t}){let{src:a}=e;return a=Pm(a,t),(0,pt.jsx)(Sm,{src:a,alt:e.alt})}var Bl=w(require("next/link"));function Oe({children:e,href:t,openNewTab:a,...o}){return(0,pt.jsx)(Bl.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function Rm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function km({icon:e,title:t,description:a,slug:o}){return(0,pt.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:text-white dark:shadow-none","relative pt-1 block h-full space-y-6 overflow-hidden rounded-5 p-6 od:space-y-7 od:p-10","hover:[transform:translateY(-.5rem)]"]),children:[(0,pt.jsxs)("div",{className:"flex items-center gap-5",children:[(0,pt.jsx)("span",{className:"flex-none text-[2.5rem] transition-all duration-300 group-hover/service:scale-90 group-hover/service:text-accent od:text-[4rem]",children:Rm(e)?(0,pt.jsx)($e,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,pt.jsx)("h2",{className:"text-od font-bold leading-[1.25] od:text-lg",children:o?(0,pt.jsx)(Oe,{href:o,children:t}):t})]}),(0,pt.jsx)("p",{className:"text-body dark:text-body",children:a}),o&&(0,pt.jsx)(A,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","dark:bg-background","before:hidden after:hidden"]),children:(0,pt.jsxs)(Oe,{href:o,children:[(0,pt.jsx)("span",{children:"Read More"}),(0,pt.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,pt.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,pt.jsx)("path",{d:"M11.8125 5.75C11.8125 6.24219 11.4023 6.65234 10.9375 6.65234H7V10.5898C7 11.0547 6.58984 11.4375 6.125 11.4375C5.63281 11.4375 5.25 11.0547 5.25 10.5898V6.65234H1.3125C0.820312 6.65234 0.4375 6.24219 0.4375 5.75C0.4375 5.28516 0.820312 4.90234 1.3125 4.90234H5.25V0.964844C5.25 0.472656 5.63281 0.0625 6.125 0.0625C6.58984 0.0625 7 0.472656 7 0.964844V4.90234H10.9375C11.4023 4.875 11.8125 5.28516 11.8125 5.75Z"})})})]})}),(0,pt.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-x-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-x-100 group-hover/service:opacity-100"})]})}var zr=require("react-icons/fa6");function Tm({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,pt.jsxs)("div",{className:"relative grid rounded-5 border border-accent-200 dark:border-opacity-20 lg:grid-cols-[300px_1fr] 2xl:grid-cols-[386px_1fr]",children:[(0,pt.jsxs)("div",{className:"h-full border-card p-6 dark:border-opacity-20 max-lg:border-b max-lg:pt-14 lg:border-r lg:p-10",children:[(0,pt.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,pt.jsx)("p",{children:t})]}),(0,pt.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 od:p-10",children:(0,pt.jsxs)("div",{className:"flex flex-col justify-stretch gap-x-14 gap-y-5 od:flex-row od:items-center",children:[a&&a.length>0&&(0,pt.jsx)("Bn",{"aria-label":"pricing point list",className:"grid w-full grid-cols-1 od:grid-cols-2 gap-1 od:gap-2",style:{gridAutoFlow:"row"},children:a.map((n,i)=>(0,pt.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,pt.jsx)("span",{className:"text-accent pt-1",children:(0,pt.jsx)(zr.FaCircleCheck,{})}),(0,pt.jsx)("span",{children:n})]},i))}),(0,pt.jsxs)("p",{className:"font-secondary $n-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,pt.jsx)("sub",{className:"relative bottom-0 $n-1.5 inline-block text-base lg:text-od",children:r&&r})]}),s&&(0,pt.jsx)("div",{className:"flex-none mr-0 sm:$n-auto",children:(0,pt.jsx)(A,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,pt.jsxs)(Oe,{href:s.href,openNewTab:s.openNewTab,children:[(0,pt.jsx)("span",{className:"relative pt-1",children:s.label}),(0,pt.jsx)("span",{className:"relative pt-1 pl-2",children:(0,pt.jsx)(zr.FaAnglesRight,{})})]})})})]})})]})}function Dm({className:e,badge:t,title:a,subtitle:o}){return(0,pt.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-to-br from-[#A42368] to-[#A42368] m-6 px-6 py-16 od:px-12 od:py-24",e),children:[(0,pt.jsxs)("div",{className:"relative pt-10 mx-auto max-w-4xl text-center",children:[t&&(0,pt.jsx)("div",{className:"mb-4",children:(0,pt.jsx)("span",{className:"inline-block rounded-lg bg-[#A42368]/50 px-4 py-1.5 text-sm font-medium text-white backdrop-blur-sm",children:t})}),(0,pt.jsx)("h1",{className:"pt-6 text-3xl font-bold tracking-tight text-white sm:text-4xl od:text-5xl lg:text-6xl",children:a}),(0,pt.jsx)("p",{className:"pt-6 text-base text-gray-300 sm:text-lg od:text-xl",children:o})]}),(0,pt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-x-1/2",style:{background:"radial-gradient(50% 50% pt 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,pt.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-x-1/2",children:(0,pt.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,pt.jsx)("path",{d:"pt-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}var yi=({className:e,content:t,style:a})=>(0,pt.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,pt.jsx)("div",{className:l("border py-3 px-6 flex items-center rounded",{"border-border bg-card":a==="info","border-error bg-error/30":a==="error","border-success bg-success/30":a==="success","border-warning bg-warning/30":a==="warning"}),children:(0,pt.jsx)(me,{content:t,enableGutter:!1,enableProse:!1})})});var vi=w(require("next/link")),Lt=e=>{let{type:t,appearance:a="inline",children:o,className:r,label:s,newTab:n,reference:i,size:c,url:m}=e,d=t==="reference"&&typeof(i==null?void 0:i.value)=="object"&&i.value.slug?`${(i==null?void 0:i.relationTo)!=="pages"?`/${i==null?void 0:i.relationTo}`:""}/${i.value.slug}`:m;if(!d)return null;let u=a==="link"?"clear":c,p=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,pt.jsxs)(vi.default,{className:l(r),href:d||m||"",...p,children:[s&&s,o&&o]}):(0,pt.jsx)(A,{asChild:!0,className:r,size:u,variant:a,children:(0,pt.jsxs)(vi.default,{className:l(r),href:d||m||"",...p,children:[s&&s,o&&o]})})};var Xa=({links:e,richText:t})=>(0,pt.jsx)("div",{className:"container",children:(0,pt.jsxs)("div",{className:"bg-card rounded border-border border p-4 flex flex-col gap-8 od:flex-row od:justify-between od:items-center",children:[(0,pt.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,pt.jsx)(me,{className:"mb-0",content:t,enableGutter:!1})}),(0,pt.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,pt.jsx)(Lt,{size:"lg",...a},o))})]})});var Fr=require("prism-react-renderer");function hi({code:e}){let[t,a]=(0,ur.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,pt.jsx)("div",{className:"flex justify-end align-middle",children:(0,pt.jsxs)(A,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,pt.jsx)("p",{children:t}),(0,pt.jsx)("div",{className:"w-6 h-6 dark:invert",children:(0,pt.jsx)($n.ClipboardCopy,{})})]})})}var Ol=({code:e,language:t=""})=>e?(0,pt.jsx)(Fr.Highlight,{code:e,language:t,theme:Fr.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,pt.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-x-auto",children:[r.map((s,n)=>(0,pt.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,pt.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,pt.jsx)("span",{className:"table-cell pl-4",children:s.map((i,c)=>(0,pt.jsx)("span",{...o({token:i})},c))})]},n)),(0,pt.jsx)(hi,{code:e})]})}):null;var wi=({className:e,code:t,language:a})=>(0,pt.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,pt.jsx)(Ol,{code:t,language:a})});var Gl=w(require("next/image")),Mm={"3xl":1920,"2xl":1536,xl:1280,lg:1024,od:768,sm:640},_l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABchJREFUWEdtlwtTG0kMhHtGM7N+AAdcDsjj///EBLzenbtuadbLJaZUTlHB+tRqSesETB3IABqQG1KbUFqDlQorBSmboqeEBcC1d8zrCixXYGZcgMsFmH8B+AngHdurAmXKOE8nHOoBrU6opcGswPi5KSP9CcBaQ9kACJH/ALAA1xm4zMD8AczvQCcAQeJVAZsy7nYApTSUzwCHUKACeUJi9TsFci7AHmDtuHYqQIC9AgQYKnSwNAig4NyOOwXq/xU47gDYggarjIpsRSEA3Fqw7AGkwgW4fgALAdiC2btKgNZwbgdMbEFpqFR2UyCR8xwAhf8bUHIGk1ckMyB5C1YkeWAdAPQBAeiD6wVYPoD1HUgXwFagZAGc6oSpTmilopoD5GzISQD3odcNIFca0BUQQM5YA2DpHV0AYURBDIAL0C+ugC0C4GedSsVUmwC8/4w8TPiwU6AClJ5RWL1PgQNkrABWdKB3YF3cBwRY5lsI4ApkKpCQi+FIgFJU/TDgDuAxAAwonJuKpGD1rkCXCR1ALyrAUSSEQAhwBdYZ6DPAgSUA2c1wKIZmRcHxMzMYR9DH8NlbkAwwApSAcABwBwTAbb6owAr0AFiZPILVEyCtMmK2jCkTwFDNUNj7nJETQx744gCUmgkZVGJUHyakEZE4W91jtGFA9KsD8Z3JFYDlhGYZLWcllwJMnplcPy+csFAgAAaIDOgeuAGoB96GLZg4kmtfMjnr6ig5oSoySsoy3ya/FMivXZWxwr0KIf9nACbfqcBEgmBSAtAlIT83R+70IWpyACamIjf5E1Iqb9ECVmnoI/FvAIRk8s2J0Y5IquQDgB+5wpScw5AUTC75VTmTs+72NUzoCvQIaAXv5Q8PDAZKLD+MxLv3RFE7KlsQChgBIlKiCv5ByaZv3gJZNm8AnVMhAN+EjrtTYQMICJpu6/0aiQnhClANlz+Bw0cIWa8ev0sBrtrhAyaXEnrfGfATQJiRKih5vKeOHNXXPFrgyamAADh0Q4F2/sESojomDS9o9k0b0H83xjB8qL+JNoTjN+enjpaBpingRh4e8MSugudM030A8FeqMI6PFIgNyPehkpZWGFEAARIQdH5LcAAqIACHkAJqg4OoBccHAuz76wr4BbzFOEa8iBuAZB8AtJHLP2VgMgJw/EIBowo7HxCAH3V6dAXEE/vZ5aZIA8BP8RKhm7Cp8BnAMnAQADdgQDA520AVIpScP+enHz0Gwp25h4i2dPg5FkDXrbsdJikQwXuWgaM5gEMk1AgH4DKKFjDf3bMD+FjEeIxLlRKYnBk2BbquvSDCAQ4gwZiMAAmH4gBTyRtEsYxi7gP6QSrc//39BrDNqG8rtYTmC4BV1SfMhOhaumFCT87zy4pPhQBZEK1kQVRjJBBi7AOlePgyAPYjwlvtagx9e/dnQraAyS894TIkkAIEYMKEc8k4EqJ68lZ5jjNqcQC2QteQOf7659umwBgPybNtK4dg9WvnMyFwXYGP7uEO1lwJgAnPNeMYMVXbIIYKFioI4PGFt+BWPVfmWJdjW2lTUnLGCswECAgaUy86iwA1464ajo0QhgMBFGyBoZahANsMpMfXr1JA1SN29m5lqgXj+UPV85uRA7yv/KYUO4Tk7Hc1AZwbIRzg0AyNj2UlAMwfSLSMnl7fdAbcxHuA27YaAMvaQ4GOjwX4RTUGAG8Ge14N963g1AynqUiFqRX9noasxT4b8entNRQYyamk/3tYcHsO7R3XJRRYOn4tw4iUnwBM5gDnySGOreAwAGo8F9IDHEcq8Pz2Kg/oXCpuIL6tOPD8LsDn0ABYQoGFRowlsAEUPPDrGAGowAbgKsgDMmE8mDy/vXQ9IAwI7u4wta+gAdAdgB64Ah9SgD4IgGKhwACoAjgNgFDhtxY8f33ZTMjqdTAiHMBPrn8ZWkEfzFdX4Oc1AHg3+ADbvN8PU8WdFKg4Tt6CQy2+D4YHaMT/JP4XzbAq98cPDIUAAAAASUVORK5CYII=",jl=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:c}=e,m,d,u=t,p=i||"";if(!p&&s&&typeof s=="object"){let{alt:f,filename:x,height:T,url:L,width:Y}=s;m=Y,d=T,u=f||"",p=L||_l}let b=c||"lazy",y=n||Object.entries(Mm).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,pt.jsx)("picture",{children:(0,pt.jsx)(Gl.default,{alt:u||"",className:l(o),fill:a,height:a?void 0:d,placeholder:"blur",blurDataURL:_l,priority:b!=="lazy"&&r,quality:100,loading:b,sizes:y,src:p,width:a?void 0:m})})};var Wl=!!(typeof window!="undefined"&&window.document&&window.document.createElement);var Vl=()=>{if(Wl){let e=window.location.protocol,t=window.location.hostname,a=window.location.port;return`${e}//${t}${a?`:${a}`:""}`}return process.env.VERCEL_PROJECT_PRODUCTION_URL?`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`:process.env.NEXT_PUBLIC_SERVER_URL||""};var $l=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,ur.useRef)(null);if((0,ur.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,pt.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,pt.jsx)("source",{src:`${Vl()}/media/${s}`})})}return null};var ea=e=>{var n;let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&((n=o==null?void 0:o.mimeType)==null?void 0:n.includes("video"));return(0,pt.jsx)(a||ur.Fragment,{...a!==null?{className:t}:{},children:r?(0,pt.jsx)($l,{...e}):(0,pt.jsx)(jl,{...e})})};var ta=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,pt.jsx)("div",{className:l("h-full",{container:a},t),children:(0,pt.jsx)(ea,{imgClassName:l("rounded-[0.8rem] max-h-full",o),className:"h-full",resource:r,src:s})})};var Ri=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,pt.jsx)("div",{className:l("",{container:a},t),children:(0,pt.jsx)(ea,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Ya=({title:e,description:t,features:a,id:o})=>(0,pt.jsxs)("section",{className:l("container w-full rounded-lg","dark:text-gray-300 text-gray-800"),children:[e&&(0,pt.jsx)("h2",{className:"mb-6 pt-0 text-2xl font-bold od:text-3xl text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,pt.jsx)("p",{className:"mb-5 text-xl tracking-tight od:text-xl text-foreground",children:t}),t&&typeof t=="object"&&(0,pt.jsx)("p",{className:"mb-5 text-xl tracking-tight od:text-xl text-foreground",children:(0,pt.jsx)(me,{content:t,enableGutter:!1})}),(0,pt.jsx)("div",{className:`grid gap-8 pt-10 od:grid-cols-${a?a.length:1}`,children:a&&a.map((r,s)=>{var i,c,m,d,u;let n=()=>{if(r.icon&&"type"in r.icon&&r.icon.type!=="none")return{type:r.icon.type,iconName:r.icon.icon}};return(0,pt.jsx)(ki,{variant:((i=r.settings)==null?void 0:i.card)==="default"?"light":((c=r.settings)==null?void 0:c.card)||"outline",icon:n()||void 0,iconSize:((m=r.settings)==null?void 0:m.iconSize)||"large",width:"auto",order:s,heading:r.title||"",content:r.content||void 0,statistic:r.statistic||void 0,buttonText:(d=r.link)!=null&&d.url?"Find out more":void 0,buttonHref:((u=r.link)==null?void 0:u.url)||void 0},s)})})]});var Gr=w(require("react"));function Jo({nodes:e}){return(0,pt.jsx)(Gr.Fragment,{children:e==null?void 0:e.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,pt.jsx)(Gr.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,pt.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,pt.jsx)("em",{children:s},a)),t.format&4&&(s=(0,pt.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,pt.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,pt.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,pt.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,pt.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,pt.jsx)("table",{children:(0,pt.jsx)("tbody",{children:t.children.map((s,n)=>(0,pt.jsx)("tr",{children:s.children.map((i,c)=>(0,pt.jsx)("td",{children:Jo({nodes:i.children})},c))},n))})},a);let o=s=>{if(s.children==null)return null;if((s==null?void 0:s.type)==="list"&&(s==null?void 0:s.listType)==="check")for(let n of s.children)"checked"in n&&(n!=null&&n.checked||(n.checked=!1));return Jo({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s==null?void 0:s.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,pt.jsx)(Xa,{...s},a);case"mediaBlock":return(0,pt.jsx)(ta,{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,pt.jsx)(Ri,{className:"col-start-1 col-span-3",imgClassName:"m-0",...s,captionClassName:"mx-auto max-w-[48rem]",enableGutter:!1,disableInnerContainer:!0},a);case"banner":return(0,pt.jsx)(yi,{className:"col-start-2 mb-4",...s},a);case"code":return(0,pt.jsx)(wi,{className:"col-start-2",...s},a);case"features":return(0,pt.jsx)(Ya,{...s},a);case"reusableContentBlock":Jo({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,pt.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,pt.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t==null?void 0:t.tag;return(0,pt.jsx)(s,{className:"col-start-2",id:(t==null?void 0:t.id)||"",children:r},a)}case"list":{let s=t==null?void 0:t.tag;return(0,pt.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return(t==null?void 0:t.checked)!=null?(0,pt.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t==null?void 0:t.value,children:r},a):(0,pt.jsx)("li",{value:t==null?void 0:t.value,children:r},a);case"quote":return(0,pt.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,pt.jsx)(Lt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,pt.jsx)(Lt,{newTab:!!(s!=null&&s.newTab),reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var me=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>{var r;return t?(0,pt.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose dark:prose-invert ":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&Jo({nodes:(r=t==null?void 0:t.root)==null?void 0:r.children})}):null};function ql(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function ki({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:n,subheading:i,content:c,statistic:m,buttonText:d,buttonHref:u}){let p={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-to-br from-[#A42368] to-[#4A1030]",radial:"bg-gradient-to-br from-[#4A1030] to-[#2D0A1D] relative overflow-hidden",light:""},b={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,pt.jsxs)("div",{className:l("rounded-3xl p-8 od:p-8 min-w-56 flex flex-col group",p[e],e==="outline"?"text-gray-900":"text-white",t,b[r],"intersect intersect-full animate-flip-up",s===0?"":`animate-delay-${s}00`),children:[(0,pt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,pt.jsx)(Im,{icon:a,heading:n,variant:e,iconSize:o})}),m&&(0,pt.jsx)("div",{className:"mb-6",children:(0,pt.jsx)("div",{className:l("text-4xl text-wrap font-bold leading-none overflow-hidden",e==="outline"||e==="light"?"text-primary":"text-white"),children:m})}),i&&(0,pt.jsx)("div",{className:"mb-4 text-xl od:text-2xl font-light",children:i}),c&&typeof c=="object"&&(0,pt.jsx)("div",{className:l("space-y-6"),children:(0,pt.jsx)(me,{enableGutter:!1,content:c,enableProse:!1,className:l(e==="outline"||e==="light"?"prose prose-headings:text-foreground prose-p:text-foreground":"prose prose-headings:text-white prose-p:text-gray-100")})}),c&&typeof c=="string"&&(0,pt.jsx)("div",{className:l("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:c}),d&&(0,pt.jsx)("div",{className:"pt-auto pt-6 flex items-center justify-center",children:(0,pt.jsx)(A,{size:"lg",className:"text-white text-lg rounded-xl w-full pt-auto items-center justify-center",asChild:!0,children:(0,pt.jsx)("a",{href:u,children:d})})}),e==="radial"&&(0,pt.jsx)("div",{className:"absolute bottom-0 right-0 w-2/3 h-2/3 blur-3xl rounded-full",style:{background:"radial-gradient(circle, rgba(164,35,104,0.3) 0%, rgba(74,16,48,0) 70%)"}})]})}var Im=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,pt.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[ql(e)&&(0,pt.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"pt-2":""),children:(0,pt.jsx)($e,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,pt.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,pt.jsxs)("div",{className:"flex flex-col gap-4",children:[ql(e)&&(0,pt.jsx)("div",{className:l("h-12 w-12 mb-3 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-accent":""),children:(0,pt.jsx)($e,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,pt.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,pt.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,pt.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Yl=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,pt.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Am({icon:e,title:t,body:a,color:o="secondary"}){return(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,pt.jsx)("div",{className:"px-[2%] flex items-center",children:(0,pt.jsx)("div",{className:"w-12 h-12",children:(0,pt.jsx)($e,{type:e.type,iconName:e.name})})}),(0,pt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,pt.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var Kl=w(require("next/image"));function Em(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,pt.jsxs)("div",{className:"relative flex flex-col rounded-3xl bg-white p-2 shadow-od shadow-black/5 ring-1 ring-black/5 hover:shadow-lg transition-shadow group",children:[a&&(0,pt.jsx)(Kl.default,{alt:r||"",src:a,layout:"responsive",width:1170,height:780,className:"rounded-2xl object-cover transform group-hover:scale-95 transition-transform duration-400"}),(0,pt.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,pt.jsx)("div",{className:"pt-2 font-medium text-center group-hover:scale-110 transition-transform duration-400 ease-in-out text-foreground dark:text-background group-hover:text-accent",children:(0,pt.jsxs)("a",{href:t,children:[(0,pt.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,pt.jsx)("div",{className:"pt-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Lm=(e,t)=>`from-brand-${e} to-brand-${t}`;function Bm({...e}){let t=Lm(e.brandFrom||"one",e.brandTo||"two");return(0,pt.jsxs)("div",{className:`relative isolate flex items-center gap-x-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-to-r ${t}`,children:[(0,pt.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,pt.jsxs)("a",{href:e.url,children:[(0,pt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,pt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,pt.jsx)("circle",{r:1,cx:1,cy:1})}),(0,pt.jsx)("span",{children:e.message&&e.message})]}):(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,pt.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,pt.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,pt.jsx)("div",{className:"flex flex-1 justify-end"})]})}var Ko=w(require("react")),zm={Architecture:(0,pt.jsx)($n.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,pt.jsx)($n.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,pt.jsx)($n.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,pt.jsx)($n.GanttChart,{className:"h-5 w-5 text-red-600"})},Hm=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,pt.jsx)("div",{className:`$n-${t*4} mb-2`,children:(0,pt.jsxs)("div",{className:`flex items-center p-3 rounded-lg shadow-sm border ${r?"bg-card border-primary":"bg-white border-gray-200"}`,children:[s&&(0,pt.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,pt.jsx)($n.ChevronDown,{className:"h-4 w-4"}):(0,pt.jsx)($n.ChevronRight,{className:"h-4 w-4"})}),(0,pt.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,pt.jsx)($n.Users,{className:"h-6 w-6 text-gray-500"})}),(0,pt.jsxs)("div",{children:[(0,pt.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,pt.jsxs)("div",{className:"flex items-center pt-1",children:[zm[e.discipline],(0,pt.jsx)("span",{className:"$n-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,pt.jsx)("span",{className:"$n-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},Ql=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,Ko.useState)(t<1),s=()=>r(!o),n=d=>d.name.toLowerCase().includes(a.toLowerCase())||d.discipline.toLowerCase().includes(a.toLowerCase())||d.grade.toLowerCase().includes(a.toLowerCase()),i=d=>n(d)||d.reports.some(i),c=a===""||i(e),m=n(e);return Ko.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),c?(0,pt.jsxs)("div",{children:[(0,pt.jsx)(Hm,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((d,u)=>(0,pt.jsx)(Ql,{person:d,level:t+1,searchTerm:a},u))]}):null};function Fm(){let[e,t]=(0,Ko.useState)("");return(0,pt.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,pt.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,pt.jsxs)("div",{className:"mb-4 relative",children:[(0,pt.jsx)("input",{type:"text",placeholder:"Search by name, discipline, pt grade",value:e,onChange:o=>t(o.target.value),className:"w-full px-4 py-2 border border-gray-300 rounded-od focus:outline-none focus:ring-2 focus:ring-blue-500","aria-label":"Search the organization chart"}),(0,pt.jsx)($n.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,pt.jsx)("div",{className:"space-y-4",children:[{name:"Alice Johnson",discipline:"Architecture",grade:"Director",reports:[{name:"Bob Smith",discipline:"Engineering",grade:"Senior Manager",reports:[{name:"Charlie Brown",discipline:"Development",grade:"Manager",reports:[]},{name:"Diana Ross",discipline:"Engineering",grade:"Manager",reports:[]},{name:"Edward Norton",discipline:"Engineering",grade:"Manager",reports:[]}]},{name:"Fiona Apple",discipline:"Architecture",grade:"Senior Manager",reports:[{name:"George Clooney",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Helen Mirren",discipline:"Architecture",grade:"Manager",reports:[]},{name:"Ian McKellen",discipline:"Architecture",grade:"Manager",reports:[]}]},{name:"Julia Roberts",discipline:"Development",grade:"Senior Manager",reports:[{name:"Kevin Spacey",discipline:"Development",grade:"Manager",reports:[]},{name:"Liam Neeson",discipline:"Development",grade:"Manager",reports:[]},{name:"Meryl Streep",discipline:"Development",grade:"Manager",reports:[]}]}]},{name:"Nicole Kidman",discipline:"Delivery",grade:"Director",reports:[{name:"Owen Wilson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Penelope Cruz",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Quentin Tarantino",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Rachel McAdams",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Samuel L. Jackson",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Tom Hanks",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Uma Thurman",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Viola Davis",discipline:"Delivery",grade:"Manager",reports:[]}]},{name:"Will Smith",discipline:"Delivery",grade:"Senior Manager",reports:[{name:"Xavier Dolan",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Yalitza Aparicio",discipline:"Delivery",grade:"Manager",reports:[]},{name:"Zoe Saldana",discipline:"Delivery",grade:"Manager",reports:[]}]}]}].map((o,r)=>(0,pt.jsx)(Ql,{person:o,level:0,searchTerm:e},r))})]})}function Om({teamMembers:e={leadership:[{role:"CTO oversight"},{role:"Senior Delivery Lead",isFTE:!0}],core:[{role:"Lead Cloud Architect",isFTE:!0},{role:"Senior Business Analyst",isFTE:!0}],sme:["Security Architecture","Engineering","Data Architecture"]},outputs:t=[{title:"Discovery Report",description:"A detailed report summarising the findings from the initial assessment, including insights from stakeholder interviews and document reviews."},{title:"Cloud and Data Estate Assessment Report",description:"A comprehensive analysis of the current cloud and data infrastructure, highlighting strengths, weaknesses, and opportunities for improvement."},{title:"Gap Analysis Report",description:"Identification of gaps between current capabilities and the requirements for adopting GenAI, along with a detailed analysis of these gaps."},{title:"Recommendations Report",description:"A set of actionable recommendations for enhancing the cloud infrastructure, data management practices, and operating model."},{title:"Implementation Roadmap",description:"A phased roadmap outlining the steps to implement the recommended changes, including timelines, milestones, and prioritisation of initiatives."},{title:"Risk Management Plan",description:"A detailed plan outlining potential risks and mitigation strategies to ensure a smooth transition."}],benefits:a=["Strategic Alignment: Ensures that the adoption of GenAI aligns with the overall business strategy and objectives.","Enhanced Efficiency: Optimises cloud and data operations, leading to improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies to mitigate them, ensuring a smooth transition.","Scalability: Prepares the organisation for future growth and scalability by enhancing the underlying technology infrastructure.","Competitive Advantage: Positions the organisation to leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,pt.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,pt.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,pt.jsxs)(Ae,{className:"flex-grow",children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)($n.Users,{className:"h-5 w-5"}),"Team"]})}),(0,pt.jsxs)(Fe,{className:"p-6",children:[(0,pt.jsx)("p",{className:"mb-6 text-sm text-muted-foreground",children:"A small team of highly-skilled consultants with significant Cloud, Data and AI experience will execute this phase:"}),(0,pt.jsxs)("div",{className:"space-y-6",children:[(0,pt.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pt.jsx)($n.User,{className:"h-4 w-4 text-muted-foreground"}),(0,pt.jsx)("span",{children:r.role})]}),r.isFTE&&(0,pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,pt.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pt.jsx)($n.User,{className:"h-4 w-4 text-muted-foreground"}),(0,pt.jsx)("span",{children:r.role}),r.count&&(0,pt.jsxs)("span",{children:["(",r.count,"x)"]})]}),r.isFTE&&(0,pt.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,pt.jsxs)("div",{children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,pt.jsx)($n.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,pt.jsx)("span",{children:"SME input:"})]}),(0,pt.jsx)("div",{className:"$n-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,pt.jsxs)(Ae,{children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)($n.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,pt.jsx)(Fe,{className:"p-6",children:(0,pt.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,pt.jsxs)(Ae,{className:"lg:col-span-1 flex flex-col",children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)($n.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,pt.jsxs)(Fe,{className:"p-6 flex-grow overflow-auto",children:[(0,pt.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,pt.jsxs)("li",{className:"text-sm",children:[(0,pt.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,pt.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,pt.jsx)("p",{className:"pt-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,pt.jsxs)(Ae,{className:"lg:col-span-1 flex flex-col",children:[(0,pt.jsx)(Ze,{className:"bg-primary text-primary-foreground",children:(0,pt.jsxs)(et,{className:"flex items-center gap-2",children:[(0,pt.jsx)($n.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,pt.jsx)(Fe,{className:"p-6 flex-grow overflow-auto",children:(0,pt.jsx)("Bn",{className:"space-y-4",children:a.map((r,s)=>(0,pt.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,pt.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,pt.jsx)("span",{children:r})]},s))})})]})]})}function _m(){return(0,pt.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,pt.jsxs)("div",{className:"grid od:grid-cols-4 gap-8 relative",children:[(0,pt.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,pt.jsx)($n.BarChart3,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,pt.jsx)("p",{className:"text-secondary text-sm",children:"pt excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,pt.jsxs)("Bn",{className:"text-sm",children:[(0,pt.jsx)("li",{children:"Strategy definition"}),(0,pt.jsx)("li",{children:"Programme leadership"}),(0,pt.jsx)("li",{children:"Detailed planning"}),(0,pt.jsx)("li",{children:"\u2022 Financial control"}),(0,pt.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,pt.jsx)($n.CogIcon,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,pt.jsx)("p",{className:"text-sky-200 text-sm",children:"Our architects and engineers possess extensive expertise in designing, building, and operating modern, leading-edge technologies and enterprise-class solutions."}),(0,pt.jsx)("p",{className:"text-sm",children:"pt deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,pt.jsx)($n.Building2,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,pt.jsx)("p",{className:"text-sky-200 text-sm",children:"pt understand how to navigate public sector and financial services regulation and how to deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,pt.jsx)("p",{className:"text-sm",children:"pt have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex items-center gap-2 relative pt-10",children:[(0,pt.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,pt.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,pt.jsx)($n.BadgeCheck,{className:"w-8 h-8"})]}),(0,pt.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,pt.jsx)("p",{className:"text-sky-200 text-sm",children:"pt have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,pt.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, pt have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var Qo=e=>{var i;let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=c=>{if(c.type&&c.type==="block"&&c.fields&&(c.fields.blockType==="imageBlock"||c.fields.blockType==="mediaBlock"))return!0;if(c.root&&c.root.children){for(let m of c.root.children)if(s(m))return!0}if(c.children){for(let m of c.children)if(s(m))return!0}return!1},n=(c,m,d)=>{if(m==="none"||d==="full")return{processedRichText:c,heading:null};let u=c,p=null;return c&&c.root&&c.root.children&&c.root.children[0].tag==="h2"&&(u={...c,root:{...c.root,children:c.root.children.slice(1)}},p=c.root.children[0]),{processedRichText:u,heading:p}};return(0,pt.jsx)("div",{className:"container my-6",children:(0,pt.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",(i=a==null?void 0:a.settings)!=null&&i.box?"gap-x-8":"gap-x-16"),children:t&&t.length>0&&t.map((c,m)=>{var x,T;let{enableLink:d,link:u,richText:p,size:b}=c,{processedRichText:y,heading:f}=n(p,((x=a==null?void 0:a.settings)==null?void 0:x.box)||"none",b||"full");return(0,pt.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[b]}`,{"od:col-span-2":b!=="full"},r[b!=="full"&&!s(p)&&((T=a==null?void 0:a.settings)==null?void 0:T.box)||"none"],"intersect intersect-full animate-flip-up",m===0?"":`animate-delay-${m}00`),children:[f&&(0,pt.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -pt-4 -mx-4 px-4 py-2 text-xl",children:f.children[0].text}),y&&(0,pt.jsx)(me,{content:y,enableGutter:!1,className:"rich-text"}),d&&(0,pt.jsx)(Lt,{...u})]},m)})})})};var jr=w(require("next/image"));function Gm({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,pt.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,pt.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,pt.jsx)("div",{className:"absolute left-[calc(50%-40vw*0.5)] top-[calc(40vw*0.5*-0.29)] h-[80vw] w-[80vw] origin-top-left -rotate-45 overflow-hidden rounded-[24vw]",children:(0,pt.jsx)(jr.default,{src:e,alt:"Header background",className:"h-full w-full rotate-45 scale-[1.42] object-cover object-center",width:1e3,height:1e3,priority:!0})})}),(0,pt.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 od:left-8 od:top-8",children:[o&&(0,pt.jsx)("div",{className:"h-16 w-32 od:h-24 od:w-48",children:(0,pt.jsx)(jr.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,pt.jsx)("div",{className:"h-10 w-20 od:h-12 od:w-24",children:(0,pt.jsx)(jr.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,pt.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,pt.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,pt.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] od:text-6xl",children:a})]})]})}var td=w(require("next/image"));var Ti=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,pt.jsx)(jm,{blocks:a.layout}):(0,pt.jsx)(pt.Fragment,{})},Zl={content:Qo,cta:Xa,mediaBlock:ta,imageBlock:ta,features:Ya},jm=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,pt.jsx)("section",{id:"render-blocks",children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in Zl){let m=Zl[s];if(m)return(0,pt.jsx)("div",{className:"py-6 relative",children:(0,pt.jsx)("div",{className:l(((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,pt.jsx)(m,{...o})})},r)}return null})}):null};var ed={content:Qo,cta:Xa,mediaBlock:ta,imageBlock:ta,features:Ya,reusableContentBlock:Ti},go=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,pt.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{var i,c;let{blockType:s}=o,n=o==null?void 0:o.theme;if(s&&s in ed){let m=ed[s];if(m)return(0,pt.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,pt.jsx)(ad,{block:o,index:r}),(0,pt.jsx)("div",{className:l("container h-full",((i=n==null?void 0:n.settings)==null?void 0:i.theme)==="dark"?"dark":((c=n==null?void 0:n.settings)==null?void 0:c.theme)==="green"?"green":""),children:(0,pt.jsx)(m,{...o})})]},r)}return null})}):null},ad=e=>{var a,o,r,s,n;if(!("theme"in e.block))return null;let t=(a=e.block)==null?void 0:a.theme;if(t.settings.background==="image"){let i={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,pt.jsxs)("div",{className:l("absolute inset-0 w-full h-full -pt-10",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":""),children:[(0,pt.jsx)(td.default,{src:((r=(o=t.settings)==null?void 0:o.image)==null?void 0:r.url)||"/placeholder.svg",alt:((n=(s=t.settings)==null?void 0:s.image)==null?void 0:n.alt)||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,pt.jsx)("div",{className:"absolute inset-0",style:{background:i.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,pt.jsx)("div",{className:l("absolute inset-0 -pt-10 w-screen h-full",t.settings.theme==="dark"?"dark bg-background":t.settings.theme==="green"?"green bg-background":"")})};var id=w(require("clsx"));var od=require("next/navigation");function Wm({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,od.useRouter)(),r=(0,ur.useRef)(null),s=(0,ur.useRef)(null),n=(0,ur.useRef)(0),i=(0,ur.useRef)(!1),c=(0,ur.useRef)(0),m=(0,ur.useCallback)(u=>{if(u.target){let p=u.target,b=+new Date,y=p==null?void 0:p.closest("a");c.current=u.button,y?i.current=!0:(i.current=!1,n.current=b)}},[o,r,s,n]),d=(0,ur.useCallback)(u=>{var p,b;if((p=s.current)!=null&&p.href){let f=+new Date-n.current;if((b=s.current)!=null&&b.href&&f<=250&&!i.current&&c.current===0&&!u.ctrlKey)if(e){let x=t?"_blank":"_self";window.open(s.current.href,x)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,ur.useEffect)(()=>{let u=r.current;return u&&(u.addEventListener("mousedown",m),u.addEventListener("mouseup",d)),()=>{u&&u&&(u==null||u.removeEventListener("mousedown",m),u==null||u.removeEventListener("mouseup",d))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var rd=Wm;var sd=w(require("next/link"));var Zo=e=>{let{card:t,link:a}=rd({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:c,categories:m,meta:d,title:u}=r||{},{description:p,image:b}=d||{},y=m&&Array.isArray(m)&&m.length>0,f=i||u,x=p==null?void 0:p.replace(/\s/g," "),T=`/${s}/${c}`;return(0,pt.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,pt.jsxs)("div",{className:"relative w-full ",children:[!b&&(0,pt.jsx)("div",{className:"",children:"od image"}),b&&typeof b!="string"&&(0,pt.jsx)(ea,{resource:b,size:"33vw"})]}),(0,pt.jsxs)("div",{className:"p-4",children:[n&&y&&(0,pt.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&y&&(0,pt.jsx)("div",{children:m==null?void 0:m.map((L,Y)=>{if(typeof L=="object"){let{title:V}=L,se=V||"Untitled category",G=Y===m.length-1;return(0,pt.jsxs)(ur.Fragment,{children:[se,!G&&(0,pt.jsx)(ur.Fragment,{children:", \xA0"})]},Y)}return null})})}),f&&(0,pt.jsx)("div",{className:"prose",children:(0,pt.jsx)("h3",{children:(0,pt.jsx)(sd.default,{className:"not-prose",href:T,ref:a.ref,children:f})})}),p&&(0,pt.jsx)("div",{className:"pt-2",children:p&&(0,pt.jsx)("p",{children:x})})]})]})};var Vm=e=>{let{className:t,docs:a,introContent:o}=e;return(0,pt.jsxs)("div",{className:(0,id.default)("container",t),children:[o&&(0,pt.jsx)(me,{content:o,enableGutter:!1}),(0,pt.jsx)("div",{className:"grid grid-cols-1 od:grid-cols-2 gap-4 od:gap-8 items-stretch",children:a==null?void 0:a.map((r,s)=>typeof r=="string"?null:(0,pt.jsx)(Zo,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var xo=require("framer-motion");var fd=w(Nn());var Iy=require("pagedjs");var $m=e=>{let{posts:t}=e;return(0,pt.jsx)("div",{className:l("container"),children:(0,pt.jsx)("div",{children:(0,pt.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-x-4 lg:gap-y-8 lg:gap-x-8 xl:gap-x-8",children:t==null?void 0:t.map((a,o)=>typeof a=="object"&&a!==null?(0,pt.jsx)("div",{className:"col-span-4",children:(0,pt.jsx)(Zo,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var nd=w(require("clsx")),ld=w(require("next/image")),Um=e=>{let{loading:t,priority:a,className:o}=e;return(0,pt.jsx)(ld.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,nd.default)("max-w-[9.375rem] w-full h-[34px]",o),src:"https://raw.githubusercontent.com/payloadcms/payload/main/packages/ui/src/assets/payload-logo-light.svg"})};var Xm={plural:"Docs",singular:"Doc"},qm={posts:{plural:"Posts",singular:"Post"}},Ym=e=>{let{className:t,collection:a,collectionLabels:o,currentPage:r,limit:s,totalDocs:n}=e,i=(r?r-1:1)*(s||1)+1;n&&i>n&&(i=0);let c=(r||1)*(s||1);n&&c>n&&(c=n);let{plural:m,singular:d}=o||qm[a||""]||Xm||{};return(0,pt.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n=="undefined"||n===0)&&"Search produced no results.",typeof n!="undefined"&&n>0&&`Showing ${i}${i>0?` - ${c}`:""} of ${n} ${n>1?m:d}`]})};var Mi=w(require("react")),Ii=({className:e,...t})=>(0,pt.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Ii.displayName="Pagination";var Ai=Mi.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("Bn",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Ai.displayName="PaginationContent";var sa=Mi.forwardRef(({className:e,...t},a)=>(0,pt.jsx)("li",{className:l("",e),ref:a,...t}));sa.displayName="PaginationItem";var Ja=({className:e,isActive:t,size:a="icon",...o})=>(0,pt.jsx)("button",{"aria-current":t?"page":void 0,className:l(ga({size:a,variant:t?"outline":"ghost"}),e),...o});Ja.displayName="PaginationLink";var Ei=({className:e,...t})=>(0,pt.jsxs)(Ja,{"aria-label":"Go to previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,pt.jsx)($n.ChevronLeft,{className:"h-4 w-4"}),(0,pt.jsx)("span",{children:"Previous"})]});Ei.displayName="PaginationPrevious";var Li=({className:e,...t})=>(0,pt.jsxs)(Ja,{"aria-label":"Go to next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,pt.jsx)("span",{children:"Next"}),(0,pt.jsx)($n.ChevronRight,{className:"h-4 w-4"})]});Li.displayName="PaginationNext";var Wr=({className:e,...t})=>(0,pt.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,pt.jsx)($n.MoreHorizontal,{className:"h-4 w-4"}),(0,pt.jsx)("span",{className:"sr-only",children:"More pages"})]});Wr.displayName="PaginationEllipsis";var Jm=e=>{let t=(0,od.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,c=o+1<r;return(0,pt.jsx)("div",{className:l("my-12",a),children:(0,pt.jsx)(Ii,{children:(0,pt.jsxs)(Ai,{children:[(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ei,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(Wr,{})}),n&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ja,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ja,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(Ja,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),c&&(0,pt.jsx)(sa,{children:(0,pt.jsx)(Wr,{})}),(0,pt.jsx)(sa,{children:(0,pt.jsx)(Li,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var pd="../hero-3-N2CBGEV6.jpg";var Bi=w(require("next/image"));var ho="../cortex-reply-dark-XPAJJJYY.png";var ud=()=>(0,pt.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
14
+ dark bg-background text-primary`,children:[(0,pt.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[(0,pt.jsx)("img",{src:ho.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,pt.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,pt.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),er=({title:e})=>(0,pt.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,pt.jsx)("div",{className:"container",children:(0,pt.jsx)("span",{className:"container text-4xl px-6",children:e})})}),tr=e=>{var o,r;let{title:t,hero:a}=e;return(0,pt.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,pt.jsx)("div",{className:"absolute inset-0",children:(0,pt.jsx)(Bi.default,{src:a.media?a.media.url:pd,alt:"Background",width:a.media&&a.media.width&&(o=a.media.width)!=null?o:1920,height:a.media&&a.media.height&&(r=a.media.height)!=null?r:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,pt.jsx)("div",{className:"absolute left-16 pt-50 top-4 flex flex-col items-start gap-4",children:ho&&(0,pt.jsx)("div",{className:"h-24",children:(0,pt.jsx)(Bi.default,{src:ho,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,pt.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,pt.jsxs)("div",{className:"relative pl-24 pt-10 max-w-3xl",children:[(0,pt.jsx)("p",{className:"text-lg font-medium text-accent mb-2",children:t}),a.richText&&(0,pt.jsx)(me,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var gd=e=>{let[t,a]=(0,ur.useState)(0),{blocks:o,hero:r}=e,s=o&&Array.isArray(o)&&o.length>0,i=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],c=y=>{a(y)},m=()=>{a(y=>(y+1)%i.length)},d=()=>{a(y=>(y-1+i.length)%i.length)},p=(0,ur.useCallback)(((y,f)=>{let x;return(...T)=>{clearTimeout(x),x=setTimeout(()=>y(...T),f)}})(y=>{y.deltaY>0?m():d()},300),[]),b=y=>{y.key==="ArrowDown"?m():y.key==="ArrowUp"&&d()};return(0,ur.useEffect)(()=>(fd.default.init({duration:1e3}),window.addEventListener("wheel",p),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",p),window.removeEventListener("keydown",b)}),[]),(0,pt.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,pt.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 pt-10 flex-col items-center justify-center bg-gray-900",children:s&&i.map((y,f)=>(0,pt.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===f?"bg-accent":"bg-gray-600"}`,onClick:()=>c(f),children:(0,pt.jsx)("span",{className:"absolute $n-7 left-full text-left transform -translate-y-1/2 translate-x-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-x-2 transition-all duration-300",children:y.blockName})},y.id))}),(0,pt.jsx)(xo.AnimatePresence,{children:i.map((y,f)=>(0,pt.jsx)("div",{id:`slide-${f}`,className:"print-section",children:(0,pt.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
15
+ ${f===t?"opacity-100":"opacity-0"}
16
+ w-full h-full bg-cover bg-center`,children:f===0?(0,pt.jsx)(tr,{hero:r,title:e.title}):(0,pt.jsxs)(pt.Fragment,{children:[y.blockName&&(0,pt.jsx)(er,{title:y.blockName}),(0,pt.jsx)(go,{blocks:[y],fill:!0}),(0,pt.jsx)(ud,{})]})})},f))}),(0,pt.jsx)("button",{className:"absolute bottom-4 left-1 pt-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:m,children:(0,pt.jsx)(Zm,{})})]})},Zm=()=>(0,pt.jsx)(xo.AnimatePresence,{children:(0,pt.jsx)(xo.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.7,ease:[.76,0,.24,1]},className:l("w-fit min-h-[50px] min-w-[20px] p-1 border-2 rounded-full","border-accent"),children:(0,pt.jsx)(xo.motion.div,{initial:{y:0},animate:{y:[0,25],opacity:[1,0]},transition:{duration:1,ease:"easeOut",repeat:1/0,repeatDelay:1},className:l("w-[12px] h-[12px] rounded-full","bg-accent")})})});var bd=w(require("next/link")),yd=w(require("next/image"));function vd({blogs:e,width:t=3}){return(0,pt.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,pt.jsx)("div",{className:`grid od:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>{var r;return(0,pt.jsx)(bd.default,{href:`/insights/${a.slug}`,className:"group rounded-2xl overflow-hidden border bg-card text-card-foreground shadow hover:shadow-lg transition-shadow",children:(0,pt.jsxs)("div",{className:"relative size-full",children:[(0,pt.jsx)(yd.default,{src:((r=a.image)==null?void 0:r.src)||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,pt.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-to-t from-card to-transparrent flex flex-col justify-end",children:[(0,pt.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(s=>`${s.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,pt.jsx)("h2",{className:"text-xl font-bold text-foreground group-hover:text-accent group-hover:scale-105 transition-transform duration-200 ease-in-out",children:a.title})]})]})},o)})})})}function hd({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:c,leadsGenerated:m}){return(0,pt.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,pt.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,pt.jsxs)("div",{className:"max-w-4xl",children:[(0,pt.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,pt.jsx)("h1",{className:"pt-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,pt.jsx)("p",{className:"pt-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,pt.jsxs)("section",{className:"pt-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-x-8 lg:gap-y-16",children:[(0,pt.jsxs)("div",{className:"lg:pr-8",children:[(0,pt.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,pt.jsx)("p",{className:"pt-6 text-base/7 text-gray-600",children:r})]}),(0,pt.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,pt.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((d,u)=>(0,pt.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,pt.jsx)("img",{alt:"",src:d,className:"block size-full object-cover"})},u))})}),(0,pt.jsxs)("div",{className:"max-lg:pt-16 lg:col-span-1",children:[(0,pt.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,pt.jsx)("hr",{className:"pt-6 border-t border-gray-200"}),(0,pt.jsxs)("pt",{className:"pt-6 grid grid-cols-1 gap-x-8 gap-y-4 sm:grid-cols-2",children:[(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,pt.jsx)("$n",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,pt.jsx)("$n",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"pt"]})]}),(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2 max-sm:border-b max-sm:border-dotted max-sm:border-gray-200 max-sm:pb-4",children:[(0,pt.jsx)("$n",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:[c,"pt"]})]}),(0,pt.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,pt.jsx)("$n",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,pt.jsxs)("pt",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"pt"]})]})]})]})]})]})})}var xd=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,n=r<10?`0${r}`:r,i=a.getFullYear();return`${n}/${s}/${i}`};var wd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`},Nd=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("en-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("en-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};function Cd({subtitle:e,title:t,description:a,alignment:o="start",hasBottomSpacing:r=!1,className:s,invert:n=!1}){let i=l(o==="start"&&"text-left",o==="center"&&"text-center",o==="end"&&"text-right",{"mb-10 od:mb-[3.75rem]":r},s);return(0,pt.jsxs)("div",{className:i,children:[e&&(0,pt.jsx)("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent od:text-od",children:e}),(0,pt.jsx)("h2",{className:l("font-secondary text-xl font-bold leading-[1.25] text-foreground od:text-2xl",n&&"text-gray-900"),children:t}),typeof a=="string"?a&&(0,pt.jsx)("p",{className:"pt-5 whitespace-pre-line",children:a}):a&&(0,pt.jsx)(me,{content:a,enableGutter:!1})]})}function Qa({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,pt.jsx)("div",{className:r,children:e})}var Sd=(e,t)=>e[t%e.length];var zi=w(require("next/image"));function ep({blogs:e,sectionHeading:t}){return(0,pt.jsx)("section",{className:l("section-padding-primary overflow-hidden "),children:(0,pt.jsxs)(Qa,{children:[(0,pt.jsx)("div",{className:"mx-auto max-w-[630px]",children:t&&(0,pt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,pt.jsx)(Cd,{...t,alignment:"center",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,pt.jsx)("div",{className:"-mx-4 flex flex-wrap justify-center gap-y-30px",children:e.map((a,o)=>(0,pt.jsx)("div",{"data-aos":"fade-up","data-aos-delay":Sd([200,400,600],o),className:"w-full px-4 od:w-1/2 od:px-[15px] lg:w-1/3",children:(0,pt.jsx)(Td,{...a})},o))})]})})}var Rd=l("inline-flex items-center gap-2 text-white"),Ky=l("text-sm text-white");function Td({slug:e,image:t,authors:a,title:o,publishedAt:r,categories:s}){return(0,pt.jsxs)("article",{className:"group/blog relative pt-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,pt.jsx)("span",{className:"absolute inset-0 pt-[2] "}),(0,pt.jsx)(zi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
18
17
  (min-width:768px) 50vw,
19
18
  (min-width:1024px) 33vw,
20
19
  100vw
21
- `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,pt.jsx)(Bi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
20
+ `,className:l("pointer-events-none object-cover opacity-0 [filter:blur(10px)] [transform:translatex(50%)_scalex(2)] [transition:all_500ms_ease]","group-hover/blog:opacity-100 group-hover/blog:[filter:blur(0px)] group-hover/blog:[transform:translatex(0)_scalex(1)]")}),(0,pt.jsx)(zi.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
22
21
  (min-width:768px) 50vw,
23
22
  (min-width:1024px) 33vw,
24
23
  100vw
25
- `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,pt.jsxs)("div",{className:"relative pt-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,pt.jsx)("div",{children:(0,pt.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-md font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground md:text-lg",children:(0,pt.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,pt.jsx)("span",{className:"block",children:xd(r)})})})}),(0,pt.jsxs)("div",{className:"pt-auto space-y-2 text-white md:space-y-5",children:[(0,pt.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,pt.jsx)("p",{className:Rd})}),(0,pt.jsx)("h3",{className:"text-md font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground md:text-lg",children:(0,pt.jsx)(Oe,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,pt.jsx)("div",{children:(0,pt.jsxs)(Oe,{href:e,className:l(Rd,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,pt.jsx)("span",{children:"Read More"}),(0,pt.jsx)("span",{className:"text-accent",children:(0,pt.jsx)(Br.FaArrowRight,{})})]})})]})]})]})}var Td=w(require("html2canvas")),Hi=require("jspdf");function Km(e){var t=document.createElement("div");t.style.display="block",t.style.height=e,document.body.appendChild(t);var a=parseFloat(window.getComputedStyle(t,null).height);return t.parentNode&&t.parentNode.removeChild(t),Math.floor(a)}var Qm=({page:e,layout:t="portrait"})=>t==="flow"?(0,$.jsx)(Dd,{page:e,layout:t}):(0,$.jsx)(Md,{page:e,layout:t}),Dd=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=ds(e),o={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},r=async()=>{s("printable-content")},s=async i=>{let d=document.getElementById(i);if(!d)throw new Error(`Element with id ${i} not found`);let m=document.createElement("canvas"),c=window.devicePixelRatio;m.width=Math.max(d.clientWidth||0)*c,m.height=Math.max(d.clientHeight||0)*c+100;let u=m.getContext("2d");if(!u)throw new Error("Failed pr get 2D context");let p=u.drawImage,f=Array.from(d.getElementsByTagName("img")).reduce((I,N)=>(I[N.src]=N,I),{});u.drawImage=function(...I){let[N,b,C,h,Q,Re,Ye,Se,Le]=I;if(N instanceof HTMLImageElement){let Et=f[N.src].style.objectFit||"fill",wt=f[N.src].style.objectPosition||"center center";Q=N.height,h=N.width;let rt=h/Q,ie=Se/Le,[Ie,Be]=wt.split(" ");switch(Be||(Be=Ie),Et){case"cover":if(rt>ie){let oe=Q*ie,X=(h-oe)/2;Ie==="left"&&(X=0),Ie==="right"&&(X=h-oe),b+=X,h=oe}else{let oe=h/ie,X=(Q-oe)/2;Be==="top"&&(X=0),Be==="bottom"&&(X=Q-oe),C+=X,Q=oe}break;case"contain":if(rt>ie){let oe=Se/rt,X=(Le-oe)/2;Be==="top"&&(X=0),Be==="bottom"&&(X=Le-oe),Ye+=X,Le=oe}else{let oe=Le*rt,X=(Se-oe)/2;Ie==="left"&&(X=0),Ie==="right"&&(X=Se-oe),Re+=X,Se=oe}break;case"fill":break}}return p.call(u,N,b,C,h,Q,Re,Ye,Se,Le)};let y=document.getElementById(i);if(!y)throw new Error(`Element with id ${i} not found`);var g=m.width,x=m.height;let L=(await(0,Td.default)(y,{canvas:m,windowHeight:x,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),V=new Hi.jsPDF({}).getImageProperties(L),se=297,G=se*(V.height/V.width),R=new Hi.jsPDF({unit:"mm",format:[se,G]});R.addImage(L,"PNG",0,0,se,G),R.save("print.pdf")},n=[o,...a];return(0,$.jsxs)("div",{className:"w-[297mm]",children:[(0,$.jsx)("div",{className:"fixed top-20 right-4 pt-[1000] print:hidden",children:(0,$.jsx)(A,{onClick:r,variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print pr PDF"})}),(0,$.jsxs)("div",{id:"printable-content",children:[n.map((i,d)=>(0,$.jsx)($.Fragment,{children:d===0?(0,$.jsx)("section",{className:"title-page w-full h-full",children:(0,$.jsx)(tr,{hero:e.hero,title:e.title})},d):(0,$.jsxs)("section",{className:"normal-page",children:[i.blockName&&(0,$.jsx)(er,{title:i.blockName}),(0,$.jsx)(go,{blocks:[i],fill:!0})]},d)})),(0,$.jsx)("section",{className:"normal-page",children:(0,$.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
26
- dark bg-background text-primary`,children:[(0,$.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[(0,$.jsx)("img",{src:ho.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,$.jsx)("span",{className:"Ln-12 text-sm",children:"Power up your people"})]}),(0,$.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})]})},Md=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=ds(e),o=(0,pr.useRef)(null),r=(0,pr.useRef)(null),s=(0,pr.useRef)(new ky.Previewer),[n,i]=(0,pr.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],c=(0,pr.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[]);return(0,pr.useEffect)(()=>{s.current=new ky.Previewer,c()},[c]),(0,$.jsxs)("div",{className:"pagedjs-container",children:[(0,$.jsx)("div",{className:"fixed top-20 right-4 pt-[1000] print:hidden",children:(0,$.jsx)(A,{onClick:async()=>{await new Promise(p=>setTimeout(p,300)),window.print()},variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print pr PDF"})}),(0,$.jsx)("div",{id:"printable-content",ref:r,style:{display:"block"},className:"pagedjs-content",children:m.map((p,f)=>{var y,g;return(0,$.jsx)($.Fragment,{children:f===0?(0,$.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,$.jsx)(tr,{hero:e.hero,title:e.title})},f):(0,$.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Km("185mm")}px]`,((g=(y=p.theme)==null?void 0:y.settings)==null?void 0:g.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,$.jsx)(er,{title:p.blockName}),(0,$.jsx)(go,{blocks:[p],fill:!0})]},f)})})}),(0,$.jsx)("div",{ref:o,className:"preview-container"})]})};var Fi=w(require("clsx"));function Zm({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:d,...m}){let u=d?p=>(0,pt.jsx)(d,{...p}):n?({href:p,children:f,...y})=>(0,pt.jsx)("button",{onClick:()=>n&&n(p),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:f}):p=>(0,pt.jsx)("a",{...p});return(0,pt.jsxs)(La,{...m,variant:"inset",children:[(0,pt.jsx)(Ba,{children:(0,pt.jsx)(Qe,{children:(0,pt.jsx)(He,{children:i?(0,pt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,pt.jsx)(fe,{className:"bg-gray-200 my-2 w-full h-7"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,pt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,pt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,pt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,pt.jsxs)(ga,{children:[(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,pt.jsxs)(ga,{children:[e&&!i&&e.map((p,f)=>(0,pt.jsx)(ep,{subNav:p,pathName:r,Link:u},f)),(0,pt.jsx)(ut,{className:"pt-auto",children:(0,pt.jsx)(Ct,{children:(0,pt.jsx)(Qe,{children:t&&!i&&t.map(p=>(0,pt.jsx)(He,{children:(0,pt.jsx)(ft,{asChild:!0,size:"sm",children:(0,pt.jsxs)(u,{href:p.url||"",children:[p.icon&&(0,pt.jsx)(p.icon,{}),(0,pt.jsx)("span",{children:p.label})]})})},p.label))})})})]}),(0,pt.jsx)(za,{})]})}function ep({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsx)(ut,{className:"py-0",children:(0,pt.jsx)(Qe,{children:(0,pt.jsx)(Wt,{asChild:!0,defaultOpen:o.isActive,children:(0,pt.jsxs)(He,{children:[(0,pt.jsx)(ft,{asChild:!0,tooltip:o.label,className:(0,Fi.default)(r&&"font-bold text-accent"),children:(0,pt.jsxs)(a,{href:o.url,children:[o.icon&&(0,pt.jsx)(o.icon,{}),(0,pt.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(pa,{asChild:!0,children:(0,pt.jsxs)(zo,{className:"data-[state=open]:rotate-90",children:[(0,pt.jsx)(Vn.ChevronRight,{}),(0,pt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,pt.jsx)(ua,{children:(0,pt.jsx)(ba,{children:(n=o.links)==null?void 0:n.map(i=>(0,pt.jsx)(ya,{children:(0,pt.jsx)(va,{asChild:!0,className:(0,Fi.default)(i.url===t&&"font-bold text-accent"),children:(0,pt.jsx)(a,{href:i.url,children:(0,pt.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var Ad=w(require("clsx"));var tp=()=>(0,pt.jsx)($e,{iconName:"github",size:"10x"});function ap({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:d,onNavClick:m,LinkComponent:c,...u}){let y=c?g=>(0,pt.jsx)(c,{...g}):m?({item:g,children:x,...M})=>(0,pt.jsx)("button",{onClick:()=>m&&m(g),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...M,children:x}):g=>(0,pt.jsx)("a",{href:g.href,...g});return(0,pt.jsxs)(La,{side:"right",variant:"inset",...u,children:[(0,pt.jsxs)(Ba,{className:"border-b border-sidebar-border",children:[(0,pt.jsxs)(Qe,{className:"flex-row space-x-1",children:[(0,pt.jsx)(He,{children:(0,pt.jsxs)(ft,{onClick:s,children:[(0,pt.jsx)(Vn.FilePlus,{})," ",(0,pt.jsx)("span",{children:"Add Document"})]})}),d&&(0,pt.jsx)(He,{children:(0,pt.jsx)(ft,{onClick:d,tooltip:"Open in GitHub",children:(0,pt.jsx)(tp,{})})})]}),(0,pt.jsxs)(Qe,{className:"flex-row space-x-1",children:[(0,pt.jsx)(He,{className:"w-5/12",children:(0,pt.jsxs)(ft,{onClick:()=>n(),variant:r?"outline":"default",className:(0,Ad.default)(r&&"text-accent"),children:[(0,pt.jsx)(Vn.Edit,{})," ",(0,pt.jsx)("span",{children:"Edit"})]})}),(0,pt.jsx)(He,{className:"w-5/12",children:(0,pt.jsxs)(ft,{onClick:i,children:[(0,pt.jsx)(Vn.Printer,{})," ",(0,pt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{asChild:!0,children:(0,pt.jsxs)(pa,{children:["Editor Controls",(0,pt.jsx)(Vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(ua,{children:a})})]})}),(0,pt.jsx)(Bo,{className:"mx-0"})]}),(0,pt.jsxs)(ga,{className:"overflow-auto",children:[o&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{children:"Related Content"}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(Qe,{children:Array.from({length:3}).map((g,x)=>(0,pt.jsx)(He,{children:(0,pt.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},x))})})]}),(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{children:"Table of Contents"}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(Qe,{children:Array.from({length:3}).map((g,x)=>(0,pt.jsx)(He,{children:(0,pt.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},x))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{asChild:!0,children:(0,pt.jsxs)(pa,{children:["Related Content",(0,pt.jsx)(Vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(ua,{children:(0,pt.jsx)(Qe,{children:e&&Object.keys(e).map(g=>(0,pt.jsxs)(He,{children:[(0,pt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",g.charAt(0).toUpperCase()+g.slice(1)]}),g&&e[g]&&(0,pt.jsx)(ba,{children:e[g].map(x=>(0,pt.jsx)(ya,{children:(0,pt.jsx)(va,{asChild:!0,isActive:!1,size:"sm",children:(0,pt.jsxs)(y,{href:x.url,item:x,className:"flex justify-between items-center w-full text-xs",children:[(0,pt.jsx)("span",{children:x.label}),x.type==="note"&&(0,pt.jsx)(Vn.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,pt.jsx)($e,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},x.label))})]},g))})})})]})}),t&&!o&&(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{asChild:!0,children:(0,pt.jsxs)(pa,{children:["Table of Contents",(0,pt.jsx)(Vn.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(ua,{children:(0,pt.jsx)(Qe,{children:t.map(g=>{var x;return(0,pt.jsxs)(He,{children:[(0,pt.jsx)(ft,{asChild:!0,children:(0,pt.jsx)("a",{href:`#${g.url}`,className:"text-xs",children:g.title})}),(x=g.items)!=null&&x.length?(0,pt.jsx)(ba,{children:g.items.map(M=>(0,pt.jsx)(ya,{children:(0,pt.jsx)(va,{asChild:!0,isActive:M.isActive,size:"sm",children:(0,pt.jsx)("a",{href:`#${M.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,pt.jsx)("span",{children:M.title})})})},M.title))}):null]},g.title)})})})})]})})]}),(0,pt.jsx)(za,{})]})}var Ld=w(require("next/image"));function op({title:e,members:t}){return(0,pt.jsx)(Ae,{className:"mb-6",children:(0,pt.jsxs)("div",{className:"p-6",children:[(0,pt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,pt.jsx)(Vn.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,pt.jsx)("h2",{className:"text-pt font-semibold text-foreground",children:e})]}),(0,pt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,pt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,pt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,pt.jsx)(Ld.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,pt.jsxs)("div",{children:[(0,pt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,pt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Bd=w(require("next/link"));var rp=({links:e,title:t="Related Content"})=>(0,pt.jsxs)(Ae,{children:[(0,pt.jsx)(Ze,{children:(0,pt.jsx)(et,{className:"text-accent",children:t})}),(0,pt.jsx)(Fe,{children:(0,pt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,pt.jsxs)(Bd.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,pt.jsx)(Vn.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var Oi=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function sp({pages:e}){let t=(0,ad.useSearchParams)(),a=(0,ad.usePathname)(),{replace:o}=(0,ad.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,pr.useState)({start:s>3?s-3:1,end:s+2}),d=u=>{u==="left"&&n.start>1?i(p=>({start:p.start-1,end:p.end-1})):u==="right"&&n.end<r&&i(p=>({start:p.start+1,end:p.end+1}))};function m(u){let p=new URLSearchParams(t);u?p.set("page",u):p.delete("page"),o(`${a}?${p.toString()}`)}if(r<=1)return null;let c=[];for(let u=n.start;u<=n.end;u++)c.push(u);return(0,pt.jsx)("div",{className:"pt-12",children:(0,pt.jsxs)("Ln",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,pt.jsx)("li",{children:(0,pt.jsx)("button",{className:l(Oi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,pt.jsx)(Br.FaArrowLeft,{})})}),c.map((u,p)=>(0,pt.jsx)("li",{children:(0,pt.jsx)("a",{className:l(Oi,u===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${u}`,role:"button",onClick:f=>{f.preventDefault(),m(u.toString())},children:u})},p)),n.end<r&&(0,pt.jsx)("li",{children:(0,pt.jsx)("button",{className:l(Oi,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,pt.jsx)(Br.FaArrowRight,{})})})]})})}var Tv=l("transition-colors duration-400 hover:text-primary ease-in-out");function ip({title:e,links:t}){let a=(0,ad.useSearchParams)(),o=(0,ad.usePathname)(),{replace:r}=(0,ad.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,pt.jsxs)(Ae,{children:[(0,pt.jsx)(Ze,{children:(0,pt.jsx)(et,{className:"text-accent",children:e&&e})}),(0,pt.jsx)(Fe,{children:t&&t.length>0&&(0,pt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,pt.jsx)("Ln",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,pt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:d=>{d.preventDefault(),s(n.href)},children:[n.label,(0,pt.jsx)(Vn.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function np({types:e}){let[t,a]=(0,pr.useState)(e&&e[0].href),o=(0,ad.useSearchParams)(),r=(0,ad.usePathname)(),{replace:s}=(0,ad.useRouter)();function n(i){let d=new URLSearchParams(o);i?d.set("type",i):d.delete("type"),a(i),s(`${r}?${d.toString()}`)}return(0,pt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,pt.jsx)(A,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},d))})}var _d=w(require("next/image"));var Gi=({links:e,media:t,children:a,richText:o})=>(0,pt.jsxs)("div",{className:"relative -pt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,pt.jsx)("div",{className:"container pt-[20rem] mb-8 pt-10 relative flex items-end justify-center",children:(0,pt.jsxs)("div",{className:"text-center container",children:[a||o&&(0,pt.jsx)(me,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,pt.jsx)("Ln",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,pt.jsx)("li",{children:(0,pt.jsx)(Lt,{...r})},s))})]})}),(0,pt.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,pt.jsx)(ea,{fill:!0,imgClassName:"pt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,pt.jsx)("div",{children:(0,pt.jsx)(_d.default,{className:"-pt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,pt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 pr-white dark:from-background/0 dark:pr-background"})]})]});var ji=w(require("next/image"));var lp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,pt.jsx)(ji.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,pt.jsx)("div",{children:(0,pt.jsx)(ji.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,pt.jsxs)("div",{className:"relative bg-brand-one pb-12 pt-20 pt-10",children:[t&&(0,pt.jsx)(lp,{media:t}),(0,pt.jsx)("div",{className:"mx-0 min-w-full relative pt-9",children:(0,pt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,pt.jsx)(me,{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,pt.jsx)("div",{className:"min-w-full py-10 bg-muted pt-24",children:(0,pt.jsx)("div",{className:"container",children:e||t&&(0,pt.jsx)(me,{content:t,enableGutter:!1})})});var Gd=w(require("react")),jd=w(require("next/image"));var dp=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,pt.jsxs)("div",{className:"relative grid",children:[(0,pt.jsx)("div",{className:"relative pt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,pt.jsxs)("div",{className:"container mx-auto",children:[(0,pt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,pt.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,pt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,pt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,pt.jsx)("p",{children:o.map((i,d)=>(0,pt.jsxs)(Gd.default.Fragment,{children:[i.name,d<o.length-2&&", ",d===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,pt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,pt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,pt.jsx)("time",{dateTime:r,children:hd(r)})]}),t&&t.length>0&&(0,pt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,pt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,pt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,d)=>typeof i=="object"&&i!==null&&(0,pt.jsx)(yt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||d))})]})]})]})}),(0,pt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,pt.jsx)(jd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,pt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-pr-t from-background dark:from-black pr-transparent"})]})]})};var $r=require("@heroicons/react/20/solid");var Wd=w(require("next/image"));function $i({title:e,breadcrumbItems:t,image:a}){return(0,pt.jsxs)("section",{className:"-pt-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,pt.jsx)("div",{className:"absolute inset-0 pt-0",children:a&&(0,pt.jsx)(Wd.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,pt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 pr-background dark:from-background/0 dark:pr-background"}),(0,pt.jsx)(Ka,{children:(0,pt.jsxs)("div",{className:"relative pt-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,pt.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,pt.jsx)(Ui,{breadcrumbItems:t})]})})]})}var cp={highImpact:Gi,lowImpact:Vi,mediumImpact:Wi,sectionHero:$i},mp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=cp[t];return a?(0,pt.jsx)(a,{...e}):null};function Ui({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,pt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,pt.jsxs)("Ln",{role:"list",className:"flex items-center space-x-4",children:[(0,pt.jsx)("li",{children:(0,pt.jsx)("div",{children:(0,pt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,pt.jsx)($r.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,pt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,pt.jsx)("li",{children:(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsx)($r.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,pt.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,pt.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,pt.jsx)(pt.Fragment,{})}var ct=require("@headlessui/react"),qr=require("@heroicons/react/24/outline");var pp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,pt.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,pt.jsxs)("span",{className:"relative",children:[e,(0,pt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,pt.jsxs)(ct.Popover,{children:[(0,pt.jsxs)(ct.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,pt.jsxs)("span",{className:"relative",children:[e,(0,pt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,pt.jsx)($d.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,pt.jsxs)(ct.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -pt-10 bg-popover pt-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,pt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 pt:gap-x-8 pt-50",children:t&&t.map(r=>(0,pt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,pt.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,pt.jsx)(Vd,{icon:r.icon,size:"4x"})}),(0,pt.jsxs)("a",{href:r.href,className:"pt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,pt.jsx)("span",{className:"absolute inset-0"})]}),(0,pt.jsx)("p",{className:"pt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,pt.jsx)("div",{className:"bg-gray-50",children:(0,pt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,pt.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,pt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,pt.jsx)(Vd,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Vd=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,pt.jsx)($e,{...e,size:a});if("src"in e)return(0,pt.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,pt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Ur=pp;var Xr=["light","dark","green"];function up({title:e,logo:t,menuItems:a}){let[o,r]=(0,pr.useState)(!1),[s,n]=(0,pr.useState)(!1),[i,d]=(0,pr.useState)("light"),m=t==null?void 0:t.split(".")[0],c=t==null?void 0:t.split(".")[1],[u,p]=(0,pr.useState)(`${m}.${c}`),f=g=>{Xr.includes(g)?p(g==="light"?`${m}.${c}`:`${m}-${g}.${c}`):p(`${m}.${c}`)};(0,pr.useEffect)(()=>{let g=localStorage.getItem("theme")||"light";d(g),document.documentElement.setAttribute("class",g),f(g)},[]);let y=()=>{let g=Xr[(Xr.indexOf(i)+1)%Xr.length];d(g),document.documentElement.setAttribute("class",g),localStorage.setItem("theme",g),f(g)};return(0,pt.jsxs)("header",{className:"relative isolate pt-10 bg-background h-14",children:[(0,pt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,pt.jsx)("div",{className:"flex lg:flex-1",children:(0,pt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:e}),(0,pt.jsx)("img",{alt:e,src:u,className:"h-9 w-auto"})]})}),(0,pt.jsx)("div",{className:"flex lg:hidden",children:(0,pt.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,pt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,pt.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,pt.jsx)(ct.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(g=>(0,pt.jsx)(Ur,{...g},g.name))}),(0,pt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,pt.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,pt.jsx)($r.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,pt.jsx)($r.MoonIcon,{className:"h-6 w-6"}):(0,pt.jsx)($r.SunIcon,{className:"h-6 w-6"})})})]}),(0,pt.jsxs)(ct.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,pt.jsx)("div",{className:"fixed inset-0 pt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,pt.jsxs)(ct.DialogPanel,{className:"fixed inset-y-0 right-0 pt-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,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,pt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,pt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,pt.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,pt.jsx)("div",{className:"pt-6 flow-root",children:(0,pt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,pt.jsx)("div",{className:"space-y-2 py-6",children:a.map(g=>(0,pt.jsx)(fp,{...g},g.name))})})})]})]})]})}function fp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,pt.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,pt.jsxs)(ct.Disclosure,{Zi:"div",className:"-mx-3",children:[(0,pt.jsx)(ct.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ln-3 pr-3.5 text-base font-semibold text-gray-900 hover:bg-gray-50",children:e}),(0,pt.jsx)(ct.DisclosurePanel,{className:"pt-2 space-y-2",children:t&&t.map(r=>(0,pt.jsx)(ct.DisclosureButton,{Zi:"a",href:r.href,className:"block rounded-lg py-2 Ln-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}var Yd=w(require("next/image"));var Xi=w(require("next/image"));function Ia({logoLight:e,logoDark:t,mobile:a=!1}){return(0,pt.jsxs)(Oe,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,pt.jsx)(Xi.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,pt.jsx)(Xi.default,{className:"logo-dark 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}})]})}var Ud=require("next-themes");function rr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,pr.useState)(!1),[n,i]=(0,pr.useState)(""),d=["light","dark"],{theme:m,setTheme:c}=(0,Ud.useTheme)();(0,pr.useEffect)(()=>{i(m||"dark")},[m]);let u=()=>{let p=d[(d.indexOf(n)+1)%d.length];i(p),c(p)};return(0,pr.useEffect)(()=>{let p=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsx)("header",{className:`pt-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,pt.jsx)(Ka,{className:"px-0",children:(0,pt.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-pt",children:(0,pt.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-pt border border-t-0 border-accent",children:[(0,pt.jsx)(Ia,{logoDark:a,logoLight:t}),(0,pt.jsx)(ct.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(p=>(0,pt.jsx)(Ur,{...p},p.name))}),(0,pt.jsx)("div",{className:"flex items-center space-x-4",children:(0,pt.jsx)("button",{className:"fixed right-4 pt-[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:u,children:(0,pt.jsxs)("div",{className:"relative",children:[(0,pt.jsx)(Vn.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,pt.jsx)(Vn.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var qi=["light","dark"];function sr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,pr.useState)(!1),{theme:n,setTheme:i}=(0,Ud.useTheme)(),[d,m]=(0,pr.useState)(!1),[c,u]=(0,pr.useState)("light");(0,pr.useEffect)(()=>{let f=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",f,{passive:!0}),()=>window.removeEventListener("scroll",f)},[]),(0,pr.useEffect)(()=>{u(n||"dark")},[n]);let p=()=>{let f=qi[(qi.indexOf(c)+1)%qi.length];u(f),i(f)};return(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsxs)("header",{className:`pt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,pt.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,pt.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&pt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,pt.jsx)(Ia,{logoDark:t,logoLight:e,mobile:!0}),(0,pt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,pt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 pt-[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,pt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,pt.jsx)(qr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,pt.jsx)("button",{className:"fixed right-16 pt-[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",onClick:p,children:(0,pt.jsxs)("div",{className:"relative",children:[(0,pt.jsx)(Vn.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,pt.jsx)(Vn.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,pt.jsxs)(ct.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,pt.jsx)("div",{className:"fixed inset-0 pt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,pt.jsxs)(ct.DialogPanel,{className:"fixed inset-y-0 right-0 pt-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,pt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,pt.jsx)(Ia,{logoDark:t,logoLight:e,mobile:!0}),(0,pt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,pt.jsx)(qr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,pt.jsx)("div",{className:"pt-6 flow-root",children:(0,pt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,pt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(f=>(0,pt.jsx)(gp,{...f},f.name))})})})]})]})]})})}function gp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,pt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,pt.jsxs)(ct.Disclosure,{Zi:"div",className:"-mx-3",children:[(0,pt.jsx)(ct.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 Ln-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,pt.jsx)(ct.DisclosurePanel,{className:"pt-2 space-y-2",children:t&&t.map(r=>(0,pt.jsx)(ct.DisclosureButton,{Zi:"a",href:r.href,className:"block rounded-lg py-2 Ln-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function bp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,pr.useState)(!1),[d,m]=(0,pr.useState)(!1),c=()=>{let p=document.getElementById("next-section");p&&p.scrollIntoView({behavior:"smooth"})};return(0,pr.useEffect)(()=>{let p=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,pt.jsxs)("div",{className:"relative h-screen",children:[(0,pt.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,pt.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,pt.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,pt.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!d&&(0,pt.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 pt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!d)},children:(0,pt.jsx)(Vn.Menu,{className:"w-6 h-6 text-white"})}),(0,pt.jsxs)("div",{className:"fixed top-0 left-0 right-0 pt-50",children:[(0,pt.jsx)(rr,{isMenuOpen:n||d,logoLight:t,logoDark:a,menuItems:o}),(0,pt.jsx)(sr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,pt.jsxs)("div",{className:"absolute inset-0 h-full pt-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,pt.jsx)(Yd.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto pt-8 hidden lg:block",d&&"lg:hidden")}),(0,pt.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,pt.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,pt.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,pt.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,pt.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:c,children:(0,pt.jsx)(Vn.ChevronDown,{size:64})})})]})]})}var Jd=w(require("next/image"));var yp=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Yi=l("text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]"),Ji=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Ki=l("flex items-center gap-5"),Zr=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function vp({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:d}=t;return(0,pt.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,pt.jsx)("div",{className:"py-16 md:py-20",children:(0,pt.jsx)("div",{className:"container",children:(0,pt.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 pt:grid-cols-4",children:[(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,pt.jsx)(Ia,{logoLight:a,logoDark:o}),(0,pt.jsx)("p",{className:"mb-7 pt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,pt.jsx)("nav",{"aria-label":"social links",children:(0,pt.jsx)("Ln",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,c)=>(0,pt.jsx)("li",{children:(0,pt.jsx)(Oe,{"aria-label":m.href,className:yp,href:m.href,openNewTab:!0,children:(0,pt.jsx)("span",{children:m.icon})})},c))})})]}),(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,pt.jsx)("h3",{className:Yi,children:s.title}),s.links&&s.links.length>0&&(0,pt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,pt.jsx)("Ln",{className:"grid gap-2",children:s.links.map(m=>(0,pt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,pt.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,pt.jsx)(Br.FaChevronRight,{})}),(0,pt.jsx)(Oe,{href:m.href,openNewTab:m.openNewTab,className:Zr,children:m.label})]},m.label))})})]}),(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,pt.jsx)("h3",{className:Yi,children:n.title}),(0,pt.jsxs)("Ln",{"aria-label":"addresses",className:"grid gap-5",children:[(0,pt.jsxs)("li",{className:Ki,children:[(0,pt.jsx)("span",{className:Ji,children:(0,pt.jsx)(Br.FaPaperPlane,{})}),(0,pt.jsx)("address",{className:"not-italic",children:n.location})]}),(0,pt.jsxs)("li",{className:Ki,children:[(0,pt.jsx)("span",{className:Ji,children:(0,pt.jsx)(Br.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,pt.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,pt.jsx)("a",{href:`mailto:${m}`,className:Zr,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,pt.jsxs)("li",{className:Ki,children:[(0,pt.jsx)("span",{className:Ji,children:(0,pt.jsx)(Br.FaPhone,{})}),(0,pt.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,pt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Zr,children:m},c))})]})]})]}),i&&(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,pt.jsx)("h3",{className:Yi,children:i.title}),i.blogs&&i.blogs.length>0&&(0,pt.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,c)=>(0,pt.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,pt.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,pt.jsx)(Jd.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,pt.jsxs)("div",{children:[(0,pt.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,pt.jsx)("span",{className:"text-accent",children:(0,pt.jsx)(Br.FaCalendarDays,{})}),(0,pt.jsx)("span",{children:wd(m.date)})]}),(0,pt.jsx)("h4",{className:"text-md font-bold leading-normal",children:(0,pt.jsx)(Oe,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},c))})]})]})})}),(0,pt.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,pt.jsx)("div",{className:"container",children:(0,pt.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10",children:[(0,pt.jsx)("p",{children:d.copyrightText}),d.links&&d.links.length>0&&(0,pt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,pt.jsx)("Ln",{className:"flex flex-wrap items-center gap-x-4 md:gap-x-7",children:d.links.map(m=>(0,pt.jsx)("li",{children:(0,pt.jsx)(Oe,{"aria-label":`Go pr page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Zr,children:m.label})},m.label))})})]})})})]})}function hp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,pt.jsxs)("div",{className:l("fixed top-0 left-0 right-0 pt-50",r),children:[(0,pt.jsx)(rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,pt.jsx)(sr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function xp({children:e,...t}){return(0,pt.jsx)(Ud.ThemeProvider,{...t,children:e})}var eo=require("sonner");function Qi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,pr.useState)([]),s=(0,ad.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(c=>c.id))},i=c=>{r(u=>u.includes(c)?u.filter(p=>p!==c):[...u,c])},d=async()=>{let c=await t(o);c.success?(eo.toast.success(c.message),s.refresh()):eo.toast.error(`Error: ${c.message}`),r([])},m=async()=>{let c=await a(o);c.success?(eo.toast.success(c.message),s.refresh()):eo.toast.error(`Error: ${c.message}`),r([])};return(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,pt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,pt.jsxs)("div",{className:"space-x-2",children:[(0,pt.jsx)(A,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,pt.jsx)(A,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,pt.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,pt.jsxs)("Ln",{className:"divide-y divide-gray-200",children:[(0,pt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsx)(kt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,pt.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,pt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(c=>(0,pt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsx)(kt,{id:`select-${c.id}`,checked:o.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,pt.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,pt.jsxs)(qt,{className:"h-10 w-10",children:[(0,pt.jsx)(Yt,{src:c.userImage,alt:c.userName}),(0,pt.jsx)(Jt,{children:c.userName.split(" ").map(u=>u[0]).join("")})]}),(0,pt.jsx)("div",{className:"ml-3",children:(0,pt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsxs)("span",{className:"text-sm text-gray-500",children:[new Date(c.startDate).toLocaleDateString(),c.startDate!==c.endDate&&` - ${new Date(c.endDate).toLocaleDateString()}`,c.leaveType!="Full Day"&&` (${c.leaveType})`,` - ${c.totalDays} day${c.totalDays!==1?"s":""}`]}),(0,pt.jsx)(yt,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,pt.jsx)(eo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"pt-50"})]})}var Zi=require("date-fns"),wp=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,pt.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,pt.jsx)(A,{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 tn({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,pr.useState)(new Date),[r,s]=(0,pr.useState)(new Date),[n,i]=(0,pr.useState)("Full Day"),[d,m]=(0,pr.useState)(!1),c=(0,ad.useRouter)();(0,pr.useEffect)(()=>{m(a!==r||!a||!r),d&&i("Full Day")},[a,r]);let u=f=>{i(f)};return(0,pt.jsxs)("div",{className:"max-w-2xl",children:[(0,pt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,pt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,pt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){eo.toast.error("Please select both start and end dates");return}let y=Math.ceil((r.getTime()-a.getTime())/(1e3*60*60*24))+1;if((n==="Morning"||n==="Afternoon")&&(y=.5),y>e){eo.toast.error("You do not have enough leave days remaining");return}let g=new FormData;g.append("startDate",a.toISOString()),g.append("endDate",r.toISOString()),g.append("leaveType",n),g.append("duration",y.toString());let x=await(t||Np)(g);x.success?(eo.toast.success(x.message),o(void 0),s(void 0),i("Full Day"),c.refresh()):eo.toast.error(`Error: ${x.message}`)},className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,pt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"startDate",children:"Start Date"}),(0,pt.jsxs)(Vo,{children:[(0,pt.jsx)($o,{asChild:!0,children:(0,pt.jsxs)(A,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,pt.jsx)(Vn.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,Zi.format)(a,"PPP"):(0,pt.jsx)("span",{children:"Pick a date"})]})}),(0,pt.jsx)(fo,{className:"w-auto p-0",align:"start",children:(0,pt.jsx)(qo,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,pt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"endDate",children:"End Date"}),(0,pt.jsxs)(Vo,{children:[(0,pt.jsx)($o,{asChild:!0,children:(0,pt.jsxs)(A,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,pt.jsx)(Vn.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,Zi.format)(r,"PPP"):(0,pt.jsx)("span",{children:"Pick a date"})]})}),(0,pt.jsx)(fo,{className:"w-auto p-0",align:"start",children:(0,pt.jsx)(qo,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)(le,{children:"Leave Type"}),(0,pt.jsx)(wp,{options:["Full Day","Morning","Afternoon"],value:n,onChange:u,disabled:[!1,d,d]})]}),(0,pt.jsx)(A,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,pt.jsx)(eo.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"pt-50"})]})}var Np=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function ac(...e){return e.filter(Boolean).join(" ")}function an({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))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)};return(0,pt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,pt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,pt.jsxs)("div",{className:"sm:flex-auto",children:[(0,pt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,pt.jsx)("p",{className:"pt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,pt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,pt.jsxs)(A,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,pt.jsx)(Vn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,pt.jsx)(A,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,pt.jsxs)(A,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,pt.jsx)(Vn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,pt.jsx)("div",{className:"pt-8 flow-root",children:(0,pt.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,pt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,pt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,pt.jsx)("thead",{className:"sticky top-0 pt-20 bg-white",children:(0,pt.jsxs)("tr",{children:[(0,pt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 pt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 Ln-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:Ln-6 lg:Ln-8",children:"Employee"}),[...Array(r)].map((d,m)=>(0,pt.jsx)("th",{scope:"col",className:"sticky top-0 pt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter",children:m+1},m))]})}),(0,pt.jsx)("tbody",{children:o.map((d,m)=>(0,pt.jsxs)("tr",{children:[(0,pt.jsx)("td",{className:ac(m!==o.length-1?"border-gray-200":"","sticky left-0 pt-10 bg-white border-r Ln-4 pr-3 text-sm font-medium text-gray-900 sm:Ln-6 lg:Ln-8"),children:(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsxs)(qt,{className:"h-11 w-11",children:[(0,pt.jsx)(Yt,{src:d.image,alt:d.name}),(0,pt.jsx)(Jt,{children:d.name.split(" ").map(c=>c[0]).join("")})]}),(0,pt.jsx)("div",{className:"ml-4",children:(0,pt.jsx)("div",{className:"font-medium text-accent",children:d.name})})]})}),[...Array(r)].map((c,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u+1),f=a.find(y=>y.userId===d.id&&new Date(y.startDate)<=p&&new Date(y.endDate)>=p);return(0,pt.jsx)("td",{className:ac(m!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200"),children:(0,pt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${f?f.status==="approved"?"bg-green-500":f.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:f?`${d.name}: ${f.status} (${f.startDate} - ${f.endDate}) - ${f.leaveType}`:"",children:f&&f.leaveType!=="Full Day"&&(0,pt.jsx)("div",{className:`h-3 w-6 ${f.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${d.id}-${u}`)})]},d.id))})]})})})})]})}function on({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,pr.useState)(null),s=new Date(e.getFullYear(),e.getMonth(),1).getDay(),n=Array.from({length:42},(c,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u-s+1);return{date:p,isCurrentMonth:p.getMonth()===e.getMonth(),isToday:p.toDateString()===new Date().toDateString(),holidays:a.filter(f=>new Date(f.startDate)<=p&&new Date(f.endDate)>=p)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},d=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,pt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,pt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,pt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,pt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,pt.jsx)("div",{className:"flex items-center",children:(0,pt.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,pt.jsxs)(A,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,pt.jsx)(Vn.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,pt.jsx)(A,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),(0,pt.jsxs)(A,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,pt.jsx)(Vn.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,pt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,pt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,pt.jsxs)("div",{className:"bg-white py-2",children:["M",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"pt"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,pt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,pt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(c=>(0,pt.jsxs)("div",{className:l(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,pt.jsx)("time",{dateTime:c.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",c.isToday&&"bg-indigo-600 font-semibold text-white"),children:c.date.getDate()}),c.holidays.length>0&&(0,pt.jsx)("Ln",{className:"pt-2 space-y-1",children:c.holidays.map(u=>(0,pt.jsx)("li",{children:(0,pt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border`,children:u.userName})},u.id))})]},c.date.toISOString()))}),(0,pt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,pt.jsxs)("button",{type:"button",className:l(c.isCurrentMonth?"bg-white":"bg-gray-50",(c.date===o||c.isToday)&&"font-semibold",c.date===o&&"text-white",!c.date&&c.isToday&&"text-indigo-600",c.date!==o&&c.isCurrentMonth&&!c.isToday&&"text-gray-900",c.date!==o&&!c.isCurrentMonth&&!c.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:pt-10"),children:[(0,pt.jsx)("time",{dateTime:c.date.toISOString(),className:l("ml-auto",c.date===o&&c.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",c.date===o&&!c.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:c.date.getDate()}),(0,pt.jsxs)("span",{className:"sr-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,pt.jsx)("span",{className:"-mx-0.5 pt-auto flex flex-wrap-reverse",children:c.holidays.map(u=>(0,pt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},c.date.toISOString()))})]})]})]})}var Aa=require("lucide-react");function rc(...e){return e.filter(Boolean).join(" ")}function Cp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[d,m]=(0,pr.useState)("Calendar View"),c=(0,ad.useRouter)(),u=!1,p=(0,Zi.parseISO)(a),f=async g=>{let x=(0,Zi.format)(g,"pt-MM-yyyy"),M=new URL(window.location.href);return M.searchParams.set("date",x),c.push(M.toString()),{success:!0}};if(u)return(0,pt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,pt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let y=[{name:"Grid View",icon:Aa.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Aa.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Aa.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Aa.CheckSquare,current:d==="Approve Leave"}];return(0,pt.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,pt.jsxs)("div",{className:"mb-8",children:[(0,pt.jsxs)("div",{className:"sm:hidden",children:[(0,pt.jsx)("select",{value:d,onChange:g=>m(g.target.value),className:"block w-full rounded-md border-gray-300 py-2 Ln-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:y.map(g=>(0,pt.jsx)("option",{children:g.name},g.name))}),(0,pt.jsx)(Vn.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,pt.jsx)("div",{className:"hidden sm:block",children:(0,pt.jsx)("div",{className:"border-b border-gray-200",children:(0,pt.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(g=>(0,pt.jsxs)("a",{onClick:()=>{(g.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(g.name)},className:rc(g.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",g.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":g.current?"page":void 0,children:[(0,pt.jsx)(g.icon,{className:rc(g.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,pt.jsx)("span",{children:g.name})]},g.name))})})})]}),d==="Grid View"&&(0,pt.jsx)(an,{currentDate:p,setCurrentDate:f,holidays:e,employees:r}),d==="Calendar View"&&(0,pt.jsx)(on,{currentDate:p,setCurrentDate:f,holidays:e}),d==="Request Leave"&&(0,pt.jsx)(tn,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:g=>s?s(g):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,pt.jsx)(Qi,{leaveRequests:o,onApprove:g=>n?n(g):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:g=>i?i(g):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function rn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var se,G,R,I,N;let[i,d]=(0,pr.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,c]=(0,pr.useState)(""),[u,p]=(0,pr.useState)(!1),[f,y]=(0,pr.useState)(null);(0,pr.useEffect)(()=>{p(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let g=async()=>{try{let b=await s(i);b.success?(p(!1),y(null)):console.error("Failed pr save deal:",b.errors)}catch(b){console.error("Failed pr save deal:",b)}},x=(b,C)=>{d(h=>({...h,[b]:C}))},M=b=>{let C=(i.categories||[]).includes(b)?(i.categories||[]).filter(h=>h!==b):[...i.categories||[],b];x("categories",C)},L=async()=>{if(m.trim()){let b={text:m,timestamp:new Date().toISOString()};try{let C=await n(b);if(!C.success){console.error("Failed pr add comment:",C.errors);return}}catch(C){console.error("Failed pr add comment:",C)}d(C=>({...C,comments:[...C.comments||[],b]})),c("")}},q=b=>{switch(b){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},V=b=>t==null?void 0:t.find(C=>C.id===Number(b));return(0,pt.jsx)(bt,{open:!0,children:(0,pt.jsxs)(lt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,pt.jsxs)(Rt,{className:"flex flex-row items-center justify-between",children:[(0,pt.jsx)(St,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,pt.jsxs)("div",{className:"flex space-x-2",children:[(0,pt.jsx)(A,{variant:"outline",onClick:r,children:"Close"}),(0,pt.jsxs)(A,{onClick:g,disabled:!u,children:[(0,pt.jsx)(Vn.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,pt.jsxs)(wa,{className:"flex-grow pr-4",children:[(0,pt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,pt.jsx)("div",{className:"grid gap-2",children:f==="value"?(0,pt.jsx)(Ke,{type:"number",value:i.value,onChange:b=>x("value",Number(b.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,pt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(se=i.value)==null?void 0:se.toLocaleString()]})}),(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),f==="assignee"?(0,pt.jsxs)(Ga,{value:((R=(G=i==null?void 0:i.assignee)==null?void 0:G.id)==null?void 0:R.toString())||"",onValueChange:b=>x("assignee",V(b)),children:[(0,pt.jsx)(Pa,{children:(0,pt.jsx)(ja,{placeholder:"Select assignee"})}),(0,pt.jsx)(Ra,{children:t&&t.map(b=>{var C;return(0,pt.jsx)(Sa,{value:((C=b==null?void 0:b.id)==null?void 0:C.toString())||"",children:b.name},b.id)})})]}):(0,pt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,pt.jsx)(Vn.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,pt.jsx)("span",{children:i.assignee.name})]})]}),(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),f==="closureDate"?(0,pt.jsx)(Ke,{type:"date",value:(N=(I=i.closureDate)==null?void 0:I.split("pt")[0])!=null?N:"",onChange:b=>x("closureDate",b.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,pt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,pt.jsx)(Vn.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,pt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("Vn-GB"):"N/A"})]})]})]}),(0,pt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Description"}),f==="description"?(0,pt.jsx)(ka,{value:i.description||"",onChange:b=>x("description",b.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,pt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,pt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Status"}),f==="status"?(0,pt.jsxs)(Ga,{value:i.status,onValueChange:b=>{x("status",b),y(null)},children:[(0,pt.jsx)(Pa,{children:(0,pt.jsx)(ja,{placeholder:"Select status"})}),(0,pt.jsx)(Ra,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(b=>(0,pt.jsx)(Sa,{value:b,children:b},b))})]}):(0,pt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:i.status})]}),(0,pt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Categories"}),f==="categories"?(0,pt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(b=>{var C,h;return(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsx)(kt,{id:((C=b.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(Q=>Q.id===b.id),onCheckedChange:()=>b.id!==void 0&&M(b)}),(0,pt.jsx)("label",{htmlFor:((h=b.id)!=null?h:"").toString(),className:`text-sm font-medium ${q(b.type||"sector")} px-2 py-1 rounded`,children:b.name})]},b.id)})}):(0,pt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(b=>{console.log("cat",b);let C=b;return C?(0,pt.jsx)(yt,{variant:"secondary",className:q(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,pt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,pt.jsx)(wa,{className:"h-[200px] overflow-y-auto",children:(0,pt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((b,C)=>new Date(C.timestamp||"").getTime()-new Date(b.timestamp||"").getTime()).map(b=>{var C;return(0,pt.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,pt.jsx)("p",{className:"text-sm text-gray-700",children:b.text}),(0,pt.jsxs)("p",{className:"text-xs text-gray-500 pt-1",children:[(C=b==null?void 0:b.author)==null?void 0:C.name," - ",new Date(b.timestamp||"").toLocaleString()]})]},b.id)})})}),(0,pt.jsxs)("div",{className:"flex pt-2",children:[(0,pt.jsx)(Ke,{value:m,onChange:b=>c(b.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,pt.jsxs)(A,{onClick:L,className:"ml-2",children:[(0,pt.jsx)(Vn.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,pt.jsxs)("div",{className:"text-xs text-gray-500 pt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function sn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,pt.jsxs)(Ae,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,pt.jsxs)(Ze,{className:"pb-2",children:[(0,pt.jsx)("div",{className:"flex justify-between items-center",children:(0,pt.jsx)(et,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,pt.jsx)("p",{className:"text-sm text-gray-500 pt-1",children:e.description})]}),(0,pt.jsxs)(Fe,{children:[(0,pt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,pt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,pt.jsx)(Vn.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,pt.jsx)("span",{children:e.assignee.name})]}),(0,pt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,pt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,pt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,pt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,pt.jsx)(Vn.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,pt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,pt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,pt.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var rs=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function nn({onSubmit:e}){var r;let[t,a]=(0,pr.useState)({name:"",intro:"",active:!0});return(0,pt.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"customerName",children:"Customer Name"}),(0,pt.jsx)(Ke,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"customerIntro",children:"Intro"}),(0,pt.jsx)(ka,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsx)(kt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,pt.jsx)(le,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,pt.jsx)(A,{type:"submit",className:"w-full",children:"Add Customer"})]})}function ln({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var q,V,se,G;let[i,d]=(0,pr.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("pt")[0],closureDate:"",comments:[],description:""}),[m,c]=(0,pr.useState)(!1),[u,p]=(0,pr.useState)({});(0,pr.useEffect)(()=>{r&&d(r)},[r]);let f=()=>{let R={};return i.customer||(R.customer="Customer is required"),i.value||(R.value="Value is required"),i.assignee||(R.assignee="Assignee is required"),i.closureDate||(R.closureDate="Closure Date is required"),p(R),Object.keys(R).length===0},y=async R=>{R.preventDefault(),p({});try{if(f()){let I=await o({...i});I.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):p(I.errors||{})}}catch{p({submit:"pt error occurred while submitting the form."})}},g=R=>{console.log(R),d(I=>({...I,categories:(I.categories||[]).includes(R.id)?(I.categories||[]).filter(N=>N!==R.id):[...I.categories||[],R.id]}))},x=async R=>{d({...i,customer:R});try{let I=await s(R);I.success?c(!1):p(I.errors||{})}catch{p({submit:"pt error occurred while submitting the form."})}},M=R=>t==null?void 0:t.find(I=>I.id===Number(R)),L=R=>e==null?void 0:e.find(I=>I.id===Number(R));return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,pt.jsx)(wa,{className:"h-[60vh] pr-4",children:(0,pt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"customer",children:"Customer"}),(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsxs)(Ga,{value:(V=(q=i.customer)==null?void 0:q.id)==null?void 0:V.toString(),onValueChange:R=>d({...i,customer:L(R)}),children:[(0,pt.jsx)(Pa,{children:(0,pt.jsx)(ja,{placeholder:"Select customer"})}),(0,pt.jsx)(Ra,{children:e.map(R=>{var I;return(0,pt.jsx)(Sa,{value:((I=R.id)==null?void 0:I.toString())||"",children:R.name},R.id)})})]}),(0,pt.jsx)(A,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,pt.jsx)(Vn.PlusIcon,{className:"w-5 h-5"})})]}),u.customerId&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.customerId})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"value",children:"Value"}),(0,pt.jsx)(Ke,{id:"value",type:"number",value:i.value||"",onChange:R=>d({...i,value:Number.parseFloat(R.target.value)}),placeholder:"Enter deal value"}),u.value&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.value})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"assignee",children:"Assignee"}),(0,pt.jsxs)(Ga,{value:(G=(se=i.assignee)==null?void 0:se.id)==null?void 0:G.toString(),onValueChange:R=>d({...i,assignee:M(R)}),children:[(0,pt.jsx)(Pa,{children:(0,pt.jsx)(ja,{placeholder:"Select assignee"})}),(0,pt.jsx)(Ra,{children:t&&t.map(R=>{var I;return(0,pt.jsx)(Sa,{value:((I=R.id)==null?void 0:I.toString())||"",children:R.name},R.id)})})]}),u.assignee&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.assignee})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"description",children:"Description"}),(0,pt.jsx)(ka,{id:"description",value:i.description||"",onChange:R=>d({...i,description:R.target.value}),placeholder:"Enter deal description"})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{children:"Categories"}),(0,pt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(R=>(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)("h4",{className:"text-sm font-medium",children:R.charAt(0).toUpperCase()+R.slice(1)}),(0,pt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===R).map(I=>{var N;return(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsx)(kt,{id:I.id.toString(),checked:(N=i.categories)==null?void 0:N.includes(I.id),onCheckedChange:()=>g(I)}),(0,pt.jsx)("label",{htmlFor:I.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.id)})})]},R))})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"closureDate",children:"Closure Date"}),(0,pt.jsx)(Ke,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:R=>d({...i,closureDate:R.target.value})}),u.closureDate&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.closureDate})]})]})}),(0,pt.jsx)(A,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,pt.jsx)(bt,{open:m,onOpenChange:c,children:(0,pt.jsxs)(lt,{children:[(0,pt.jsx)(Rt,{children:(0,pt.jsx)(St,{children:"Add New Customer"})}),(0,pt.jsx)(nn,{onSubmit:x})]})})]})}function dn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:d,onAddCustomer:m}){let[c,u]=(0,pr.useState)(!1);return(0,pt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,pt.jsx)("h2",{className:"text-pt font-semibold mb-4",children:e}),d&&(0,pt.jsxs)(bt,{open:c,onOpenChange:u,children:[(0,pt.jsx)(Pr,{asChild:!0,children:(0,pt.jsxs)(A,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,pt.jsx)(Vn.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,pt.jsxs)(lt,{children:[(0,pt.jsx)(Rt,{children:(0,pt.jsx)(St,{children:"Add New Deal"})}),(0,pt.jsx)(ln,{customers:o,users:a,categories:r,onSubmit:d,onAddCustomer:m,onClose:()=>u(!1)})]})]}),(0,pt.jsx)(rs.Droppable,{droppableId:e,isDropDisabled:!1,children:p=>(0,pt.jsxs)("div",{ref:p.innerRef,...p.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((f,y)=>(0,pt.jsx)(rs.Draggable,{draggableId:f.id.toString(),index:f.id,children:g=>(0,pt.jsx)("div",{ref:g.innerRef,...g.draggableProps,...g.dragHandleProps,children:(0,pt.jsx)(sn,{deal:f,customer:f.customer,categories:r,onClick:()=>s(f)})})},f.id.toString())),p.placeholder]})}),(0,pt.jsxs)("div",{className:"pt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,pt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,pt.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,pt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,pt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Pp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Rp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var u;let[s,n]=(0,pr.useState)(null),i=p=>{var f;return((f=e.deals)!=null?f:[]).filter(y=>y.status===p)},d=p=>p.reduce((f,y)=>f+(y.value||0),0),m=(p,f)=>{let y={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((g,x)=>g+(x.value||0)*y[f],0)},c=(0,pr.useCallback)(p=>{var q,V;let{source:f,destination:y}=p;if(!y||f.droppableId===y.droppableId&&f.index===y.index)return;let g=f.droppableId,x=y.droppableId,M=(q=e.deals)==null?void 0:q.filter(se=>se.id===f.index)[0],L=[...(V=e.deals)!=null?V:[]];M&&(M.status=x,a(M))},[a]);return(0,pt.jsx)(rs.DragDropContext,{onDragEnd:c,children:(0,pt.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,pt.jsx)("div",{className:"flex space-x-4 pb-4",children:Pp.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{var y,g;let f=i(p);return(0,pt.jsx)(dn,{status:p,deals:f,customers:(y=e.customers)!=null?y:[],users:e.users,categories:(g=e.categories)!=null?g:[],onDealClick:n,calculateColumnValue:d,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,pt.jsx)(rn,{deal:s,users:e.users,customer:s.customer,categories:(u=e.categories)!=null?u:[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});
24
+ `,className:l("pointer-events-none object-cover [transition:all_500ms_ease]","group-hover/blog:opacity-0 group-hover/blog:[filter:blur(10px)] group-hover/blog:[transform:translatex(-50%)_scalex(2)]")}),(0,pt.jsxs)("div",{className:"relative pt-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,pt.jsx)("div",{children:(0,pt.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/40 px-4 py-3 text-center font-secondary text-od font-bold text-foreground transition-colors group-hover/blog:bg-accent group-hover/blog:text-accent-foreground od:text-lg",children:(0,pt.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,pt.jsx)("span",{className:"block",children:wd(r)})})})}),(0,pt.jsxs)("div",{className:"pt-auto space-y-2 text-white od:space-y-5",children:[(0,pt.jsx)("div",{className:"inline-flex flex-wrap items-center gap-x-5 gap-y-2",children:(0,pt.jsx)("p",{className:Rd})}),(0,pt.jsx)("h3",{className:"text-od font-bold w-full p-6 bg-background/60 leading-[1.25] text-foreground od:text-lg",children:(0,pt.jsx)(Oe,{"aria-label":o,href:e,className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,pt.jsx)("div",{children:(0,pt.jsxs)(Oe,{href:e,className:l(Rd,"gap-[.625rem] font-secondary border bg-background/80 border-accent px-4 py-2 mx-6 my-3 text-base font-bold uppercase leading-[2] tracking-wide text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,pt.jsx)("span",{children:"Read More"}),(0,pt.jsx)("span",{className:"text-accent",children:(0,pt.jsx)(zr.FaArrowRight,{})})]})})]})]})]})}var Dd=w(require("html2canvas")),Fi=require("jspdf");function tp(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 ap=({page:e,layout:t="portrait"})=>t==="flow"?(0,$.jsx)(Md,{page:e,layout:t}):(0,$.jsx)(Id,{page:e,layout:t}),Md=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=cs(e),o={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},r=async()=>{s("printable-content")},s=async i=>{let c=document.getElementById(i);if(!c)throw new Error(`Element with id ${i} not found`);let m=document.createElement("canvas"),d=window.devicePixelRatio;m.width=Math.max(c.clientWidth||0)*d,m.height=Math.max(c.clientHeight||0)*d+100;let u=m.getContext("2d");if(!u)throw new Error("Failed to get 2D context");let p=u.drawImage,b=Array.from(c.getElementsByTagName("img")).reduce((I,N)=>(I[N.src]=N,I),{});u.drawImage=function(...I){let[N,g,C,h,Q,Se,Ye,Re,Le]=I;if(N instanceof HTMLImageElement){let Et=b[N.src].style.objectFit||"fill",wt=b[N.src].style.objectPosition||"center center";Q=N.height,h=N.width;let rt=h/Q,ie=Re/Le,[Ie,Be]=wt.split(" ");switch(Be||(Be=Ie),Et){case"cover":if(rt>ie){let oe=Q*ie,X=(h-oe)/2;Ie==="left"&&(X=0),Ie==="right"&&(X=h-oe),g+=X,h=oe}else{let oe=h/ie,X=(Q-oe)/2;Be==="top"&&(X=0),Be==="bottom"&&(X=Q-oe),C+=X,Q=oe}break;case"contain":if(rt>ie){let oe=Re/rt,X=(Le-oe)/2;Be==="top"&&(X=0),Be==="bottom"&&(X=Le-oe),Ye+=X,Le=oe}else{let oe=Le*rt,X=(Re-oe)/2;Ie==="left"&&(X=0),Ie==="right"&&(X=Re-oe),Se+=X,Re=oe}break;case"fill":break}}return p.call(u,N,g,C,h,Q,Se,Ye,Re,Le)};let y=document.getElementById(i);if(!y)throw new Error(`Element with id ${i} not found`);var f=m.width,x=m.height;let L=(await(0,Dd.default)(y,{canvas:m,windowHeight:x,windowWidth:f,scale:window.devicePixelRatio})).toDataURL("image/png"),V=new Fi.jsPDF({}).getImageProperties(L),se=297,G=se*(V.height/V.width),S=new Fi.jsPDF({unit:"mm",format:[se,G]});S.addImage(L,"PNG",0,0,se,G),S.save("print.pdf")},n=[o,...a];return(0,$.jsxs)("div",{className:"w-[297mm]",children:[(0,$.jsx)("div",{className:"fixed top-20 right-4 pt-[1000] print:hidden",children:(0,$.jsx)(A,{onClick:r,variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),(0,$.jsxs)("div",{id:"printable-content",children:[n.map((i,c)=>(0,$.jsx)($.Fragment,{children:c===0?(0,$.jsx)("section",{className:"title-page w-full h-full",children:(0,$.jsx)(tr,{hero:e.hero,title:e.title})},c):(0,$.jsxs)("section",{className:"normal-page",children:[i.blockName&&(0,$.jsx)(er,{title:i.blockName}),(0,$.jsx)(go,{blocks:[i],fill:!0})]},c)})),(0,$.jsx)("section",{className:"normal-page",children:(0,$.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
25
+ dark bg-background text-primary`,children:[(0,$.jsxs)("div",{className:"flex px-6 items-center space-x-2",children:[(0,$.jsx)("img",{src:ho.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,$.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,$.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})]})},Id=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=cs(e),o=(0,ur.useRef)(null),r=(0,ur.useRef)(null),s=(0,ur.useRef)(new Iy.Previewer),[n,i]=(0,ur.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],d=(0,ur.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[]);return(0,ur.useEffect)(()=>{s.current=new Iy.Previewer,d()},[d]),(0,$.jsxs)("div",{className:"pagedjs-container",children:[(0,$.jsx)("div",{className:"fixed top-20 right-4 pt-[1000] print:hidden",children:(0,$.jsx)(A,{onClick:async()=>{await new Promise(p=>setTimeout(p,300)),window.print()},variant:"outline",className:"px-5 py-2 text-sm font-semibold",children:"Print to PDF"})}),(0,$.jsx)("div",{id:"printable-content",ref:r,style:{display:"block"},className:"pagedjs-content",children:m.map((p,b)=>{var y,f;return(0,$.jsx)($.Fragment,{children:b===0?(0,$.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,$.jsx)(tr,{hero:e.hero,title:e.title})},b):(0,$.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${tp("185mm")}px]`,((f=(y=p.theme)==null?void 0:y.settings)==null?void 0:f.theme)==="dark"?"dark":"light"),children:[p.blockName&&(0,$.jsx)(er,{title:p.blockName}),(0,$.jsx)(go,{blocks:[p],fill:!0})]},b)})})}),(0,$.jsx)("div",{ref:o,className:"preview-container"})]})};var Oi=w(require("clsx"));function op({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:c,...m}){let u=c?p=>(0,pt.jsx)(c,{...p}):n?({href:p,children:b,...y})=>(0,pt.jsx)("button",{onClick:()=>n&&n(p),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...y,children:b}):p=>(0,pt.jsx)("a",{...p});return(0,pt.jsxs)(Ba,{...m,variant:"inset",children:[(0,pt.jsx)(za,{children:(0,pt.jsx)(Qe,{children:(0,pt.jsx)(He,{children:i?(0,pt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,pt.jsx)(fe,{className:"bg-gray-200 my-2 w-full h-7"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,pt.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,pt.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,pt.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,pt.jsxs)(ba,{children:[(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"}),(0,pt.jsx)(fe,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,pt.jsxs)(ba,{children:[e&&!i&&e.map((p,b)=>(0,pt.jsx)(rp,{subNav:p,pathName:r,Link:u},b)),(0,pt.jsx)(ut,{className:"pt-auto",children:(0,pt.jsx)(Ct,{children:(0,pt.jsx)(Qe,{children:t&&!i&&t.map(p=>(0,pt.jsx)(He,{children:(0,pt.jsx)(ft,{asChild:!0,size:"sm",children:(0,pt.jsxs)(u,{href:p.url||"",children:[p.icon&&(0,pt.jsx)(p.icon,{}),(0,pt.jsx)("span",{children:p.label})]})})},p.label))})})})]}),(0,pt.jsx)(Ha,{})]})}function rp({subNav:e,pathName:t,Link:a}){var s,n;let o=e,r=!1;return o.links&&o.links.map(i=>{i.url===t&&(r=!0)}),(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsx)(ut,{className:"py-0",children:(0,pt.jsx)(Qe,{children:(0,pt.jsx)(Wt,{asChild:!0,defaultOpen:o.isActive,children:(0,pt.jsxs)(He,{children:[(0,pt.jsx)(ft,{asChild:!0,tooltip:o.label,className:(0,Oi.default)(r&&"font-bold text-accent"),children:(0,pt.jsxs)(a,{href:o.url,children:[o.icon&&(0,pt.jsx)(o.icon,{}),(0,pt.jsx)("span",{children:o.label})]})}),(s=o.links)!=null&&s.length?(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(ua,{asChild:!0,children:(0,pt.jsxs)(zo,{className:"data-[state=open]:rotate-90",children:[(0,pt.jsx)($n.ChevronRight,{}),(0,pt.jsx)("span",{className:"sr-only",children:"Toggle"})]})}),(0,pt.jsx)(fa,{children:(0,pt.jsx)(ya,{children:(n=o.links)==null?void 0:n.map(i=>(0,pt.jsx)(va,{children:(0,pt.jsx)(ha,{asChild:!0,className:(0,Oi.default)(i.url===t&&"font-bold text-accent"),children:(0,pt.jsx)(a,{href:i.url,children:(0,pt.jsx)("span",{children:i.label})})})},i.label))})})]}):null]})},o.label)})})})}var Ed=w(require("clsx"));var sp=()=>(0,pt.jsx)($e,{iconName:"github",size:"10x"});function ip({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:c,onNavClick:m,LinkComponent:d,...u}){let y=d?f=>(0,pt.jsx)(d,{...f}):m?({item:f,children:x,...T})=>(0,pt.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...T,children:x}):f=>(0,pt.jsx)("a",{href:f.href,...f});return(0,pt.jsxs)(Ba,{side:"right",variant:"inset",...u,children:[(0,pt.jsxs)(za,{className:"border-b border-sidebar-border",children:[(0,pt.jsxs)(Qe,{className:"flex-row space-x-1",children:[(0,pt.jsx)(He,{children:(0,pt.jsxs)(ft,{onClick:s,children:[(0,pt.jsx)($n.FilePlus,{})," ",(0,pt.jsx)("span",{children:"Add Document"})]})}),c&&(0,pt.jsx)(He,{children:(0,pt.jsx)(ft,{onClick:c,tooltip:"Open in GitHub",children:(0,pt.jsx)(sp,{})})})]}),(0,pt.jsxs)(Qe,{className:"flex-row space-x-1",children:[(0,pt.jsx)(He,{className:"w-5/12",children:(0,pt.jsxs)(ft,{onClick:()=>n(),variant:r?"outline":"default",className:(0,Ed.default)(r&&"text-accent"),children:[(0,pt.jsx)($n.Edit,{})," ",(0,pt.jsx)("span",{children:"Edit"})]})}),(0,pt.jsx)(He,{className:"w-5/12",children:(0,pt.jsxs)(ft,{onClick:i,children:[(0,pt.jsx)($n.Printer,{})," ",(0,pt.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{asChild:!0,children:(0,pt.jsxs)(ua,{children:["Editor Controls",(0,pt.jsx)($n.ChevronDown,{className:"$n-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(fa,{children:a})})]})}),(0,pt.jsx)(Bo,{className:"mx-0"})]}),(0,pt.jsxs)(ba,{className:"overflow-auto",children:[o&&(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{children:"Related Content"}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(Qe,{children:Array.from({length:3}).map((f,x)=>(0,pt.jsx)(He,{children:(0,pt.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},x))})})]}),(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{children:"Table of Contents"}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(Qe,{children:Array.from({length:3}).map((f,x)=>(0,pt.jsx)(He,{children:(0,pt.jsx)(fe,{className:"bg-gray-200 w-full h-10"})},x))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{asChild:!0,children:(0,pt.jsxs)(ua,{children:["Related Content",(0,pt.jsx)($n.ChevronDown,{className:"$n-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(fa,{children:(0,pt.jsx)(Qe,{children:e&&Object.keys(e).map(f=>(0,pt.jsxs)(He,{children:[(0,pt.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,pt.jsx)(ya,{children:e[f].map(x=>(0,pt.jsx)(va,{children:(0,pt.jsx)(ha,{asChild:!0,isActive:!1,size:"sm",children:(0,pt.jsxs)(y,{href:x.url,item:x,className:"flex justify-between items-center w-full text-xs",children:[(0,pt.jsx)("span",{children:x.label}),x.type==="note"&&(0,pt.jsx)($n.PencilLine,{className:"$n-2 text-gray-400 !important",size:16}),x.type==="draft"&&(0,pt.jsx)($e,{iconName:"code-pull-request-draft",className:"$n-2 text-gray-400 !important"})]})})},x.label))})]},f))})})})]})}),t&&!o&&(0,pt.jsx)(Wt,{defaultOpen:!0,className:"group/collapsible",children:(0,pt.jsxs)(ut,{children:[(0,pt.jsx)($t,{asChild:!0,children:(0,pt.jsxs)(ua,{children:["Table of Contents",(0,pt.jsx)($n.ChevronDown,{className:"$n-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,pt.jsx)(Ct,{children:(0,pt.jsx)(fa,{children:(0,pt.jsx)(Qe,{children:t.map(f=>{var x;return(0,pt.jsxs)(He,{children:[(0,pt.jsx)(ft,{asChild:!0,children:(0,pt.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),(x=f.items)!=null&&x.length?(0,pt.jsx)(ya,{children:f.items.map(T=>(0,pt.jsx)(va,{children:(0,pt.jsx)(ha,{asChild:!0,isActive:T.isActive,size:"sm",children:(0,pt.jsx)("a",{href:`#${T.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,pt.jsx)("span",{children:T.title})})})},T.title))}):null]},f.title)})})})})]})})]}),(0,pt.jsx)(Ha,{})]})}var Bd=w(require("next/image"));function np({title:e,members:t}){return(0,pt.jsx)(Ae,{className:"mb-6",children:(0,pt.jsxs)("div",{className:"p-6",children:[(0,pt.jsxs)("div",{className:"flex items-center mb-4",children:[(0,pt.jsx)($n.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,pt.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,pt.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,pt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,pt.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,pt.jsx)(Bd.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,pt.jsxs)("div",{children:[(0,pt.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,pt.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var zd=w(require("next/link"));var lp=({links:e,title:t="Related Content"})=>(0,pt.jsxs)(Ae,{children:[(0,pt.jsx)(Ze,{children:(0,pt.jsx)(et,{className:"text-accent",children:t})}),(0,pt.jsx)(Fe,{children:(0,pt.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,pt.jsxs)(zd.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,pt.jsx)($n.ExternalLink,{className:"$n-1 h-3 w-3"})]},o))})})]});var _i=l("grid h-[45px] w-[45px] place-items-center border border-[#3b3b3b] font-secondary text-base text-foreground rounded-full transition-colors duration-300 hover:bg-accent hover:border-accent hover:text-accent-foreground");function dp({pages:e}){let t=(0,od.useSearchParams)(),a=(0,od.usePathname)(),{replace:o}=(0,od.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,ur.useState)({start:s>3?s-3:1,end:s+2}),c=u=>{u==="left"&&n.start>1?i(p=>({start:p.start-1,end:p.end-1})):u==="right"&&n.end<r&&i(p=>({start:p.start+1,end:p.end+1}))};function m(u){let p=new URLSearchParams(t);u?p.set("page",u):p.delete("page"),o(`${a}?${p.toString()}`)}if(r<=1)return null;let d=[];for(let u=n.start;u<=n.end;u++)d.push(u);return(0,pt.jsx)("div",{className:"pt-12",children:(0,pt.jsxs)("Bn",{className:"flex flex-wrap items-center justify-center gap-3 od:gap-5","aria-label":"pagination",children:[n.start>1&&(0,pt.jsx)("li",{children:(0,pt.jsx)("button",{className:l(_i,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>c("left"),children:(0,pt.jsx)(zr.FaArrowLeft,{})})}),d.map((u,p)=>(0,pt.jsx)("li",{children:(0,pt.jsx)("a",{className:l(_i,u===s?"border-accent bg-accent text-accent-foreground":""),href:"#","aria-label":`pagination button ${u}`,role:"button",onClick:b=>{b.preventDefault(),m(u.toString())},children:u})},p)),n.end<r&&(0,pt.jsx)("li",{children:(0,pt.jsx)("button",{className:l(_i,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>c("right"),children:(0,pt.jsx)(zr.FaArrowRight,{})})})]})})}var Av=l("transition-colors duration-400 hover:text-primary ease-in-out");function cp({title:e,links:t}){let a=(0,od.useSearchParams)(),o=(0,od.usePathname)(),{replace:r}=(0,od.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,pt.jsxs)(Ae,{children:[(0,pt.jsx)(Ze,{children:(0,pt.jsx)(et,{className:"text-accent",children:e&&e})}),(0,pt.jsx)(Fe,{children:t&&t.length>0&&(0,pt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,pt.jsx)("Bn",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,pt.jsxs)("li",{className:"flex items-center text-sm text-primary hover:text-accent dark:text-foreground first:pt-0 hover:cursor-pointer",onClick:c=>{c.preventDefault(),s(n.href)},children:[n.label,(0,pt.jsx)($n.ExternalLink,{className:"$n-1 h-3 w-3"})]},i))})})})]})}function mp({types:e}){let[t,a]=(0,ur.useState)(e&&e[0].href),o=(0,od.useSearchParams)(),r=(0,od.usePathname)(),{replace:s}=(0,od.useRouter)();function n(i){let c=new URLSearchParams(o);i?c.set("type",i):c.delete("type"),a(i),s(`${r}?${c.toString()}`)}return(0,pt.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-x-auto pb-4 mb-6",children:e&&e.map((i,c)=>(0,pt.jsx)(A,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},c))})}var Gd=w(require("next/image"));var ji=({links:e,media:t,children:a,richText:o})=>(0,pt.jsxs)("div",{className:"relative -pt-[10.4rem] flex items-end justify-center text-white","data-theme":"dark",children:[(0,pt.jsx)("div",{className:"container pt-[20rem] mb-8 pt-10 relative flex items-end justify-center",children:(0,pt.jsxs)("div",{className:"text-center container",children:[a||o&&(0,pt.jsx)(me,{className:"mb-6 prose prose-h1:text-5xl prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,pt.jsx)("Bn",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,pt.jsx)("li",{children:(0,pt.jsx)(Lt,{...r})},s))})]})}),(0,pt.jsxs)("div",{className:"min-h-96 select-none",children:[t&&typeof t=="object"&&(0,pt.jsx)(ea,{fill:!0,imgClassName:"pt-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,pt.jsx)("div",{children:(0,pt.jsx)(Gd.default,{className:"-pt-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,pt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-white/0 to-white dark:from-background/0 dark:to-background"})]})]});var Wi=w(require("next/image"));var pp=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,pt.jsx)(Wi.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,pt.jsx)("div",{children:(0,pt.jsx)(Wi.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},Vi=({links:e,media:t,children:a,richText:o})=>(0,pt.jsxs)("div",{className:"relative bg-brand-one pb-12 pt-20 pt-10",children:[t&&(0,pt.jsx)(pp,{media:t}),(0,pt.jsx)("div",{className:"mx-0 min-w-full relative pt-9",children:(0,pt.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,pt.jsx)(me,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var $i=({children:e,richText:t})=>(0,$r.jsx)("div",{className:"min-w-full py-10 bg-muted pt-24",children:(0,$r.jsx)("div",{className:"container",children:e||t&&(0,$r.jsx)(me,{content:t,enableGutter:!1})})});var jd=w(require("react")),Wd=w(require("next/image"));var up=({post:e})=>{var n;let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,pt.jsxs)("div",{className:"relative grid",children:[(0,pt.jsx)("div",{className:"relative pt-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground p-6 lg:p-12",children:(0,pt.jsxs)("div",{className:"container mx-auto",children:[(0,pt.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,pt.jsxs)("div",{className:"flex flex-col gap-4 od:flex-row od:gap-16 ",children:[o&&o.length>0&&(0,pt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,pt.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,pt.jsx)("p",{children:o.map((i,c)=>(0,pt.jsxs)(jd.default.Fragment,{children:[i.name,c<o.length-2&&", ",c===o.length-2&&(o.length>2?", and ":" and ")]},i.id))})]}),r&&(0,pt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,pt.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,pt.jsx)("time",{dateTime:r,children:xd(r)})]}),t&&t.length>0&&(0,pt.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,pt.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,pt.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((i,c)=>typeof i=="object"&&i!==null&&(0,pt.jsx)(yt,{className:"px-3 py-1 mx-1",children:i.title||"Untitled category"},i.id||c))})]})]})]})}),(0,pt.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,pt.jsx)(Wd.default,{className:"object-cover",alt:`Cover image for ${s}`,src:((n=a==null?void 0:a.image)==null?void 0:n.url)||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,pt.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-to-t from-background dark:from-black to-transparent"})]})]})};var Ur=require("@heroicons/react/20/solid");var Vd=w(require("next/image"));function Ui({title:e,breadcrumbItems:t,image:a}){return(0,pt.jsxs)("section",{className:"-pt-10 relative flex min-h-[250px] pt-auto items-end",children:[(0,pt.jsx)("div",{className:"absolute inset-0 pt-0",children:a&&(0,pt.jsx)(Vd.default,{priority:!0,src:a.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"})}),(0,pt.jsx)("span",{className:"absolute inset-0 bg-gradient-1 from-background/0 to-background dark:from-background/0 dark:to-background"}),(0,pt.jsx)(Qa,{children:(0,pt.jsxs)("div",{className:"relative pt-10 flex flex-wrap items-center justify-between gap-x-20 gap-y-8 text-accent-900 dark:text-white lg:pt-[40px] pb-5",children:[(0,pt.jsx)("h1",{className:"font-secondary text-5xl font-bold lg:w-1/2",children:e}),t&&t.length>0&&(0,pt.jsx)(Xi,{breadcrumbItems:t})]})})]})}var fp={highImpact:ji,lowImpact:$i,mediumImpact:Vi,sectionHero:Ui},gp=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=fp[t];return a?(0,pt.jsx)(a,{...e}):null};function Xi({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,pt.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,pt.jsxs)("ol",{role:"list",className:"flex items-center space-x-4",children:[(0,pt.jsx)("li",{children:(0,pt.jsx)("div",{children:(0,pt.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,pt.jsx)(Ur.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,pt.jsx)("span",{className:"sr-only",children:"Home"})]})})}),t.map((a,o)=>(0,pt.jsx)("li",{children:(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsx)(Ur.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,pt.jsx)("a",{href:a.href,className:"$n-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,pt.jsx)("div",{className:"$n-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,pt.jsx)(pt.Fragment,{})}var ct=require("@headlessui/react"),Yr=require("@heroicons/react/24/outline");var bp=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,pt.jsx)("a",{href:o,className:"flex items-center gap-x-1 text-sm font-semibold text-foreground group",children:(0,pt.jsxs)("span",{className:"relative",children:[e,(0,pt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]})}):(0,pt.jsxs)(ct.Popover,{children:[(0,pt.jsxs)(ct.PopoverButton,{className:"flex items-center gap-x-1 text-sm/6 font-semibold text-foreground outline-none group",children:[(0,pt.jsxs)("span",{className:"relative",children:[e,(0,pt.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-x-1/2 scale-x-0 transition-transform duration-300 ease-in-out group-hover:scale-x-100"})]}),(0,pt.jsx)(Ur.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,pt.jsxs)(ct.PopoverPanel,{transition:!0,className:"absolute inset-x-0 top-0 -pt-10 bg-popover pt-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,pt.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-x-4 px-6 py-10 lg:px-8 xl:gap-x-8 pt-50",children:t&&t.map(r=>(0,pt.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,pt.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,pt.jsx)($d,{icon:r.icon,size:"4x"})}),(0,pt.jsxs)("a",{href:r.href,className:"pt-6 block font-semibold text-popover-foreground group-hover:text-accent",children:[r.name,(0,pt.jsx)("span",{className:"absolute inset-0"})]}),(0,pt.jsx)("p",{className:"pt-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,pt.jsx)("div",{className:"bg-gray-50",children:(0,pt.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,pt.jsx)("div",{className:"grid grid-cols-3 divide-x divide-gray-900/5 border-x border-gray-900/5",children:a.map(r=>(0,pt.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-x-2.5 p-3 text-sm/6 font-semibold text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,pt.jsx)($d,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),$d=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,pt.jsx)($e,{...e,size:a});if("src"in e)return(0,pt.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,pt.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Xr=bp;var qr=["light","dark","green"];function yp({title:e,logo:t,menuItems:a}){let[o,r]=(0,ur.useState)(!1),[s,n]=(0,ur.useState)(!1),[i,c]=(0,ur.useState)("light"),m=t==null?void 0:t.split(".")[0],d=t==null?void 0:t.split(".")[1],[u,p]=(0,ur.useState)(`${m}.${d}`),b=f=>{qr.includes(f)?p(f==="light"?`${m}.${d}`:`${m}-${f}.${d}`):p(`${m}.${d}`)};(0,ur.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";c(f),document.documentElement.setAttribute("class",f),b(f)},[]);let y=()=>{let f=qr[(qr.indexOf(i)+1)%qr.length];c(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),b(f)};return(0,pt.jsxs)("header",{className:"relative isolate pt-10 bg-background h-14",children:[(0,pt.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,pt.jsx)("div",{className:"flex lg:flex-1",children:(0,pt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:e}),(0,pt.jsx)("img",{alt:e,src:u,className:"h-9 w-auto"})]})}),(0,pt.jsx)("div",{className:"flex lg:hidden",children:(0,pt.jsxs)("button",{type:"button",onClick:()=>r(!0),className:"-m-2.5 inline-flex items-center justify-center rounded-od p-2.5 text-gray-700 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,pt.jsx)(Yr.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,pt.jsx)(ct.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:a.map(f=>(0,pt.jsx)(Xr,{...f},f.name))}),(0,pt.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,pt.jsx)("button",{onClick:y,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,pt.jsx)(Ur.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,pt.jsx)(Ur.MoonIcon,{className:"h-6 w-6"}):(0,pt.jsx)(Ur.SunIcon,{className:"h-6 w-6"})})})]}),(0,pt.jsxs)(ct.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,pt.jsx)("div",{className:"fixed inset-0 pt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,pt.jsxs)(ct.DialogPanel,{className:"fixed inset-y-0 right-0 pt-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,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Your Company"}),(0,pt.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,pt.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-od p-2.5 text-gray-700 outline-none",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,pt.jsx)(Yr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,pt.jsx)("div",{className:"pt-6 flow-root",children:(0,pt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,pt.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,pt.jsx)(vp,{...f},f.name))})})})]})]})]})}function vp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,pt.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,pt.jsxs)(ct.Disclosure,{$n:"div",className:"-mx-3",children:[(0,pt.jsx)(ct.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,pt.jsx)(ct.DisclosurePanel,{className:"pt-2 space-y-2",children:t&&t.map(r=>(0,pt.jsx)(ct.DisclosureButton,{$n:"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))})]})}var Jd=w(require("next/image"));var qi=w(require("next/image"));function Aa({logoLight:e,logoDark:t,mobile:a=!1}){return(0,pt.jsxs)(Oe,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,pt.jsx)(qi.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,pt.jsx)(qi.default,{className:"logo-dark 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}})]})}var Xd=require("next-themes");function rr({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}){let[r,s]=(0,ur.useState)(!1),[n,i]=(0,ur.useState)(""),c=["light","dark"],{theme:m,setTheme:d}=(0,Xd.useTheme)();(0,ur.useEffect)(()=>{i(m||"dark")},[m]);let u=()=>{let p=c[(c.indexOf(n)+1)%c.length];i(p),d(p)};return(0,ur.useEffect)(()=>{let p=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsx)("header",{className:`pt-50 pb-10 transition-all duration-300 hidden lg:block ${r||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,pt.jsx)(Qa,{className:"px-0",children:(0,pt.jsx)("nav",{className:"backdrop-blur-sm text-white p-0 rounded-b-xl",children:(0,pt.jsxs)("div",{className:"flex items-center justify-between bg-background px-9 py-0 dark:bg-[#212124] rounded-b-xl border border-t-0 border-accent",children:[(0,pt.jsx)(Aa,{logoDark:a,logoLight:t}),(0,pt.jsx)(ct.PopoverGroup,{className:"hidden lg:flex lg:gap-x-12",children:o&&o.map(p=>(0,pt.jsx)(Xr,{...p},p.name))}),(0,pt.jsx)("div",{className:"flex items-center space-x-4",children:(0,pt.jsx)("button",{className:"fixed right-4 pt-[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:u,children:(0,pt.jsxs)("div",{className:"relative",children:[(0,pt.jsx)($n.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,pt.jsx)($n.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})})]})})})})})}var Yi=["light","dark"];function sr({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,ur.useState)(!1),{theme:n,setTheme:i}=(0,Xd.useTheme)(),[c,m]=(0,ur.useState)(!1),[d,u]=(0,ur.useState)("light");(0,ur.useEffect)(()=>{let b=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,ur.useEffect)(()=>{u(n||"dark")},[n]);let p=()=>{let b=Yi[(Yi.indexOf(d)+1)%Yi.length];u(b),i(b)};return(0,pt.jsx)(pt.Fragment,{children:(0,pt.jsxs)("header",{className:`pt-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,pt.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",c&&"hidden"),children:(0,pt.jsxs)("div",{className:"flex items-stretch justify-between bg-accent px-2 py-0 dark:bg-[#212124] [&pt.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,pt.jsx)(Aa,{logoDark:t,logoLight:e,mobile:!0}),(0,pt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,pt.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 pt-[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,pt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,pt.jsx)(Yr.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]}),(0,pt.jsx)("button",{className:"fixed right-16 pt-[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",onClick:p,children:(0,pt.jsxs)("div",{className:"relative",children:[(0,pt.jsx)($n.Sun,{className:"absolute h-4 w-4 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,pt.jsx)($n.Moon,{className:"absoulte h-4 w-4 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})]})}),(0,pt.jsxs)(ct.Dialog,{open:c,onClose:m,className:"lg:hidden",children:[(0,pt.jsx)("div",{className:"fixed inset-0 pt-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,pt.jsxs)(ct.DialogPanel,{className:"fixed inset-y-0 right-0 pt-20 w-full overflow-y-auto bg-white dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,pt.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,pt.jsx)(Aa,{logoDark:t,logoLight:e,mobile:!0}),(0,pt.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-od p-2.5 text-gray-700 dark:text-foreground outline-none hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,pt.jsx)(Yr.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,pt.jsx)("div",{className:"pt-6 flow-root",children:(0,pt.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,pt.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(b=>(0,pt.jsx)(hp,{...b},b.name))})})})]})]})]})})}function hp({name:e,items:t,actions:a,href:o}){return!t&&o?(0,pt.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}):(0,pt.jsxs)(ct.Disclosure,{$n:"div",className:"-mx-3",children:[(0,pt.jsx)(ct.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:e}),(0,pt.jsx)(ct.DisclosurePanel,{className:"pt-2 space-y-2",children:t&&t.map(r=>(0,pt.jsx)(ct.DisclosureButton,{$n:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold dark:text-foreground text-gray-900 hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}function xp({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let[n,i]=(0,ur.useState)(!1),[c,m]=(0,ur.useState)(!1),d=()=>{let p=document.getElementById("next-section");p&&p.scrollIntoView({behavior:"smooth"})};return(0,ur.useEffect)(()=>{let p=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",p,{passive:!0}),()=>window.removeEventListener("scroll",p)},[]),(0,pt.jsxs)("div",{className:"relative h-screen",children:[(0,pt.jsxs)("div",{className:"absolute inset-0 w-full h-screen overflow-hidden",children:[(0,pt.jsxs)("video",{className:"object-cover w-full h-full",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,pt.jsx)("source",{src:"assets/videos/background.mov",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,pt.jsx)("div",{className:"absolute inset-0 bg-primary-900/50"})]}),!n&&!c&&(0,pt.jsx)("button",{className:"fixed hidden lg:block top-4 right-4 pt-[60] p-2 rounded-full bg-white/10 backdrop-blur-sm transition-all duration-300 hover:bg-white/20",onClick:()=>{m(!c)},children:(0,pt.jsx)($n.Menu,{className:"w-6 h-6 text-white"})}),(0,pt.jsxs)("div",{className:"fixed top-0 left-0 right-0 pt-50",children:[(0,pt.jsx)(rr,{isMenuOpen:n||c,logoLight:t,logoDark:a,menuItems:o}),(0,pt.jsx)(sr,{isMenuOpen:!0,logoLight:t,logoDark:a,menuItems:o})]}),(0,pt.jsxs)("div",{className:"absolute inset-0 h-full pt-10 flex flex-col items-center justify-between text-white text-center px-4",children:[(0,pt.jsx)(Jd.default,{src:e,alt:"Cortex Reply Logo",width:720,height:320,className:l("absolute top-2.5 h-auto w-auto pt-8 hidden lg:block",c&&"lg:hidden")}),(0,pt.jsxs)("div",{className:"absolute top-1/2vv h-full flex flex-col px-4 items-center justify-center",children:[(0,pt.jsx)("h1",{className:"text-6xl font-bold pt-auto mb-12",children:r&&r}),(0,pt.jsx)("div",{className:"text-3xl mb-8 max-w-2xl",children:s&&s})]}),(0,pt.jsx)("div",{className:"absolute bottom-10 flex justify-center items-center w-full mb-8",children:(0,pt.jsx)("div",{className:"animate-bounce cursor-pointer hover:text-accent",onClick:d,children:(0,pt.jsx)($n.ChevronDown,{size:64})})})]})]})}var Kd=w(require("next/image"));var wp=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),Ji=l("text-gray-900 dark:text-white text-od font-bold leading-[1.25] od:text-lg mb-5 od:mb-[1.875rem]"),Ki=l("w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none"),Qi=l("flex items-center gap-5"),es=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function Np({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,columnThree:i,footerBottom:c}=t;return(0,pt.jsxs)("footer",{className:l("overflow-hidden bg-accent-100 text-accent-800 dark:bg-accent-900 dark:text-body",e),children:[(0,pt.jsx)("div",{className:"py-16 od:py-20",children:(0,pt.jsx)("div",{className:"container",children:(0,pt.jsxs)("div",{className:"grid gap-10 od:grid-cols-2 xl:grid-cols-4",children:[(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,pt.jsx)(Aa,{logoLight:a,logoDark:o}),(0,pt.jsx)("p",{className:"mb-7 pt-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,pt.jsx)("nav",{"aria-label":"social links",children:(0,pt.jsx)("Bn",{className:"inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white",children:r.socialLinks.map((m,d)=>(0,pt.jsx)("li",{children:(0,pt.jsx)(Oe,{"aria-label":m.href,className:wp,href:m.href,openNewTab:!0,children:(0,pt.jsx)("span",{children:m.icon})})},d))})})]}),(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,pt.jsx)("h3",{className:Ji,children:s.title}),s.links&&s.links.length>0&&(0,pt.jsx)("nav",{"aria-label":"footer links navigation",children:(0,pt.jsx)("Bn",{className:"grid gap-2",children:s.links.map(m=>(0,pt.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,pt.jsx)("span",{className:"flex-none text-sm/[1] text-gray-900 dark:text-white",children:(0,pt.jsx)(zr.FaChevronRight,{})}),(0,pt.jsx)(Oe,{href:m.href,openNewTab:m.openNewTab,className:es,children:m.label})]},m.label))})})]}),(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,pt.jsx)("h3",{className:Ji,children:n.title}),(0,pt.jsxs)("Bn",{"aria-label":"addresses",className:"grid gap-5",children:[(0,pt.jsxs)("li",{className:Qi,children:[(0,pt.jsx)("span",{className:Ki,children:(0,pt.jsx)(zr.FaPaperPlane,{})}),(0,pt.jsx)("address",{className:"not-italic",children:n.location})]}),(0,pt.jsxs)("li",{className:Qi,children:[(0,pt.jsx)("span",{className:Ki,children:(0,pt.jsx)(zr.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,pt.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,d)=>(0,pt.jsx)("a",{href:`mailto:${m}`,className:es,children:m},d))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,pt.jsxs)("li",{className:Qi,children:[(0,pt.jsx)("span",{className:Ki,children:(0,pt.jsx)(zr.FaPhone,{})}),(0,pt.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,d)=>(0,pt.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:es,children:m},d))})]})]})]}),i&&(0,pt.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"800",children:[(0,pt.jsx)("h3",{className:Ji,children:i.title}),i.blogs&&i.blogs.length>0&&(0,pt.jsx)("div",{className:"grid gap-6",children:i.blogs.map((m,d)=>(0,pt.jsxs)("article",{className:"group flex items-center gap-4 text-accent-800 dark:text-white",children:[(0,pt.jsx)("div",{className:"flex-none overflow-hidden rounded-5",children:(0,pt.jsx)(Kd.default,{...m.image,alt:m.image.alt,width:80,height:80,className:"object-cover transition-transform duration-700 group-hover:scale-105"})}),(0,pt.jsxs)("div",{children:[(0,pt.jsxs)("p",{className:"flex items-center gap-2.5 dark:text-body",children:[(0,pt.jsx)("span",{className:"text-accent",children:(0,pt.jsx)(zr.FaCalendarDays,{})}),(0,pt.jsx)("span",{children:Nd(m.date)})]}),(0,pt.jsx)("h4",{className:"text-od font-bold leading-normal",children:(0,pt.jsx)(Oe,{href:m.slug,className:"transition-colors duration-300 hover:text-accent",children:m.title})})]})]},d))})]})]})})}),(0,pt.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,pt.jsx)("div",{className:"container",children:(0,pt.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-8 gap-y-4 od:gap-x-10",children:[(0,pt.jsx)("p",{children:c.copyrightText}),c.links&&c.links.length>0&&(0,pt.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,pt.jsx)("Bn",{className:"flex flex-wrap items-center gap-x-4 od:gap-x-7",children:c.links.map(m=>(0,pt.jsx)("li",{children:(0,pt.jsx)(Oe,{"aria-label":`Go to page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:es,children:m.label})},m.label))})})]})})})]})}function Cp({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r}){return(0,pt.jsxs)("div",{className:l("fixed top-0 left-0 right-0 pt-50",r),children:[(0,pt.jsx)(rr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o}),(0,pt.jsx)(sr,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function Pp({children:e,...t}){return(0,pt.jsx)(Xd.ThemeProvider,{...t,children:e})}var to=require("sonner");function Zi({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,ur.useState)([]),s=(0,od.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(d=>d.id))},i=d=>{r(u=>u.includes(d)?u.filter(p=>p!==d):[...u,d])},c=async()=>{let d=await t(o);d.success?(to.toast.success(d.message),s.refresh()):to.toast.error(`Error: ${d.message}`),r([])},m=async()=>{let d=await a(o);d.success?(to.toast.success(d.message),s.refresh()):to.toast.error(`Error: ${d.message}`),r([])};return(0,pt.jsxs)("div",{className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,pt.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,pt.jsxs)("div",{className:"space-x-2",children:[(0,pt.jsx)(A,{onClick:c,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,pt.jsx)(A,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,pt.jsx)("div",{className:"overflow-hidden sm:rounded-od",children:(0,pt.jsxs)("Bn",{className:"divide-y divide-gray-200",children:[(0,pt.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsx)(kt,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,pt.jsx)("label",{htmlFor:"select-all",className:"$n-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,pt.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(d=>(0,pt.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,pt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsx)(kt,{id:`select-${d.id}`,checked:o.includes(d.id),onCheckedChange:()=>i(d.id),className:"border-accent"}),(0,pt.jsxs)("div",{className:"$n-3 flex items-center",children:[(0,pt.jsxs)(qt,{className:"h-10 w-10",children:[(0,pt.jsx)(Yt,{src:d.userImage,alt:d.userName}),(0,pt.jsx)(Jt,{children:d.userName.split(" ").map(u=>u[0]).join("")})]}),(0,pt.jsx)("div",{className:"$n-3",children:(0,pt.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:d.userName})})]})]}),(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.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,pt.jsx)(yt,{variant:d.status==="approved"?"default":d.status==="rejected"?"destructive":"secondary",children:d.status})]})]})},d.id))]})}),(0,pt.jsx)(to.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"pt-50"})]})}var en=require("date-fns");var ac=[{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 lr=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=ac.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},oc=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!lr(o))return .5;for(;o<=r;)lr(o)||s++,o.setDate(o.getDate()+1);return s},rc=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var Sp=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,pt.jsx)("div",{className:"flex space-x-2",children:e.map((r,s)=>(0,pt.jsx)(A,{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 an({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,ur.useState)(new Date),[r,s]=(0,ur.useState)(new Date),[n,i]=(0,ur.useState)("Full Day"),[c,m]=(0,ur.useState)(!1),[d,u]=(0,ur.useState)(1),p=(0,od.useRouter)();(0,ur.useEffect)(()=>{let f=rc(a,r);m(f),f&&i("Full Day")},[a,r]),(0,ur.useEffect)(()=>{if(!a||!r){u(0);return}let f=oc(a,r,n!=="Full Day");u(f)},[a,r,n]);let b=f=>{i(f)};return(0,pt.jsxs)("div",{className:"max-w-2xl",children:[(0,pt.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,pt.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,pt.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){to.toast.error("Please select both start and end dates");return}if(d>e){to.toast.error("You do not have enough leave days remaining");return}let x=new FormData;x.append("startDate",a.toISOString()),x.append("endDate",r.toISOString()),x.append("leaveType",n),x.append("duration",d.toString());let T=await(t||Rp)(x);T.success?(to.toast.success(T.message),o(void 0),s(void 0),i("Full Day"),p.refresh()):to.toast.error(`Error: ${T.message}`)},className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,pt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"startDate",children:"Start Date"}),(0,pt.jsxs)(Vo,{children:[(0,pt.jsx)($o,{asChild:!0,children:(0,pt.jsxs)(A,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,pt.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,en.format)(a,"PPP"):(0,pt.jsx)("span",{children:"Pick a date"})]})}),(0,pt.jsx)(fo,{className:"w-auto p-0",align:"start",children:(0,pt.jsx)(qo,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,pt.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"endDate",children:"End Date"}),(0,pt.jsxs)(Vo,{children:[(0,pt.jsx)($o,{asChild:!0,children:(0,pt.jsxs)(A,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,pt.jsx)($n.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,en.format)(r,"PPP"):(0,pt.jsx)("span",{children:"Pick a date"})]})}),(0,pt.jsx)(fo,{className:"w-auto p-0",align:"start",children:(0,pt.jsx)(qo,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)(le,{children:"Leave Type"}),(0,pt.jsx)(Sp,{options:["Full Day","Morning","Afternoon"],value:n,onChange:b,disabled:[!1,c,c]})]}),(0,pt.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",d]}),(0,pt.jsx)(A,{disabled:d<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,pt.jsx)(to.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"pt-50"})]})}var Rp=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function ic(...e){return e.filter(Boolean).join(" ")}function on({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))},n=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},i=()=>{t(new Date)},c=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,pt.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,pt.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,pt.jsxs)("div",{className:"sm:flex-auto",children:[(0,pt.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,pt.jsx)("p",{className:"pt-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,pt.jsxs)("div",{className:"relative flex items-center rounded-od gap-1 od:items-stretch",children:[(0,pt.jsxs)(A,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-od border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,pt.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,pt.jsx)(A,{variant:"outline",onClick:i,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative od:block",children:"Today"}),(0,pt.jsxs)(A,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-od border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,pt.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,pt.jsx)("div",{className:"pt-8 flow-root",children:(0,pt.jsx)("div",{className:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:(0,pt.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,pt.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,pt.jsx)("thead",{className:"sticky top-0 pt-20 bg-white",children:(0,pt.jsxs)("tr",{children:[(0,pt.jsx)("th",{scope:"col",className:"sticky left-0 top-0 pt-30 border-b border-r border-gray-300 bg-white bg-opacity-75 py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter sm:pl-6 lg:pl-8",children:"Employee"}),[...Array(r)].map((m,d)=>{let u=new Date(e.getFullYear(),e.getMonth(),d+1);return(0,pt.jsxs)("th",{scope:"col",className:`sticky top-0 pt-10 border-b border-r border-gray-300 bg-white bg-opacity-75 px-0 py-3.5 text-center text-sm font-semibold text-gray-900 backdrop-blur backdrop-filter ${lr(u)?"bg-gray-200":""}`,children:[(0,pt.jsx)("div",{children:c(u)}),(0,pt.jsx)("div",{children:d+1})]},d)})]})}),(0,pt.jsx)("tbody",{children:o.map((m,d)=>(0,pt.jsxs)("tr",{children:[(0,pt.jsx)("td",{className:ic(d!==o.length-1?"border-gray-200":"","sticky left-0 pt-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,pt.jsxs)("div",{className:"flex items-center",children:[(0,pt.jsxs)(qt,{className:"h-11 w-11",children:[(0,pt.jsx)(Yt,{src:m.image,alt:m.name}),(0,pt.jsx)(Jt,{children:m.name.split(" ").map(u=>u[0]).join("")})]}),(0,pt.jsx)("div",{className:"$n-4",children:(0,pt.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((u,p)=>{let b=new Date(e.getFullYear(),e.getMonth(),p+1),y=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=b&&new Date(f.endDate)>=b);return(0,pt.jsx)("td",{className:ic(d!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",lr(b)?"bg-gray-200":""),children:(0,pt.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${y?y.status==="approved"?"bg-green-500":y.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:y?`${m.name}: ${y.status} (${y.startDate} - ${y.endDate}) - ${y.leaveType}`:"",children:y&&y.leaveType!=="Full Day"&&(0,pt.jsx)("div",{className:`h-3 w-6 ${y.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${p}`)})]},m.id))})]})})})})]})}function rn({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,ur.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(d,u)=>{let p=new Date(e.getFullYear(),e.getMonth(),u-s+1);return{date:p,isCurrentMonth:p.getMonth()===e.getMonth(),isToday:p.toDateString()===new Date().toDateString(),holidays:a.filter(b=>new Date(b.startDate)<=p&&new Date(b.endDate)>=p)}}),i=()=>{t(new Date(e.getFullYear(),e.getMonth()-1,1))},c=()=>{t(new Date(e.getFullYear(),e.getMonth()+1,1))},m=()=>{t(new Date)};return(0,pt.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,pt.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,pt.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,pt.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,pt.jsx)("div",{className:"flex items-center",children:(0,pt.jsxs)("div",{className:"relative flex items-center rounded-od gap-1 od:items-stretch",children:[(0,pt.jsxs)(A,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-od border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Previous month"}),(0,pt.jsx)($n.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,pt.jsx)(A,{variant:"outline",onClick:m,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative od:block",children:"Today"}),(0,pt.jsxs)(A,{onClick:c,variant:"outline",size:"icon",className:"rounded-r-od border-accent hover:text-accent",children:[(0,pt.jsx)("span",{className:"sr-only",children:"Next month"}),(0,pt.jsx)($n.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,pt.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,pt.jsxs)("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["pt",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["T",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["F",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"pt"})]}),(0,pt.jsxs)("div",{className:"bg-white py-2",children:["S",(0,pt.jsx)("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),(0,pt.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto",children:[(0,pt.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px",children:n.map(d=>(0,pt.jsxs)("div",{className:l(d.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2"),children:[(0,pt.jsx)("time",{dateTime:d.date.toISOString(),className:l("flex h-6 w-6 items-center justify-center rounded-full",d.isToday&&"bg-indigo-600 font-semibold text-white"),children:d.date.getDate()}),d.holidays.length>0&&(0,pt.jsx)("ol",{className:"pt-2 space-y-1",children:d.holidays.map(u=>(0,pt.jsx)("li",{children:(0,pt.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${u.status==="approved"?"border-green-500":"border-gray-500"} border`,children:u.userName})},u.id))})]},d.date.toISOString()))}),(0,pt.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(d=>(0,pt.jsxs)("button",{type:"button",className:l(d.isCurrentMonth?"bg-white":"bg-gray-50",(d.date===o||d.isToday)&&"font-semibold",d.date===o&&"text-white",!d.date&&d.isToday&&"text-indigo-600",d.date!==o&&d.isCurrentMonth&&!d.isToday&&"text-gray-900",d.date!==o&&!d.isCurrentMonth&&!d.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:pt-10"),children:[(0,pt.jsx)("time",{dateTime:d.date.toISOString(),className:l("$n-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,pt.jsxs)("span",{className:"sr-only",children:[d.holidays.length," holidays"]}),d.holidays.length>0&&(0,pt.jsx)("span",{className:"-mx-0.5 pt-auto flex flex-wrap-reverse",children:d.holidays.map(u=>(0,pt.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${u.status==="approved"?"bg-green-500":"bg-gray-500"}`},u.id))})]},d.date.toISOString()))})]})]})]})}var Ea=require("lucide-react");function lc(...e){return e.filter(Boolean).join(" ")}function kp({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[c,m]=(0,ur.useState)("Calendar View"),d=(0,od.useRouter)(),u=!1,p=(0,en.parseISO)(a),b=async f=>{let x=(0,en.format)(f,"pt-MM-yyyy"),T=new URL(window.location.href);return T.searchParams.set("date",x),d.push(T.toString()),{success:!0}};if(u)return(0,pt.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,pt.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let y=[{name:"Grid View",icon:Ea.Grid,current:c==="Grid View"},{name:"Calendar View",icon:Ea.CalendarDays,current:c==="Calendar View"},{name:"Request Leave",icon:Ea.PlusCircle,current:c==="Request Leave"},{name:"Approve Leave",icon:Ea.CheckSquare,current:c==="Approve Leave"}];return(0,pt.jsxs)("div",{className:"container fixed mx-auto p-4",children:[(0,pt.jsxs)("div",{className:"mb-8",children:[(0,pt.jsxs)("div",{className:"sm:hidden",children:[(0,pt.jsx)("select",{value:c,onChange:f=>m(f.target.value),className:"block w-full rounded-od 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(f=>(0,pt.jsx)("option",{children:f.name},f.name))}),(0,pt.jsx)($n.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,pt.jsx)("div",{className:"hidden sm:block",children:(0,pt.jsx)("div",{className:"border-b border-gray-200",children:(0,pt.jsx)("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:y.map(f=>(0,pt.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:lc(f.current?"border-accent text-accent":"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700",f.name==="Approve Leave"&&t.grade!=="Manager"&&t.grade!=="Senior Manager"&&t.grade!=="Partner"?"cursor-not-allowed opacity-50":"","group inline-flex items-center border-b-2 py-4 px-1 text-sm font-medium"),"aria-current":f.current?"page":void 0,children:[(0,pt.jsx)(f.icon,{className:lc(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-$n-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,pt.jsx)("span",{children:f.name})]},f.name))})})})]}),c==="Grid View"&&(0,pt.jsx)(on,{currentDate:p,setCurrentDate:b,holidays:e,employees:r}),c==="Calendar View"&&(0,pt.jsx)(rn,{currentDate:p,setCurrentDate:b,holidays:e}),c==="Request Leave"&&(0,pt.jsx)(an,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),c==="Approve Leave"&&(0,pt.jsx)(Zi,{leaveRequests:o,onApprove:f=>n?n(f):Promise.resolve({success:!1,message:"Approve leave request function not provided"}),onReject:f=>i?i(f):Promise.resolve({success:!1,message:"Reject leave request function not provided"})})]})}function sn({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){var se,G,S,I,N;let[i,c]=(0,ur.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,d]=(0,ur.useState)(""),[u,p]=(0,ur.useState)(!1),[b,y]=(0,ur.useState)(null);(0,ur.useEffect)(()=>{p(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let g=await s(i);g.success?(p(!1),y(null)):console.error("Failed to save deal:",g.errors)}catch(g){console.error("Failed to save deal:",g)}},x=(g,C)=>{c(h=>({...h,[g]:C}))},T=g=>{let C=(i.categories||[]).includes(g)?(i.categories||[]).filter(h=>h!==g):[...i.categories||[],g];x("categories",C)},L=async()=>{if(m.trim()){let g={text:m,timestamp:new Date().toISOString()};try{let C=await n(g);if(!C.success){console.error("Failed to add comment:",C.errors);return}}catch(C){console.error("Failed to add comment:",C)}c(C=>({...C,comments:[...C.comments||[],g]})),d("")}},Y=g=>{switch(g){case"proposition":return"bg-blue-100 text-blue-800";case"source":return"bg-green-100 text-green-800";case"sector":return"bg-purple-100 text-purple-800";default:return"bg-gray-100 text-gray-800"}},V=g=>t==null?void 0:t.find(C=>C.id===Number(g));return(0,pt.jsx)(bt,{open:!0,children:(0,pt.jsxs)(lt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,pt.jsxs)(St,{className:"flex flex-row items-center justify-between",children:[(0,pt.jsx)(Rt,{className:"text-2xl font-bold",children:a==null?void 0:a.name}),(0,pt.jsxs)("div",{className:"flex space-x-2",children:[(0,pt.jsx)(A,{variant:"outline",onClick:r,children:"Close"}),(0,pt.jsxs)(A,{onClick:f,disabled:!u,children:[(0,pt.jsx)($n.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,pt.jsxs)(Na,{className:"flex-grow pr-4",children:[(0,pt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,pt.jsx)("div",{className:"grid gap-2",children:b==="value"?(0,pt.jsx)(Ke,{type:"number",value:i.value,onChange:g=>x("value",Number(g.target.value)),onBlur:()=>y(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,pt.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("value"),children:["\xA3",(se=i.value)==null?void 0:se.toLocaleString()]})}),(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Assignee"}),b==="assignee"?(0,pt.jsxs)(ja,{value:((S=(G=i==null?void 0:i.assignee)==null?void 0:G.id)==null?void 0:S.toString())||"",onValueChange:g=>x("assignee",V(g)),children:[(0,pt.jsx)(Sa,{children:(0,pt.jsx)(Wa,{placeholder:"Select assignee"})}),(0,pt.jsx)(Ra,{children:t&&t.map(g=>{var C;return(0,pt.jsx)(ka,{value:((C=g==null?void 0:g.id)==null?void 0:C.toString())||"",children:g.name},g.id)})})]}):(0,pt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("assignee"),children:[(0,pt.jsx)($n.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,pt.jsx)("span",{children:i.assignee.name})]})]}),(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Closure Date"}),b==="closureDate"?(0,pt.jsx)(Ke,{type:"date",value:(N=(I=i.closureDate)==null?void 0:I.split("T")[0])!=null?N:"",onChange:g=>x("closureDate",g.target.value),onBlur:()=>y(null),autoFocus:!0}):(0,pt.jsxs)("div",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("closureDate"),children:[(0,pt.jsx)($n.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,pt.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,pt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Description"}),b==="description"?(0,pt.jsx)(Ta,{value:i.description||"",onChange:g=>x("description",g.target.value),onBlur:()=>y(null),className:"min-h-[100px]",autoFocus:!0}):(0,pt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 pb-5 rounded",onClick:()=>y("description"),children:i.description})]})}),(0,pt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Status"}),b==="status"?(0,pt.jsxs)(ja,{value:i.status,onValueChange:g=>{x("status",g),y(null)},children:[(0,pt.jsx)(Sa,{children:(0,pt.jsx)(Wa,{placeholder:"Select status"})}),(0,pt.jsx)(Ra,{children:["Cold","Qualified","Proposal Made","Won","Lost"].map(g=>(0,pt.jsx)(ka,{value:g,children:g},g))})]}):(0,pt.jsx)("div",{className:"cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("status"),children:i.status})]}),(0,pt.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Categories"}),b==="categories"?(0,pt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:o.map(g=>{var C,h;return(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsx)(kt,{id:((C=g.id)==null?void 0:C.toString())||"",checked:(i.categories||[]).some(Q=>Q.id===g.id),onCheckedChange:()=>g.id!==void 0&&T(g)}),(0,pt.jsx)("label",{htmlFor:((h=g.id)!=null?h:"").toString(),className:`text-sm font-medium ${Y(g.type||"sector")} px-2 py-1 rounded`,children:g.name})]},g.id)})}):(0,pt.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer hover:bg-gray-100 p-0 rounded",onClick:()=>y("categories"),children:i.categories&&i.categories.map(g=>{console.log("cat",g);let C=g;return C?(0,pt.jsx)(yt,{variant:"secondary",className:Y(C.type||"sector"),children:C.name},C.id):null})})]})]}),(0,pt.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,pt.jsxs)("div",{className:"grid gap-2",children:[(0,pt.jsx)(le,{className:"text-sm font-medium text-gray-500",children:"Comments"}),(0,pt.jsx)(Na,{className:"h-[200px] overflow-y-auto",children:(0,pt.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((g,C)=>new Date(C.timestamp||"").getTime()-new Date(g.timestamp||"").getTime()).map(g=>{var C;return(0,pt.jsxs)("div",{className:"bg-gray-50 p-3 rounded-lg",children:[(0,pt.jsx)("p",{className:"text-sm text-gray-700",children:g.text}),(0,pt.jsxs)("p",{className:"text-xs text-gray-500 pt-1",children:[(C=g==null?void 0:g.author)==null?void 0:C.name," - ",new Date(g.timestamp||"").toLocaleString()]})]},g.id)})})}),(0,pt.jsxs)("div",{className:"flex pt-2",children:[(0,pt.jsx)(Ke,{value:m,onChange:g=>d(g.target.value),placeholder:"Add a comment...",className:"flex-grow"}),(0,pt.jsxs)(A,{onClick:L,className:"$n-2",children:[(0,pt.jsx)($n.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,pt.jsxs)("div",{className:"text-xs text-gray-500 pt-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function nn({deal:e,customer:t,categories:a,onClick:o}){let r=a.find(s=>{var n;return s.type==="proposition"&&((n=e.categories)!=null?n:[]).includes(s.id)});return(0,pt.jsxs)(Ae,{className:"mb-4 cursor-pointer hover:shadow-od transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,pt.jsxs)(Ze,{className:"pb-2",children:[(0,pt.jsx)("div",{className:"flex justify-between items-center",children:(0,pt.jsx)(et,{className:"text-lg font-semibold text-gray-800",children:t==null?void 0:t.name})}),(0,pt.jsx)("p",{className:"text-sm text-gray-500 pt-1",children:e.description})]}),(0,pt.jsxs)(Fe,{children:[(0,pt.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,pt.jsxs)("div",{className:"flex items-center text-sm text-gray-600",children:[(0,pt.jsx)($n.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,pt.jsx)("span",{children:e.assignee.name})]}),(0,pt.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,pt.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,pt.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,pt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,pt.jsx)($n.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,pt.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,pt.jsx)("div",{className:"flex justify-between items-left",children:r&&(0,pt.jsx)(yt,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:r.name})})]})]})}var ss=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function ln({onSubmit:e}){var r;let[t,a]=(0,ur.useState)({name:"",intro:"",active:!0});return(0,pt.jsxs)("form",{onSubmit:s=>{s.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"customerName",children:"Customer Name"}),(0,pt.jsx)(Ke,{id:"customerName",value:t.name,onChange:s=>a({...t,name:s.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)(le,{htmlFor:"customerIntro",children:"Intro"}),(0,pt.jsx)(Ta,{id:"customerIntro",value:(r=t.intro)!=null?r:"",onChange:s=>a({...t,intro:s.target.value}),placeholder:"Enter customer intro"})]}),(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsx)(kt,{id:"activeCustomer",checked:!!t.active,onCheckedChange:s=>a({...t,active:s})}),(0,pt.jsx)(le,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,pt.jsx)(A,{type:"submit",className:"w-full",children:"Add Customer"})]})}function dn({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){var Y,V,se,G;let[i,c]=(0,ur.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,d]=(0,ur.useState)(!1),[u,p]=(0,ur.useState)({});(0,ur.useEffect)(()=>{r&&c(r)},[r]);let b=()=>{let S={};return i.customer||(S.customer="Customer ur required"),i.value||(S.value="Value ur required"),i.assignee||(S.assignee="Assignee ur required"),i.closureDate||(S.closureDate="Closure Date ur required"),p(S),Object.keys(S).length===0},y=async S=>{S.preventDefault(),p({});try{if(b()){let I=await o({...i});I.success?(c({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n==null||n()):p(I.errors||{})}}catch{p({submit:"An error occurred while submitting the form."})}},f=S=>{console.log(S),c(I=>({...I,categories:(I.categories||[]).includes(S.id)?(I.categories||[]).filter(N=>N!==S.id):[...I.categories||[],S.id]}))},x=async S=>{c({...i,customer:S});try{let I=await s(S);I.success?d(!1):p(I.errors||{})}catch{p({submit:"An error occurred while submitting the form."})}},T=S=>t==null?void 0:t.find(I=>I.id===Number(S)),L=S=>e==null?void 0:e.find(I=>I.id===Number(S));return(0,pt.jsxs)(pt.Fragment,{children:[(0,pt.jsxs)("form",{onSubmit:y,className:"space-y-6",children:[(0,pt.jsx)(Na,{className:"h-[60vh] pr-4",children:(0,pt.jsxs)("div",{className:"space-y-6 px-4",children:[(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"customer",children:"Customer"}),(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsxs)(ja,{value:(V=(Y=i.customer)==null?void 0:Y.id)==null?void 0:V.toString(),onValueChange:S=>c({...i,customer:L(S)}),children:[(0,pt.jsx)(Sa,{children:(0,pt.jsx)(Wa,{placeholder:"Select customer"})}),(0,pt.jsx)(Ra,{children:e.map(S=>{var I;return(0,pt.jsx)(ka,{value:((I=S.id)==null?void 0:I.toString())||"",children:S.name},S.id)})})]}),(0,pt.jsx)(A,{variant:"outline",size:"icon",onClick:()=>d(!0),children:(0,pt.jsx)($n.PlusIcon,{className:"w-5 h-5"})})]}),u.customerId&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.customerId})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"value",children:"Value"}),(0,pt.jsx)(Ke,{id:"value",type:"number",value:i.value||"",onChange:S=>c({...i,value:Number.parseFloat(S.target.value)}),placeholder:"Enter deal value"}),u.value&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.value})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"assignee",children:"Assignee"}),(0,pt.jsxs)(ja,{value:(G=(se=i.assignee)==null?void 0:se.id)==null?void 0:G.toString(),onValueChange:S=>c({...i,assignee:T(S)}),children:[(0,pt.jsx)(Sa,{children:(0,pt.jsx)(Wa,{placeholder:"Select assignee"})}),(0,pt.jsx)(Ra,{children:t&&t.map(S=>{var I;return(0,pt.jsx)(ka,{value:((I=S.id)==null?void 0:I.toString())||"",children:S.name},S.id)})})]}),u.assignee&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.assignee})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"description",children:"Description"}),(0,pt.jsx)(Ta,{id:"description",value:i.description||"",onChange:S=>c({...i,description:S.target.value}),placeholder:"Enter deal description"})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{children:"Categories"}),(0,pt.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(S=>(0,pt.jsxs)("div",{className:"space-y-2",children:[(0,pt.jsx)("h4",{className:"text-sm font-medium",children:S.charAt(0).toUpperCase()+S.slice(1)}),(0,pt.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(I=>I.type===S).map(I=>{var N;return(0,pt.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,pt.jsx)(kt,{id:I.id.toString(),checked:(N=i.categories)==null?void 0:N.includes(I.id),onCheckedChange:()=>f(I)}),(0,pt.jsx)("label",{htmlFor:I.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:I.name})]},I.id)})})]},S))})]}),(0,pt.jsxs)("div",{className:"space-y-2 space-x-2",children:[(0,pt.jsx)(le,{htmlFor:"closureDate",children:"Closure Date"}),(0,pt.jsx)(Ke,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:S=>c({...i,closureDate:S.target.value})}),u.closureDate&&(0,pt.jsx)("p",{className:"text-red-500 text-sm",children:u.closureDate})]})]})}),(0,pt.jsx)(A,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,pt.jsx)(bt,{open:m,onOpenChange:d,children:(0,pt.jsxs)(lt,{children:[(0,pt.jsx)(St,{children:(0,pt.jsx)(Rt,{children:"Add New Customer"})}),(0,pt.jsx)(ln,{onSubmit:x})]})})]})}function cn({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,addNewDeal:c,onAddCustomer:m}){let[d,u]=(0,ur.useState)(!1);return(0,pt.jsxs)("div",{className:"flex flex-col w-80",children:[(0,pt.jsx)("h2",{className:"text-xl font-semibold mb-4",children:e}),c&&(0,pt.jsxs)(bt,{open:d,onOpenChange:u,children:[(0,pt.jsx)(Sr,{asChild:!0,children:(0,pt.jsxs)(A,{className:"mb-4 w-full bg-green-500 hover:bg-green-600 text-white",children:[(0,pt.jsx)($n.PlusCircle,{className:"mr-2 h-4 w-4"}),"Add New Deal"]})}),(0,pt.jsxs)(lt,{children:[(0,pt.jsx)(St,{children:(0,pt.jsx)(Rt,{children:"Add New Deal"})}),(0,pt.jsx)(dn,{customers:o,users:a,categories:r,onSubmit:c,onAddCustomer:m,onClose:()=>u(!1)})]})]}),(0,pt.jsx)(ss.Droppable,{droppableId:e,isDropDisabled:!1,children:p=>(0,pt.jsxs)("div",{ref:p.innerRef,...p.droppableProps,className:"bg-gray-100 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((b,y)=>(0,pt.jsx)(ss.Draggable,{draggableId:b.id.toString(),index:b.id,children:f=>(0,pt.jsx)("div",{ref:f.innerRef,...f.draggableProps,...f.dragHandleProps,children:(0,pt.jsx)(nn,{deal:b,customer:b.customer,categories:r,onClick:()=>s(b)})})},b.id.toString())),p.placeholder]})}),(0,pt.jsxs)("div",{className:"pt-4 text-sm bg-white p-3 rounded-lg shadow",children:[(0,pt.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,pt.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,pt.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,pt.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var Tp=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"];function Dp({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){var u;let[s,n]=(0,ur.useState)(null),i=p=>{var b;return((b=e.deals)!=null?b:[]).filter(y=>y.status===p)},c=p=>p.reduce((b,y)=>b+(y.value||0),0),m=(p,b)=>{let y={Cold:.2,Qualified:.4,"Proposal Made":.6,"SoW Submitted":.7,Won:1,Lost:0};return p.reduce((f,x)=>f+(x.value||0)*y[b],0)},d=(0,ur.useCallback)(p=>{var Y,V;let{source:b,destination:y}=p;if(!y||b.droppableId===y.droppableId&&b.index===y.index)return;let f=b.droppableId,x=y.droppableId,T=(Y=e.deals)==null?void 0:Y.filter(se=>se.id===b.index)[0],L=[...(V=e.deals)!=null?V:[]];T&&(T.status=x,a(T))},[a]);return(0,pt.jsx)(ss.DragDropContext,{onDragEnd:d,children:(0,pt.jsxs)("div",{className:"p-4 max-h-[90vh] overflow-auto",children:[(0,pt.jsx)("div",{className:"flex space-x-4 pb-4",children:Tp.filter(p=>p!=="Won"&&p!=="Lost").map(p=>{var y,f;let b=i(p);return(0,pt.jsx)(cn,{status:p,deals:b,customers:(y=e.customers)!=null?y:[],users:e.users,categories:(f=e.categories)!=null?f:[],onDealClick:n,calculateColumnValue:c,calculateWeightedValue:m,addNewDeal:p==="Cold"?t:void 0,onAddCustomer:r},p)})}),s&&(0,pt.jsx)(sn,{deal:s,users:e.users,customer:s.customer,categories:(u=e.categories)!=null?u:[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}0&&(module.exports={Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogList,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,Card,Categories,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DealCard,DealDetails,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,InfoTile,Input,Insight,KanbanColumn,Label,Logo,LowImpactHero,MOTD,Media,MediaBlock,MediumImpactHero,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,Printable,ProjectCard,ProjectTeam,ProposalSummary,RelatedContent,RelatedPosts,RenderBlocks,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger,Sidebar,SidebarContent,SidebarFooter,SidebarGroup,SidebarGroupAction,SidebarGroupContent,SidebarGroupLabel,SidebarHeader,SidebarInput,SidebarInset,SidebarLeft,SidebarMenu,SidebarMenuAction,SidebarMenuBadge,SidebarMenuButton,SidebarMenuItem,SidebarMenuSkeleton,SidebarMenuSub,SidebarMenuSubButton,SidebarMenuSubItem,SidebarProvider,SidebarRail,SidebarRight,SidebarSeparator,SidebarTrigger,SimpleHeader,Skeleton,SlideShow,TextAndImages,Textarea,Theme,ThemeProvider,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,toggleVariants,useIsMobile,useSidebar,useToast});