cortex-react-components 2.0.1 → 2.0.3

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 (1053) hide show
  1. package/dist/Manrope-Bold-CPQACTSE.ttf +0 -0
  2. package/dist/Manrope-ExtraBold-WMIW3IUY.ttf +0 -0
  3. package/dist/Manrope-ExtraLight-73PSLEHW.ttf +0 -0
  4. package/dist/Manrope-Light-Y5DQMGPD.ttf +0 -0
  5. package/dist/Manrope-Medium-EG6W7WPF.ttf +0 -0
  6. package/dist/Manrope-Regular-XVH52NWZ.ttf +0 -0
  7. package/dist/Manrope-SemiBold-UGY74FUV.ttf +0 -0
  8. package/dist/chunk-22LHS2J6.mjs +4 -0
  9. package/dist/chunk-2BR55L74.mjs +1 -0
  10. package/dist/chunk-2NMVE5M4.mjs +4 -0
  11. package/dist/chunk-2QZUKVBA.mjs +1 -0
  12. package/dist/chunk-2SAKLSZ4.mjs +4 -0
  13. package/dist/chunk-2VZWOBGP.mjs +1 -0
  14. package/dist/chunk-3KITWLRN.mjs +4 -0
  15. package/dist/chunk-3SZR5DC2.mjs +1 -0
  16. package/dist/chunk-3U3PZBHQ.mjs +4 -0
  17. package/dist/chunk-3UMMMQEH.mjs +4 -0
  18. package/dist/chunk-436WKDWG.mjs +4 -0
  19. package/dist/chunk-4CU7D3X2.mjs +1 -0
  20. package/dist/chunk-4DJ6HKHR.mjs +1 -0
  21. package/dist/chunk-4QRKVSTE.mjs +1 -0
  22. package/dist/chunk-4UIARERB.mjs +4 -0
  23. package/dist/chunk-53QLSQCO.mjs +4 -0
  24. package/dist/chunk-55EX54R7.mjs +4 -0
  25. package/dist/chunk-5AWZJAK3.mjs +4 -0
  26. package/dist/chunk-5BT4EWU5.mjs +1 -0
  27. package/dist/chunk-5NRGSTPV.mjs +4 -0
  28. package/dist/chunk-5OQF3MNO.mjs +1 -0
  29. package/dist/chunk-5RTGHMF3.mjs +4 -0
  30. package/dist/chunk-5WV5ZFEP.mjs +4 -0
  31. package/dist/chunk-5Z5PL7N3.mjs +1 -0
  32. package/dist/chunk-637VXITY.mjs +4 -0
  33. package/dist/chunk-6C4WESLL.mjs +1 -0
  34. package/dist/chunk-6DEY5ZDD.mjs +1 -0
  35. package/dist/chunk-6HLXIE4P.mjs +1 -0
  36. package/dist/chunk-6SWKEZN6.mjs +1 -0
  37. package/dist/chunk-6T4OEOJH.mjs +9 -0
  38. package/dist/chunk-6YHVVP3S.mjs +1 -0
  39. package/dist/chunk-76M7JE4D.mjs +1 -0
  40. package/dist/chunk-7BXIU4ZM.mjs +4 -0
  41. package/dist/chunk-7EXAS7HK.mjs +4 -0
  42. package/dist/chunk-7GSXNSLD.mjs +1 -0
  43. package/dist/chunk-7WIO2CIC.mjs +1 -0
  44. package/dist/chunk-A24EPYUY.mjs +1 -0
  45. package/dist/chunk-A2AEX4YB.mjs +4 -0
  46. package/dist/chunk-A3SUL73A.mjs +4 -0
  47. package/dist/chunk-AB43AQKL.mjs +1 -0
  48. package/dist/chunk-ABGNIQRP.mjs +1 -0
  49. package/dist/chunk-AEBUMA72.mjs +1 -0
  50. package/dist/chunk-AMV3MECK.mjs +1 -0
  51. package/dist/chunk-AUBKJ4XO.mjs +1 -0
  52. package/dist/chunk-AVHFRD6D.mjs +4 -0
  53. package/dist/chunk-AZ4VR5JX.mjs +3 -0
  54. package/dist/chunk-AZKOVKSK.mjs +4 -0
  55. package/dist/chunk-B4H6T2GP.mjs +1 -0
  56. package/dist/chunk-BADFWNRL.mjs +4 -0
  57. package/dist/chunk-BG7QXNV5.mjs +1 -0
  58. package/dist/chunk-BMA4266L.mjs +1 -0
  59. package/dist/chunk-BZAYEKYC.mjs +1 -0
  60. package/dist/chunk-CGDLOY7W.mjs +4 -0
  61. package/dist/chunk-CSBGSBEU.mjs +1 -0
  62. package/dist/chunk-CSWXKGJE.mjs +4 -0
  63. package/dist/chunk-CTKUF2I6.mjs +4 -0
  64. package/dist/chunk-CV7PH2KH.mjs +4 -0
  65. package/dist/chunk-CVLUVZR3.mjs +1 -0
  66. package/dist/chunk-D3B2YO7G.mjs +4 -0
  67. package/dist/chunk-D4IMQTVU.mjs +4 -0
  68. package/dist/chunk-DBY4SXQI.mjs +1 -0
  69. package/dist/chunk-DFIXTV2M.mjs +1 -0
  70. package/dist/chunk-DLUWDQSW.mjs +4 -0
  71. package/dist/chunk-DUEPJ3F4.mjs +1 -0
  72. package/dist/chunk-DY2G774J.mjs +1 -0
  73. package/dist/chunk-E4TE4NV6.mjs +4 -0
  74. package/dist/chunk-EG646342.mjs +1 -0
  75. package/dist/chunk-EOXVYLPB.mjs +1 -0
  76. package/dist/chunk-EPTHSTUM.mjs +1 -0
  77. package/dist/chunk-EVZSRWUW.mjs +1 -0
  78. package/dist/chunk-F4UGWCXY.mjs +1 -0
  79. package/dist/chunk-F5N6KQA2.mjs +1 -0
  80. package/dist/chunk-FHMQVAKQ.mjs +4 -0
  81. package/dist/chunk-FLHDNCNY.mjs +1 -0
  82. package/dist/chunk-FMH5CZ7X.mjs +4 -0
  83. package/dist/chunk-FMJBJ3HN.mjs +1 -0
  84. package/dist/chunk-FOISWNF5.mjs +1 -0
  85. package/dist/chunk-FRKGQKEM.mjs +4 -0
  86. package/dist/chunk-FRWX5YES.mjs +4 -0
  87. package/dist/chunk-FT3AE7L2.mjs +4 -0
  88. package/dist/chunk-FV3W3WL7.mjs +4 -0
  89. package/dist/chunk-FVM5SQT2.mjs +4 -0
  90. package/dist/chunk-G6ED5Z4J.mjs +1 -0
  91. package/dist/chunk-GS2VFNHY.mjs +1 -0
  92. package/dist/chunk-H7D3PZKE.mjs +1 -0
  93. package/dist/chunk-HH3AWPYB.mjs +4 -0
  94. package/dist/chunk-HNCC3AOT.mjs +4 -0
  95. package/dist/chunk-HR6PBSS5.mjs +1 -0
  96. package/dist/chunk-I3E2TYYZ.mjs +1 -0
  97. package/dist/chunk-IC2ABKAM.mjs +4 -0
  98. package/dist/chunk-IJQC7T2R.mjs +1 -0
  99. package/dist/chunk-INCYANPB.mjs +4 -0
  100. package/dist/chunk-IQ3TUH7O.mjs +1 -0
  101. package/dist/chunk-IQPZEEYJ.mjs +1 -0
  102. package/dist/chunk-ISBVFNWD.mjs +4 -0
  103. package/dist/chunk-IUT6JJHY.mjs +4 -0
  104. package/dist/chunk-IV5HRCWW.mjs +4 -0
  105. package/dist/chunk-J4IHIM6A.mjs +1 -0
  106. package/dist/chunk-JCH2CCQ7.mjs +1 -0
  107. package/dist/chunk-JFFTEK6Z.mjs +4 -0
  108. package/dist/chunk-JHNVX4UB.mjs +4 -0
  109. package/dist/chunk-JYL3XIJX.mjs +1 -0
  110. package/dist/chunk-KCCDR7HB.mjs +4 -0
  111. package/dist/chunk-KEOMDWUC.mjs +1 -0
  112. package/dist/chunk-KFCSVEI6.mjs +4 -0
  113. package/dist/chunk-KGEIN56Y.mjs +4 -0
  114. package/dist/chunk-KJMXSFJA.mjs +1 -0
  115. package/dist/chunk-KML6U7IE.mjs +1 -0
  116. package/dist/chunk-KOXC4RIH.mjs +1 -0
  117. package/dist/chunk-KTET6W73.mjs +1 -0
  118. package/dist/chunk-KVD6XDZT.mjs +1 -0
  119. package/dist/chunk-KX2NCNCS.mjs +1 -0
  120. package/dist/chunk-KXZFR7TI.mjs +1 -0
  121. package/dist/chunk-KY7WQYN4.mjs +4 -0
  122. package/dist/chunk-L2CGDHVO.mjs +1 -0
  123. package/dist/chunk-L3BLBPSR.mjs +4 -0
  124. package/dist/chunk-L5JPAKPM.mjs +1 -0
  125. package/dist/chunk-LAQ3QAUW.mjs +1 -0
  126. package/dist/chunk-LC2RBE7W.mjs +1 -0
  127. package/dist/chunk-LEC6GEWS.mjs +5 -0
  128. package/dist/chunk-LKGCU7H6.mjs +1 -0
  129. package/dist/chunk-LTTO57ZK.mjs +1 -0
  130. package/dist/chunk-LVFMFRBR.mjs +4 -0
  131. package/dist/chunk-LVK4QE5D.mjs +1 -0
  132. package/dist/chunk-LXZAOORS.mjs +1 -0
  133. package/dist/chunk-M245YHYF.mjs +4 -0
  134. package/dist/chunk-M4NJB4NN.mjs +1 -0
  135. package/dist/chunk-MDJREBVI.mjs +1 -0
  136. package/dist/chunk-MGYV46AJ.mjs +4 -0
  137. package/dist/chunk-MNI6AM7Q.mjs +4 -0
  138. package/dist/chunk-MZP7RIQZ.mjs +1 -0
  139. package/dist/chunk-NSMXJCXE.mjs +1 -0
  140. package/dist/chunk-NZS3XKXU.mjs +1 -0
  141. package/dist/chunk-O5BAW5XQ.mjs +3 -0
  142. package/dist/chunk-OB5WMODY.mjs +4 -0
  143. package/dist/chunk-OCPX4QPC.mjs +4 -0
  144. package/dist/chunk-OEFXIEY3.mjs +4 -0
  145. package/dist/chunk-OJYMSL24.mjs +1 -0
  146. package/dist/chunk-OM5ZUHCN.mjs +4 -0
  147. package/dist/chunk-ORNGKQM7.mjs +1 -0
  148. package/dist/chunk-OYZDAMCS.mjs +4 -0
  149. package/dist/chunk-PDY7JYY3.mjs +4 -0
  150. package/dist/chunk-PEQOQ7BK.mjs +4 -0
  151. package/dist/chunk-PFLESLNT.mjs +1 -0
  152. package/dist/chunk-PLTKMHUH.mjs +1 -0
  153. package/dist/chunk-PM35MWKG.mjs +4 -0
  154. package/dist/chunk-PXPSM7OQ.mjs +1 -0
  155. package/dist/chunk-Q2DPE66H.mjs +1 -0
  156. package/dist/chunk-Q3G5UAAD.mjs +1 -0
  157. package/dist/chunk-Q5NHYYRS.mjs +4 -0
  158. package/dist/chunk-Q5Q3DJWU.mjs +4 -0
  159. package/dist/chunk-Q5XT55O3.mjs +1 -0
  160. package/dist/chunk-Q6PKGY27.mjs +4 -0
  161. package/dist/chunk-QDAJ7QAD.mjs +2 -0
  162. package/dist/chunk-QKGEV7LG.mjs +1 -0
  163. package/dist/chunk-QTILVWJA.mjs +4 -0
  164. package/dist/chunk-R7LPCFUJ.mjs +4 -0
  165. package/dist/chunk-RAGDUV7M.mjs +4 -0
  166. package/dist/chunk-RK2CAIEF.mjs +4 -0
  167. package/dist/chunk-RLVKIMGU.mjs +4 -0
  168. package/dist/chunk-RR4QSUV2.mjs +1 -0
  169. package/dist/chunk-RULSHTXR.mjs +1 -0
  170. package/dist/chunk-RUOYGMOR.mjs +4 -0
  171. package/dist/chunk-RVRIMD6M.mjs +4 -0
  172. package/dist/chunk-RYZTCMVC.mjs +4 -0
  173. package/dist/chunk-S562PA5P.mjs +1 -0
  174. package/dist/chunk-SNZ5BAQQ.mjs +4 -0
  175. package/dist/chunk-SOIRB5TV.mjs +1 -0
  176. package/dist/chunk-SOLZ4VQH.mjs +4 -0
  177. package/dist/chunk-SRUG246N.mjs +4 -0
  178. package/dist/chunk-SV7NMNDI.mjs +1 -0
  179. package/dist/chunk-TEB67NCD.mjs +4 -0
  180. package/dist/chunk-TJVEQJW3.mjs +4 -0
  181. package/dist/chunk-TK4JC5PG.mjs +4 -0
  182. package/dist/chunk-TO2UDP5T.mjs +1 -0
  183. package/dist/chunk-TO7KJNKC.mjs +4 -0
  184. package/dist/chunk-TUI4S4GI.mjs +4 -0
  185. package/dist/chunk-TVZOULLL.mjs +4 -0
  186. package/dist/chunk-TZKQXT7Y.mjs +4 -0
  187. package/dist/chunk-U5PBLRRV.mjs +4 -0
  188. package/dist/chunk-U7GAPI7X.mjs +6 -0
  189. package/dist/chunk-UIMLXZPF.mjs +4 -0
  190. package/dist/chunk-UNS6CTQZ.mjs +4 -0
  191. package/dist/chunk-UWEU6TLS.mjs +6 -0
  192. package/dist/chunk-V2KCUPP5.mjs +4 -0
  193. package/dist/chunk-V6GC3UGV.mjs +1 -0
  194. package/dist/chunk-VKJ7E6OL.mjs +1 -0
  195. package/dist/chunk-VMAPGGGW.mjs +4 -0
  196. package/dist/chunk-WHDJPD5E.mjs +5 -0
  197. package/dist/chunk-WISC5QJV.mjs +1 -0
  198. package/dist/chunk-WISCWNL2.mjs +1 -0
  199. package/dist/chunk-WN2LPOQP.mjs +4 -0
  200. package/dist/chunk-WU3JMLSC.mjs +1 -0
  201. package/dist/chunk-X3JZSN3W.mjs +1 -0
  202. package/dist/chunk-X5KZKO2V.mjs +4 -0
  203. package/dist/chunk-XBCYPOFD.mjs +1 -0
  204. package/dist/chunk-XGIYNUGC.mjs +1 -0
  205. package/dist/chunk-XGRRLABA.mjs +8 -0
  206. package/dist/chunk-XI5H6WLY.mjs +1 -0
  207. package/dist/chunk-YEKQJ4YC.mjs +1 -0
  208. package/dist/chunk-YFAZQYK4.mjs +4 -0
  209. package/dist/chunk-YNCJATT7.mjs +4 -0
  210. package/dist/chunk-YNNW2C2U.mjs +1 -0
  211. package/dist/chunk-YO3GQYRJ.mjs +1 -0
  212. package/dist/chunk-ZDPQXVTF.mjs +1 -0
  213. package/dist/chunk-ZFUP5NVF.mjs +4 -0
  214. package/dist/chunk-ZGQC6O62.mjs +4 -0
  215. package/dist/chunk-ZSIYEVUV.mjs +4 -0
  216. package/dist/chunk-ZUA4KNIR.mjs +1 -0
  217. package/dist/chunk-ZWHGOTSF.mjs +1 -0
  218. package/dist/common-types.js +1 -0
  219. package/dist/common-types.mjs +1 -0
  220. package/dist/components/AdvancedComponents/CommentSection.css +1 -0
  221. package/dist/components/AdvancedComponents/CommentSection.js +4 -0
  222. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -0
  223. package/dist/components/AdvancedComponents/EditableField.css +1 -0
  224. package/dist/components/AdvancedComponents/EditableField.js +4 -0
  225. package/dist/components/AdvancedComponents/EditableField.mjs +1 -0
  226. package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.js +108 -0
  227. package/dist/components/AdvancedComponents/NAVIGATION_TABS_README.mjs +108 -0
  228. package/dist/components/AdvancedComponents/app-header.css +1 -0
  229. package/dist/components/AdvancedComponents/app-header.js +5 -0
  230. package/dist/components/AdvancedComponents/app-header.mjs +2 -0
  231. package/dist/components/AdvancedComponents/index.css +1 -0
  232. package/dist/components/AdvancedComponents/index.js +6 -0
  233. package/dist/components/AdvancedComponents/index.mjs +1 -0
  234. package/dist/components/AdvancedComponents/navigation-tabs.css +1 -0
  235. package/dist/components/AdvancedComponents/navigation-tabs.js +5 -0
  236. package/dist/components/AdvancedComponents/navigation-tabs.mjs +2 -0
  237. package/dist/components/AdvancedComponents/notifications-panel.css +1 -0
  238. package/dist/components/AdvancedComponents/notifications-panel.js +5 -0
  239. package/dist/components/AdvancedComponents/notifications-panel.mjs +2 -0
  240. package/dist/components/AdvancedComponents/sidebar.css +1 -0
  241. package/dist/components/AdvancedComponents/sidebar.js +5 -0
  242. package/dist/components/AdvancedComponents/sidebar.mjs +2 -0
  243. package/dist/components/AdvancedComponents/switch.css +1 -0
  244. package/dist/components/AdvancedComponents/switch.js +4 -0
  245. package/dist/components/AdvancedComponents/switch.mjs +2 -0
  246. package/dist/components/AdvancedComponents/theme-provider.js +4 -0
  247. package/dist/components/AdvancedComponents/theme-provider.mjs +4 -0
  248. package/dist/components/AdvancedComponents/theme-toggle.css +1 -0
  249. package/dist/components/AdvancedComponents/theme-toggle.js +5 -0
  250. package/dist/components/AdvancedComponents/theme-toggle.mjs +2 -0
  251. package/dist/components/AdvancedComponents/user-selection.css +1 -0
  252. package/dist/components/AdvancedComponents/user-selection.js +5 -0
  253. package/dist/components/AdvancedComponents/user-selection.mjs +2 -0
  254. package/dist/components/Blocks/Banner.css +1 -0
  255. package/dist/components/Blocks/Banner.js +4 -0
  256. package/dist/components/Blocks/Banner.mjs +1 -0
  257. package/dist/components/Blocks/CallToAction.css +1 -0
  258. package/dist/components/Blocks/CallToAction.js +4 -0
  259. package/dist/components/Blocks/CallToAction.mjs +2 -0
  260. package/dist/components/Blocks/CaseStudy.css +1 -0
  261. package/dist/components/Blocks/CaseStudy.js +1 -0
  262. package/dist/components/Blocks/CaseStudy.mjs +1 -0
  263. package/dist/components/Blocks/Code.client.css +1 -0
  264. package/dist/components/Blocks/Code.client.js +4 -0
  265. package/dist/components/Blocks/Code.client.mjs +2 -0
  266. package/dist/components/Blocks/Code.css +1 -0
  267. package/dist/components/Blocks/Code.js +4 -0
  268. package/dist/components/Blocks/Code.mjs +1 -0
  269. package/dist/components/Blocks/CollapsibleArea.css +1 -0
  270. package/dist/components/Blocks/CollapsibleArea.js +4 -0
  271. package/dist/components/Blocks/CollapsibleArea.mjs +2 -0
  272. package/dist/components/Blocks/ConsultantProfile.css +1 -0
  273. package/dist/components/Blocks/ConsultantProfile.js +1 -0
  274. package/dist/components/Blocks/ConsultantProfile.mjs +1 -0
  275. package/dist/components/Blocks/Content.css +1 -0
  276. package/dist/components/Blocks/Content.js +4 -0
  277. package/dist/components/Blocks/Content.mjs +1 -0
  278. package/dist/components/Blocks/CopyButton.css +1 -0
  279. package/dist/components/Blocks/CopyButton.js +4 -0
  280. package/dist/components/Blocks/CopyButton.mjs +2 -0
  281. package/dist/components/Blocks/FeaturesBlock.css +1 -0
  282. package/dist/components/Blocks/FeaturesBlock.js +4 -0
  283. package/dist/components/Blocks/FeaturesBlock.mjs +1 -0
  284. package/dist/components/Blocks/HeadingImage.js +1 -0
  285. package/dist/components/Blocks/HeadingImage.mjs +1 -0
  286. package/dist/components/Blocks/ImageBlock.js +4 -0
  287. package/dist/components/Blocks/ImageBlock.mjs +1 -0
  288. package/dist/components/Blocks/InfoTile.js +1 -0
  289. package/dist/components/Blocks/InfoTile.mjs +1 -0
  290. package/dist/components/Blocks/Insight.js +4 -0
  291. package/dist/components/Blocks/Insight.mjs +2 -0
  292. package/dist/components/Blocks/MOTD.js +1 -0
  293. package/dist/components/Blocks/MOTD.mjs +1 -0
  294. package/dist/components/Blocks/MediaBlock.js +4 -0
  295. package/dist/components/Blocks/MediaBlock.mjs +1 -0
  296. package/dist/components/Blocks/OrgChart.js +4 -0
  297. package/dist/components/Blocks/OrgChart.mjs +2 -0
  298. package/dist/components/Blocks/ProposalSummary.css +1 -0
  299. package/dist/components/Blocks/ProposalSummary.js +1 -0
  300. package/dist/components/Blocks/ProposalSummary.mjs +1 -0
  301. package/dist/components/Blocks/RelatedPosts.css +1 -0
  302. package/dist/components/Blocks/RelatedPosts.js +4 -0
  303. package/dist/components/Blocks/RelatedPosts.mjs +1 -0
  304. package/dist/components/Blocks/RenderBlocks.css +1 -0
  305. package/dist/components/Blocks/RenderBlocks.js +4 -0
  306. package/dist/components/Blocks/RenderBlocks.mjs +1 -0
  307. package/dist/components/Blocks/ReusableContentBlock.css +1 -0
  308. package/dist/components/Blocks/ReusableContentBlock.js +4 -0
  309. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -0
  310. package/dist/components/Blocks/WhyUs.js +1 -0
  311. package/dist/components/Blocks/WhyUs.mjs +1 -0
  312. package/dist/components/Blocks/index.css +1 -0
  313. package/dist/components/Blocks/index.js +4 -0
  314. package/dist/components/Blocks/index.mjs +1 -0
  315. package/dist/components/CRM/CogeBoard.css +1 -0
  316. package/dist/components/CRM/CogeBoard.js +4 -0
  317. package/dist/components/CRM/CogeBoard.mjs +2 -0
  318. package/dist/components/CRM/DealCard.css +1 -0
  319. package/dist/components/CRM/DealCard.js +1 -0
  320. package/dist/components/CRM/DealCard.mjs +1 -0
  321. package/dist/components/CRM/DealDetails.css +1 -0
  322. package/dist/components/CRM/DealDetails.js +4 -0
  323. package/dist/components/CRM/DealDetails.mjs +1 -0
  324. package/dist/components/CRM/KanbanBoard.css +1 -0
  325. package/dist/components/CRM/KanbanBoard.js +4 -0
  326. package/dist/components/CRM/KanbanBoard.mjs +2 -0
  327. package/dist/components/CRM/KanbanColumn.css +1 -0
  328. package/dist/components/CRM/KanbanColumn.js +1 -0
  329. package/dist/components/CRM/KanbanColumn.mjs +1 -0
  330. package/dist/components/CRM/NewCustomerForm.css +1 -0
  331. package/dist/components/CRM/NewCustomerForm.js +4 -0
  332. package/dist/components/CRM/NewCustomerForm.mjs +1 -0
  333. package/dist/components/CRM/NewDealForm.css +1 -0
  334. package/dist/components/CRM/NewDealForm.js +4 -0
  335. package/dist/components/CRM/NewDealForm.mjs +1 -0
  336. package/dist/components/CRM/index.css +1 -0
  337. package/dist/components/CRM/index.js +4 -0
  338. package/dist/components/CRM/index.mjs +1 -0
  339. package/dist/components/CRM/mockData.js +1 -0
  340. package/dist/components/CRM/mockData.mjs +1 -0
  341. package/dist/components/CRM/types.js +1 -0
  342. package/dist/components/Cards/ContentCard.css +1 -0
  343. package/dist/components/Cards/ContentCard.js +4 -0
  344. package/dist/components/Cards/ContentCard.mjs +1 -0
  345. package/dist/components/Cards/CustomerCard.css +1 -0
  346. package/dist/components/Cards/CustomerCard.js +1 -0
  347. package/dist/components/Cards/CustomerCard.mjs +1 -0
  348. package/dist/components/Cards/EventCard.css +1 -0
  349. package/dist/components/Cards/EventCard.js +4 -0
  350. package/dist/components/Cards/EventCard.mjs +1 -0
  351. package/dist/components/Cards/FeatureCard.css +1 -0
  352. package/dist/components/Cards/FeatureCard.js +4 -0
  353. package/dist/components/Cards/FeatureCard.mjs +1 -0
  354. package/dist/components/Cards/HeroCard.css +1 -0
  355. package/dist/components/Cards/HeroCard.js +1 -0
  356. package/dist/components/Cards/HeroCard.mjs +1 -0
  357. package/dist/components/Cards/Image.css +1 -0
  358. package/dist/components/Cards/Image.js +4 -0
  359. package/dist/components/Cards/Image.mjs +2 -0
  360. package/dist/components/Cards/PricingCard.css +1 -0
  361. package/dist/components/Cards/PricingCard.js +1 -0
  362. package/dist/components/Cards/PricingCard.mjs +1 -0
  363. package/dist/components/Cards/ProjectCard.js +5 -0
  364. package/dist/components/Cards/ProjectCard.mjs +1 -0
  365. package/dist/components/Cards/ServiceCard.css +1 -0
  366. package/dist/components/Cards/ServiceCard.js +4 -0
  367. package/dist/components/Cards/ServiceCard.mjs +1 -0
  368. package/dist/components/Cards/index.css +1 -0
  369. package/dist/components/Cards/index.js +9 -0
  370. package/dist/components/Cards/index.mjs +1 -0
  371. package/dist/components/Chat/CAPABILITIES_README.js +199 -0
  372. package/dist/components/Chat/CAPABILITIES_README.mjs +199 -0
  373. package/dist/components/Chat/ChatCardArtefact.css +1 -0
  374. package/dist/components/Chat/ChatCardArtefact.js +1 -0
  375. package/dist/components/Chat/ChatCardArtefact.mjs +1 -0
  376. package/dist/components/Chat/ChatCardTask.css +1 -0
  377. package/dist/components/Chat/ChatCardTask.js +1 -0
  378. package/dist/components/Chat/ChatCardTask.mjs +1 -0
  379. package/dist/components/Chat/ChatInterfaceMessages.css +1 -0
  380. package/dist/components/Chat/ChatInterfaceMessages.js +7 -0
  381. package/dist/components/Chat/ChatInterfaceMessages.mjs +2 -0
  382. package/dist/components/Chat/ChatMessage.css +1 -0
  383. package/dist/components/Chat/ChatMessage.js +7 -0
  384. package/dist/components/Chat/ChatMessage.mjs +1 -0
  385. package/dist/components/Chat/CopilotInterface.css +1 -0
  386. package/dist/components/Chat/CopilotInterface.js +5 -0
  387. package/dist/components/Chat/CopilotInterface.mjs +2 -0
  388. package/dist/components/Chat/EnhancedChatInterface.css +1 -0
  389. package/dist/components/Chat/EnhancedChatInterface.js +5 -0
  390. package/dist/components/Chat/EnhancedChatInterface.mjs +4 -0
  391. package/dist/components/Chat/ai-chat-interface.css +1 -0
  392. package/dist/components/Chat/ai-chat-interface.js +5 -0
  393. package/dist/components/Chat/ai-chat-interface.mjs +4 -0
  394. package/dist/components/Chat/capabilities-config.js +1 -0
  395. package/dist/components/Chat/capabilities-config.mjs +1 -0
  396. package/dist/components/Chat/capabilities-data.js +1 -0
  397. package/dist/components/Chat/capabilities-data.mjs +1 -0
  398. package/dist/components/Chat/capabilities.js +1 -0
  399. package/dist/components/Chat/capabilities.mjs +1 -0
  400. package/dist/components/Chat/capability-menu.css +1 -0
  401. package/dist/components/Chat/capability-menu.js +4 -0
  402. package/dist/components/Chat/capability-menu.mjs +2 -0
  403. package/dist/components/Chat/chat-session-sidebar.css +1 -0
  404. package/dist/components/Chat/chat-session-sidebar.js +5 -0
  405. package/dist/components/Chat/chat-session-sidebar.mjs +2 -0
  406. package/dist/components/Chat/hooks/useTask.js +1 -0
  407. package/dist/components/Chat/hooks/useTask.mjs +1 -0
  408. package/dist/components/Chat/index.css +1 -0
  409. package/dist/components/Chat/index.js +8 -0
  410. package/dist/components/Chat/index.mjs +1 -0
  411. package/dist/components/DeliveryLead/DeliveryLeadSubmission.css +1 -0
  412. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +6 -0
  413. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +2 -0
  414. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.css +1 -0
  415. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +4 -0
  416. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +2 -0
  417. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.css +1 -0
  418. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +6 -0
  419. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -0
  420. package/dist/components/DeliveryLead/index.css +1 -0
  421. package/dist/components/DeliveryLead/index.js +6 -0
  422. package/dist/components/DeliveryLead/index.mjs +1 -0
  423. package/dist/components/DeliveryLead/types.js +1 -0
  424. package/dist/components/DigitalColleagues/AppSidebarLeft.css +1 -0
  425. package/dist/components/DigitalColleagues/AppSidebarLeft.js +4 -0
  426. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +2 -0
  427. package/dist/components/DigitalColleagues/DashboardHeader.css +1 -0
  428. package/dist/components/DigitalColleagues/DashboardHeader.js +4 -0
  429. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -0
  430. package/dist/components/DigitalColleagues/DigitalColleageusLayout.css +1 -0
  431. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +5 -0
  432. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +2 -0
  433. package/dist/components/DigitalColleagues/MainPage.css +1 -0
  434. package/dist/components/DigitalColleagues/MainPage.js +4 -0
  435. package/dist/components/DigitalColleagues/MainPage.mjs +4 -0
  436. package/dist/components/DigitalColleagues/ManagementSidebar.css +1 -0
  437. package/dist/components/DigitalColleagues/ManagementSidebar.js +4 -0
  438. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -0
  439. package/dist/components/DigitalColleagues/Pages/dashboardpage.css +1 -0
  440. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +5 -0
  441. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +4 -0
  442. package/dist/components/DigitalColleagues/SearchableSelect.css +1 -0
  443. package/dist/components/DigitalColleagues/SearchableSelect.js +4 -0
  444. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -0
  445. package/dist/components/DigitalColleagues/Views/ColleaguesView.css +1 -0
  446. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +5 -0
  447. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +2 -0
  448. package/dist/components/DigitalColleagues/Views/KnowledgeView.css +1 -0
  449. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +5 -0
  450. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -0
  451. package/dist/components/DigitalColleagues/Views/TeamsIndexView.css +1 -0
  452. package/dist/components/DigitalColleagues/Views/TeamsIndexView.js +5 -0
  453. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +2 -0
  454. package/dist/components/DigitalColleagues/Views/index.css +1 -0
  455. package/dist/components/DigitalColleagues/Views/index.js +5 -0
  456. package/dist/components/DigitalColleagues/Views/index.mjs +1 -0
  457. package/dist/components/DigitalColleagues/colleague-card.css +1 -0
  458. package/dist/components/DigitalColleagues/colleague-card.js +5 -0
  459. package/dist/components/DigitalColleagues/colleague-card.mjs +2 -0
  460. package/dist/components/DigitalColleagues/colleague-form.css +1 -0
  461. package/dist/components/DigitalColleagues/colleague-form.js +5 -0
  462. package/dist/components/DigitalColleagues/colleague-form.mjs +2 -0
  463. package/dist/components/DigitalColleagues/colleague-type-selection.css +1 -0
  464. package/dist/components/DigitalColleagues/colleague-type-selection.js +4 -0
  465. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +2 -0
  466. package/dist/components/DigitalColleagues/digital-colleague-clone.css +1 -0
  467. package/dist/components/DigitalColleagues/digital-colleague-clone.js +5 -0
  468. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +2 -0
  469. package/dist/components/DigitalColleagues/digital-colleague-options.css +1 -0
  470. package/dist/components/DigitalColleagues/digital-colleague-options.js +4 -0
  471. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +2 -0
  472. package/dist/components/DigitalColleagues/test-data.js +1 -0
  473. package/dist/components/DigitalColleagues/test-data.mjs +1 -0
  474. package/dist/components/DigitalColleagues/types.js +1 -0
  475. package/dist/components/HeaderFooter/AppLauncher.js +4 -0
  476. package/dist/components/HeaderFooter/AppLauncher.mjs +2 -0
  477. package/dist/components/HeaderFooter/BrandLogo.js +1 -0
  478. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -0
  479. package/dist/components/HeaderFooter/Footer.css +1 -0
  480. package/dist/components/HeaderFooter/Footer.js +1 -0
  481. package/dist/components/HeaderFooter/Footer.mjs +1 -0
  482. package/dist/components/HeaderFooter/Header.css +1 -0
  483. package/dist/components/HeaderFooter/Header.js +4 -0
  484. package/dist/components/HeaderFooter/Header.mjs +1 -0
  485. package/dist/components/HeaderFooter/HeaderDesktop.css +1 -0
  486. package/dist/components/HeaderFooter/HeaderDesktop.js +4 -0
  487. package/dist/components/HeaderFooter/HeaderDesktop.mjs +2 -0
  488. package/dist/components/HeaderFooter/HeaderMenu.css +1 -0
  489. package/dist/components/HeaderFooter/HeaderMenu.js +4 -0
  490. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -0
  491. package/dist/components/HeaderFooter/HeaderMenuItem.js +1 -0
  492. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -0
  493. package/dist/components/HeaderFooter/HeaderMobile.js +4 -0
  494. package/dist/components/HeaderFooter/HeaderMobile.mjs +2 -0
  495. package/dist/components/HeaderFooter/RelatedPagesMenu.css +1 -0
  496. package/dist/components/HeaderFooter/RelatedPagesMenu.js +4 -0
  497. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +2 -0
  498. package/dist/components/HeaderFooter/SectionHeading.css +1 -0
  499. package/dist/components/HeaderFooter/SectionHeading.js +4 -0
  500. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -0
  501. package/dist/components/HeaderFooter/SimpleHeader.css +1 -0
  502. package/dist/components/HeaderFooter/SimpleHeader.js +4 -0
  503. package/dist/components/HeaderFooter/SimpleHeader.mjs +2 -0
  504. package/dist/components/HeaderFooter/VideoHeader.css +1 -0
  505. package/dist/components/HeaderFooter/VideoHeader.js +4 -0
  506. package/dist/components/HeaderFooter/VideoHeader.mjs +2 -0
  507. package/dist/components/HeaderFooter/index.css +1 -0
  508. package/dist/components/HeaderFooter/index.js +4 -0
  509. package/dist/components/HeaderFooter/index.mjs +1 -0
  510. package/dist/components/Heros/DashboardHero/DashboardHero.css +1 -0
  511. package/dist/components/Heros/DashboardHero/DashboardHero.js +4 -0
  512. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +2 -0
  513. package/dist/components/Heros/DashboardHero/index.css +1 -0
  514. package/dist/components/Heros/DashboardHero/index.js +4 -0
  515. package/dist/components/Heros/DashboardHero/index.mjs +1 -0
  516. package/dist/components/Heros/HighImpact/index.css +1 -0
  517. package/dist/components/Heros/HighImpact/index.js +4 -0
  518. package/dist/components/Heros/HighImpact/index.mjs +2 -0
  519. package/dist/components/Heros/LowImpact/index.css +1 -0
  520. package/dist/components/Heros/LowImpact/index.js +4 -0
  521. package/dist/components/Heros/LowImpact/index.mjs +1 -0
  522. package/dist/components/Heros/MediumImpact/index.css +1 -0
  523. package/dist/components/Heros/MediumImpact/index.js +4 -0
  524. package/dist/components/Heros/MediumImpact/index.mjs +1 -0
  525. package/dist/components/Heros/PostHero/index.css +1 -0
  526. package/dist/components/Heros/PostHero/index.js +1 -0
  527. package/dist/components/Heros/PostHero/index.mjs +1 -0
  528. package/dist/components/Heros/RenderHero.css +1 -0
  529. package/dist/components/Heros/RenderHero.js +4 -0
  530. package/dist/components/Heros/RenderHero.mjs +1 -0
  531. package/dist/components/Heros/SectionHero/index.css +1 -0
  532. package/dist/components/Heros/SectionHero/index.js +1 -0
  533. package/dist/components/Heros/SectionHero/index.mjs +1 -0
  534. package/dist/components/Heros/index.css +1 -0
  535. package/dist/components/Heros/index.js +5 -0
  536. package/dist/components/Heros/index.mjs +1 -0
  537. package/dist/components/Holidays/ApproveLeave.css +1 -0
  538. package/dist/components/Holidays/ApproveLeave.js +4 -0
  539. package/dist/components/Holidays/ApproveLeave.mjs +2 -0
  540. package/dist/components/Holidays/CalendarView.css +1 -0
  541. package/dist/components/Holidays/CalendarView.js +4 -0
  542. package/dist/components/Holidays/CalendarView.mjs +2 -0
  543. package/dist/components/Holidays/HolidayGrid.css +1 -0
  544. package/dist/components/Holidays/HolidayGrid.js +4 -0
  545. package/dist/components/Holidays/HolidayGrid.mjs +1 -0
  546. package/dist/components/Holidays/HolidayTracker.css +1 -0
  547. package/dist/components/Holidays/HolidayTracker.js +4 -0
  548. package/dist/components/Holidays/HolidayTracker.mjs +2 -0
  549. package/dist/components/Holidays/RequestLeave.css +1 -0
  550. package/dist/components/Holidays/RequestLeave.js +4 -0
  551. package/dist/components/Holidays/RequestLeave.mjs +2 -0
  552. package/dist/components/Holidays/index.css +1 -0
  553. package/dist/components/Holidays/index.js +4 -0
  554. package/dist/components/Holidays/index.mjs +1 -0
  555. package/dist/components/Icons/ScrollDownIcon.js +4 -0
  556. package/dist/components/Icons/ScrollDownIcon.mjs +4 -0
  557. package/dist/components/Images/DynamicIcon.js +4 -0
  558. package/dist/components/Images/DynamicIcon.mjs +2 -0
  559. package/dist/components/Images/IconIndex.js +18 -0
  560. package/dist/components/Images/IconIndex.mjs +18 -0
  561. package/dist/components/Images/customIconList.js +1 -0
  562. package/dist/components/Images/customIconList.mjs +1 -0
  563. package/dist/components/Images/index.js +4 -0
  564. package/dist/components/Images/index.mjs +1 -0
  565. package/dist/components/Layouts/FeatureGrid.js +4 -0
  566. package/dist/components/Layouts/FeatureGrid.mjs +2 -0
  567. package/dist/components/Layouts/NewsGrid.js +4 -0
  568. package/dist/components/Layouts/NewsGrid.mjs +2 -0
  569. package/dist/components/Layouts/NewsList.js +1 -0
  570. package/dist/components/Layouts/NewsList.mjs +1 -0
  571. package/dist/components/Layouts/OutputHeaderFooter.css +1 -0
  572. package/dist/components/Layouts/OutputHeaderFooter.js +5 -0
  573. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -0
  574. package/dist/components/Layouts/Print.css +1 -0
  575. package/dist/components/Layouts/Print.js +5 -0
  576. package/dist/components/Layouts/Print.mjs +2 -0
  577. package/dist/components/Layouts/SlideShow.css +1 -0
  578. package/dist/components/Layouts/SlideShow.js +7 -0
  579. package/dist/components/Layouts/SlideShow.mjs +2 -0
  580. package/dist/components/Layouts/TextAndImages.js +1 -0
  581. package/dist/components/Layouts/TextAndImages.mjs +1 -0
  582. package/dist/components/Layouts/index.css +1 -0
  583. package/dist/components/Layouts/index.js +8 -0
  584. package/dist/components/Layouts/index.mjs +1 -0
  585. package/dist/components/Menus/Categories.css +1 -0
  586. package/dist/components/Menus/Categories.js +4 -0
  587. package/dist/components/Menus/Categories.mjs +2 -0
  588. package/dist/components/Menus/Filter.css +1 -0
  589. package/dist/components/Menus/Filter.js +4 -0
  590. package/dist/components/Menus/Filter.mjs +2 -0
  591. package/dist/components/Menus/Pagination.js +4 -0
  592. package/dist/components/Menus/Pagination.mjs +2 -0
  593. package/dist/components/Menus/ProjectTeam.css +1 -0
  594. package/dist/components/Menus/ProjectTeam.js +1 -0
  595. package/dist/components/Menus/ProjectTeam.mjs +1 -0
  596. package/dist/components/Menus/RelatedContent.css +1 -0
  597. package/dist/components/Menus/RelatedContent.js +1 -0
  598. package/dist/components/Menus/RelatedContent.mjs +1 -0
  599. package/dist/components/Menus/SidebarLeft.css +1 -0
  600. package/dist/components/Menus/SidebarLeft.js +4 -0
  601. package/dist/components/Menus/SidebarLeft.mjs +2 -0
  602. package/dist/components/Menus/SidebarRight.css +1 -0
  603. package/dist/components/Menus/SidebarRight.js +4 -0
  604. package/dist/components/Menus/SidebarRight.mjs +2 -0
  605. package/dist/components/Menus/index.css +1 -0
  606. package/dist/components/Menus/index.js +4 -0
  607. package/dist/components/Menus/index.mjs +1 -0
  608. package/dist/components/Other/AnimatedBorder.js +4 -0
  609. package/dist/components/Other/AnimatedBorder.mjs +4 -0
  610. package/dist/components/Other/Container.css +1 -0
  611. package/dist/components/Other/Container.js +1 -0
  612. package/dist/components/Other/Container.mjs +1 -0
  613. package/dist/components/Other/CustomLink.js +1 -0
  614. package/dist/components/Other/CustomLink.mjs +1 -0
  615. package/dist/components/Other/PageShape.js +1 -0
  616. package/dist/components/Other/PageShape.mjs +1 -0
  617. package/dist/components/Other/ThemeProvider.js +4 -0
  618. package/dist/components/Other/ThemeProvider.mjs +2 -0
  619. package/dist/components/Other/index.css +1 -0
  620. package/dist/components/Other/index.js +4 -0
  621. package/dist/components/Other/index.mjs +1 -0
  622. package/dist/components/Payload/Card/index.js +4 -0
  623. package/dist/components/Payload/Card/index.mjs +2 -0
  624. package/dist/components/Payload/CollectionArchive/index.js +4 -0
  625. package/dist/components/Payload/CollectionArchive/index.mjs +1 -0
  626. package/dist/components/Payload/Link/index.css +1 -0
  627. package/dist/components/Payload/Link/index.js +1 -0
  628. package/dist/components/Payload/Link/index.mjs +1 -0
  629. package/dist/components/Payload/Logo/index.js +1 -0
  630. package/dist/components/Payload/Logo/index.mjs +1 -0
  631. package/dist/components/Payload/Media/ImageMedia/index.js +4 -0
  632. package/dist/components/Payload/Media/ImageMedia/index.mjs +2 -0
  633. package/dist/components/Payload/Media/VideoMedia/index.js +4 -0
  634. package/dist/components/Payload/Media/VideoMedia/index.mjs +2 -0
  635. package/dist/components/Payload/Media/index.js +4 -0
  636. package/dist/components/Payload/Media/index.mjs +1 -0
  637. package/dist/components/Payload/Media/types.js +1 -0
  638. package/dist/components/Payload/PageRange/index.js +1 -0
  639. package/dist/components/Payload/PageRange/index.mjs +1 -0
  640. package/dist/components/Payload/Pagination/index.css +1 -0
  641. package/dist/components/Payload/Pagination/index.js +4 -0
  642. package/dist/components/Payload/Pagination/index.mjs +2 -0
  643. package/dist/components/Payload/RichText/index.css +1 -0
  644. package/dist/components/Payload/RichText/index.js +4 -0
  645. package/dist/components/Payload/RichText/index.mjs +1 -0
  646. package/dist/components/Payload/RichText/nodeFormat.js +3 -0
  647. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -0
  648. package/dist/components/Payload/RichText/serialize.css +1 -0
  649. package/dist/components/Payload/RichText/serialize.js +4 -0
  650. package/dist/components/Payload/RichText/serialize.mjs +1 -0
  651. package/dist/components/Payload/index.css +1 -0
  652. package/dist/components/Payload/index.js +4 -0
  653. package/dist/components/Payload/index.mjs +1 -0
  654. package/dist/components/Projects/AddEpicModal.css +1 -0
  655. package/dist/components/Projects/AddEpicModal.js +4 -0
  656. package/dist/components/Projects/AddEpicModal.mjs +1 -0
  657. package/dist/components/Projects/AddSprintModal.css +1 -0
  658. package/dist/components/Projects/AddSprintModal.js +4 -0
  659. package/dist/components/Projects/AddSprintModal.mjs +1 -0
  660. package/dist/components/Projects/AddTaskModal.css +1 -0
  661. package/dist/components/Projects/AddTaskModal.js +4 -0
  662. package/dist/components/Projects/AddTaskModal.mjs +1 -0
  663. package/dist/components/Projects/EpicFilter.css +1 -0
  664. package/dist/components/Projects/EpicFilter.js +4 -0
  665. package/dist/components/Projects/EpicFilter.mjs +1 -0
  666. package/dist/components/Projects/EpicsView.css +1 -0
  667. package/dist/components/Projects/EpicsView.js +5 -0
  668. package/dist/components/Projects/EpicsView.mjs +1 -0
  669. package/dist/components/Projects/FileView.css +1 -0
  670. package/dist/components/Projects/FileView.js +5 -0
  671. package/dist/components/Projects/FileView.mjs +2 -0
  672. package/dist/components/Projects/KanbanBoardView.css +1 -0
  673. package/dist/components/Projects/KanbanBoardView.js +5 -0
  674. package/dist/components/Projects/KanbanBoardView.mjs +1 -0
  675. package/dist/components/Projects/KanbanColumn.css +1 -0
  676. package/dist/components/Projects/KanbanColumn.js +1 -0
  677. package/dist/components/Projects/KanbanColumn.mjs +1 -0
  678. package/dist/components/Projects/PlanningView.css +1 -0
  679. package/dist/components/Projects/PlanningView.js +5 -0
  680. package/dist/components/Projects/PlanningView.mjs +1 -0
  681. package/dist/components/Projects/ProjectPage.css +1 -0
  682. package/dist/components/Projects/ProjectPage.js +5 -0
  683. package/dist/components/Projects/ProjectPage.mjs +4 -0
  684. package/dist/components/Projects/ProjectView.css +1 -0
  685. package/dist/components/Projects/ProjectView.js +5 -0
  686. package/dist/components/Projects/ProjectView.mjs +1 -0
  687. package/dist/components/Projects/ProjectsIndexView.css +1 -0
  688. package/dist/components/Projects/ProjectsIndexView.js +5 -0
  689. package/dist/components/Projects/ProjectsIndexView.mjs +2 -0
  690. package/dist/components/Projects/TaskCard.css +1 -0
  691. package/dist/components/Projects/TaskCard.js +1 -0
  692. package/dist/components/Projects/TaskCard.mjs +1 -0
  693. package/dist/components/Projects/TaskDetailsModal.css +1 -0
  694. package/dist/components/Projects/TaskDetailsModal.js +4 -0
  695. package/dist/components/Projects/TaskDetailsModal.mjs +1 -0
  696. package/dist/components/Projects/TaskSelect.css +1 -0
  697. package/dist/components/Projects/TaskSelect.js +4 -0
  698. package/dist/components/Projects/TaskSelect.mjs +1 -0
  699. package/dist/components/Projects/TaskSidebar.css +1 -0
  700. package/dist/components/Projects/TaskSidebar.js +4 -0
  701. package/dist/components/Projects/TaskSidebar.mjs +1 -0
  702. package/dist/components/Projects/TasksView.css +1 -0
  703. package/dist/components/Projects/TasksView.js +5 -0
  704. package/dist/components/Projects/TasksView.mjs +1 -0
  705. package/dist/components/Projects/TeamSwitcher.css +1 -0
  706. package/dist/components/Projects/TeamSwitcher.js +4 -0
  707. package/dist/components/Projects/TeamSwitcher.mjs +1 -0
  708. package/dist/components/Projects/business-unit-switcher.css +1 -0
  709. package/dist/components/Projects/business-unit-switcher.js +5 -0
  710. package/dist/components/Projects/business-unit-switcher.mjs +2 -0
  711. package/dist/components/Projects/business-units.js +1 -0
  712. package/dist/components/Projects/business-units.mjs +1 -0
  713. package/dist/components/Projects/file-list.css +1 -0
  714. package/dist/components/Projects/file-list.js +4 -0
  715. package/dist/components/Projects/file-list.mjs +2 -0
  716. package/dist/components/Projects/project-card.css +1 -0
  717. package/dist/components/Projects/project-card.js +4 -0
  718. package/dist/components/Projects/project-card.mjs +2 -0
  719. package/dist/components/Projects/project-form.css +1 -0
  720. package/dist/components/Projects/project-form.js +4 -0
  721. package/dist/components/Projects/project-form.mjs +2 -0
  722. package/dist/components/Projects/team-card.css +1 -0
  723. package/dist/components/Projects/team-card.js +4 -0
  724. package/dist/components/Projects/team-card.mjs +2 -0
  725. package/dist/components/Projects/team-switcher-bar.css +1 -0
  726. package/dist/components/Projects/team-switcher-bar.js +5 -0
  727. package/dist/components/Projects/team-switcher-bar.mjs +4 -0
  728. package/dist/components/Projects/test-data.js +1 -0
  729. package/dist/components/Projects/test-data.mjs +1 -0
  730. package/dist/components/dc-temp/CHANGES_SUMMARY.js +104 -0
  731. package/dist/components/dc-temp/CHANGES_SUMMARY.mjs +104 -0
  732. package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.js +117 -0
  733. package/dist/components/dc-temp/COLLEAGUE_SELECTION_README.mjs +117 -0
  734. package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.js +207 -0
  735. package/dist/components/dc-temp/DIGITAL_COLLEAGUE_UPDATES.mjs +207 -0
  736. package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.js +121 -0
  737. package/dist/components/dc-temp/IMPLEMENTATION_SUMMARY.mjs +121 -0
  738. package/dist/components/dc-temp/TEAMS_README.js +92 -0
  739. package/dist/components/dc-temp/TEAMS_README.mjs +92 -0
  740. package/dist/components/dc-temp/creative.css +1 -0
  741. package/dist/components/dc-temp/creative.js +5 -0
  742. package/dist/components/dc-temp/creative.mjs +4 -0
  743. package/dist/components/dc-temp/dashboard-integration-example.css +1 -0
  744. package/dist/components/dc-temp/dashboard-integration-example.js +8 -0
  745. package/dist/components/dc-temp/dashboard-integration-example.mjs +4 -0
  746. package/dist/components/dc-temp/enhanced-header.css +1 -0
  747. package/dist/components/dc-temp/enhanced-header.js +5 -0
  748. package/dist/components/dc-temp/enhanced-header.mjs +4 -0
  749. package/dist/components/dc-temp/headerlogo.js +1 -0
  750. package/dist/components/dc-temp/headerlogo.mjs +1 -0
  751. package/dist/components/dc-temp/icon-mapper.js +1 -0
  752. package/dist/components/dc-temp/icon-mapper.mjs +1 -0
  753. package/dist/components/dc-temp/index.css +1 -0
  754. package/dist/components/dc-temp/index.js +5 -0
  755. package/dist/components/dc-temp/index.mjs +1 -0
  756. package/dist/components/dc-temp/knowledge-browser.css +1 -0
  757. package/dist/components/dc-temp/knowledge-browser.js +5 -0
  758. package/dist/components/dc-temp/knowledge-browser.mjs +2 -0
  759. package/dist/components/dc-temp/knowledge-search.css +1 -0
  760. package/dist/components/dc-temp/knowledge-search.js +5 -0
  761. package/dist/components/dc-temp/knowledge-search.mjs +2 -0
  762. package/dist/components/dc-temp/loading.js +1 -0
  763. package/dist/components/dc-temp/loading.mjs +1 -0
  764. package/dist/components/dc-temp/markdown-renderer.css +1 -0
  765. package/dist/components/dc-temp/markdown-renderer.js +4 -0
  766. package/dist/components/dc-temp/markdown-renderer.mjs +4 -0
  767. package/dist/components/dc-temp/mock-data.js +1 -0
  768. package/dist/components/dc-temp/mock-data.mjs +1 -0
  769. package/dist/components/dc-temp/sidebar.css +1 -0
  770. package/dist/components/dc-temp/sidebar.js +5 -0
  771. package/dist/components/dc-temp/sidebar.mjs +4 -0
  772. package/dist/components/dc-temp/utils.js +1 -0
  773. package/dist/components/dc-temp/utils.mjs +1 -0
  774. package/dist/components/index.css +1 -0
  775. package/dist/components/index.js +20 -0
  776. package/dist/components/index.mjs +1 -0
  777. package/dist/components/ui/alert.css +1 -0
  778. package/dist/components/ui/alert.js +1 -0
  779. package/dist/components/ui/alert.mjs +1 -0
  780. package/dist/components/ui/avatar.css +1 -0
  781. package/dist/components/ui/avatar.js +4 -0
  782. package/dist/components/ui/avatar.mjs +2 -0
  783. package/dist/components/ui/badge.css +1 -0
  784. package/dist/components/ui/badge.js +1 -0
  785. package/dist/components/ui/badge.mjs +1 -0
  786. package/dist/components/ui/breadcrumb.css +1 -0
  787. package/dist/components/ui/breadcrumb.js +1 -0
  788. package/dist/components/ui/breadcrumb.mjs +1 -0
  789. package/dist/components/ui/button.css +1 -0
  790. package/dist/components/ui/button.js +1 -0
  791. package/dist/components/ui/button.mjs +1 -0
  792. package/dist/components/ui/calendar.css +1 -0
  793. package/dist/components/ui/calendar.js +4 -0
  794. package/dist/components/ui/calendar.mjs +2 -0
  795. package/dist/components/ui/card.css +1 -0
  796. package/dist/components/ui/card.js +1 -0
  797. package/dist/components/ui/card.mjs +1 -0
  798. package/dist/components/ui/checkbox.css +1 -0
  799. package/dist/components/ui/checkbox.js +4 -0
  800. package/dist/components/ui/checkbox.mjs +2 -0
  801. package/dist/components/ui/collapsible.js +4 -0
  802. package/dist/components/ui/collapsible.mjs +2 -0
  803. package/dist/components/ui/command.css +1 -0
  804. package/dist/components/ui/command.js +4 -0
  805. package/dist/components/ui/command.mjs +2 -0
  806. package/dist/components/ui/dialog.css +1 -0
  807. package/dist/components/ui/dialog.js +4 -0
  808. package/dist/components/ui/dialog.mjs +2 -0
  809. package/dist/components/ui/dropdown-menu.css +1 -0
  810. package/dist/components/ui/dropdown-menu.js +4 -0
  811. package/dist/components/ui/dropdown-menu.mjs +2 -0
  812. package/dist/components/ui/hover-card.css +1 -0
  813. package/dist/components/ui/hover-card.js +4 -0
  814. package/dist/components/ui/hover-card.mjs +2 -0
  815. package/dist/components/ui/index.css +1 -0
  816. package/dist/components/ui/index.js +5 -0
  817. package/dist/components/ui/index.mjs +1 -0
  818. package/dist/components/ui/input.css +1 -0
  819. package/dist/components/ui/input.js +1 -0
  820. package/dist/components/ui/input.mjs +1 -0
  821. package/dist/components/ui/inputs/common/styles/index.css +1 -0
  822. package/dist/components/ui/inputs/common/styles/index.js +1 -0
  823. package/dist/components/ui/inputs/common/styles/index.mjs +1 -0
  824. package/dist/components/ui/inputs/text-input/index.css +1 -0
  825. package/dist/components/ui/inputs/text-input/index.js +1 -0
  826. package/dist/components/ui/inputs/text-input/index.mjs +1 -0
  827. package/dist/components/ui/inputs/textarea-input/index.css +1 -0
  828. package/dist/components/ui/inputs/textarea-input/index.js +1 -0
  829. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -0
  830. package/dist/components/ui/label.css +1 -0
  831. package/dist/components/ui/label.js +4 -0
  832. package/dist/components/ui/label.mjs +2 -0
  833. package/dist/components/ui/pagination.css +1 -0
  834. package/dist/components/ui/pagination.js +1 -0
  835. package/dist/components/ui/pagination.mjs +1 -0
  836. package/dist/components/ui/popover.css +1 -0
  837. package/dist/components/ui/popover.js +4 -0
  838. package/dist/components/ui/popover.mjs +2 -0
  839. package/dist/components/ui/progress.css +1 -0
  840. package/dist/components/ui/progress.js +4 -0
  841. package/dist/components/ui/progress.mjs +2 -0
  842. package/dist/components/ui/scroll-area.css +1 -0
  843. package/dist/components/ui/scroll-area.js +4 -0
  844. package/dist/components/ui/scroll-area.mjs +2 -0
  845. package/dist/components/ui/select.css +1 -0
  846. package/dist/components/ui/select.js +4 -0
  847. package/dist/components/ui/select.mjs +2 -0
  848. package/dist/components/ui/separator.css +1 -0
  849. package/dist/components/ui/separator.js +4 -0
  850. package/dist/components/ui/separator.mjs +2 -0
  851. package/dist/components/ui/sheet.css +1 -0
  852. package/dist/components/ui/sheet.js +4 -0
  853. package/dist/components/ui/sheet.mjs +2 -0
  854. package/dist/components/ui/sidebar.css +1 -0
  855. package/dist/components/ui/sidebar.js +4 -0
  856. package/dist/components/ui/sidebar.mjs +2 -0
  857. package/dist/components/ui/skeleton.css +1 -0
  858. package/dist/components/ui/skeleton.js +1 -0
  859. package/dist/components/ui/skeleton.mjs +1 -0
  860. package/dist/components/ui/switch.css +1 -0
  861. package/dist/components/ui/switch.js +4 -0
  862. package/dist/components/ui/switch.mjs +4 -0
  863. package/dist/components/ui/tabs.css +1 -0
  864. package/dist/components/ui/tabs.js +4 -0
  865. package/dist/components/ui/tabs.mjs +2 -0
  866. package/dist/components/ui/textarea.css +1 -0
  867. package/dist/components/ui/textarea.js +1 -0
  868. package/dist/components/ui/textarea.mjs +1 -0
  869. package/dist/components/ui/toast.css +1 -0
  870. package/dist/components/ui/toast.js +4 -0
  871. package/dist/components/ui/toast.mjs +2 -0
  872. package/dist/components/ui/toaster.css +1 -0
  873. package/dist/components/ui/toaster.js +4 -0
  874. package/dist/components/ui/toaster.mjs +2 -0
  875. package/dist/components/ui/toggle-group.css +1 -0
  876. package/dist/components/ui/toggle-group.js +4 -0
  877. package/dist/components/ui/toggle-group.mjs +2 -0
  878. package/dist/components/ui/toggle.css +1 -0
  879. package/dist/components/ui/toggle.js +4 -0
  880. package/dist/components/ui/toggle.mjs +2 -0
  881. package/dist/components/ui/tooltip.css +1 -0
  882. package/dist/components/ui/tooltip.js +4 -0
  883. package/dist/components/ui/tooltip.mjs +2 -0
  884. package/dist/constants.js +1 -0
  885. package/dist/constants.mjs +1 -0
  886. package/dist/cortex-reply-27IMI3G7.png +0 -0
  887. package/dist/cortex-reply-bw-TFX4Q54O.png +0 -0
  888. package/dist/cortex-reply-dark-XPAJJJYY.png +0 -0
  889. package/dist/cortex-reply-gradient-LS56SYPD.png +0 -0
  890. package/dist/cortex-reply-light-27IMI3G7.png +0 -0
  891. package/dist/declaration.d.js +1 -0
  892. package/dist/fonts/Manrope-Bold.js +1 -0
  893. package/dist/fonts/Manrope-Bold.mjs +1 -0
  894. package/dist/fonts/Manrope-ExtraBold.js +1 -0
  895. package/dist/fonts/Manrope-ExtraBold.mjs +1 -0
  896. package/dist/fonts/Manrope-ExtraLight.js +1 -0
  897. package/dist/fonts/Manrope-ExtraLight.mjs +1 -0
  898. package/dist/fonts/Manrope-Light.js +1 -0
  899. package/dist/fonts/Manrope-Light.mjs +1 -0
  900. package/dist/fonts/Manrope-Medium.js +1 -0
  901. package/dist/fonts/Manrope-Medium.mjs +1 -0
  902. package/dist/fonts/Manrope-Regular.js +1 -0
  903. package/dist/fonts/Manrope-Regular.mjs +1 -0
  904. package/dist/fonts/Manrope-SemiBold.js +1 -0
  905. package/dist/fonts/Manrope-SemiBold.mjs +1 -0
  906. package/dist/globals.css +1 -0
  907. package/dist/headerlogo-7HRUF72W.png +0 -0
  908. package/dist/hero-3-N2CBGEV6.jpg +0 -0
  909. package/dist/hooks/index.js +4 -0
  910. package/dist/hooks/index.mjs +1 -0
  911. package/dist/hooks/use-local-storage.js +1 -0
  912. package/dist/hooks/use-local-storage.mjs +1 -0
  913. package/dist/hooks/use-mobile.js +4 -0
  914. package/dist/hooks/use-mobile.mjs +2 -0
  915. package/dist/hooks/use-toast.js +4 -0
  916. package/dist/hooks/use-toast.mjs +2 -0
  917. package/dist/image-hero1-V6MPFDQ6.webp +0 -0
  918. package/dist/images/cortex-reply-bw.js +1 -0
  919. package/dist/images/cortex-reply-bw.mjs +1 -0
  920. package/dist/images/cortex-reply-dark.js +1 -0
  921. package/dist/images/cortex-reply-dark.mjs +1 -0
  922. package/dist/images/cortex-reply-gradient.js +1 -0
  923. package/dist/images/cortex-reply-gradient.mjs +1 -0
  924. package/dist/images/cortex-reply-light.js +1 -0
  925. package/dist/images/cortex-reply-light.mjs +1 -0
  926. package/dist/images/cortex-reply.js +1 -0
  927. package/dist/images/cortex-reply.mjs +1 -0
  928. package/dist/images/hero/hero-3.js +1 -0
  929. package/dist/images/hero/hero-3.mjs +1 -0
  930. package/dist/images/hero/image-hero1.js +1 -0
  931. package/dist/images/hero/image-hero1.mjs +1 -0
  932. package/dist/images/hero/pattern-1.js +1 -0
  933. package/dist/images/hero/pattern-1.mjs +1 -0
  934. package/dist/images/hero/pattern-2.js +1 -0
  935. package/dist/images/hero/pattern-2.mjs +1 -0
  936. package/dist/index.js +11 -12
  937. package/dist/index.mjs +1 -33
  938. package/dist/metafile-cjs.json +1 -1
  939. package/dist/metafile-esm.json +1 -1
  940. package/dist/model/Employee.js +1 -0
  941. package/dist/model/Holiday.js +1 -0
  942. package/dist/model/LeaveRequest.js +1 -0
  943. package/dist/pages/Blog.css +1 -0
  944. package/dist/pages/Blog.js +4 -0
  945. package/dist/pages/Blog.mjs +1 -0
  946. package/dist/pages/Documentation.css +1 -0
  947. package/dist/pages/Documentation.js +4 -0
  948. package/dist/pages/Documentation.mjs +4 -0
  949. package/dist/pages/IndexPage.css +1 -0
  950. package/dist/pages/IndexPage.js +4 -0
  951. package/dist/pages/IndexPage.mjs +4 -0
  952. package/dist/pages/Intranet.css +1 -0
  953. package/dist/pages/Intranet.js +5 -0
  954. package/dist/pages/Intranet.mjs +1 -0
  955. package/dist/pages/LandingPage.css +1 -0
  956. package/dist/pages/LandingPage.js +12 -0
  957. package/dist/pages/LandingPage.mjs +4 -0
  958. package/dist/pages/Page.css +1 -0
  959. package/dist/pages/Page.js +4 -0
  960. package/dist/pages/Page.mjs +4 -0
  961. package/dist/pages/Publish.css +1 -0
  962. package/dist/pages/Publish.js +8 -0
  963. package/dist/pages/Publish.mjs +2 -0
  964. package/dist/pages/Website.css +1 -0
  965. package/dist/pages/Website.js +4 -0
  966. package/dist/pages/Website.mjs +1 -0
  967. package/dist/pattern-1-EKFV67R7.png +0 -0
  968. package/dist/pattern-2-6AZH7ORR.png +0 -0
  969. package/dist/payload-types.js +1 -0
  970. package/dist/sections/AboutSection.css +1 -0
  971. package/dist/sections/AboutSection.js +4 -0
  972. package/dist/sections/AboutSection.mjs +1 -0
  973. package/dist/sections/BlogDetail.css +1 -0
  974. package/dist/sections/BlogDetail.js +4 -0
  975. package/dist/sections/BlogDetail.mjs +1 -0
  976. package/dist/sections/BlogList.css +1 -0
  977. package/dist/sections/BlogList.js +12 -0
  978. package/dist/sections/BlogList.mjs +1 -0
  979. package/dist/sections/BlogListSection.css +1 -0
  980. package/dist/sections/BlogListSection.js +4 -0
  981. package/dist/sections/BlogListSection.mjs +1 -0
  982. package/dist/sections/ContactSection.css +1 -0
  983. package/dist/sections/ContactSection.js +4 -0
  984. package/dist/sections/ContactSection.mjs +1 -0
  985. package/dist/sections/ImageSection.css +1 -0
  986. package/dist/sections/ImageSection.js +1 -0
  987. package/dist/sections/ImageSection.mjs +1 -0
  988. package/dist/sections/MainPageSection.css +1 -0
  989. package/dist/sections/MainPageSection.js +4 -0
  990. package/dist/sections/MainPageSection.mjs +2 -0
  991. package/dist/sections/PageSections.css +1 -0
  992. package/dist/sections/PageSections.js +12 -0
  993. package/dist/sections/PageSections.mjs +2 -0
  994. package/dist/sections/PricingSection.css +1 -0
  995. package/dist/sections/PricingSection.js +4 -0
  996. package/dist/sections/PricingSection.mjs +1 -0
  997. package/dist/sections/ServiceDetail.css +1 -0
  998. package/dist/sections/ServiceDetail.js +4 -0
  999. package/dist/sections/ServiceDetail.mjs +1 -0
  1000. package/dist/sections/ServiceDetailSection.css +1 -0
  1001. package/dist/sections/ServiceDetailSection.js +4 -0
  1002. package/dist/sections/ServiceDetailSection.mjs +1 -0
  1003. package/dist/sections/ServiceSection.css +1 -0
  1004. package/dist/sections/ServiceSection.js +4 -0
  1005. package/dist/sections/ServiceSection.mjs +1 -0
  1006. package/dist/sections/form/index.css +1 -0
  1007. package/dist/sections/form/index.d.ts +5 -1
  1008. package/dist/sections/form/index.js +4 -0
  1009. package/dist/sections/form/index.mjs +2 -0
  1010. package/dist/sections/form/server/contact-us-form-submit.js +4 -0
  1011. package/dist/sections/form/server/contact-us-form-submit.mjs +2 -0
  1012. package/dist/sections/form/server/index.d.ts +2 -0
  1013. package/dist/sections/form/server/index.js +4 -0
  1014. package/dist/sections/form/server/index.mjs +1 -0
  1015. package/dist/sections/index.css +1 -0
  1016. package/dist/sections/index.d.ts +1 -0
  1017. package/dist/sections/index.js +12 -0
  1018. package/dist/sections/index.mjs +1 -0
  1019. package/dist/server/index.js +1 -0
  1020. package/dist/styles/Colors.css +1 -0
  1021. package/dist/styles/Colors.js +4 -0
  1022. package/dist/styles/Colors.mjs +1 -0
  1023. package/dist/styles/Typography.js +48 -0
  1024. package/dist/styles/Typography.mjs +48 -0
  1025. package/dist/test-data/capabilities.js +1 -0
  1026. package/dist/test-data/capabilities.mjs +1 -0
  1027. package/dist/tests/payload.js +1 -0
  1028. package/dist/tests/payload.mjs +1 -0
  1029. package/dist/utils/AOSInit.css +1 -0
  1030. package/dist/utils/AOSInit.js +8 -0
  1031. package/dist/utils/AOSInit.mjs +2 -0
  1032. package/dist/utils/BankHolidays.js +1 -0
  1033. package/dist/utils/BankHolidays.mjs +1 -0
  1034. package/dist/utils/DaysUtil.js +1 -0
  1035. package/dist/utils/DaysUtil.mjs +1 -0
  1036. package/dist/utils/canUseDOM.js +1 -0
  1037. package/dist/utils/canUseDOM.mjs +1 -0
  1038. package/dist/utils/cn.js +1 -0
  1039. package/dist/utils/cn.mjs +1 -0
  1040. package/dist/utils/formatDateTime.js +1 -0
  1041. package/dist/utils/formatDateTime.mjs +1 -0
  1042. package/dist/utils/getTableOfContents.js +1 -0
  1043. package/dist/utils/getTableOfContents.mjs +1 -0
  1044. package/dist/utils/getURL.js +1 -0
  1045. package/dist/utils/getURL.mjs +1 -0
  1046. package/dist/utils/index.css +1 -0
  1047. package/dist/utils/index.js +8 -0
  1048. package/dist/utils/index.mjs +1 -0
  1049. package/dist/utils/setStaggeredDelay.js +1 -0
  1050. package/dist/utils/setStaggeredDelay.mjs +1 -0
  1051. package/dist/utils/useClickableCard.js +4 -0
  1052. package/dist/utils/useClickableCard.mjs +2 -0
  1053. package/package.json +7 -1
package/dist/index.js CHANGED
@@ -1,28 +1,27 @@
1
1
  "use client";
2
2
  "use strict";
3
3
  "use client"
4
- 'use server'
5
4
  'use strict'
6
5
  'use client';
7
6
 
8
- "use strict";var su=Object.create;var As=Object.defineProperty;var iu=Object.getOwnPropertyDescriptor;var nu=Object.getOwnPropertyNames;var lu=Object.getPrototypeOf,du=Object.prototype.hasOwnProperty;var cu=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mu=(e,t)=>{for(var a in t)As(e,a,{get:t[a],enumerable:!0})},xd=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of nu(t))!du.call(e,r)&&r!==a&&As(e,r,{get:()=>t[r],enumerable:!(o=iu(t,r))||o.enumerable});return e};var w=(e,t,a)=>(a=e!=null?su(lu(e)):{},xd(t||!e||!e.__esModule?As(a,"default",{value:e,enumerable:!0}):a,e)),pu=e=>xd(As({},"__esModule",{value:!0}),e);var Ad=cu((Vr,on)=>{"use strict";(function(e,t){typeof Vr=="object"&&typeof on=="object"?on.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Vr=="object"?Vr.AOS=t():e.AOS=t()})(Vr,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(v){return v&&v.__esModule?v:{default:v}}var r=Object.assign||function(v){for(var te=1;te<arguments.length;te++){var _=arguments[te];for(var Le in _)Object.prototype.hasOwnProperty.call(_,Le)&&(v[Le]=_[Le])}return v},s=a(1),n=(o(s),a(6)),i=o(n),d=a(7),m=o(d),c=a(8),p=o(c),u=a(9),g=o(u),b=a(10),f=o(b),y=a(11),I=o(y),A=a(14),h=o(A),k=[],N=!1,D={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},re=function(){var v=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(v&&(N=!0),N)return k=(0,I.default)(k,D),(0,f.default)(k,D.once),k},j=function(){k=(0,h.default)(),re()},L=function(){k.forEach(function(v,te){v.node.removeAttribute("data-aos"),v.node.removeAttribute("data-aos-easing"),v.node.removeAttribute("data-aos-duration"),v.node.removeAttribute("data-aos-delay")})},P=function(v){return v===!0||v==="mobile"&&g.default.mobile()||v==="phone"&&g.default.phone()||v==="tablet"&&g.default.tablet()||typeof v=="function"&&v()===!0},G=function(v){D=r(D,v),k=(0,h.default)();var te=document.all&&!window.atob;return P(D.disable)||te?L():(D.disableMutationObserver||p.default.isSupported()||(console.info(`
7
+ "use strict";var ru=Object.create;var Ms=Object.defineProperty;var su=Object.getOwnPropertyDescriptor;var iu=Object.getOwnPropertyNames;var nu=Object.getPrototypeOf,lu=Object.prototype.hasOwnProperty;var du=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),cu=(e,t)=>{for(var a in t)Ms(e,a,{get:t[a],enumerable:!0})},xd=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of iu(t))!lu.call(e,r)&&r!==a&&Ms(e,r,{get:()=>t[r],enumerable:!(o=su(t,r))||o.enumerable});return e};var w=(e,t,a)=>(a=e!=null?ru(nu(e)):{},xd(t||!e||!e.__esModule?Ms(a,"default",{value:e,enumerable:!0}):a,e)),mu=e=>xd(Ms({},"__esModule",{value:!0}),e);var Ad=du((Vr,rn)=>{"use strict";(function(e,t){typeof Vr=="object"&&typeof rn=="object"?rn.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Vr=="object"?Vr.AOS=t():e.AOS=t()})(Vr,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(v){return v&&v.__esModule?v:{default:v}}var r=Object.assign||function(v){for(var te=1;te<arguments.length;te++){var _=arguments[te];for(var Le in _)Object.prototype.hasOwnProperty.call(_,Le)&&(v[Le]=_[Le])}return v},s=a(1),n=(o(s),a(6)),i=o(n),d=a(7),m=o(d),c=a(8),p=o(c),u=a(9),g=o(u),b=a(10),f=o(b),y=a(11),I=o(y),A=a(14),h=o(A),k=[],N=!1,D={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},re=function(){var v=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(v&&(N=!0),N)return k=(0,I.default)(k,D),(0,f.default)(k,D.once),k},j=function(){k=(0,h.default)(),re()},L=function(){k.forEach(function(v,te){v.node.removeAttribute("data-aos"),v.node.removeAttribute("data-aos-easing"),v.node.removeAttribute("data-aos-duration"),v.node.removeAttribute("data-aos-delay")})},P=function(v){return v===!0||v==="mobile"&&g.default.mobile()||v==="phone"&&g.default.phone()||v==="tablet"&&g.default.tablet()||typeof v=="function"&&v()===!0},G=function(v){D=r(D,v),k=(0,h.default)();var te=document.all&&!window.atob;return P(D.disable)||te?L():(D.disableMutationObserver||p.default.isSupported()||(console.info(`
9
8
  aos: MutationObserver is not supported on this browser,
10
9
  code mutations observing has been disabled.
11
10
  You may have Md call "refreshHard()" by yourself.
12
- `),D.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",D.easing),document.querySelector("body").setAttribute("data-aos-duration",D.duration),document.querySelector("body").setAttribute("data-aos-delay",D.delay),D.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?re(!0):D.startEvent==="load"?window.addEventListener(D.startEvent,function(){re(!0)}):document.addEventListener(D.startEvent,function(){re(!0)}),window.addEventListener("resize",(0,m.default)(re,D.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(re,D.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(k,D.once)},D.throttleDelay)),D.disableMutationObserver||p.default.ready("[data-aos]",j),k)};e.exports={init:G,refresh:re,refreshHard:j}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(P,G,v){function te(ye){var zt=he,lo=Re;return he=Re=void 0,io=ye,pt=P.apply(lo,zt)}function _(ye){return io=ye,ot=setTimeout(aa,G),no?te(ye):pt}function Le(ye){var zt=ye-Wt,lo=ye-io,yd=G-zt;return Oa?j(yd,La-lo):yd}function lt(ye){var zt=ye-Wt,lo=ye-io;return Wt===void 0||zt>=G||zt<0||Oa&&lo>=La}function aa(){var ye=L();return lt(ye)?Ut(ye):void(ot=setTimeout(aa,Le(ye)))}function Ut(ye){return ot=void 0,Ee&&he?te(ye):(he=Re=void 0,pt)}function Lt(){ot!==void 0&&clearTimeout(ot),io=0,he=Wt=Re=ot=void 0}function Bt(){return ot===void 0?pt:Ut(L())}function ke(){var ye=L(),zt=lt(ye);if(he=arguments,Re=this,Wt=ye,zt){if(ot===void 0)return _(Wt);if(Oa)return ot=setTimeout(aa,G),te(Wt)}return ot===void 0&&(ot=setTimeout(aa,G)),pt}var he,Re,La,pt,ot,Wt,io=0,no=!1,Oa=!1,Ee=!0;if(typeof P!="function")throw new TypeError(c);return G=d(G)||0,s(v)&&(no=!!v.leading,Oa="maxWait"in v,La=Oa?re(d(v.maxWait)||0,G):La,Ee="trailing"in v?!!v.trailing:Ee),ke.cancel=Lt,ke.flush=Bt,ke}function r(P,G,v){var te=!0,_=!0;if(typeof P!="function")throw new TypeError(c);return s(v)&&(te="leading"in v?!!v.leading:te,_="trailing"in v?!!v.trailing:_),o(P,G,{leading:te,maxWait:G,trailing:_})}function s(P){var G=typeof P>"u"?"undefined":m(P);return!!P&&(G=="object"||G=="function")}function n(P){return!!P&&(typeof P>"u"?"undefined":m(P))=="object"}function i(P){return(typeof P>"u"?"undefined":m(P))=="symbol"||n(P)&&D.call(P)==u}function d(P){if(typeof P=="number")return P;if(i(P))return p;if(s(P)){var G=typeof P.valueOf=="function"?P.valueOf():P;P=s(G)?G+"":G}if(typeof P!="string")return P===0?P:+P;P=P.replace(g,"");var v=f.test(P);return v||y.test(P)?I(P.slice(2),v?2:8):b.test(P)?p:+P}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},c="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,y=/^0o[0-7]+$/i,I=parseInt,A=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,h=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,k=A||h||Function("return this")(),N=Object.prototype,D=N.toString,re=Math.max,j=Math.min,L=function(){return k.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(L,P,G){function v(Ee){var ye=ke,zt=he;return ke=he=void 0,Wt=Ee,La=L.apply(zt,ye)}function te(Ee){return Wt=Ee,pt=setTimeout(lt,P),io?v(Ee):La}function _(Ee){var ye=Ee-ot,zt=Ee-Wt,lo=P-ye;return no?re(lo,Re-zt):lo}function Le(Ee){var ye=Ee-ot,zt=Ee-Wt;return ot===void 0||ye>=P||ye<0||no&&zt>=Re}function lt(){var Ee=j();return Le(Ee)?aa(Ee):void(pt=setTimeout(lt,_(Ee)))}function aa(Ee){return pt=void 0,Oa&&ke?v(Ee):(ke=he=void 0,La)}function Ut(){pt!==void 0&&clearTimeout(pt),Wt=0,ke=ot=he=pt=void 0}function Lt(){return pt===void 0?La:aa(j())}function Bt(){var Ee=j(),ye=Le(Ee);if(ke=arguments,he=this,ot=Ee,ye){if(pt===void 0)return te(ot);if(no)return pt=setTimeout(lt,P),v(ot)}return pt===void 0&&(pt=setTimeout(lt,P)),La}var ke,he,Re,La,pt,ot,Wt=0,io=!1,no=!1,Oa=!0;if(typeof L!="function")throw new TypeError(m);return P=i(P)||0,r(G)&&(io=!!G.leading,no="maxWait"in G,Re=no?D(i(G.maxWait)||0,P):Re,Oa="trailing"in G?!!G.trailing:Oa),Bt.cancel=Ut,Bt.flush=Lt,Bt}function r(L){var P=typeof L>"u"?"undefined":d(L);return!!L&&(P=="object"||P=="function")}function s(L){return!!L&&(typeof L>"u"?"undefined":d(L))=="object"}function n(L){return(typeof L>"u"?"undefined":d(L))=="symbol"||s(L)&&N.call(L)==p}function i(L){if(typeof L=="number")return L;if(n(L))return c;if(r(L)){var P=typeof L.valueOf=="function"?L.valueOf():L;L=r(P)?P+"":P}if(typeof L!="string")return L===0?L:+L;L=L.replace(u,"");var G=b.test(L);return G||f.test(L)?y(L.slice(2),G?2:8):g.test(L)?c:+L}var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},m="Expected a function",c=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,y=parseInt,I=(typeof a>"u"?"undefined":d(a))=="object"&&a&&a.Object===Object&&a,A=(typeof self>"u"?"undefined":d(self))=="object"&&self&&self.Object===Object&&self,h=I||A||Function("return this")(),k=Object.prototype,N=k.toString,D=Math.max,re=Math.min,j=function(){return h.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,p=void 0;for(m=0;m<d.length;m+=1)if(c=d[m],c.dataset&&c.dataset.aos||(p=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,p=o(),u=new p(n);i=m,u.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),p=Array.prototype.slice.call(m.removedNodes),u=c.concat(p);if(a(u))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,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function c(p,u){for(var g=0;g<u.length;g++){var b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,u,g){return u&&c(p.prototype,u),g&&c(p,g),p}}(),s=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|hm(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows oa|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(ml|oa|s\-)|oa(Zd|rn)|al(av|oa|co)|amoi|an(ex|ny|yw)|aptu|Md(ch|go)|as(te|oa)|attw|au(di|\-m|r |s )|avan|oa(ck|ll|nq)|bi(lb|rd)|oa(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(oa|ll|ng)|dbte|oa\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|oa)|em(l2|oa)|ml(ic|k0)|esl8|ez([4-7]0|os|wa|oa)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|Ms(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|Ms(pt|oa)|Md( i|hm)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|ea)|hu(aw|tc)|i\-(20|go|oa)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|oa(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|oa(te|ui|oa)|mc(01|21|oa)|m\-cr|oa(_d|ri)|oa(o8|oa|ts)|mmef|mo(01|02|bi|oa|do|t(\-| |o|v)|zz)|oa(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|oa((c|m)\-|on|tf|wf|wg|oa)|nok(6|i)|nzph|o2im|op(oa|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|oa|se)|prox|psio|pt\-g|Zd\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|oa(oa|oa)|s55\/|sa(oa|oa|oa|ms|ny|va)|Zd(01|h\-|oa|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|Md|b3|oa|t5)|oa(Zd|ny)|Md(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|oa(Md|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|Md(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|hm(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows oa|xda|xiino|android|ipad|playbook|silk/i,d=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(ml|oa|s\-)|oa(Zd|rn)|al(av|oa|co)|amoi|an(ex|ny|yw)|aptu|Md(ch|go)|as(te|oa)|attw|au(di|\-m|r |s )|avan|oa(ck|ll|nq)|bi(lb|rd)|oa(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(oa|ll|ng)|dbte|oa\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|oa)|em(l2|oa)|ml(ic|k0)|esl8|ez([4-7]0|os|wa|oa)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|Ms(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|Ms(pt|oa)|Md( i|hm)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|ea)|hu(aw|tc)|i\-(20|go|oa)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|oa(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|oa(te|ui|oa)|mc(01|21|oa)|m\-cr|oa(_d|ri)|oa(o8|oa|ts)|mmef|mo(01|02|bi|oa|do|t(\-| |o|v)|zz)|oa(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|oa((c|m)\-|on|tf|wf|wg|oa)|nok(6|i)|nzph|o2im|op(oa|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|oa|se)|prox|psio|pt\-g|Zd\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|oa(oa|oa)|s55\/|sa(oa|oa|oa|ms|ny|va)|Zd(01|h\-|oa|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|Md|b3|oa|t5)|oa(Zd|ny)|Md(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|oa(Md|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|Md(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function c(){a(this,c)}return r(c,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!d.test(p.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<"u"&&(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,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(c=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.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 c0={};mu(c0,{AOSInit:()=>Uu,AboutSection:()=>Xf,Alert:()=>el,AlertDescription:()=>al,AlertTitle:()=>tl,ApproveLeave:()=>Zl,Avatar:()=>vt,AvatarFallback:()=>ht,AvatarImage:()=>Ft,Badge:()=>_e,BannerBlock:()=>dl,BlogCard:()=>Zp,BlogDetail:()=>e0,BlogList:()=>r0,BlogListSection:()=>qf,BrandLogo:()=>Ro,Breadcrumb:()=>rn,BreadcrumbEllipsis:()=>mn,BreadcrumbItem:()=>nn,BreadcrumbLink:()=>ln,BreadcrumbList:()=>sn,BreadcrumbPage:()=>dn,BreadcrumbSeparator:()=>cn,Breadcrumbs:()=>nf,Button:()=>T,CMSLink:()=>Ca,CRMCogeBoard:()=>Cf,CRMKanbanBoard:()=>xf,Calendar:()=>ms,CalendarView:()=>rd,CallToActionBlock:()=>Vo,CallToActionBlockOld:()=>ug,CapabilityMenu:()=>zf,Card:()=>hs,Categories:()=>Hl,ChatCardArtefact:()=>Bf,ChatCardTask:()=>nd,ChatInterfaceMessages:()=>Df,ChatMessage:()=>ld,Checkbox:()=>Na,CodeBlock:()=>gl,Collapsible:()=>Ga,CollapsibleContent:()=>uo,CollapsibleTrigger:()=>po,CollectionArchive:()=>jg,Command:()=>qs,CommandDialog:()=>Cc,CommandEmpty:()=>Yn,CommandGroup:()=>qn,CommandInput:()=>Kn,CommandItem:()=>Jn,CommandList:()=>Xn,CommandSeparator:()=>Qn,CommandShortcut:()=>Zn,CommentSection:()=>Gf,ContactSection:()=>Qf,Container:()=>Gt,ContentBlock:()=>vs,ContentCard:()=>Cg,CopyButton:()=>pl,CustomLink:()=>ut,CustomerCard:()=>em,DarkTop:()=>Cl,DashboardHero:()=>Qo,DealCard:()=>sd,DealDetails:()=>Ss,DeliveryLeadSubmission:()=>Gi,DeliveryLeadSubmissionList:()=>Vi,DeliveryLeadSubmissionWithList:()=>Ip,Dialog:()=>la,DialogClose:()=>Xs,DialogContent:()=>Yt,DialogDescription:()=>ds,DialogFooter:()=>Wn,DialogHeader:()=>xa,DialogOverlay:()=>Ys,DialogPortal:()=>Un,DialogTitle:()=>wa,DialogTrigger:()=>wc,DropdownMenu:()=>Is,DropdownMenuCheckboxItem:()=>gn,DropdownMenuContent:()=>Ur,DropdownMenuGroup:()=>Bd,DropdownMenuItem:()=>Wr,DropdownMenuLabel:()=>bn,DropdownMenuPortal:()=>zd,DropdownMenuRadioGroup:()=>Fd,DropdownMenuRadioItem:()=>fn,DropdownMenuSeparator:()=>vn,DropdownMenuShortcut:()=>hn,DropdownMenuSub:()=>Ed,DropdownMenuSubContent:()=>un,DropdownMenuSubTrigger:()=>pn,DropdownMenuTrigger:()=>Ls,DynamicIcon:()=>yt,EditableField:()=>_f,EventCard:()=>tm,FeatureCard:()=>wr,FeatureGrid:()=>cm,FeaturesBlock:()=>Wo,FileList:()=>Or,FileView:()=>fd,Filter:()=>Ol,FlowPrintable:()=>Im,Footer:()=>uf,Header:()=>gf,HeaderDesktop:()=>Xl,HeaderMobile:()=>ql,HeadingImage:()=>Bg,Hero:()=>Ng,HighImpactHero:()=>$l,HolidayGrid:()=>od,HolidayTracker:()=>hf,HoverCard:()=>vc,HoverCardContent:()=>Vn,HoverCardTrigger:()=>hc,Image:()=>im,ImageBlock:()=>yl,ImageSection:()=>o0,InfoTile:()=>Sg,Input:()=>Ye,Insight:()=>Pg,KanbanColumn:()=>Rs,KnowledgeBrowser:()=>Xi,KnowledgeView:()=>ud,Label:()=>O,LightTop:()=>kl,LocationsSection:()=>Jf,Logo:()=>Og,LowImpactHero:()=>Vl,MOTD:()=>Tg,MainPageSection:()=>t0,Mask:()=>of,Media:()=>Pa,MediaBlock:()=>Xa,MediumImpactHero:()=>_l,NavigationTabs:()=>md,NewCustomerForm:()=>id,NewDealForm:()=>wf,NewsGrid:()=>Am,OrgChart:()=>Mg,PagePrintable:()=>Lm,PageRange:()=>_g,PageShape:()=>Zt,Pagination:()=>Fl,PayloadPagination:()=>Vg,Popover:()=>is,PopoverAnchor:()=>pc,PopoverContent:()=>hr,PopoverTrigger:()=>ns,PostHero:()=>tf,PricingCard:()=>wl,PricingSection:()=>Kf,Printable:()=>Bl,ProjectCard:()=>sm,ProjectTeam:()=>Qg,ProposalSummary:()=>Ig,Publish:()=>l0,RelatedContent:()=>Jg,RelatedPagesMenu:()=>ff,RelatedPosts:()=>Hg,RenderBlocks:()=>So,RenderBlocksWithShapes:()=>Eg,RenderHero:()=>sf,RequestLeave:()=>ad,ReusableContentBlock:()=>Nl,RichText:()=>se,ScrollArea:()=>na,ScrollBar:()=>Ks,Section:()=>i0,SectionHero:()=>Wl,Select:()=>qt,SelectContent:()=>jt,SelectGroup:()=>ig,SelectItem:()=>St,SelectLabel:()=>Dc,SelectScrollDownButton:()=>sl,SelectScrollUpButton:()=>rl,SelectSeparator:()=>Ac,SelectTrigger:()=>Ht,SelectValue:()=>Qt,Separator:()=>Kr,ServiceCard:()=>wg,ServiceDetail:()=>n0,ServiceDetailSection:()=>s0,ServiceSection:()=>Wf,Sheet:()=>Bs,SheetClose:()=>Ud,SheetContent:()=>Yr,SheetDescription:()=>kn,SheetFooter:()=>Nn,SheetHeader:()=>wn,SheetOverlay:()=>zs,SheetPortal:()=>xn,SheetTitle:()=>Cn,SheetTrigger:()=>Vd,Sidebar:()=>Eo,SidebarContent:()=>fo,SidebarFooter:()=>Ho,SidebarGroup:()=>ra,SidebarGroupAction:()=>Mn,SidebarGroupContent:()=>ha,SidebarGroupLabel:()=>Va,SidebarHeader:()=>Fo,SidebarInput:()=>An,SidebarInset:()=>Dn,SidebarLeft:()=>Kg,SidebarMenu:()=>Et,SidebarMenuAction:()=>Jr,SidebarMenuBadge:()=>In,SidebarMenuButton:()=>sa,SidebarMenuItem:()=>bt,SidebarMenuSkeleton:()=>Ln,SidebarMenuSub:()=>bo,SidebarMenuSubButton:()=>ho,SidebarMenuSubItem:()=>vo,SidebarProvider:()=>Sn,SidebarRail:()=>Tn,SidebarRight:()=>qg,SidebarSeparator:()=>Qr,SidebarTrigger:()=>Rn,SimpleHeader:()=>df,Skeleton:()=>$e,SlideShow:()=>wi,Switch:()=>Of,Tabs:()=>il,TabsContent:()=>ng,TabsList:()=>nl,TabsTrigger:()=>ll,TeamCard:()=>Yi,TeamsIndexView:()=>gd,TextAndImages:()=>Mm,Textarea:()=>da,Theme:()=>vi,ThemeProvider:()=>af,ThemeWithShapes:()=>vm,Toast:()=>ts,ToastAction:()=>En,ToastClose:()=>as,ToastDescription:()=>rs,ToastProvider:()=>Us,ToastTitle:()=>os,ToastViewport:()=>es,Toaster:()=>ic,Toggle:()=>Hn,ToggleGroup:()=>jn,ToggleGroupItem:()=>On,Tooltip:()=>js,TooltipContent:()=>qr,TooltipProvider:()=>Hs,TooltipTrigger:()=>Os,VideoHeader:()=>mf,WhyUs:()=>Lg,badgeVariants:()=>ol,buttonVariants:()=>go,cn:()=>l,defaultColorScheme:()=>dd,findCapabilityByPath:()=>Af,getAllCapabilities:()=>Lf,getCapabilityByTeam:()=>If,getContextualActions:()=>Mf,getTableOfContents:()=>mr,reducer:()=>ac,testCapabilities:()=>$i,toast:()=>oc,toggleVariants:()=>ss,useIsMobile:()=>Fs,useSidebar:()=>br,useToast:()=>Vs});module.exports=pu(c0);var pr=w(require("react")),Ms=require("@radix-ui/react-icons"),Ld=require("@radix-ui/react-slot");var Dd=require("clsx");var an="-",uu=e=>{let t=fu(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(an);return i[0]===""&&i.length!==1&&i.shift(),Cd(i,t)||gu(n)},getConflictingClassGroupIds:(n,i)=>{let d=a[n]||[];return i&&o[n]?[...d,...o[n]]:d}}},Cd=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Cd(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(an);return t.validators.find(({validator:n})=>n(s))?.classGroupId},wd=/^\[(.+)\]$/,gu=e=>{if(wd.test(e)){let t=wd.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},fu=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return vu(Object.entries(e.classGroups),a).forEach(([s,n])=>{tn(n,o,s,t)}),o},tn=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Nd(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(bu(r)){tn(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{tn(n,Nd(t,s),a,o)})})},Nd=(e,t)=>{let a=e;return t.split(an).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},bu=e=>e.isThemeGetter,vu=(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,hu=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)}}},kd="!",yu=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,p;for(let y=0;y<i.length;y++){let I=i[y];if(m===0){if(I===r&&(o||i.slice(y,y+s)===t)){d.push(i.slice(c,y)),c=y+s;continue}if(I==="/"){p=y;continue}}I==="["?m++:I==="]"&&m--}let u=d.length===0?i:i.substring(c),g=u.startsWith(kd),b=g?u.substring(1):u,f=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},xu=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},wu=e=>({cache:hu(e.cacheSize),parseClassName:yu(e),...uu(e)}),Nu=/\s+/,Cu=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(Nu),i="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}b=!1}let y=xu(c).join(":"),I=p?y+kd:y,A=I+f;if(s.includes(A))continue;s.push(A);let h=r(f,b);for(let k=0;k<h.length;++k){let N=h[k];s.push(I+N)}i=m+(i.length>0?" "+i:i)}return i};function ku(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Pd(t))&&(o&&(o+=" "),o+=a);return o}var Pd=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Pd(e[o]))&&(a&&(a+=" "),a+=t);return a};function Pu(e,...t){let a,o,r,s=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=wu(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=Cu(d,a);return r(d,c),c}return function(){return s(ku.apply(null,arguments))}}var Ae=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Sd=/^\[(?:([a-oa-]+):)?(.+)\]$/i,Su=/^\d+\/\d+$/,Ru=new Set(["px","full","screen"]),Tu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Du=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|oa|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Au=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Mu=/^(inset_)?-?((\d+)?\.?(\d+)[a-oa]+|0)_-?((\d+)?\.?(\d+)[a-oa]+|0)/,Iu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=e=>dr(e)||Ru.has(e)||Su.test(e),co=e=>cr(e,"length",Ou),dr=e=>!!e&&!Number.isNaN(Number(e)),en=e=>cr(e,"number",dr),Gr=e=>!!e&&Number.isInteger(Number(e)),Lu=e=>e.endsWith("%")&&dr(e.slice(0,-1)),K=e=>Sd.test(e),mo=e=>Tu.test(e),Bu=new Set(["length","size","percentage"]),zu=e=>cr(e,Bu,Rd),Eu=e=>cr(e,"position",Rd),Fu=new Set(["image","url"]),Hu=e=>cr(e,Fu,Gu),ju=e=>cr(e,"",$u),_r=()=>!0,cr=(e,t,a)=>{let o=Sd.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},Ou=e=>Du.test(e)&&!Au.test(e),Rd=()=>!1,$u=e=>Mu.test(e),Gu=e=>Iu.test(e);var _u=()=>{let e=Ae("colors"),t=Ae("spacing"),a=Ae("blur"),o=Ae("brightness"),r=Ae("borderColor"),s=Ae("borderRadius"),n=Ae("borderSpacing"),i=Ae("borderWidth"),d=Ae("contrast"),m=Ae("grayscale"),c=Ae("hueRotate"),p=Ae("invert"),u=Ae("gap"),g=Ae("gradientColorStops"),b=Ae("gradientColorStopPositions"),f=Ae("inset"),y=Ae("margin"),I=Ae("opacity"),A=Ae("padding"),h=Ae("saturate"),k=Ae("scale"),N=Ae("sepia"),D=Ae("skew"),re=Ae("space"),j=Ae("translate"),L=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",K,t],v=()=>[K,t],te=()=>["",$a,co],_=()=>["auto",dr,K],Le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],aa=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ut=()=>["start","end","center","between","around","evenly","stretch"],Lt=()=>["","0",K],Bt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[dr,K];return{cacheSize:500,separator:":",theme:{colors:[_r],spacing:[$a,co],blur:["none","",mo,K],brightness:ke(),borderColor:[e],borderRadius:["none","","full",mo,K],borderSpacing:v(),borderWidth:te(),contrast:ke(),grayscale:Lt(),hueRotate:ke(),invert:Lt(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[Lu,co],inset:G(),margin:G(),opacity:ke(),padding:v(),saturate:ke(),scale:ke(),sepia:Lt(),skew:ke(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[mo]}],"break-after":[{"break-after":Bt()}],"break-before":[{"break-before":Bt()}],"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:[...Le(),K]}],overflow:[{overflow:P()}],"overflow-oa":[{"overflow-oa":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:L()}],"overscroll-oa":[{"overscroll-oa":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-oa":[{"inset-oa":[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"],oa:[{oa:["auto",Gr,K]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:Lt()}],shrink:[{shrink:Lt()}],order:[{order:["first","last","none",Gr,K]}],"grid-cols":[{"grid-cols":[_r]}],"col-start-end":[{col:["auto",{span:["full",Gr,K]},K]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[_r]}],"row-start-end":[{row:["auto",{span:[Gr,K]},K]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","Ld",K]}],"auto-rows":[{"auto-rows":["auto","min","max","Ld",K]}],gap:[{gap:[u]}],"gap-oa":[{"gap-oa":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...Ut()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ut(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ut(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],oa:[{oa:[A]}],oa:[{oa:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],oa:[{oa:[y]}],oa:[{oa:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-oa":[{"space-oa":[re]}],"space-oa-reverse":["space-oa-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[mo]},mo]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mo,co]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",en]}],"font-family":[{font:[_r]}],"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",K]}],"line-clamp":[{"line-clamp":["none",dr,en]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$a,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$a,co]}],"underline-offset":[{"underline-offset":["auto",$a,K]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],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",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Le(),Eu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","oa","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zu]}],"bg-image":[{bg:["none",{"gradient-Md":["t","ml","r","br","b","oa","l","tl"]},Hu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Md-pos":[{Md:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Md":[{Md:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-oa":[{"rounded-oa":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-ml":[{"rounded-ml":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-oa":[{"rounded-oa":[s]}],"border-w":[{border:[i]}],"border-w-oa":[{"border-oa":[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":[I]}],"border-style":[{border:[...lt(),"hidden"]}],"divide-oa":[{"divide-oa":[i]}],"divide-oa-reverse":["divide-oa-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:lt()}],"border-color":[{border:[r]}],"border-color-oa":[{"border-oa":[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:["",...lt()]}],"outline-offset":[{"outline-offset":[$a,K]}],"outline-w":[{outline:[$a,co]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[$a,co]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mo,ju]}],"shadow-color":[{shadow:[_r]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...aa(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":aa()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",mo,K]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[h]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[h]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-oa":[{"border-spacing-oa":[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",K]}],duration:[{duration:ke()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:ke()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-oa":[{"scale-oa":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Gr,K]}],"translate-oa":[{"translate-oa":[j]}],"translate-y":[{"translate-y":[j]}],"skew-oa":[{"skew-oa":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],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","oa-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","oa",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","oa","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-oa":[{"touch-pan":["oa","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",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$a,co,en]}],stroke:[{stroke:[e,"none"]}],Md:["Md-only","not-Md-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-oa","overflow-y"],overscroll:["overscroll-oa","overscroll-y"],inset:["inset-oa","inset-y","start","end","top","right","bottom","left"],"inset-oa":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-oa","gap-y"],p:["px","py","oa","oa","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","oa","oa","mr","mb","ml"],mx:["mr","ml"],my:["oa","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-oa","rounded-es","rounded-tl","rounded-ml","rounded-br","rounded-oa"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-oa"],"rounded-t":["rounded-tl","rounded-ml"],"rounded-r":["rounded-ml","rounded-br"],"rounded-b":["rounded-br","rounded-oa"],"rounded-l":["rounded-tl","rounded-oa"],"border-spacing":["border-spacing-oa","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-oa":["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-oa":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-oa","scroll-oa","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-oa","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-oa","scroll-oa","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-oa","touch-y","touch-pz"],"touch-oa":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Td=Pu(_u);function l(...e){return Td((0,Dd.clsx)(e))}function mr(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=>{if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let d=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of d)m.children[0]&&n.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),n}),r=Vu(e.layout);return{tableOfContents:o,contentWithIds:r}}function Vu(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var Md=require("react"),Id=w(Ad());function Uu(){return(0,Md.useEffect)(()=>{Id.default.init({duration:1e3,offset:0,once:!0})},[]),null}var oa=require("react/jsx-runtime"),rn=pr.forwardRef(({...e},t)=>(0,oa.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));rn.displayName="Breadcrumb";var sn=pr.forwardRef(({className:e,...t},a)=>(0,oa.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}));sn.displayName="BreadcrumbList";var nn=pr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));nn.displayName="BreadcrumbItem";var ln=pr.forwardRef(({asChild:e,className:t,...a},o)=>(0,oa.jsx)(e?Ld.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));ln.displayName="BreadcrumbLink";var dn=pr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));dn.displayName="BreadcrumbPage";var cn=({children:e,className:t,...a})=>(0,oa.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,oa.jsx)(Ms.ChevronRightIcon,{})});cn.displayName="BreadcrumbSeparator";var mn=({className:e,...t})=>(0,oa.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,oa.jsx)(Ms.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"More"})]});mn.displayName="BreadcrumbElipssis";var ur=w(require("@radix-ui/react-collapsible")),Ga=ur.Root,po=ur.CollapsibleTrigger,uo=ur.CollapsibleContent;var _a=w(require("react")),Q=w(require("@radix-ui/react-dropdown-menu"));var Is=Q.Root,Ls=Q.Trigger,Bd=Q.Group,zd=Q.Portal,Ed=Q.Sub,Fd=Q.RadioGroup,pn=_a.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,oa.jsxs)(Q.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,oa.jsx)(Ms.ChevronRightIcon,{className:"ml-auto"})]}));pn.displayName=Q.SubTrigger.displayName;var un=_a.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Q.SubContent,{ref:a,className:l("oa-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}));un.displayName=Q.SubContent.displayName;var Ur=_a.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,oa.jsx)(Q.Portal,{children:(0,oa.jsx)(Q.Content,{ref:o,sideOffset:t,className:l("oa-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})}));Ur.displayName=Q.Content.displayName;var Wr=_a.forwardRef(({className:e,inset:t,...a},o)=>(0,oa.jsx)(Q.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}));Wr.displayName=Q.Item.displayName;var gn=_a.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,oa.jsxs)(Q.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,oa.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,oa.jsx)(Q.ItemIndicator,{children:(0,oa.jsx)(Ms.CheckIcon,{className:"h-4 w-4"})})}),t]}));gn.displayName=Q.CheckboxItem.displayName;var fn=_a.forwardRef(({className:e,children:t,...a},o)=>(0,oa.jsxs)(Q.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,oa.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,oa.jsx)(Q.ItemIndicator,{children:(0,oa.jsx)(Ms.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));fn.displayName=Q.RadioItem.displayName;var bn=_a.forwardRef(({className:e,inset:t,...a},o)=>(0,oa.jsx)(Q.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));bn.displayName=Q.Label.displayName;var vn=_a.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Q.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));vn.displayName=Q.Separator.displayName;var hn=({className:e,...t})=>(0,oa.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});hn.displayName="DropdownMenuShortcut";var Hd=w(require("react"));var Ye=Hd.forwardRef(({className:e,type:t,...a},o)=>(0,oa.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}));Ye.displayName="Input";var Od=w(require("react")),yn=w(require("@radix-ui/react-separator"));var Kr=Od.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,$d.jsx)(yn.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}));Kr.displayName=yn.Root.displayName;var Xr=w(require("react")),Oe=w(require("@radix-ui/react-dialog")),_d=require("class-variance-authority");var Bs=Oe.Root,Vd=Oe.Trigger,Ud=Oe.Close,xn=Oe.Portal,zs=Xr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Oe.Overlay,{className:l("fixed inset-0 oa-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}));zs.displayName=Oe.Overlay.displayName;var Wu=(0,_d.cva)("fixed oa-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-oa-0 top-0 border-b data-[state=closed]:slide-out-Md-top data-[state=open]:slide-in-from-top",bottom:"inset-oa-0 bottom-0 border-t data-[state=closed]:slide-out-Md-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-Md-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-Md-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Yr=Xr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,oa.jsxs)(xn,{children:[(0,oa.jsx)(zs,{}),(0,oa.jsxs)(Oe.Content,{ref:r,className:l(Wu({side:e}),t),...o,children:[(0,oa.jsxs)(Oe.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,oa.jsx)(Ms.Cross2Icon,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"Close"})]}),a]})]}));Yr.displayName=Oe.Content.displayName;var wn=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});wn.displayName="SheetHeader";var Nn=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-oa-2",e),...t});Nn.displayName="SheetFooter";var Cn=Xr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Oe.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));Cn.displayName=Oe.Title.displayName;var kn=Xr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Oe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));kn.displayName=Oe.Description.displayName;var Z=w(require("react")),Zd=require("lucide-react");var Fs=(e=768)=>{let[t,a]=(0,Md.useState)(!1);return(0,Md.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Xd=w(require("react")),go=(0,_d.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",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Xd.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,oa.jsx)(e?Ld.Slot:"button",{className:l(go({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function $e({className:e,...t}){return(0,oa.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var Qd=w(require("react")),va=w(require("@radix-ui/react-tooltip"));var Hs=va.Provider,js=va.Root,Os=va.Trigger,qr=Qd.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,oa.jsx)(va.Portal,{children:(0,oa.jsx)(va.Content,{ref:o,sideOffset:t,className:l("oa-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})}));qr.displayName=va.Content.displayName;var Ku="sidebar:state",Xu=60*60*24*7,Yu="16rem",qu="18rem",Qu="3rem",Ju="b",ec=Z.createContext(null);function br(){let e=Z.useContext(ec);if(!e)throw new Error("useSidebar must oa used within a SidebarProvider.");return e}var Sn=Z.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let d=Fs(),[m,c]=Z.useState(!1),[p,u]=Z.useState(e),g=t??p,b=Z.useCallback(A=>{if(a)return a?.(typeof A=="function"?A(g):A);u(A),document.cookie=`${Ku}=${g}; path=/; max-age=${Xu}`},[a,g]),f=Z.useCallback(()=>d?c(A=>!A):b(A=>!A),[d,b,c]);Z.useEffect(()=>{let A=h=>{h.key===Ju&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),f())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[f]);let y=g?"expanded":"collapsed",I=Z.useMemo(()=>({state:y,open:g,setOpen:b,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:f}),[y,g,b,d,m,c,f]);return(0,oa.jsx)(ec.Provider,{value:I,children:(0,oa.jsx)(Hs,{delayDuration:0,children:(0,oa.jsx)("div",{style:{"--sidebar-width":Yu,"--sidebar-width-icon":Qu,...r},className:l("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Sn.displayName="SidebarProvider";var Eo=Z.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}=br();return a==="none"?(0,oa.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,oa.jsx)(Bs,{open:m,onOpenChange:c,...s,children:(0,oa.jsx)(Yr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":qu},side:e,children:(0,oa.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,oa.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,oa.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,oa.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 oa-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,oa.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})})]})});Eo.displayName="Sidebar";var Rn=Z.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=br();return(0,oa.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,oa.jsx)(Zd.PanelLeft,{}),(0,oa.jsx)("span",{className:"Md-only",children:"Toggle Sidebar"})]})});Rn.displayName="SidebarTrigger";var Tn=Z.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=br();return(0,oa.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 oa-20 hidden w-4 -translate-oa-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-oa-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Tn.displayName="SidebarRail";var Dn=Z.forwardRef(({className:e,...t},a)=>(0,oa.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-xl md:peer-data-[variant=inset]:shadow",e),...t}));Dn.displayName="SidebarInset";var An=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ye,{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}));An.displayName="SidebarInput";var Fo=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Fo.displayName="SidebarHeader";var Ho=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Ho.displayName="SidebarFooter";var Qr=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Kr,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Qr.displayName="SidebarSeparator";var fo=Z.forwardRef(({className:e,...t},a)=>(0,oa.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}));fo.displayName="SidebarContent";var ra=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));ra.displayName="SidebarGroup";var Va=Z.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,oa.jsx)(t?Ld.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]:-oa-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Va.displayName="SidebarGroupLabel";var Mn=Z.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,oa.jsx)(t?Ld.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}));Mn.displayName="SidebarGroupAction";var ha=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));ha.displayName="SidebarGroupContent";var Et=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("oa",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Et.displayName="SidebarMenu";var bt=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));bt.displayName="SidebarMenuItem";var Zu=(0,_d.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"}}),sa=Z.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let d=e?Ld.Slot:"button",{isMobile:m,state:c}=br(),p=(0,oa.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Zu({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,oa.jsxs)(js,{children:[(0,oa.jsx)(Os,{asChild:!0,children:p}),(0,oa.jsx)(qr,{side:"right",align:"center",hidden:c!=="collapsed"||m,...r})]})):p});sa.displayName="SidebarMenuButton";var Jr=Z.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,oa.jsx)(t?Ld.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}));Jr.displayName="SidebarMenuAction";var In=Z.forwardRef(({className:e,...t},a)=>(0,oa.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}));In.displayName="SidebarMenuBadge";var Ln=Z.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=Z.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,oa.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,oa.jsx)($e,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,oa.jsx)($e,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Ln.displayName="SidebarMenuSkeleton";var bo=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("oa",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-oa-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));bo.displayName="SidebarMenuSub";var vo=Z.forwardRef(({...e},t)=>(0,oa.jsx)("li",{ref:t,...e}));vo.displayName="SidebarMenuSubItem";var ho=Z.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,oa.jsx)(e?Ld.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-oa-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}));ho.displayName="SidebarMenuSubButton";var _s=w(require("react")),eg=1,tg=1e6;var Bn=0;function ag(){return Bn=(Bn+1)%Number.MAX_SAFE_INTEGER,Bn.toString()}var zn=new Map,tc=e=>{if(zn.has(e))return;let t=setTimeout(()=>{zn.delete(e),Zr({type:"REMOVE_TOAST",toastId:e})},tg);zn.set(e,t)},ac=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,eg)};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?tc(a):e.toasts.forEach(o=>{tc(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)}}},$s=[],Gs={toasts:[]};function Zr(e){Gs=ac(Gs,e),$s.forEach(t=>{t(Gs)})}function oc({...e}){let t=ag(),a=r=>Zr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Zr({type:"DISMISS_TOAST",toastId:t});return Zr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Vs(){let[e,t]=_s.useState(Gs);return _s.useEffect(()=>($s.push(t),()=>{let a=$s.indexOf(t);a>-1&&$s.splice(a,1)}),[e]),{...e,toast:oc,dismiss:a=>Zr({type:"DISMISS_TOAST",toastId:a})}}var jo=w(require("react")),qe=w(require("@radix-ui/react-toast"));var Us=qe.Provider,es=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.Viewport,{ref:a,className:l("fixed top-0 oa-[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}));es.displayName=qe.Viewport.displayName;var og=(0,_d.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-oa-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-oa-0 data-[swipe=end]:translate-oa-[var(--radix-toast-swipe-end-oa)] data-[swipe=move]:translate-oa-[var(--radix-toast-swipe-move-oa)] 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-Md-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"}}),ts=jo.forwardRef(({className:e,variant:t,...a},o)=>(0,oa.jsx)(qe.Root,{ref:o,className:l(og({variant:t}),e),...a}));ts.displayName=qe.Root.displayName;var En=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.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}));En.displayName=qe.Action.displayName;var as=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.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,oa.jsx)(Zd.oa,{className:"h-4 w-4"})}));as.displayName=qe.Close.displayName;var os=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));os.displayName=qe.Title.displayName;var rs=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));rs.displayName=qe.Description.displayName;function ic(){let{toasts:e}=Vs();return(0,oa.jsxs)(Us,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,oa.jsxs)(ts,{...s,children:[(0,oa.jsxs)("div",{className:"grid gap-1",children:[a&&(0,oa.jsx)(os,{children:a}),o&&(0,oa.jsx)(rs,{children:o})]}),r,(0,oa.jsx)(as,{})]},t)}),(0,oa.jsx)(es,{})]})}var nc=w(require("react")),Fn=w(require("@radix-ui/react-toggle"));var ss=(0,_d.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"}}),Hn=nc.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,oa.jsx)(Fn.Root,{ref:r,className:l(ss({variant:t,size:a,className:e})),...o}));Hn.displayName=Fn.Root.displayName;var Oo=w(require("react")),vr=w(require("@radix-ui/react-toggle-group"));var cc=Oo.createContext({size:"default",variant:"default"}),jn=Oo.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,oa.jsx)(vr.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,oa.jsx)(cc.Provider,{value:{variant:t,size:a},children:o})}));jn.displayName=vr.Root.displayName;var On=Oo.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Oo.useContext(cc);return(0,oa.jsx)(vr.Item,{ref:s,className:l(ss({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});On.displayName=vr.Item.displayName;var $n=w(require("react")),ia=w(require("@radix-ui/react-scroll-area"));var na=$n.forwardRef(({className:e,children:t,...a},o)=>(0,oa.jsxs)(ia.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,oa.jsx)(ia.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,oa.jsx)(Ks,{}),(0,oa.jsx)(ia.Corner,{})]}));na.displayName=ia.Root.displayName;var Ks=$n.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,oa.jsx)(ia.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,oa.jsx)(ia.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Ks.displayName=ia.ScrollAreaScrollbar.displayName;var mc=w(require("react")),ya=w(require("@radix-ui/react-popover"));var is=ya.Root,ns=ya.Trigger,pc=ya.Anchor,hr=mc.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,oa.jsx)(ya.Portal,{children:(0,oa.jsx)(ya.Content,{ref:r,align:t,sideOffset:a,className:l("oa-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})}));hr.displayName=ya.Content.displayName;var uc=w(require("react")),_n=w(require("@radix-ui/react-label"));var rg=(0,_d.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),O=uc.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(_n.Root,{ref:a,className:l(rg(),e),...t}));O.displayName=_n.Root.displayName;var bc=w(require("react")),$o=w(require("@radix-ui/react-hover-card"));var vc=$o.Root,hc=$o.Trigger,Vn=bc.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,oa.jsx)($o.Content,{ref:r,align:t,sideOffset:a,className:l("oa-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}));Vn.displayName=$o.Content.displayName;var ls=w(require("react")),Ge=w(require("@radix-ui/react-dialog"));var la=Ge.Root,wc=Ge.Trigger,Un=Ge.Portal,Xs=Ge.Close,Ys=ls.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ge.Overlay,{ref:a,className:l("fixed inset-0 oa-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}));Ys.displayName=Ge.Overlay.displayName;var Yt=ls.forwardRef(({className:e,children:t,...a},o)=>(0,oa.jsxs)(Un,{children:[(0,oa.jsx)(Ys,{}),(0,oa.jsxs)(Ge.Content,{ref:o,className:l("fixed left-[50%] top-[50%] oa-50 grid w-full max-w-lg translate-oa-[-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-Md-left-1/2 data-[state=closed]:slide-out-Md-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,oa.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,oa.jsx)(Zd.oa,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"Close"})]})]})]}));Yt.displayName=Ge.Content.displayName;var xa=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xa.displayName="DialogHeader";var Wn=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-oa-2",e),...t});Wn.displayName="DialogFooter";var wa=ls.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ge.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));wa.displayName=Ge.Title.displayName;var ds=ls.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));ds.displayName=Ge.Description.displayName;var wo=w(require("react")),Pt=require("cmdk");var qs=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));qs.displayName=Pt.Command.displayName;var Cc=({children:e,...t})=>(0,oa.jsx)(la,{...t,children:(0,oa.jsx)(Yt,{className:"overflow-hidden p-0",children:(0,oa.jsx)(qs,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Kn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,oa.jsx)(Zd.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,oa.jsx)(Pt.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})]}));Kn.displayName=Pt.Command.Input.displayName;var Xn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-oa-hidden",e),...t}));Xn.displayName=Pt.Command.List.displayName;var Yn=wo.forwardRef((e,t)=>(0,oa.jsx)(Pt.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));Yn.displayName=Pt.Command.Empty.displayName;var qn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));qn.displayName=Pt.Command.Group.displayName;var Qn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Qn.displayName=Pt.Command.Separator.displayName;var Jn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.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}));Jn.displayName=Pt.Command.Item.displayName;var Zn=({className:e,...t})=>(0,oa.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});Zn.displayName="CommandShortcut";var Qs=w(require("react"));var sg=(0,_d.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"}}),el=Qs.forwardRef(({className:e,variant:t,...a},o)=>(0,oa.jsx)("div",{ref:o,role:"alert",className:l(sg({variant:t}),e),...a}));el.displayName="Alert";var tl=Qs.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));tl.displayName="AlertTitle";var al=Qs.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("text-sm [&_p]:leading-relaxed",e),...t}));al.displayName="AlertDescription";var Zs=w(require("react")),Wa=w(require("@radix-ui/react-avatar"));var vt=Zs.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Wa.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vt.displayName=Wa.Root.displayName;var Ft=Zs.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Wa.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Ft.displayName=Wa.Image.displayName;var ht=Zs.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Wa.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ht.displayName=Wa.Fallback.displayName;var ol=(0,_d.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 _e({className:e,variant:t,...a}){return(0,oa.jsx)("div",{className:l(ol({variant:t}),e),...a})}var cs=w(require("@radix-ui/react-checkbox")),Tc=w(require("react")),Na=Tc.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(cs.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,oa.jsx)(cs.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,oa.jsx)(Zd.Check,{className:"h-4 w-4"})})}));Na.displayName=cs.Root.displayName;var ae=w(require("@radix-ui/react-select")),No=w(require("react")),qt=ae.Root,ig=ae.Group,Qt=ae.Value,Ht=No.forwardRef(({children:e,className:t,...a},o)=>(0,oa.jsxs)(ae.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,oa.jsx)(ae.Icon,{asChild:!0,children:(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ht.displayName=ae.Trigger.displayName;var rl=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,oa.jsx)(Zd.ChevronUp,{className:"h-4 w-4"})}));rl.displayName=ae.ScrollUpButton.displayName;var sl=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4"})}));sl.displayName=ae.ScrollDownButton.displayName;var jt=No.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,oa.jsx)(ae.Portal,{children:(0,oa.jsxs)(ae.Content,{className:l("relative oa-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-oa-1 data-[side=right]:translate-oa-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,oa.jsx)(rl,{}),(0,oa.jsx)(ae.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,oa.jsx)(sl,{})]})}));jt.displayName=ae.Content.displayName;var Dc=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Dc.displayName=ae.Label.displayName;var St=No.forwardRef(({children:e,className:t,...a},o)=>(0,oa.jsxs)(ae.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,oa.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,oa.jsx)(ae.ItemIndicator,{children:(0,oa.jsx)(Zd.Check,{className:"h-4 w-4"})})}),(0,oa.jsx)(ae.ItemText,{children:e})]}));St.displayName=ae.Item.displayName;var Ac=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ac.displayName=ae.Separator.displayName;var Mc=w(require("react")),da=Mc.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));da.displayName="Textarea";var Lc=require("react-day-picker");function ms({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,oa.jsx)(Lc.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-oa-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-oa-1 flex items-center",nav_button:l(go({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 oa-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:oa-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(go({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})}ms.displayName="Calendar";var Co=w(require("@radix-ui/react-tabs"));function il({className:e,...t}){return(0,oa.jsx)(Co.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function nl({className:e,...t}){return(0,oa.jsx)(Co.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function ll({className:e,...t}){return(0,oa.jsx)(Co.Trigger,{"data-slot":"tabs-trigger",className:l("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function ng({className:e,...t}){return(0,oa.jsx)(Co.Content,{"data-slot":"tabs-content",className:l("flex-1 outline-none",e),...t})}var dl=({className:e,content:t,style:a})=>(0,oa.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,oa.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,oa.jsx)(se,{content:t,enableGutter:!1,enableProse:!1})})});var cl=w(require("next/link")),Ca=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?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,oa.jsxs)(cl.default,{className:l(r),href:c||m||"",...u,children:[s&&s,o&&o]}):(0,oa.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,oa.jsxs)(cl.default,{className:l(r),href:c||m||"",...u,children:[s&&s,o&&o]})})};function oi({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function lg({className:e,...t}){return(0,oa.jsx)("input",{...t,className:oi({className:e})})}function ri({icon:e,...t}){return(0,oa.jsxs)("div",{className:"relative w-full",children:[(0,oa.jsx)(lg,{...t}),e&&(0,oa.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function dg({className:e,...t}){return(0,oa.jsx)("textarea",{...t,className:l(oi({}),"resize-none md:min-h-[130px]",e)})}function zc({icon:e,...t}){return(0,oa.jsxs)("div",{className:"relative w-full",children:[(0,oa.jsx)(dg,{...t}),e&&(0,oa.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Fc=require("formik"),Hc=require("react-icons/fa6"),_o=w(require("yup"));async function Ec(e){let{name:t,email:a,subject:o,message:r}=e,s=process.env.TEAMS_WEBHOOK_URL;if(!s)throw new Error("TEAMS_WEBHOOK_URL is not defined");let n={type:"message",attachments:[{contentType:"application/vnd.microsoft.card.adaptive",content:{$schema:"http://adaptivecards.io/schemas/adaptive-card.json",type:"AdaptiveCard",version:"1.2",body:[{type:"TextBlock",text:"Contact Us Form",wrap:!0,style:"heading",weight:"Bolder"},{type:"ColumnSet",columns:[{type:"Column",width:"stretch",items:[{type:"TextBlock",text:"Name",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Email",wrap:!0,weight:"Bolder"},{type:"TextBlock",text:"Subject",wrap:!0,weight:"Bolder"}]},{type:"Column",width:"stretch",items:[{type:"TextBlock",text:`${t}`,wrap:!0},{type:"TextBlock",text:`${a}`,wrap:!0},{type:"TextBlock",text:`${o}`,wrap:!0}]}]},{type:"TextBlock",text:`${r}`,wrap:!0}]}}]};try{let i=await fetch(s,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!i.ok)throw console.error(i),new Error("Network response was not ok");return{isSuccess:!0,data:!0,message:"Thanks for getting in touch"}}catch(i){return console.error(i),{isSuccess:!1,data:null,message:"Internal Server Error"}}}var ml=require("sonner"),ka={tooShort:"Must oa oa least ${min} characters",tooLong:"Must oa oa most ${max} characters",required:"This field is required",email:"Invalid email format"},cg=_o.object().shape({name:_o.string().min(2,ka.tooShort).max(50,ka.tooLong).required(ka.required),email:_o.string().email(ka.email).required(ka.required),subject:_o.string().min(2,ka.tooShort).max(50,ka.tooLong).required(ka.required),message:_o.string().min(2,ka.tooShort).max(300,ka.tooLong).required(ka.required)}),si=l("!pr-[44px] text-foreground"),ii=l("!border-red-600 border"),ni=l("Md-only");function li(){return(0,oa.jsx)(Fc.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:cg,onSubmit:async(e,{resetForm:t})=>{let a=await Ec(e);a.data===null?ml.toast.error(a.message):(ml.toast.success(a.message),t())},children:({errors:e,touched:t,values:a,handleChange:o,handleBlur:r,isSubmitting:s,handleSubmit:n})=>(0,oa.jsxs)("form",{onSubmit:n,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)(ri,{placeholder:"Your Name",type:"text",name:"name",value:a.name,onChange:o,onBlur:r,disabled:s,icon:(0,oa.jsx)(Hc.FaUser,{className:"text-primary"}),className:l(si,e.name&&t.name&&ii)}),e.name&&t.name&&(0,oa.jsx)("p",{title:e.name,"aria-live":"polite",role:"error message",className:ni,children:e.name})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)(ri,{placeholder:"Your Email",type:"email",name:"email",value:a.email,onChange:o,onBlur:r,disabled:s,icon:(0,oa.jsx)(mg,{}),className:l(si,e.email&&t.email&&ii)}),e.email&&t.email&&(0,oa.jsx)("p",{title:e.email,"aria-live":"polite",role:"error message",className:ni,children:e.email})]}),(0,oa.jsxs)("div",{className:"lg:col-span-2",children:[(0,oa.jsx)(ri,{placeholder:"Subject",type:"text",name:"subject",value:a.subject,onChange:o,onBlur:r,disabled:s,className:l(si,e.subject&&t.subject&&ii)}),e.subject&&t.subject&&(0,oa.jsx)("p",{title:e.subject,"aria-live":"polite",role:"error message",className:ni,children:e.subject})]}),(0,oa.jsxs)("div",{className:"lg:col-span-2",children:[(0,oa.jsx)(zc,{placeholder:"Message...",name:"message",value:a.message,onChange:o,onBlur:r,disabled:s,icon:(0,oa.jsx)(pg,{}),className:l(si,e.message&&t.message&&ii)}),e.message&&t.message&&(0,oa.jsx)("p",{title:e.message,"aria-live":"polite",role:"error message",className:ni,children:e.message})]}),(0,oa.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,oa.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:s,children:"Send"})})]})})}function mg(){return(0,oa.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,oa.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function pg(){return(0,oa.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,oa.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var ug=({links:e,richText:t})=>(0,oa.jsx)("div",{className:"container",children:(0,oa.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,oa.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,oa.jsx)(se,{className:"mb-0",content:t,enableGutter:!1})}),(0,oa.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,oa.jsx)(Ca,{size:"lg",...a},o))})]})}),Vo=({links:e,richText:t})=>{let[a,o]=(0,Md.useState)(!1),r="accent",s=()=>o(!0),n=()=>o(!1),i=d=>{d.target===d.currentTarget&&n()};return(0,oa.jsxs)("div",{className:l("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,oa.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,oa.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,oa.jsx)(se,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,oa.jsx)("div",{className:"oa-10 flex items-center justify-center gap-oa-6",children:(0,oa.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:d},m)=>d?.url==="/contact"?(0,oa.jsx)("div",{onClick:s,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:d.label},m):(0,oa.jsx)(Ca,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...d},m))})})]})}),a&&(0,oa.jsx)("div",{className:"absolute inset-0 oa-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,oa.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,oa.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:n,children:"\u2715"}),(0,oa.jsx)(li,{})," "]})})]})};var di=require("prism-react-renderer");function pl({code:e}){let[t,a]=(0,$c.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,oa.jsx)("div",{className:"flex justify-end align-middle",children:(0,oa.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,oa.jsx)("p",{children:t}),(0,oa.jsx)("div",{className:"w-6 h-6",children:(0,oa.jsx)(Zd.ClipboardCopy,{})})]})})}var Gc=({code:e,language:t=""})=>e?(0,oa.jsx)(di.Highlight,{code:e,language:t,theme:di.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,oa.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-oa-auto",children:[r.map((s,n)=>(0,oa.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,oa.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,oa.jsx)("span",{className:"table-cell pl-4",children:s.map((i,d)=>(0,oa.jsx)("span",{...o({token:i})},d))})]},n)),(0,oa.jsx)(pl,{code:e})]})}):null;var gl=({className:e,code:t,language:a})=>(0,oa.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,oa.jsx)(Gc,{code:t,language:a})});var Vc=w(require("next/image")),gg={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},_c="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=",Uc=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:d}=e,m,c,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:y,height:I,url:A,width:h}=s;if(I&&I>500){let k=500/I;m=h*k,c=I*k}else m=h,c=I;p=f||"",u=A||_c}let g=d||"lazy",b=n||Object.entries(gg).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,oa.jsx)("picture",{children:(0,oa.jsx)(Vc.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:_c,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:m})})};var Wc=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Md.useRef)(null);if((0,Md.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,oa.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,oa.jsx)("source",{src:a.url||""})})}return null};var Pa=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,oa.jsx)(a||Md.Fragment,{...a!==null?{className:t}:{},children:r?(0,oa.jsx)(Wc,{...e}):(0,oa.jsx)(Uc,{...e})})};var Xa=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,oa.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,oa.jsx)(Pa,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var yl=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,oa.jsx)("div",{className:l("",{container:a},t),children:(0,oa.jsx)(Pa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Wo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,oa.jsxs)("section",{className:l(r?"w-full":"",""),children:[(0,oa.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,oa.jsx)("h2",{className:"mb-6 oa-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,oa.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,oa.jsx)("div",{className:"mb-5 text-foreground",children:(0,oa.jsx)(se,{content:t,enableGutter:!1})})]}),(0,oa.jsx)("div",{className:`grid gap-6 oa-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,n)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,oa.jsx)(wr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:n},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},n)})})]});var pi=w(require("react"));function gs({nodes:e}){return(0,oa.jsx)(pi.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,oa.jsx)(pi.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,oa.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,oa.jsx)("em",{children:s},a)),t.format&4&&(s=(0,oa.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,oa.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,oa.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,oa.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,oa.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,oa.jsx)("table",{children:(0,oa.jsx)("tbody",{children:t.children.map((s,n)=>(0,oa.jsx)("ml",{children:s.children.map((i,d)=>(0,oa.jsx)("Zd",{children:gs({nodes:i.children})},d))},n))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let n of s.children)"checked"in n&&(n?.checked||(n.checked=!1));return gs({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s?.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,oa.jsx)(Vo,{...s},a);case"mediaBlock":return(0,oa.jsx)(Xa,{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,oa.jsx)(yl,{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,oa.jsx)(dl,{className:"col-start-2 mb-4",...s},a);case"code":return(0,oa.jsx)(gl,{className:"col-start-2",...s},a);case"features":return(0,oa.jsx)(Wo,{...s,nested:!0},a);case"reusableContentBlock":gs({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,oa.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,oa.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,oa.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,oa.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,oa.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,oa.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,oa.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,oa.jsx)(Ca,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,oa.jsx)(Ca,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var se=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,oa.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&gs({nodes:t?.root?.children})}):null;var yt=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("oa-")?e+" ":"oa-"+e+" ",s="oa-"+t,n=o??"",i=r+s+" oa-"+a+" "+n;return(0,oa.jsx)("i",{className:i})};var Qc=w(require("next/image"));function qc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function wr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:n,link:i,className:d}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Md-br from-[#A42368] Md-[#4A1030]",radial:"bg-gradient-Md-br from-[#4A1030] Md-[#2D0A1D] relative overflow-hidden",light:"bg-background"},c={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,oa.jsxs)("a",{href:i?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",n&&!e&&m[n?.card==="default"?"solid":n?.card],e&&"bg-foreground",n&&n?.card==="outline"?"text-gray-900":"text-white",c[n?.width??"auto"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",n&&`intersect:animate-delay-${n.order||1}00`,d),children:[e&&(0,oa.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,oa.jsx)(Qc.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,oa.jsxs)("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,oa.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,oa.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,oa.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,oa.jsx)(fg,{icon:{type:t?.type||"oa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:n?.card==="default"?"solid":n?.card??"solid",iconSize:n?.iconSize||"large"})}),r&&typeof r=="object"&&(0,oa.jsx)(se,{enableGutter:!1,content:r,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,oa.jsx)("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,oa.jsx)("div",{className:"oa-6",children:(0,oa.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var fg=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,oa.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,oa.jsx)("div",{className:l(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),qc(e)&&(0,oa.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 oa-1":""),children:(0,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,oa.jsxs)("div",{className:"flex flex-col gap-4",children:[qc(e)&&(0,oa.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,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,oa.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,oa.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,oa.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Jc=w(require("next/image")),Zc=w(require("next/link"));var Ko=w(require("react"));var ie=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ie.displayName="Card";var Pe=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Pe.displayName="CardHeader";var Se=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Se.displayName="CardTitle";var fs=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));fs.displayName="CardDescription";var le=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));le.displayName="CardContent";var Xo=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Xo.displayName="CardFooter";function em({name:e,logo:t,href:a}){return(0,oa.jsx)(ie,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,oa.jsxs)(Zc.default,{href:a,className:"block",children:[(0,oa.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,oa.jsx)("div",{className:"relative w-full h-full",children:t&&(0,oa.jsx)(Jc.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,oa.jsx)(le,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Md-br from-gray-900 via-brand-one Md-gray-900",children:(0,oa.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 tm({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,oa.jsx)(Zd.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,oa.jsx)(Zd.Award,{className:"h-4 w-4"});case"companyEvent":return(0,oa.jsx)(Zd.PartyPopper,{className:"h-4 w-4"});default:return(0,oa.jsx)(Zd.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 Md-slate-500"}};return(0,oa.jsxs)(ie,{className:`w-full max-w-md overflow-hidden bg-gradient-Md-br ${n(e)}`,children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,oa.jsxs)(vt,{className:"h-14 w-14 border-2 border-white",children:[(0,oa.jsx)(Ft,{src:r,alt:a||"Event"}),(0,oa.jsx)(ht,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,oa.jsxs)("div",{className:"flex flex-col",children:[(0,oa.jsx)(Se,{className:"text-xl",children:a||"Untitled Event"}),(0,oa.jsxs)("p",{className:"text-sm text-white/80",children:[(0,oa.jsx)(Zd.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("en-GB"):"Date not specified"]})]})]}),(0,oa.jsxs)(le,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,oa.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,oa.jsxs)(_e,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,oa.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-oa])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var om=w(require("next/link"));var rm=w(require("next/image")),am={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function sm({slug:e,image:t,title:a,description:o}){return(0,oa.jsxs)(om.default,{href:e,className:"group/portfolio relative oa-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,oa.jsx)("span",{className:l("absolute inset-0 oa-[2] bg-gradient-1 from-primary/0 Md-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,oa.jsx)(rm.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
13
- (min-width:${am.md}) 50vw,
14
- (min-width:${am.lg}) 25vw,
11
+ `),D.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",D.easing),document.querySelector("body").setAttribute("data-aos-duration",D.duration),document.querySelector("body").setAttribute("data-aos-delay",D.delay),D.startEvent==="DOMContentLoaded"&&["complete","interactive"].indexOf(document.readyState)>-1?re(!0):D.startEvent==="load"?window.addEventListener(D.startEvent,function(){re(!0)}):document.addEventListener(D.startEvent,function(){re(!0)}),window.addEventListener("resize",(0,m.default)(re,D.debounceDelay,!0)),window.addEventListener("orientationchange",(0,m.default)(re,D.debounceDelay,!0)),window.addEventListener("scroll",(0,i.default)(function(){(0,f.default)(k,D.once)},D.throttleDelay)),D.disableMutationObserver||p.default.ready("[data-aos]",j),k)};e.exports={init:G,refresh:re,refreshHard:j}},function(e,t){},,,,,function(e,t){(function(a){"use strict";function o(P,G,v){function te(ye){var zt=he,lo=Re;return he=Re=void 0,io=ye,pt=P.apply(lo,zt)}function _(ye){return io=ye,ot=setTimeout(aa,G),no?te(ye):pt}function Le(ye){var zt=ye-Wt,lo=ye-io,yd=G-zt;return Oa?j(yd,La-lo):yd}function lt(ye){var zt=ye-Wt,lo=ye-io;return Wt===void 0||zt>=G||zt<0||Oa&&lo>=La}function aa(){var ye=L();return lt(ye)?Ut(ye):void(ot=setTimeout(aa,Le(ye)))}function Ut(ye){return ot=void 0,Ee&&he?te(ye):(he=Re=void 0,pt)}function Lt(){ot!==void 0&&clearTimeout(ot),io=0,he=Wt=Re=ot=void 0}function Bt(){return ot===void 0?pt:Ut(L())}function ke(){var ye=L(),zt=lt(ye);if(he=arguments,Re=this,Wt=ye,zt){if(ot===void 0)return _(Wt);if(Oa)return ot=setTimeout(aa,G),te(Wt)}return ot===void 0&&(ot=setTimeout(aa,G)),pt}var he,Re,La,pt,ot,Wt,io=0,no=!1,Oa=!1,Ee=!0;if(typeof P!="function")throw new TypeError(c);return G=d(G)||0,s(v)&&(no=!!v.leading,Oa="maxWait"in v,La=Oa?re(d(v.maxWait)||0,G):La,Ee="trailing"in v?!!v.trailing:Ee),ke.cancel=Lt,ke.flush=Bt,ke}function r(P,G,v){var te=!0,_=!0;if(typeof P!="function")throw new TypeError(c);return s(v)&&(te="leading"in v?!!v.leading:te,_="trailing"in v?!!v.trailing:_),o(P,G,{leading:te,maxWait:G,trailing:_})}function s(P){var G=typeof P>"u"?"undefined":m(P);return!!P&&(G=="object"||G=="function")}function n(P){return!!P&&(typeof P>"u"?"undefined":m(P))=="object"}function i(P){return(typeof P>"u"?"undefined":m(P))=="symbol"||n(P)&&D.call(P)==u}function d(P){if(typeof P=="number")return P;if(i(P))return p;if(s(P)){var G=typeof P.valueOf=="function"?P.valueOf():P;P=s(G)?G+"":G}if(typeof P!="string")return P===0?P:+P;P=P.replace(g,"");var v=f.test(P);return v||y.test(P)?I(P.slice(2),v?2:8):b.test(P)?p:+P}var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},c="Expected a function",p=NaN,u="[object Symbol]",g=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,y=/^0o[0-7]+$/i,I=parseInt,A=(typeof a>"u"?"undefined":m(a))=="object"&&a&&a.Object===Object&&a,h=(typeof self>"u"?"undefined":m(self))=="object"&&self&&self.Object===Object&&self,k=A||h||Function("return this")(),N=Object.prototype,D=N.toString,re=Math.max,j=Math.min,L=function(){return k.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(a){"use strict";function o(L,P,G){function v(Ee){var ye=ke,zt=he;return ke=he=void 0,Wt=Ee,La=L.apply(zt,ye)}function te(Ee){return Wt=Ee,pt=setTimeout(lt,P),io?v(Ee):La}function _(Ee){var ye=Ee-ot,zt=Ee-Wt,lo=P-ye;return no?re(lo,Re-zt):lo}function Le(Ee){var ye=Ee-ot,zt=Ee-Wt;return ot===void 0||ye>=P||ye<0||no&&zt>=Re}function lt(){var Ee=j();return Le(Ee)?aa(Ee):void(pt=setTimeout(lt,_(Ee)))}function aa(Ee){return pt=void 0,Oa&&ke?v(Ee):(ke=he=void 0,La)}function Ut(){pt!==void 0&&clearTimeout(pt),Wt=0,ke=ot=he=pt=void 0}function Lt(){return pt===void 0?La:aa(j())}function Bt(){var Ee=j(),ye=Le(Ee);if(ke=arguments,he=this,ot=Ee,ye){if(pt===void 0)return te(ot);if(no)return pt=setTimeout(lt,P),v(ot)}return pt===void 0&&(pt=setTimeout(lt,P)),La}var ke,he,Re,La,pt,ot,Wt=0,io=!1,no=!1,Oa=!0;if(typeof L!="function")throw new TypeError(m);return P=i(P)||0,r(G)&&(io=!!G.leading,no="maxWait"in G,Re=no?D(i(G.maxWait)||0,P):Re,Oa="trailing"in G?!!G.trailing:Oa),Bt.cancel=Ut,Bt.flush=Lt,Bt}function r(L){var P=typeof L>"u"?"undefined":d(L);return!!L&&(P=="object"||P=="function")}function s(L){return!!L&&(typeof L>"u"?"undefined":d(L))=="object"}function n(L){return(typeof L>"u"?"undefined":d(L))=="symbol"||s(L)&&N.call(L)==p}function i(L){if(typeof L=="number")return L;if(n(L))return c;if(r(L)){var P=typeof L.valueOf=="function"?L.valueOf():L;L=r(P)?P+"":P}if(typeof L!="string")return L===0?L:+L;L=L.replace(u,"");var G=b.test(L);return G||f.test(L)?y(L.slice(2),G?2:8):g.test(L)?c:+L}var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},m="Expected a function",c=NaN,p="[object Symbol]",u=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,f=/^0o[0-7]+$/i,y=parseInt,I=(typeof a>"u"?"undefined":d(a))=="object"&&a&&a.Object===Object&&a,A=(typeof self>"u"?"undefined":d(self))=="object"&&self&&self.Object===Object&&self,h=I||A||Function("return this")(),k=Object.prototype,N=k.toString,D=Math.max,re=Math.min,j=function(){return h.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,p=void 0;for(m=0;m<d.length;m+=1)if(c=d[m],c.dataset&&c.dataset.aos||(p=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,p=o(),u=new p(n);i=m,u.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),p=Array.prototype.slice.call(m.removedNodes),u=c.concat(p);if(a(u))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,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function c(p,u){for(var g=0;g<u.length;g++){var b=u[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(p,b.key,b)}}return function(p,u,g){return u&&c(p.prototype,u),g&&c(p,g),p}}(),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( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|Md\.(browser|link)|vodafone|wap|windows oa|xda|xiino/i,n=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(di|oa|s\-)|oa(Zd|rn)|al(av|oa|co)|amoi|an(ex|ny|yw)|aptu|Md(ch|go)|as(te|oa)|attw|Md(di|\-m|r |s )|avan|oa(ck|ll|nq)|Fc(lb|rd)|oa(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(Md|nd)|craw|da(oa|ll|ng)|dbte|oa\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|oa)|em(l2|oa)|di(ic|k0)|esl8|ez([4-7]0|os|wa|oa)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|Is(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|oa)|Zd( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|Km)|hu(aw|tc)|i\-(20|go|oa)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|oa(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|oa(te|ui|oa)|mc(01|21|oa)|m\-cr|oa(_d|ri)|Md(o8|oa|ts)|mmef|mo(01|02|Fc|oa|do|t(\-| |o|v)|zz)|oa(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|oa((c|m)\-|on|tf|wf|wg|oa)|nok(6|i)|nzph|o2im|ea(oa|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|oa|se)|prox|psio|pt\-g|Zd\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|oa(oa|oa)|s55\/|sa(oa|oa|mm|ms|ny|va)|Zd(01|h\-|oa|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|Md|b3|oa|t5)|oa(Zd|ny)|vm(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|oa(Md|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|Md(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|Md(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|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( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|Md\.(browser|link)|vodafone|wap|windows oa|xda|xiino|android|ipad|playbook|silk/i,d=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(di|oa|s\-)|oa(Zd|rn)|al(av|oa|co)|amoi|an(ex|ny|yw)|aptu|Md(ch|go)|as(te|oa)|attw|Md(di|\-m|r |s )|avan|oa(ck|ll|nq)|Fc(lb|rd)|oa(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(Md|nd)|craw|da(oa|ll|ng)|dbte|oa\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|oa)|em(l2|oa)|di(ic|k0)|esl8|ez([4-7]0|os|wa|oa)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|Is(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|oa)|Zd( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|Km)|hu(aw|tc)|i\-(20|go|oa)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|oa(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|oa(te|ui|oa)|mc(01|21|oa)|m\-cr|oa(_d|ri)|Md(o8|oa|ts)|mmef|mo(01|02|Fc|oa|do|t(\-| |o|v)|zz)|oa(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|oa((c|m)\-|on|tf|wf|wg|oa)|nok(6|i)|nzph|o2im|ea(oa|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|oa|se)|prox|psio|pt\-g|Zd\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|oa(oa|oa)|s55\/|sa(oa|oa|mm|ms|ny|va)|Zd(01|h\-|oa|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|Md|b3|oa|t5)|oa(Zd|ny)|vm(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|oa(Md|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|Md(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|Md(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,m=function(){function c(){a(this,c)}return r(c,[{key:"phone",value:function(){var p=o();return!(!s.test(p)&&!n.test(p.substr(0,4)))}},{key:"mobile",value:function(){var p=o();return!(!i.test(p)&&!d.test(p.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<"u"&&(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,p=window.innerHeight,u={offset:i.getAttribute("data-aos-offset"),anchor:i.getAttribute("data-aos-anchor"),anchorPlacement:i.getAttribute("data-aos-anchor-placement")};switch(u.offset&&!isNaN(u.offset)&&(c=parseInt(u.offset)),u.anchor&&document.querySelectorAll(u.anchor)&&(i=document.querySelectorAll(u.anchor)[0]),m=(0,s.default)(i).top,u.anchorPlacement){case"top-bottom":break;case"center-bottom":m+=i.offsetHeight/2;break;case"bottom-bottom":m+=i.offsetHeight;break;case"top-center":m+=p/2;break;case"bottom-center":m+=p/2+i.offsetHeight;break;case"center-center":m+=p/2+i.offsetHeight/2;break;case"top-top":m+=p;break;case"bottom-top":m+=i.offsetHeight+p;break;case"center-top":m+=i.offsetHeight/2+p}return u.anchorPlacement||u.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 d0={};cu(d0,{AOSInit:()=>Vu,AboutSection:()=>Kf,Alert:()=>tl,AlertDescription:()=>ol,AlertTitle:()=>al,ApproveLeave:()=>Zl,Avatar:()=>vt,AvatarFallback:()=>ht,AvatarImage:()=>Ft,Badge:()=>_e,BannerBlock:()=>cl,BlogCard:()=>Jp,BlogDetail:()=>Zf,BlogList:()=>o0,BlogListSection:()=>Yf,BrandLogo:()=>Ro,Breadcrumb:()=>sn,BreadcrumbEllipsis:()=>pn,BreadcrumbItem:()=>ln,BreadcrumbLink:()=>dn,BreadcrumbList:()=>nn,BreadcrumbPage:()=>cn,BreadcrumbSeparator:()=>mn,Breadcrumbs:()=>sf,Button:()=>T,CMSLink:()=>Ca,CRMCogeBoard:()=>Nf,CRMKanbanBoard:()=>yf,Calendar:()=>ms,CalendarView:()=>rd,CallToActionBlock:()=>Vo,CallToActionBlockOld:()=>pg,CapabilityMenu:()=>Bf,Card:()=>ys,Categories:()=>Hl,ChatCardArtefact:()=>Lf,ChatCardTask:()=>nd,ChatInterfaceMessages:()=>Tf,ChatMessage:()=>ld,Checkbox:()=>Na,CodeBlock:()=>gl,Collapsible:()=>Ga,CollapsibleContent:()=>uo,CollapsibleTrigger:()=>po,CollectionArchive:()=>Hg,Command:()=>Qs,CommandDialog:()=>Cc,CommandEmpty:()=>qn,CommandGroup:()=>Qn,CommandInput:()=>Xn,CommandItem:()=>Zn,CommandList:()=>Yn,CommandSeparator:()=>Jn,CommandShortcut:()=>el,CommentSection:()=>$f,ContactSection:()=>qf,Container:()=>Gt,ContentBlock:()=>hs,ContentCard:()=>Ng,CopyButton:()=>pl,CustomLink:()=>ut,CustomerCard:()=>Zc,DarkTop:()=>Cl,DashboardHero:()=>Qo,DealCard:()=>sd,DealDetails:()=>Rs,DeliveryLeadSubmission:()=>_i,DeliveryLeadSubmissionList:()=>Ui,DeliveryLeadSubmissionWithList:()=>Mp,Dialog:()=>la,DialogClose:()=>Ys,DialogContent:()=>Yt,DialogDescription:()=>ds,DialogFooter:()=>Kn,DialogHeader:()=>xa,DialogOverlay:()=>qs,DialogPortal:()=>Wn,DialogTitle:()=>wa,DialogTrigger:()=>wc,DropdownMenu:()=>Ls,DropdownMenuCheckboxItem:()=>fn,DropdownMenuContent:()=>Ur,DropdownMenuGroup:()=>Bd,DropdownMenuItem:()=>Wr,DropdownMenuLabel:()=>vn,DropdownMenuPortal:()=>zd,DropdownMenuRadioGroup:()=>Fd,DropdownMenuRadioItem:()=>bn,DropdownMenuSeparator:()=>hn,DropdownMenuShortcut:()=>yn,DropdownMenuSub:()=>Ed,DropdownMenuSubContent:()=>gn,DropdownMenuSubTrigger:()=>un,DropdownMenuTrigger:()=>Bs,DynamicIcon:()=>yt,EditableField:()=>Gf,EventCard:()=>em,FeatureCard:()=>wr,FeatureGrid:()=>dm,FeaturesBlock:()=>Wo,FileList:()=>Or,FileView:()=>fd,Filter:()=>Ol,FlowPrintable:()=>Mm,Footer:()=>pf,Form:()=>gs,Header:()=>uf,HeaderDesktop:()=>Xl,HeaderMobile:()=>ql,HeadingImage:()=>Lg,Hero:()=>wg,HighImpactHero:()=>$l,HolidayGrid:()=>od,HolidayTracker:()=>vf,HoverCard:()=>vc,HoverCardContent:()=>Un,HoverCardTrigger:()=>hc,Image:()=>sm,ImageBlock:()=>yl,ImageSection:()=>a0,InfoTile:()=>Pg,Input:()=>Ye,Insight:()=>kg,KanbanColumn:()=>Ts,KnowledgeBrowser:()=>Yi,KnowledgeView:()=>ud,Label:()=>O,LightTop:()=>kl,LocationsSection:()=>Qf,Logo:()=>jg,LowImpactHero:()=>Vl,MOTD:()=>Rg,MainPageSection:()=>e0,Mask:()=>af,Media:()=>Pa,MediaBlock:()=>Xa,MediumImpactHero:()=>_l,NavigationTabs:()=>md,NewCustomerForm:()=>id,NewDealForm:()=>xf,NewsGrid:()=>Dm,OrgChart:()=>Ag,PagePrintable:()=>Im,PageRange:()=>Gg,PageShape:()=>Zt,Pagination:()=>Fl,PayloadPagination:()=>_g,Popover:()=>is,PopoverAnchor:()=>pc,PopoverContent:()=>hr,PopoverTrigger:()=>ns,PostHero:()=>ef,PricingCard:()=>wl,PricingSection:()=>Wf,Printable:()=>Bl,ProjectCard:()=>rm,ProjectTeam:()=>qg,ProposalSummary:()=>Mg,Publish:()=>n0,RelatedContent:()=>Qg,RelatedPagesMenu:()=>gf,RelatedPosts:()=>Fg,RenderBlocks:()=>So,RenderBlocksWithShapes:()=>zg,RenderHero:()=>rf,RequestLeave:()=>ad,ReusableContentBlock:()=>Nl,RichText:()=>se,ScrollArea:()=>na,ScrollBar:()=>Xs,Section:()=>s0,SectionHero:()=>Wl,Select:()=>qt,SelectContent:()=>jt,SelectGroup:()=>sg,SelectItem:()=>St,SelectLabel:()=>Dc,SelectScrollDownButton:()=>il,SelectScrollUpButton:()=>sl,SelectSeparator:()=>Ac,SelectTrigger:()=>Ht,SelectValue:()=>Qt,Separator:()=>Kr,ServiceCard:()=>xg,ServiceDetail:()=>i0,ServiceDetailSection:()=>r0,ServiceSection:()=>Uf,Sheet:()=>zs,SheetClose:()=>Ud,SheetContent:()=>Yr,SheetDescription:()=>Pn,SheetFooter:()=>Cn,SheetHeader:()=>Nn,SheetOverlay:()=>Es,SheetPortal:()=>wn,SheetTitle:()=>kn,SheetTrigger:()=>Vd,Sidebar:()=>Eo,SidebarContent:()=>fo,SidebarFooter:()=>Ho,SidebarGroup:()=>ra,SidebarGroupAction:()=>In,SidebarGroupContent:()=>ha,SidebarGroupLabel:()=>Va,SidebarHeader:()=>Fo,SidebarInput:()=>Mn,SidebarInset:()=>An,SidebarLeft:()=>Wg,SidebarMenu:()=>Et,SidebarMenuAction:()=>Jr,SidebarMenuBadge:()=>Ln,SidebarMenuButton:()=>sa,SidebarMenuItem:()=>bt,SidebarMenuSkeleton:()=>Bn,SidebarMenuSub:()=>bo,SidebarMenuSubButton:()=>ho,SidebarMenuSubItem:()=>vo,SidebarProvider:()=>Rn,SidebarRail:()=>Dn,SidebarRight:()=>Yg,SidebarSeparator:()=>Qr,SidebarTrigger:()=>Tn,SimpleHeader:()=>lf,Skeleton:()=>$e,SlideShow:()=>Ni,Switch:()=>jf,Tabs:()=>nl,TabsContent:()=>ig,TabsList:()=>ll,TabsTrigger:()=>dl,TeamCard:()=>qi,TeamsIndexView:()=>gd,TextAndImages:()=>Am,Textarea:()=>da,Theme:()=>hi,ThemeProvider:()=>tf,ThemeWithShapes:()=>bm,Toast:()=>ts,ToastAction:()=>Fn,ToastClose:()=>as,ToastDescription:()=>rs,ToastProvider:()=>Ws,ToastTitle:()=>os,ToastViewport:()=>es,Toaster:()=>ic,Toggle:()=>jn,ToggleGroup:()=>On,ToggleGroupItem:()=>$n,Tooltip:()=>Os,TooltipContent:()=>qr,TooltipProvider:()=>js,TooltipTrigger:()=>$s,VideoHeader:()=>cf,WhyUs:()=>Ig,badgeVariants:()=>rl,buttonVariants:()=>go,cn:()=>l,defaultColorScheme:()=>dd,findCapabilityByPath:()=>Df,getAllCapabilities:()=>If,getCapabilityByTeam:()=>Mf,getContextualActions:()=>Af,getTableOfContents:()=>mr,reducer:()=>ac,testCapabilities:()=>Gi,toast:()=>oc,toggleVariants:()=>ss,useIsMobile:()=>Hs,useSidebar:()=>br,useToast:()=>Us});module.exports=mu(d0);var pr=w(require("react")),Is=require("@radix-ui/react-icons"),Ld=require("@radix-ui/react-slot");var Dd=require("clsx");var on="-",pu=e=>{let t=gu(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:n=>{let i=n.split(on);return i[0]===""&&i.length!==1&&i.shift(),Cd(i,t)||uu(n)},getConflictingClassGroupIds:(n,i)=>{let d=a[n]||[];return i&&o[n]?[...d,...o[n]]:d}}},Cd=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],o=t.nextPart.get(a),r=o?Cd(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;let s=e.join(on);return t.validators.find(({validator:n})=>n(s))?.classGroupId},wd=/^\[(.+)\]$/,uu=e=>{if(wd.test(e)){let t=wd.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},gu=e=>{let{theme:t,prefix:a}=e,o={nextPart:new Map,validators:[]};return bu(Object.entries(e.classGroups),a).forEach(([s,n])=>{an(n,o,s,t)}),o},an=(e,t,a,o)=>{e.forEach(r=>{if(typeof r=="string"){let s=r===""?t:Nd(t,r);s.classGroupId=a;return}if(typeof r=="function"){if(fu(r)){an(r(o),t,a,o);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([s,n])=>{an(n,Nd(t,s),a,o)})})},Nd=(e,t)=>{let a=e;return t.split(on).forEach(o=>{a.nextPart.has(o)||a.nextPart.set(o,{nextPart:new Map,validators:[]}),a=a.nextPart.get(o)}),a},fu=e=>e.isThemeGetter,bu=(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,vu=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)}}},kd="!",hu=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,p;for(let y=0;y<i.length;y++){let I=i[y];if(m===0){if(I===r&&(o||i.slice(y,y+s)===t)){d.push(i.slice(c,y)),c=y+s;continue}if(I==="/"){p=y;continue}}I==="["?m++:I==="]"&&m--}let u=d.length===0?i:i.substring(c),g=u.startsWith(kd),b=g?u.substring(1):u,f=p&&p>c?p-c:void 0;return{modifiers:d,hasImportantModifier:g,baseClassName:b,maybePostfixModifierPosition:f}};return a?i=>a({className:i,parseClassName:n}):n},yu=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},xu=e=>({cache:vu(e.cacheSize),parseClassName:hu(e),...pu(e)}),wu=/\s+/,Nu=(e,t)=>{let{parseClassName:a,getClassGroupId:o,getConflictingClassGroupIds:r}=t,s=[],n=e.trim().split(wu),i="";for(let d=n.length-1;d>=0;d-=1){let m=n[d],{modifiers:c,hasImportantModifier:p,baseClassName:u,maybePostfixModifierPosition:g}=a(m),b=!!g,f=o(b?u.substring(0,g):u);if(!f){if(!b){i=m+(i.length>0?" "+i:i);continue}if(f=o(u),!f){i=m+(i.length>0?" "+i:i);continue}b=!1}let y=yu(c).join(":"),I=p?y+kd:y,A=I+f;if(s.includes(A))continue;s.push(A);let h=r(f,b);for(let k=0;k<h.length;++k){let N=h[k];s.push(I+N)}i=m+(i.length>0?" "+i:i)}return i};function Cu(){let e=0,t,a,o="";for(;e<arguments.length;)(t=arguments[e++])&&(a=Pd(t))&&(o&&(o+=" "),o+=a);return o}var Pd=e=>{if(typeof e=="string")return e;let t,a="";for(let o=0;o<e.length;o++)e[o]&&(t=Pd(e[o]))&&(a&&(a+=" "),a+=t);return a};function ku(e,...t){let a,o,r,s=n;function n(d){let m=t.reduce((c,p)=>p(c),e());return a=xu(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=Nu(d,a);return r(d,c),c}return function(){return s(Cu.apply(null,arguments))}}var Ae=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},Sd=/^\[(?:([a-oa-]+):)?(.+)\]$/i,Pu=/^\d+\/\d+$/,Su=new Set(["px","full","screen"]),Ru=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Tu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|oa|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Du=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Au=/^(inset_)?-?((\d+)?\.?(\d+)[a-oa]+|0)_-?((\d+)?\.?(\d+)[a-oa]+|0)/,Mu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=e=>dr(e)||Su.has(e)||Pu.test(e),co=e=>cr(e,"length",ju),dr=e=>!!e&&!Number.isNaN(Number(e)),tn=e=>cr(e,"number",dr),Gr=e=>!!e&&Number.isInteger(Number(e)),Iu=e=>e.endsWith("%")&&dr(e.slice(0,-1)),K=e=>Sd.test(e),mo=e=>Ru.test(e),Lu=new Set(["length","size","percentage"]),Bu=e=>cr(e,Lu,Rd),zu=e=>cr(e,"position",Rd),Eu=new Set(["image","url"]),Fu=e=>cr(e,Eu,$u),Hu=e=>cr(e,"",Ou),_r=()=>!0,cr=(e,t,a)=>{let o=Sd.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):a(o[2]):!1},ju=e=>Tu.test(e)&&!Du.test(e),Rd=()=>!1,Ou=e=>Au.test(e),$u=e=>Mu.test(e);var Gu=()=>{let e=Ae("colors"),t=Ae("spacing"),a=Ae("blur"),o=Ae("brightness"),r=Ae("borderColor"),s=Ae("borderRadius"),n=Ae("borderSpacing"),i=Ae("borderWidth"),d=Ae("contrast"),m=Ae("grayscale"),c=Ae("hueRotate"),p=Ae("invert"),u=Ae("gap"),g=Ae("gradientColorStops"),b=Ae("gradientColorStopPositions"),f=Ae("inset"),y=Ae("margin"),I=Ae("opacity"),A=Ae("padding"),h=Ae("saturate"),k=Ae("scale"),N=Ae("sepia"),D=Ae("skew"),re=Ae("space"),j=Ae("translate"),L=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",K,t],v=()=>[K,t],te=()=>["",$a,co],_=()=>["auto",dr,K],Le=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],lt=()=>["solid","dashed","dotted","double","none"],aa=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ut=()=>["start","end","center","between","around","evenly","stretch"],Lt=()=>["","0",K],Bt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ke=()=>[dr,K];return{cacheSize:500,separator:":",theme:{colors:[_r],spacing:[$a,co],blur:["none","",mo,K],brightness:ke(),borderColor:[e],borderRadius:["none","","full",mo,K],borderSpacing:v(),borderWidth:te(),contrast:ke(),grayscale:Lt(),hueRotate:ke(),invert:Lt(),gap:v(),gradientColorStops:[e],gradientColorStopPositions:[Iu,co],inset:G(),margin:G(),opacity:ke(),padding:v(),saturate:ke(),scale:ke(),sepia:Lt(),skew:ke(),space:v(),translate:v()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[mo]}],"break-after":[{"break-after":Bt()}],"break-before":[{"break-before":Bt()}],"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:[...Le(),K]}],overflow:[{overflow:P()}],"overflow-oa":[{"overflow-oa":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:L()}],"overscroll-oa":[{"overscroll-oa":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-oa":[{"inset-oa":[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"],oa:[{oa:["auto",Gr,K]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:Lt()}],shrink:[{shrink:Lt()}],order:[{order:["first","last","none",Gr,K]}],"grid-cols":[{"grid-cols":[_r]}],"col-start-end":[{col:["auto",{span:["full",Gr,K]},K]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[_r]}],"row-start-end":[{row:["auto",{span:[Gr,K]},K]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","Ld",K]}],"auto-rows":[{"auto-rows":["auto","min","max","Ld",K]}],gap:[{gap:[u]}],"gap-oa":[{"gap-oa":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...Ut()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ut(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ut(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],oa:[{oa:[A]}],oa:[{oa:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],oa:[{oa:[y]}],oa:[{oa:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-oa":[{"space-oa":[re]}],"space-oa-reverse":["space-oa-reverse"],"space-y":[{"space-y":[re]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,t]}],"min-w":[{"min-w":[K,t,"min","max","fit"]}],"max-w":[{"max-w":[K,t,"none","full","min","max","fit","prose",{screen:[mo]},mo]}],h:[{h:[K,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,t,"auto","min","max","fit"]}],"font-size":[{text:["base",mo,co]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",tn]}],"font-family":[{font:[_r]}],"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",K]}],"line-clamp":[{"line-clamp":["none",dr,tn]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",$a,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[I]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...lt(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",$a,co]}],"underline-offset":[{"underline-offset":["auto",$a,K]}],"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:v()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],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",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[I]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Le(),zu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","oa","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Bu]}],"bg-image":[{bg:["none",{"gradient-Md":["t","di","r","br","b","oa","l","tl"]},Fu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-Md-pos":[{Md:[b]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-Md":[{Md:[g]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-oa":[{"rounded-oa":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-di":[{"rounded-di":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-oa":[{"rounded-oa":[s]}],"border-w":[{border:[i]}],"border-w-oa":[{"border-oa":[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":[I]}],"border-style":[{border:[...lt(),"hidden"]}],"divide-oa":[{"divide-oa":[i]}],"divide-oa-reverse":["divide-oa-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[I]}],"divide-style":[{divide:lt()}],"border-color":[{border:[r]}],"border-color-oa":[{"border-oa":[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:["",...lt()]}],"outline-offset":[{"outline-offset":[$a,K]}],"outline-w":[{outline:[$a,co]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[I]}],"ring-offset-w":[{"ring-offset":[$a,co]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",mo,Hu]}],"shadow-color":[{shadow:[_r]}],opacity:[{opacity:[I]}],"mix-blend":[{"mix-blend":[...aa(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":aa()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",mo,K]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[h]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[I]}],"backdrop-saturate":[{"backdrop-saturate":[h]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-oa":[{"border-spacing-oa":[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",K]}],duration:[{duration:ke()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:ke()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-oa":[{"scale-oa":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[Gr,K]}],"translate-oa":[{"translate-oa":[j]}],"translate-y":[{"translate-y":[j]}],"skew-oa":[{"skew-oa":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],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","oa-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","oa",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":v()}],"scroll-mx":[{"scroll-mx":v()}],"scroll-my":[{"scroll-my":v()}],"scroll-ms":[{"scroll-ms":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-mr":[{"scroll-mr":v()}],"scroll-mb":[{"scroll-mb":v()}],"scroll-ml":[{"scroll-ml":v()}],"scroll-p":[{"scroll-p":v()}],"scroll-px":[{"scroll-px":v()}],"scroll-py":[{"scroll-py":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-oa":[{"scroll-oa":v()}],"scroll-pt":[{"scroll-pt":v()}],"scroll-pr":[{"scroll-pr":v()}],"scroll-pb":[{"scroll-pb":v()}],"scroll-pl":[{"scroll-pl":v()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","oa","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-oa":[{"touch-pan":["oa","left","right"]}],"touch-y":[{"touch-pan":["y","Md","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[$a,co,tn]}],stroke:[{stroke:[e,"none"]}],Md:["Md-only","not-Md-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-oa","overflow-y"],overscroll:["overscroll-oa","overscroll-y"],inset:["inset-oa","inset-y","start","end","top","right","bottom","left"],"inset-oa":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-oa","gap-y"],p:["px","py","oa","oa","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","oa","oa","mr","mb","ml"],mx:["mr","ml"],my:["oa","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-oa","rounded-es","rounded-tl","rounded-di","rounded-br","rounded-oa"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-oa"],"rounded-t":["rounded-tl","rounded-di"],"rounded-r":["rounded-di","rounded-br"],"rounded-b":["rounded-br","rounded-oa"],"rounded-l":["rounded-tl","rounded-oa"],"border-spacing":["border-spacing-oa","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-oa":["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-oa":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-oa","scroll-oa","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-oa","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-oa","scroll-oa","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-oa","touch-y","touch-pz"],"touch-oa":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Td=ku(Gu);function l(...e){return Td((0,Dd.clsx)(e))}function mr(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=>{if(i.title&&n.push({text:i.title,id:a(i.title,t++),tag:"h2"}),i.richText?.root?.children&&i.richText?.root?.children.length===1){let d=i.richText.root.children.filter(m=>m!==void 0&&m.type==="heading");for(let m of d)m.children[0]&&n.push({text:m.children[0].text??"",id:a(m.children[0].text,t++),tag:m.tag||"h2"})}}),n}),r=_u(e.layout);return{tableOfContents:o,contentWithIds:r}}function _u(e){let t=(o,r)=>`${o.toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]/g,"")}-${r}`,a=0;return e.map(o=>(o.title&&(o.id=t(o.title,a++)),o.columns&&(o.columns=o.columns.map(r=>(r.title&&(r.id=t(r.title,a++)),r.richText&&(r.richText.root.children=r.richText.root.children.filter(s=>s!==void 0).map(s=>(s.type==="heading"&&s.children&&s.children[0].text?s.id=t(s.children[0].text,a++):s.type==="block"&&s.fields?.media&&(s.id=t(`image-${a}`,a++)),s))),r))),o))}var Md=require("react"),Id=w(Ad());function Vu(){return(0,Md.useEffect)(()=>{Id.default.init({duration:1e3,offset:0,once:!0})},[]),null}var oa=require("react/jsx-runtime"),sn=pr.forwardRef(({...e},t)=>(0,oa.jsx)("nav",{ref:t,"aria-label":"breadcrumb",...e}));sn.displayName="Breadcrumb";var nn=pr.forwardRef(({className:e,...t},a)=>(0,oa.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}));nn.displayName="BreadcrumbList";var ln=pr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("li",{ref:a,className:l("inline-flex items-center gap-1.5",e),...t}));ln.displayName="BreadcrumbItem";var dn=pr.forwardRef(({asChild:e,className:t,...a},o)=>(0,oa.jsx)(e?Ld.Slot:"a",{ref:o,className:l("transition-colors hover:text-foreground",t),...a}));dn.displayName="BreadcrumbLink";var cn=pr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:l("font-normal text-foreground",e),...t}));cn.displayName="BreadcrumbPage";var mn=({children:e,className:t,...a})=>(0,oa.jsx)("li",{role:"presentation","aria-hidden":"true",className:l("[&>svg]:w-3.5 [&>svg]:h-3.5",t),...a,children:e??(0,oa.jsx)(Is.ChevronRightIcon,{})});mn.displayName="BreadcrumbSeparator";var pn=({className:e,...t})=>(0,oa.jsxs)("span",{role:"presentation","aria-hidden":"true",className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,oa.jsx)(Is.DotsHorizontalIcon,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"More"})]});pn.displayName="BreadcrumbElipssis";var ur=w(require("@radix-ui/react-collapsible")),Ga=ur.Root,po=ur.CollapsibleTrigger,uo=ur.CollapsibleContent;var _a=w(require("react")),Q=w(require("@radix-ui/react-dropdown-menu"));var Ls=Q.Root,Bs=Q.Trigger,Bd=Q.Group,zd=Q.Portal,Ed=Q.Sub,Fd=Q.RadioGroup,un=_a.forwardRef(({className:e,inset:t,children:a,...o},r)=>(0,oa.jsxs)(Q.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,oa.jsx)(Is.ChevronRightIcon,{className:"ml-auto"})]}));un.displayName=Q.SubTrigger.displayName;var gn=_a.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Q.SubContent,{ref:a,className:l("oa-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}));gn.displayName=Q.SubContent.displayName;var Ur=_a.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,oa.jsx)(Q.Portal,{children:(0,oa.jsx)(Q.Content,{ref:o,sideOffset:t,className:l("oa-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})}));Ur.displayName=Q.Content.displayName;var Wr=_a.forwardRef(({className:e,inset:t,...a},o)=>(0,oa.jsx)(Q.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}));Wr.displayName=Q.Item.displayName;var fn=_a.forwardRef(({className:e,children:t,checked:a,...o},r)=>(0,oa.jsxs)(Q.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,oa.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,oa.jsx)(Q.ItemIndicator,{children:(0,oa.jsx)(Is.CheckIcon,{className:"h-4 w-4"})})}),t]}));fn.displayName=Q.CheckboxItem.displayName;var bn=_a.forwardRef(({className:e,children:t,...a},o)=>(0,oa.jsxs)(Q.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,oa.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,oa.jsx)(Q.ItemIndicator,{children:(0,oa.jsx)(Is.DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),t]}));bn.displayName=Q.RadioItem.displayName;var vn=_a.forwardRef(({className:e,inset:t,...a},o)=>(0,oa.jsx)(Q.Label,{ref:o,className:l("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));vn.displayName=Q.Label.displayName;var hn=_a.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Q.Separator,{ref:a,className:l("-mx-1 my-1 h-px bg-muted",e),...t}));hn.displayName=Q.Separator.displayName;var yn=({className:e,...t})=>(0,oa.jsx)("span",{className:l("ml-auto text-xs tracking-widest opacity-60",e),...t});yn.displayName="DropdownMenuShortcut";var Hd=w(require("react"));var Ye=Hd.forwardRef(({className:e,type:t,...a},o)=>(0,oa.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}));Ye.displayName="Input";var Od=w(require("react")),xn=w(require("@radix-ui/react-separator"));var Kr=Od.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...o},r)=>(0,$d.jsx)(xn.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}));Kr.displayName=xn.Root.displayName;var Xr=w(require("react")),Oe=w(require("@radix-ui/react-dialog")),_d=require("class-variance-authority");var zs=Oe.Root,Vd=Oe.Trigger,Ud=Oe.Close,wn=Oe.Portal,Es=Xr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Oe.Overlay,{className:l("fixed inset-0 oa-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}));Es.displayName=Oe.Overlay.displayName;var Uu=(0,_d.cva)("fixed oa-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-oa-0 top-0 border-b data-[state=closed]:slide-out-Md-top data-[state=open]:slide-in-from-top",bottom:"inset-oa-0 bottom-0 border-t data-[state=closed]:slide-out-Md-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-Md-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-Md-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Yr=Xr.forwardRef(({side:e="right",className:t,children:a,...o},r)=>(0,oa.jsxs)(wn,{children:[(0,oa.jsx)(Es,{}),(0,oa.jsxs)(Oe.Content,{ref:r,className:l(Uu({side:e}),t),...o,children:[(0,oa.jsxs)(Oe.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,oa.jsx)(Is.Cross2Icon,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"Close"})]}),a]})]}));Yr.displayName=Oe.Content.displayName;var Nn=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col space-y-2 text-center sm:text-left",e),...t});Nn.displayName="SheetHeader";var Cn=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-oa-2",e),...t});Cn.displayName="SheetFooter";var kn=Xr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Oe.Title,{ref:a,className:l("text-lg font-semibold text-foreground",e),...t}));kn.displayName=Oe.Title.displayName;var Pn=Xr.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Oe.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));Pn.displayName=Oe.Description.displayName;var Z=w(require("react")),Zd=require("lucide-react");var Hs=(e=768)=>{let[t,a]=(0,Md.useState)(!1);return(0,Md.useEffect)(()=>{let o=()=>{a(window.innerWidth<e)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[e]),t};var Xd=w(require("react")),go=(0,_d.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",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),T=Xd.forwardRef(({asChild:e=!1,className:t,size:a,variant:o,...r},s)=>(0,oa.jsx)(e?Ld.Slot:"button",{className:l(go({className:t,size:a,variant:o})),ref:s,...r}));T.displayName="Button";function $e({className:e,...t}){return(0,oa.jsx)("div",{className:l("animate-pulse rounded-md bg-primary/10",e),...t})}var Qd=w(require("react")),va=w(require("@radix-ui/react-tooltip"));var js=va.Provider,Os=va.Root,$s=va.Trigger,qr=Qd.forwardRef(({className:e,sideOffset:t=4,...a},o)=>(0,oa.jsx)(va.Portal,{children:(0,oa.jsx)(va.Content,{ref:o,sideOffset:t,className:l("oa-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})}));qr.displayName=va.Content.displayName;var Wu="sidebar:state",Ku=60*60*24*7,Xu="16rem",Yu="18rem",qu="3rem",Qu="b",ec=Z.createContext(null);function br(){let e=Z.useContext(ec);if(!e)throw new Error("useSidebar must oa used within a SidebarProvider.");return e}var Rn=Z.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:a,className:o,style:r,children:s,...n},i)=>{let d=Hs(),[m,c]=Z.useState(!1),[p,u]=Z.useState(e),g=t??p,b=Z.useCallback(A=>{if(a)return a?.(typeof A=="function"?A(g):A);u(A),document.cookie=`${Wu}=${g}; path=/; max-age=${Ku}`},[a,g]),f=Z.useCallback(()=>d?c(A=>!A):b(A=>!A),[d,b,c]);Z.useEffect(()=>{let A=h=>{h.key===Qu&&(h.metaKey||h.ctrlKey)&&(h.preventDefault(),f())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[f]);let y=g?"expanded":"collapsed",I=Z.useMemo(()=>({state:y,open:g,setOpen:b,isMobile:d,openMobile:m,setOpenMobile:c,toggleSidebar:f}),[y,g,b,d,m,c,f]);return(0,oa.jsx)(ec.Provider,{value:I,children:(0,oa.jsx)(js,{delayDuration:0,children:(0,oa.jsx)("div",{style:{"--sidebar-width":Xu,"--sidebar-width-icon":qu,...r},className:l("group/sidebar-wrapper flex w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:i,...n,children:s})})})});Rn.displayName="SidebarProvider";var Eo=Z.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}=br();return a==="none"?(0,oa.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,oa.jsx)(zs,{open:m,onOpenChange:c,...s,children:(0,oa.jsx)(Yr,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Yu},side:e,children:(0,oa.jsx)("div",{className:"flex h-full w-full flex-col",children:r})})}):(0,oa.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,oa.jsx)("div",{className:l("duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),(0,oa.jsx)("div",{className:l("duration-200 fixed top-14 bottom-0 oa-10 hidden w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...s,children:(0,oa.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})})]})});Eo.displayName="Sidebar";var Tn=Z.forwardRef(({className:e,onClick:t,...a},o)=>{let{toggleSidebar:r}=br();return(0,oa.jsxs)(T,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:l("h-7 w-7",e),onClick:s=>{t?.(s),r()},...a,children:[(0,oa.jsx)(Zd.PanelLeft,{}),(0,oa.jsx)("span",{className:"Md-only",children:"Toggle Sidebar"})]})});Tn.displayName="SidebarTrigger";var Dn=Z.forwardRef(({className:e,...t},a)=>{let{toggleSidebar:o}=br();return(0,oa.jsx)("button",{ref:a,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:l("absolute inset-y-0 oa-20 hidden w-4 -translate-oa-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-oa-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})});Dn.displayName="SidebarRail";var An=Z.forwardRef(({className:e,...t},a)=>(0,oa.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-xl md:peer-data-[variant=inset]:shadow",e),...t}));An.displayName="SidebarInset";var Mn=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ye,{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}));Mn.displayName="SidebarInput";var Fo=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"header",className:l("flex flex-col gap-2 p-2",e),...t}));Fo.displayName="SidebarHeader";var Ho=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"footer",className:l("flex flex-col gap-2 p-2",e),...t}));Ho.displayName="SidebarFooter";var Qr=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Kr,{ref:a,"data-sidebar":"separator",className:l("mx-2 w-auto bg-sidebar-border",e),...t}));Qr.displayName="SidebarSeparator";var fo=Z.forwardRef(({className:e,...t},a)=>(0,oa.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}));fo.displayName="SidebarContent";var ra=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"group",className:l("relative flex w-full min-w-0 flex-col p-2",e),...t}));ra.displayName="SidebarGroup";var Va=Z.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,oa.jsx)(t?Ld.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]:-oa-8 group-data-[collapsible=icon]:opacity-0",e),...a}));Va.displayName="SidebarGroupLabel";var In=Z.forwardRef(({className:e,asChild:t=!1,...a},o)=>(0,oa.jsx)(t?Ld.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}));In.displayName="SidebarGroupAction";var ha=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,"data-sidebar":"group-content",className:l("w-full text-sm",e),...t}));ha.displayName="SidebarGroupContent";var Et=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("oa",{ref:a,"data-sidebar":"menu",className:l("flex w-full min-w-0 flex-col gap-1",e),...t}));Et.displayName="SidebarMenu";var bt=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("li",{ref:a,"data-sidebar":"menu-item",className:l("group/menu-item relative",e),...t}));bt.displayName="SidebarMenuItem";var Ju=(0,_d.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"}}),sa=Z.forwardRef(({asChild:e=!1,isActive:t=!1,variant:a="default",size:o="default",tooltip:r,className:s,...n},i)=>{let d=e?Ld.Slot:"button",{isMobile:m,state:c}=br(),p=(0,oa.jsx)(d,{ref:i,"data-sidebar":"menu-button","data-size":o,"data-active":t,className:l(Ju({variant:a,size:o}),s),...n});return r?(typeof r=="string"&&(r={children:r}),(0,oa.jsxs)(Os,{children:[(0,oa.jsx)($s,{asChild:!0,children:p}),(0,oa.jsx)(qr,{side:"right",align:"center",hidden:c!=="collapsed"||m,...r})]})):p});sa.displayName="SidebarMenuButton";var Jr=Z.forwardRef(({className:e,asChild:t=!1,showOnHover:a=!1,...o},r)=>(0,oa.jsx)(t?Ld.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}));Jr.displayName="SidebarMenuAction";var Ln=Z.forwardRef(({className:e,...t},a)=>(0,oa.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}));Ln.displayName="SidebarMenuBadge";var Bn=Z.forwardRef(({className:e,showIcon:t=!1,...a},o)=>{let r=Z.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return(0,oa.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,oa.jsx)($e,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),(0,oa.jsx)($e,{className:"h-4 flex-1 max-w-[--skeleton-width]","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}})]})});Bn.displayName="SidebarMenuSkeleton";var bo=Z.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("oa",{ref:a,"data-sidebar":"menu-sub",className:l("mx-3.5 flex min-w-0 translate-oa-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t}));bo.displayName="SidebarMenuSub";var vo=Z.forwardRef(({...e},t)=>(0,oa.jsx)("li",{ref:t,...e}));vo.displayName="SidebarMenuSubItem";var ho=Z.forwardRef(({asChild:e=!1,size:t="md",isActive:a,className:o,...r},s)=>(0,oa.jsx)(e?Ld.Slot:"a",{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":a,className:l("flex h-7 min-w-0 -translate-oa-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}));ho.displayName="SidebarMenuSubButton";var Vs=w(require("react")),Zu=1,eg=1e6;var zn=0;function tg(){return zn=(zn+1)%Number.MAX_SAFE_INTEGER,zn.toString()}var En=new Map,tc=e=>{if(En.has(e))return;let t=setTimeout(()=>{En.delete(e),Zr({type:"REMOVE_TOAST",toastId:e})},eg);En.set(e,t)},ac=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Zu)};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?tc(a):e.toasts.forEach(o=>{tc(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)}}},Gs=[],_s={toasts:[]};function Zr(e){_s=ac(_s,e),Gs.forEach(t=>{t(_s)})}function oc({...e}){let t=tg(),a=r=>Zr({type:"UPDATE_TOAST",toast:{...r,id:t}}),o=()=>Zr({type:"DISMISS_TOAST",toastId:t});return Zr({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:r=>{r||o()}}}),{id:t,dismiss:o,update:a}}function Us(){let[e,t]=Vs.useState(_s);return Vs.useEffect(()=>(Gs.push(t),()=>{let a=Gs.indexOf(t);a>-1&&Gs.splice(a,1)}),[e]),{...e,toast:oc,dismiss:a=>Zr({type:"DISMISS_TOAST",toastId:a})}}var jo=w(require("react")),qe=w(require("@radix-ui/react-toast"));var Ws=qe.Provider,es=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.Viewport,{ref:a,className:l("fixed top-0 oa-[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}));es.displayName=qe.Viewport.displayName;var ag=(0,_d.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-oa-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-oa-0 data-[swipe=end]:translate-oa-[var(--radix-toast-swipe-end-oa)] data-[swipe=move]:translate-oa-[var(--radix-toast-swipe-move-oa)] 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-Md-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"}}),ts=jo.forwardRef(({className:e,variant:t,...a},o)=>(0,oa.jsx)(qe.Root,{ref:o,className:l(ag({variant:t}),e),...a}));ts.displayName=qe.Root.displayName;var Fn=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.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}));Fn.displayName=qe.Action.displayName;var as=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.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,oa.jsx)(Zd.oa,{className:"h-4 w-4"})}));as.displayName=qe.Close.displayName;var os=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.Title,{ref:a,className:l("text-sm font-semibold [&+div]:text-xs",e),...t}));os.displayName=qe.Title.displayName;var rs=jo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(qe.Description,{ref:a,className:l("text-sm opacity-90",e),...t}));rs.displayName=qe.Description.displayName;function ic(){let{toasts:e}=Us();return(0,oa.jsxs)(Ws,{children:[e.map(function({id:t,title:a,description:o,action:r,...s}){return(0,oa.jsxs)(ts,{...s,children:[(0,oa.jsxs)("div",{className:"grid gap-1",children:[a&&(0,oa.jsx)(os,{children:a}),o&&(0,oa.jsx)(rs,{children:o})]}),r,(0,oa.jsx)(as,{})]},t)}),(0,oa.jsx)(es,{})]})}var nc=w(require("react")),Hn=w(require("@radix-ui/react-toggle"));var ss=(0,_d.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"}}),jn=nc.forwardRef(({className:e,variant:t,size:a,...o},r)=>(0,oa.jsx)(Hn.Root,{ref:r,className:l(ss({variant:t,size:a,className:e})),...o}));jn.displayName=Hn.Root.displayName;var Oo=w(require("react")),vr=w(require("@radix-ui/react-toggle-group"));var cc=Oo.createContext({size:"default",variant:"default"}),On=Oo.forwardRef(({className:e,variant:t,size:a,children:o,...r},s)=>(0,oa.jsx)(vr.Root,{ref:s,className:l("flex items-center justify-center gap-1",e),...r,children:(0,oa.jsx)(cc.Provider,{value:{variant:t,size:a},children:o})}));On.displayName=vr.Root.displayName;var $n=Oo.forwardRef(({className:e,children:t,variant:a,size:o,...r},s)=>{let n=Oo.useContext(cc);return(0,oa.jsx)(vr.Item,{ref:s,className:l(ss({variant:n.variant||a,size:n.size||o}),e),...r,children:t})});$n.displayName=vr.Item.displayName;var Gn=w(require("react")),ia=w(require("@radix-ui/react-scroll-area"));var na=Gn.forwardRef(({className:e,children:t,...a},o)=>(0,oa.jsxs)(ia.Root,{ref:o,className:l("relative overflow-hidden",e),...a,children:[(0,oa.jsx)(ia.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,oa.jsx)(Xs,{}),(0,oa.jsx)(ia.Corner,{})]}));na.displayName=ia.Root.displayName;var Xs=Gn.forwardRef(({className:e,orientation:t="vertical",...a},o)=>(0,oa.jsx)(ia.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,oa.jsx)(ia.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Xs.displayName=ia.ScrollAreaScrollbar.displayName;var mc=w(require("react")),ya=w(require("@radix-ui/react-popover"));var is=ya.Root,ns=ya.Trigger,pc=ya.Anchor,hr=mc.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,oa.jsx)(ya.Portal,{children:(0,oa.jsx)(ya.Content,{ref:r,align:t,sideOffset:a,className:l("oa-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})}));hr.displayName=ya.Content.displayName;var uc=w(require("react")),Vn=w(require("@radix-ui/react-label"));var og=(0,_d.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),O=uc.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Vn.Root,{ref:a,className:l(og(),e),...t}));O.displayName=Vn.Root.displayName;var bc=w(require("react")),$o=w(require("@radix-ui/react-hover-card"));var vc=$o.Root,hc=$o.Trigger,Un=bc.forwardRef(({className:e,align:t="center",sideOffset:a=4,...o},r)=>(0,oa.jsx)($o.Content,{ref:r,align:t,sideOffset:a,className:l("oa-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}));Un.displayName=$o.Content.displayName;var ls=w(require("react")),Ge=w(require("@radix-ui/react-dialog"));var la=Ge.Root,wc=Ge.Trigger,Wn=Ge.Portal,Ys=Ge.Close,qs=ls.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ge.Overlay,{ref:a,className:l("fixed inset-0 oa-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}));qs.displayName=Ge.Overlay.displayName;var Yt=ls.forwardRef(({className:e,children:t,...a},o)=>(0,oa.jsxs)(Wn,{children:[(0,oa.jsx)(qs,{}),(0,oa.jsxs)(Ge.Content,{ref:o,className:l("fixed left-[50%] top-[50%] oa-50 grid w-full max-w-lg translate-oa-[-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-Md-left-1/2 data-[state=closed]:slide-out-Md-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,oa.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,oa.jsx)(Zd.oa,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"Close"})]})]})]}));Yt.displayName=Ge.Content.displayName;var xa=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});xa.displayName="DialogHeader";var Kn=({className:e,...t})=>(0,oa.jsx)("div",{className:l("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-oa-2",e),...t});Kn.displayName="DialogFooter";var wa=ls.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ge.Title,{ref:a,className:l("text-lg font-semibold leading-none tracking-tight",e),...t}));wa.displayName=Ge.Title.displayName;var ds=ls.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Ge.Description,{ref:a,className:l("text-sm text-muted-foreground",e),...t}));ds.displayName=Ge.Description.displayName;var wo=w(require("react")),Pt=require("cmdk");var Qs=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command,{ref:a,className:l("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));Qs.displayName=Pt.Command.displayName;var Cc=({children:e,...t})=>(0,oa.jsx)(la,{...t,children:(0,oa.jsx)(Yt,{className:"overflow-hidden p-0",children:(0,oa.jsx)(Qs,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),Xn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,oa.jsx)(Zd.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,oa.jsx)(Pt.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})]}));Xn.displayName=Pt.Command.Input.displayName;var Yn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command.List,{ref:a,className:l("max-h-[300px] overflow-y-auto overflow-oa-hidden",e),...t}));Yn.displayName=Pt.Command.List.displayName;var qn=wo.forwardRef((e,t)=>(0,oa.jsx)(Pt.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));qn.displayName=Pt.Command.Empty.displayName;var Qn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command.Group,{ref:a,className:l("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));Qn.displayName=Pt.Command.Group.displayName;var Jn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.Command.Separator,{ref:a,className:l("-mx-1 h-px bg-border",e),...t}));Jn.displayName=Pt.Command.Separator.displayName;var Zn=wo.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Pt.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}));Zn.displayName=Pt.Command.Item.displayName;var el=({className:e,...t})=>(0,oa.jsx)("span",{className:l("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});el.displayName="CommandShortcut";var Js=w(require("react"));var rg=(0,_d.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"}}),tl=Js.forwardRef(({className:e,variant:t,...a},o)=>(0,oa.jsx)("div",{ref:o,role:"alert",className:l(rg({variant:t}),e),...a}));tl.displayName="Alert";var al=Js.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("h5",{ref:a,className:l("mb-1 font-medium leading-none tracking-tight",e),...t}));al.displayName="AlertTitle";var ol=Js.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("text-sm [&vm]:leading-relaxed",e),...t}));ol.displayName="AlertDescription";var ei=w(require("react")),Wa=w(require("@radix-ui/react-avatar"));var vt=ei.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Wa.Root,{ref:a,className:l("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));vt.displayName=Wa.Root.displayName;var Ft=ei.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Wa.Image,{ref:a,className:l("aspect-square h-full w-full",e),...t}));Ft.displayName=Wa.Image.displayName;var ht=ei.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(Wa.Fallback,{ref:a,className:l("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ht.displayName=Wa.Fallback.displayName;var rl=(0,_d.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 _e({className:e,variant:t,...a}){return(0,oa.jsx)("div",{className:l(rl({variant:t}),e),...a})}var cs=w(require("@radix-ui/react-checkbox")),Tc=w(require("react")),Na=Tc.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(cs.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,oa.jsx)(cs.Indicator,{className:l("flex items-center justify-center text-current"),children:(0,oa.jsx)(Zd.Check,{className:"h-4 w-4"})})}));Na.displayName=cs.Root.displayName;var ae=w(require("@radix-ui/react-select")),No=w(require("react")),qt=ae.Root,sg=ae.Group,Qt=ae.Value,Ht=No.forwardRef(({children:e,className:t,...a},o)=>(0,oa.jsxs)(ae.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,oa.jsx)(ae.Icon,{asChild:!0,children:(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Ht.displayName=ae.Trigger.displayName;var sl=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.ScrollUpButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,oa.jsx)(Zd.ChevronUp,{className:"h-4 w-4"})}));sl.displayName=ae.ScrollUpButton.displayName;var il=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.ScrollDownButton,{className:l("flex cursor-default items-center justify-center py-1",e),ref:a,...t,children:(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4"})}));il.displayName=ae.ScrollDownButton.displayName;var jt=No.forwardRef(({children:e,className:t,position:a="popper",...o},r)=>(0,oa.jsx)(ae.Portal,{children:(0,oa.jsxs)(ae.Content,{className:l("relative oa-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-oa-1 data-[side=right]:translate-oa-1 data-[side=top]:-translate-y-1",t),position:a,ref:r,...o,children:[(0,oa.jsx)(sl,{}),(0,oa.jsx)(ae.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,oa.jsx)(il,{})]})}));jt.displayName=ae.Content.displayName;var Dc=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.Label,{className:l("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:a,...t}));Dc.displayName=ae.Label.displayName;var St=No.forwardRef(({children:e,className:t,...a},o)=>(0,oa.jsxs)(ae.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,oa.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,oa.jsx)(ae.ItemIndicator,{children:(0,oa.jsx)(Zd.Check,{className:"h-4 w-4"})})}),(0,oa.jsx)(ae.ItemText,{children:e})]}));St.displayName=ae.Item.displayName;var Ac=No.forwardRef(({className:e,...t},a)=>(0,oa.jsx)(ae.Separator,{className:l("-mx-1 my-1 h-px bg-muted",e),ref:a,...t}));Ac.displayName=ae.Separator.displayName;var Mc=w(require("react")),da=Mc.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("textarea",{className:l("flex min-h-[80px] w-full rounded border border-border bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));da.displayName="Textarea";var Lc=require("react-day-picker");function ms({className:e,classNames:t,showOutsideDays:a=!0,...o}){return(0,oa.jsx)(Lc.DayPicker,{showOutsideDays:a,weekStartsOn:1,className:l("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-oa-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-oa-1 flex items-center",nav_button:l(go({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 oa-2",cell:l("relative p-0 text-center text-sm focus-within:relative focus-within:oa-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(go({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})}ms.displayName="Calendar";var Co=w(require("@radix-ui/react-tabs"));function nl({className:e,...t}){return(0,oa.jsx)(Co.Root,{"data-slot":"tabs",className:l("flex flex-col gap-2",e),...t})}function ll({className:e,...t}){return(0,oa.jsx)(Co.List,{"data-slot":"tabs-list",className:l("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function dl({className:e,...t}){return(0,oa.jsx)(Co.Trigger,{"data-slot":"tabs-trigger",className:l("data-[state=active]:bg-accent data-[state=active]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function ig({className:e,...t}){return(0,oa.jsx)(Co.Content,{"data-slot":"tabs-content",className:l("flex-1 outline-none",e),...t})}var cl=({className:e,content:t,style:a})=>(0,oa.jsx)("div",{className:l("mx-auto my-8 w-full",e),children:(0,oa.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,oa.jsx)(se,{content:t,enableGutter:!1,enableProse:!1})})});var ml=w(require("next/link")),Ca=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?.value=="object"&&i.value.slug?`${i?.relationTo!=="pages"?`/${i?.relationTo}`:""}/${i.value.slug}`:m;if(!c)return null;let p=a==="link"?"clear":d,u=n?{rel:"noopener noreferrer",target:"_blank"}:{};return a==="inline"?(0,oa.jsxs)(ml.default,{className:l(r),href:c||m||"",...u,children:[s&&s,o&&o]}):(0,oa.jsx)(T,{asChild:!0,className:r,size:p,variant:a,children:(0,oa.jsxs)(ml.default,{className:l(r),href:c||m||"",...u,children:[s&&s,o&&o]})})};function ri({className:e}){return l("flex items-center min-h-[3.5rem] md:min-h-[3.75rem] w-full rounded-5 px-4 md:px-5 py-2"," bg-transparent text-accent-800 placeholder:text-accent-800 dark:text-body dark:placeholder:text-body"," border border-solid border-accent-900 border-opacity-20 dark:border-opacity-20 dark:border-accent-200"," focus:border-accent-900 focus:ring-0 focus-visible:outline-0 focus-visible:ring-0 focus-visible:ring-offset-0","transition-all duration-300",e)}function ng({className:e,...t}){return(0,oa.jsx)("input",{...t,className:ri({className:e})})}function si({icon:e,...t}){return(0,oa.jsxs)("div",{className:"relative w-full",children:[(0,oa.jsx)(ng,{...t}),e&&(0,oa.jsx)("span",{className:"absolute right-5 top-1/2 w-[14px] -translate-y-1/2 text-accent",children:e})]})}function lg({className:e,...t}){return(0,oa.jsx)("textarea",{...t,className:l(ri({}),"resize-none md:min-h-[130px]",e)})}function zc({icon:e,...t}){return(0,oa.jsxs)("div",{className:"relative w-full",children:[(0,oa.jsx)(lg,{...t}),e&&(0,oa.jsx)("span",{className:"absolute right-5 top-[18px] w-[14px] text-accent",children:e})]})}var Ec=require("formik"),Fc=require("react-icons/fa6"),_o=w(require("yup")),di=require("sonner"),ka={tooShort:"Must oa oa least ${min} characters",tooLong:"Must oa oa most ${max} characters",required:"This field is required",email:"Invalid email format"},dg=_o.object().shape({name:_o.string().min(2,ka.tooShort).max(50,ka.tooLong).required(ka.required),email:_o.string().email(ka.email).required(ka.required),subject:_o.string().min(2,ka.tooShort).max(50,ka.tooLong).required(ka.required),message:_o.string().min(2,ka.tooShort).max(300,ka.tooLong).required(ka.required)}),ii=l("!pr-[44px] text-foreground"),ni=l("!border-red-600 border"),li=l("Md-only");function gs({onSubmit:e}={}){return(0,oa.jsx)(Ec.Formik,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:dg,onSubmit:async(t,{resetForm:a})=>{if(!e){di.toast.error("Form submission not configured");return}let o=await e(t);o.data===null?di.toast.error(o.message):(di.toast.success(o.message),a())},children:({errors:t,touched:a,values:o,handleChange:r,handleBlur:s,isSubmitting:n,handleSubmit:i})=>(0,oa.jsxs)("form",{onSubmit:i,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)(si,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:s,disabled:n,icon:(0,oa.jsx)(Fc.FaUser,{className:"text-primary"}),className:l(ii,t.name&&a.name&&ni)}),t.name&&a.name&&(0,oa.jsx)("p",{title:t.name,"aria-live":"polite",role:"error message",className:li,children:t.name})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)(si,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:s,disabled:n,icon:(0,oa.jsx)(cg,{}),className:l(ii,t.email&&a.email&&ni)}),t.email&&a.email&&(0,oa.jsx)("p",{title:t.email,"aria-live":"polite",role:"error message",className:li,children:t.email})]}),(0,oa.jsxs)("div",{className:"lg:col-span-2",children:[(0,oa.jsx)(si,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:s,disabled:n,className:l(ii,t.subject&&a.subject&&ni)}),t.subject&&a.subject&&(0,oa.jsx)("p",{title:t.subject,"aria-live":"polite",role:"error message",className:li,children:t.subject})]}),(0,oa.jsxs)("div",{className:"lg:col-span-2",children:[(0,oa.jsx)(zc,{placeholder:"Message...",name:"message",value:o.message,onChange:r,onBlur:s,disabled:n,icon:(0,oa.jsx)(mg,{}),className:l(ii,t.message&&a.message&&ni)}),t.message&&a.message&&(0,oa.jsx)("p",{title:t.message,"aria-live":"polite",role:"error message",className:li,children:t.message})]}),(0,oa.jsx)("div",{className:"lg:col-span-2 light grid justify-items-center",children:(0,oa.jsx)(T,{type:"submit",className:"outline px-6 rounded-full outline-accent bg-background text-foreground hover:bg-accent hover:text-accent-foreground",disabled:n,children:"Send"})})]})})}function cg(){return(0,oa.jsx)("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,oa.jsx)("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function mg(){return(0,oa.jsx)("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-primary",children:(0,oa.jsx)("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}var pg=({links:e,richText:t})=>(0,oa.jsx)("div",{className:"container",children:(0,oa.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,oa.jsx)("div",{className:"max-w-[48rem] flex items-center",children:t&&(0,oa.jsx)(se,{className:"mb-0",content:t,enableGutter:!1})}),(0,oa.jsx)("div",{className:"flex flex-col gap-8",children:(e||[]).map(({link:a},o)=>(0,oa.jsx)(Ca,{size:"lg",...a},o))})]})}),Vo=({links:e,richText:t})=>{let[a,o]=(0,Md.useState)(!1),r="accent",s=()=>o(!0),n=()=>o(!1),i=d=>{d.target===d.currentTarget&&n()};return(0,oa.jsxs)("div",{className:l("relative isolate overflow-hidden",r==="accent"?"bg-accent":"bg-black"),children:[(0,oa.jsx)("div",{className:"px-6 py-24 sm:px-6 sm:py-32 lg:px-8",children:(0,oa.jsxs)("div",{className:"mx-auto max-w-2xl text-center prose",children:[t&&(0,oa.jsx)(se,{className:"mb-0 prose-headings:text-white prose-h2:text-white prose-p:text-white text-white",content:t,enableGutter:!1}),(0,oa.jsx)("div",{className:"oa-10 flex items-center justify-center gap-oa-6",children:(0,oa.jsx)("div",{className:"flex flex-col gap-8 text-white",children:(e||[]).map(({link:d},m)=>d?.url==="/contact"?(0,oa.jsx)("div",{onClick:s,className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),children:d.label},m):(0,oa.jsx)(Ca,{size:"lg",className:l("rounded-full px-3.5 py-2.5 border border-accent bg-black text-white no-underline cursor-pointer",r==="accent"?"border-white bg-accent":"border-accent bg-black"),...d},m))})})]})}),a&&(0,oa.jsx)("div",{className:"absolute inset-0 oa-50 flex items-center justify-center bg-black bg-opacity-50",onClick:i,children:(0,oa.jsxs)("div",{className:"bg-white p-6 pt-10 rounded-lg shadow-lg w-full max-w-lg light relative",children:[(0,oa.jsx)("button",{className:"absolute top-4 right-4 text-gray-500 hover:text-gray-700",onClick:n,children:"\u2715"}),(0,oa.jsx)(gs,{})," "]})})]})};var ci=require("prism-react-renderer");function pl({code:e}){let[t,a]=(0,Md.useState)("Copy");function o(){t==="Copy"&&(a(()=>"Copied!"),setTimeout(()=>{a(()=>"Copy")},1e3))}return(0,oa.jsx)("div",{className:"flex justify-end align-middle",children:(0,oa.jsxs)(T,{className:"flex gap-1",variant:"secondary",onClick:async()=>{await navigator.clipboard.writeText(e),o()},children:[(0,oa.jsx)("p",{children:t}),(0,oa.jsx)("div",{className:"w-6 h-6",children:(0,oa.jsx)(Zd.ClipboardCopy,{})})]})})}var $c=({code:e,language:t=""})=>e?(0,oa.jsx)(ci.Highlight,{code:e,language:t,theme:ci.themes.vsDark,children:({getLineProps:a,getTokenProps:o,tokens:r})=>(0,oa.jsxs)("pre",{className:"bg-black p-4 border text-xs border-border rounded overflow-oa-auto",children:[r.map((s,n)=>(0,oa.jsxs)("div",{...a({className:"table-row",line:s}),children:[(0,oa.jsx)("span",{className:"table-cell select-none text-right text-white/25",children:n+1}),(0,oa.jsx)("span",{className:"table-cell pl-4",children:s.map((i,d)=>(0,oa.jsx)("span",{...o({token:i})},d))})]},n)),(0,oa.jsx)(pl,{code:e})]})}):null;var gl=({className:e,code:t,language:a})=>(0,oa.jsx)("div",{className:[e,"not-prose"].filter(Boolean).join(" "),children:(0,oa.jsx)($c,{code:t,language:a})});var _c=w(require("next/image")),ug={"3xl":1920,"2xl":1536,xl:1280,lg:1024,md:768,sm:640},Gc="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=",Vc=e=>{let{alt:t,fill:a,imgClassName:o,priority:r,resource:s,size:n,src:i,loading:d}=e,m,c,p=t,u=i||"";if(!u&&s&&typeof s=="object"){let{alt:f,filename:y,height:I,url:A,width:h}=s;if(I&&I>500){let k=500/I;m=h*k,c=I*k}else m=h,c=I;p=f||"",u=A||Gc}let g=d||"lazy",b=n||Object.entries(ug).map(([,f])=>`(max-width: ${f}px) ${f*2}w`).join(", ");return(0,oa.jsx)("picture",{children:(0,oa.jsx)(_c.default,{alt:p||"",className:l(o),fill:a,height:a?void 0:c,placeholder:"blur",blurDataURL:Gc,priority:g!=="lazy"&&r,quality:100,loading:g,sizes:b,src:u,width:a?void 0:m})})};var Uc=e=>{let{onClick:t,resource:a,videoClassName:o}=e,r=(0,Md.useRef)(null);if((0,Md.useEffect)(()=>{let{current:s}=r;s&&s.addEventListener("suspend",()=>{})},[]),a&&typeof a=="object"){let{filename:s}=a;return(0,oa.jsx)("video",{autoPlay:!0,className:l(o),controls:!1,loop:!0,muted:!0,onClick:t,playsInline:!0,ref:r,children:(0,oa.jsx)("source",{src:a.url||""})})}return null};var Pa=e=>{let{className:t,htmlElement:a="div",resource:o}=e,r=typeof o=="object"&&o?.mimeType?.includes("video");return(0,oa.jsx)(a||Md.Fragment,{...a!==null?{className:t}:{},children:r?(0,oa.jsx)(Uc,{...e}):(0,oa.jsx)(Vc,{...e})})};var Xa=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,oa.jsx)("div",{className:l("h-full ",{container:a},t),children:(0,oa.jsx)(Pa,{imgClassName:l("rounded-[0.8rem]",o),className:"flex justify-center",resource:r,src:s})})};var yl=e=>{let{className:t,enableGutter:a=!0,imgClassName:o,media:r,staticImage:s}=e;return(0,oa.jsx)("div",{className:l("",{container:a},t),children:(0,oa.jsx)(Pa,{imgClassName:l("rounded-[0.8rem]",o),resource:r,src:s})})};var Wo=({title:e,description:t,features:a,id:o,nested:r=!1})=>(0,oa.jsxs)("section",{className:l(r?"w-full":"",""),children:[(0,oa.jsxs)("div",{className:"prose prose:max-w-none",children:[e&&(0,oa.jsx)("h2",{className:"mb-6 oa-0 text-primary",id:o||"",children:e}),t&&typeof t=="string"&&(0,oa.jsx)("p",{className:"mb-5 text-foreground",children:t}),t&&typeof t=="object"&&(0,oa.jsx)("div",{className:"mb-5 text-foreground",children:(0,oa.jsx)(se,{content:t,enableGutter:!1})})]}),(0,oa.jsx)("div",{className:`grid gap-6 oa-6 md:grid-cols-${a?a.length>2?2:a.length:1} lg:grid-cols-${a?a.length>3?3:a.length:1}`,children:a&&a.map((s,n)=>{let i=()=>{if(s.icon&&"type"in s.icon&&s.icon.type!=="none")return{type:s.icon.type,icon:s.icon.icon}};return(0,oa.jsx)(wr,{title:s.title||"",content:s.content||void 0,statistic:s.statistic||void 0,settings:{...s.settings,width:"auto",order:n},link:s.link?{...s.link,label:"Learn more"}:void 0,icon:i()??{type:"none",icon:null}},n)})})]});var ui=w(require("react"));function fs({nodes:e}){return(0,oa.jsx)(ui.Fragment,{children:e?.map((t,a)=>{if(t==null)return null;if(t.type==="text"&&t.text){let s=(0,oa.jsx)(ui.default.Fragment,{children:t.text},a);return t.format&1&&(s=(0,oa.jsx)("strong",{children:s},a)),t.format&2&&(s=(0,oa.jsx)("em",{children:s},a)),t.format&4&&(s=(0,oa.jsx)("span",{style:{textDecoration:"line-through"},children:s},a)),t.format&8&&(s=(0,oa.jsx)("span",{style:{textDecoration:"underline"},children:s},a)),t.format&16&&(s=(0,oa.jsx)("code",{children:t.text},a)),t.format&32&&(s=(0,oa.jsx)("sub",{children:s},a)),t.format&64&&(s=(0,oa.jsx)("sup",{children:s},a)),s}if(t.type==="table")return(0,oa.jsx)("table",{children:(0,oa.jsx)("tbody",{children:t.children.map((s,n)=>(0,oa.jsx)("di",{children:s.children.map((i,d)=>(0,oa.jsx)("Zd",{children:fs({nodes:i.children})},d))},n))})},a);let o=s=>{if(s.children==null)return null;if(s?.type==="list"&&s?.listType==="check")for(let n of s.children)"checked"in n&&(n?.checked||(n.checked=!1));return fs({nodes:s.children})},r="children"in t?o(t):"";if(t.type==="block"){let s=t.fields,n=s?.blockType;if(!s||!n)return null;switch(n){case"cta":return(0,oa.jsx)(Vo,{...s},a);case"mediaBlock":return(0,oa.jsx)(Xa,{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,oa.jsx)(yl,{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,oa.jsx)(cl,{className:"col-start-2 mb-4",...s},a);case"code":return(0,oa.jsx)(gl,{className:"col-start-2",...s},a);case"features":return(0,oa.jsx)(Wo,{...s,nested:!0},a);case"reusableContentBlock":fs({nodes:s.reusableContent.layout});default:return null}}else switch(t.type){case"linebreak":return(0,oa.jsx)("br",{className:"col-start-2"},a);case"paragraph":return(0,oa.jsx)("p",{className:"col-start-2",children:r},a);case"heading":{let s=t?.tag;return(0,oa.jsx)(s,{className:"col-start-2",id:t?.id||"",children:r},a)}case"list":{let s=t?.tag;return(0,oa.jsx)(s,{className:"list col-start-2",children:r},a)}case"listitem":return t?.checked!=null?(0,oa.jsx)("li",{"aria-checked":t.checked?"true":"false",className:` ${t.checked,""}`,role:"checkbox",tabIndex:-1,value:t?.value,children:r},a):(0,oa.jsx)("li",{value:t?.value,children:r},a);case"quote":return(0,oa.jsx)("blockquote",{className:"col-start-2",children:r},a);case"link":{let s=t.fields;return(0,oa.jsx)(Ca,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}case"autolink":{let s=t.fields;return(0,oa.jsx)(Ca,{newTab:!!s?.newTab,reference:s.doc,type:s.linkType==="internal"?"reference":"custom",url:s.url,children:r},a)}default:return null}})})}var se=({className:e,content:t,enableGutter:a=!0,enableProse:o=!0})=>t?(0,oa.jsx)("div",{className:l({"container ":a,"max-w-none":!a,"mx-auto prose":o},e),children:t&&!Array.isArray(t)&&typeof t=="object"&&"root"in t&&fs({nodes:t?.root?.children})}):null;var yt=({type:e="solid",iconName:t="cloud",size:a="lg",className:o})=>{let r=e.includes("oa-")?e+" ":"oa-"+e+" ",s="oa-"+t,n=o??"",i=r+s+" oa-"+a+" "+n;return(0,oa.jsx)("i",{className:i})};var qc=w(require("next/image"));function Yc(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function wr({image:e,icon:t,title:a,subtitle:o,content:r,statistic:s,settings:n,link:i,className:d}){let m={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Md-br from-[#A42368] Md-[#4A1030]",radial:"bg-gradient-Md-br from-[#4A1030] Md-[#2D0A1D] relative overflow-hidden",light:"bg-background"},c={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,oa.jsxs)("a",{href:i?.url||"#",className:l("min-w-56 max-w-xl h-full flex flex-col group bg-background",e?"p-0":"p-6 md:p-8",n&&!e&&m[n?.card==="default"?"solid":n?.card],e&&"bg-foreground",n&&n?.card==="outline"?"text-gray-900":"text-white",c[n?.width??"auto"],"intersect-once intersect:animate-flip-Md opacity-0 intersect:opacity-100 intersect:animate-duration-500",n&&`intersect:animate-delay-${n.order||1}00`,d),children:[e&&(0,oa.jsx)("div",{className:"relative aspect-[16/9] w-full",children:(0,oa.jsx)(qc.default,{src:e.url||"/placeholder.svg",alt:e.alt||"card header image",fill:!0,style:{objectFit:"cover"},priority:!0})}),(0,oa.jsxs)("div",{className:l(e?"p-6 md:p-8":"p-0","flex flex-col flex-grow"),children:[(0,oa.jsxs)("div",{className:"flex flex-col flex-grow",children:[o&&(0,oa.jsx)("div",{className:"text-primary uppercase text-sm font-light mb-4",children:o}),(0,oa.jsx)("div",{className:"flex items-start gap-4 mb-4",children:(0,oa.jsx)(gg,{icon:{type:t?.type||"oa-light",iconName:t?.icon||"no-icon-error"},heading:a??"",variant:n?.card==="default"?"solid":n?.card??"solid",iconSize:n?.iconSize||"large"})}),r&&typeof r=="object"&&(0,oa.jsx)(se,{enableGutter:!1,content:r,enableProse:!1,className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose-headings:text-foreground prose-p:text-foreground prose-a:text-foreground":"prose-headings:text-white prose-p:text-gray-100 prose-a:text-gray-100",e&&"prose-headings:text-background prose-p:text-background")}),r&&typeof r=="string"&&(0,oa.jsx)("div",{className:l("prose-sm prose-p:text-lg prose-headings:text-xl","space-y-3",n?.card==="outline"||n?.card==="light"?"prose text-foreground":"prose text-gray-100",e&&"prose text-background"),children:r})]}),i&&i.url&&(0,oa.jsx)("div",{className:"oa-6",children:(0,oa.jsx)("span",{className:"text-accent font-semibold uppercase text-sm block hover:text-accent/80 transition-colors",children:i?.label||"Find out more"})})]})]})}var gg=({icon:e,heading:t,variant:a,iconSize:o,subtitle:r})=>e&&o==="small"&&e.iconName!="no-icon-error"?(0,oa.jsxs)("div",{className:"flex items-start justify-between w-full mb-2",children:[(0,oa.jsx)("div",{className:l(a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t}),Yc(e)&&(0,oa.jsx)("div",{className:l("rounded-full p-0 transform group-hover:scale-110 transition-transform duration-400",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"-mr-2 ml-1 oa-1":""),children:(0,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"2x"})})]}):e&&e.iconName!="no-icon-error"?(0,oa.jsxs)("div",{className:"flex flex-col gap-4",children:[Yc(e)&&(0,oa.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,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,oa.jsx)("h3",{className:l("font-normal",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl text-white"),children:t})]}):(0,oa.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,oa.jsx)("div",{className:l("font-regular",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var Qc=w(require("next/image")),Jc=w(require("next/link"));var Ko=w(require("react"));var ie=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("rounded-xl border bg-card text-card-foreground shadow",e),...t}));ie.displayName="Card";var Pe=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("flex flex-col space-y-1.5 p-6",e),...t}));Pe.displayName="CardHeader";var Se=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("font-semibold leading-none tracking-tight",e),...t}));Se.displayName="CardTitle";var bs=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("text-sm text-muted-foreground",e),...t}));bs.displayName="CardDescription";var le=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("p-6 pt-0",e),...t}));le.displayName="CardContent";var Xo=Ko.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("div",{ref:a,className:l("flex items-center p-6 pt-0",e),...t}));Xo.displayName="CardFooter";function Zc({name:e,logo:t,href:a}){return(0,oa.jsx)(ie,{className:"w-full max-w-sm overflow-hidden transition-all duration-300 ring-0 hover:shadow-lg group",children:(0,oa.jsxs)(Jc.default,{href:a,className:"block",children:[(0,oa.jsx)("div",{className:"bg-white p-2 flex items-center justify-center h-24",children:(0,oa.jsx)("div",{className:"relative w-full h-full",children:t&&(0,oa.jsx)(Qc.default,{src:t,alt:`${e} logo`,layout:"fill",objectFit:"contain"})})}),(0,oa.jsx)(le,{className:"p-3 flex items-center justify-center h-18 bg-gradient-Md-br from-gray-900 via-brand-one Md-gray-900",children:(0,oa.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 em({eventType:e="birthday",date:t="",title:a="",description:o="",avatarSrc:r}){let s=i=>{switch(i){case"birthday":return(0,oa.jsx)(Zd.Cake,{className:"h-4 w-4"});case"workAnniversary":return(0,oa.jsx)(Zd.Award,{className:"h-4 w-4"});case"companyEvent":return(0,oa.jsx)(Zd.PartyPopper,{className:"h-4 w-4"});default:return(0,oa.jsx)(Zd.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 Md-slate-500"}};return(0,oa.jsxs)(ie,{className:`w-full max-w-md overflow-hidden bg-gradient-Md-br ${n(e)}`,children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center gap-3 text-white",children:[r&&(0,oa.jsxs)(vt,{className:"h-14 w-14 border-2 border-white",children:[(0,oa.jsx)(Ft,{src:r,alt:a||"Event"}),(0,oa.jsx)(ht,{className:"bg-white text-gray-900",children:a?a.charAt(0).toUpperCase():"?"})]}),(0,oa.jsxs)("div",{className:"flex flex-col",children:[(0,oa.jsx)(Se,{className:"text-xl",children:a||"Untitled Event"}),(0,oa.jsxs)("p",{className:"text-sm text-white/80",children:[(0,oa.jsx)(Zd.CalendarDays,{className:"mr-1 inline-block h-4 w-4"}),t?new Date(t).toLocaleDateString("Fc-GB"):"Date not specified"]})]})]}),(0,oa.jsxs)(le,{className:"bg-white bg-opacity-80 p-4",children:[o&&(0,oa.jsx)("p",{className:"mb-2 text-sm text-gray-700",children:o}),(0,oa.jsxs)(_e,{variant:"secondary",className:`${n(e)} text-white/80`,children:[s(e),(0,oa.jsx)("span",{className:"ml-1",children:e?e.replace(/([a-oa])([A-Z])/g,"$1 $2").split(" ").map(i=>i.charAt(0).toUpperCase()+i.slice(1)).join(" "):"Event"})]})]})]})}var am=w(require("next/link"));var om=w(require("next/image")),tm={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1400px"};function rm({slug:e,image:t,title:a,description:o}){return(0,oa.jsxs)(am.default,{href:e,className:"group/portfolio relative oa-1 block aspect-[640/916] overflow-hidden rounded-5 p-6 md:p-[1.875rem]",children:[(0,oa.jsx)("span",{className:l("absolute inset-0 oa-[2] bg-gradient-1 from-primary/0 Md-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,oa.jsx)(om.default,{src:t.src,alt:t.alt,fill:!0,sizes:`
12
+ (min-width:${tm.md}) 50vw,
13
+ (min-width:${tm.lg}) 25vw,
15
14
  100vw
16
- `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,oa.jsx)("div",{className:"relative oa-10 flex h-full flex-col",children:(0,oa.jsxs)("div",{className:"oa-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,oa.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,oa.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,oa.jsx)("p",{className:"oa-[13px] overflow-hidden pt-[11px] text-body",children:(0,oa.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 xl=w(require("next/image")),ui=w(require("path"));function bg(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function vg(e){return e.startsWith("http")}function hg(e,t){let a=e;if(bg(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(vg(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=ui.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=ui.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=`/${ui.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function yg({src:e,alt:t}){let[a,o]=(0,Md.useState)(!1),[r,s]=(0,Md.useState)(!1),[n,i]=(0,Md.useState)({width:0,height:0}),d=()=>{r&&o(!0)},m=()=>{o(!1)},c=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.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,oa.jsx)(xl.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,oa.jsx)(la,{open:a,onOpenChange:o,children:(0,oa.jsxs)(Yt,{className:"flex flex-col items-center justify-center",children:[(0,oa.jsxs)(xa,{className:"flex w-full justify-end",children:[(0,oa.jsx)(wa,{className:"hidden",children:t}),(0,oa.jsx)(Xs,{})]}),(0,oa.jsx)("div",{className:"flex items-center justify-center",children:(0,oa.jsx)(xl.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function im({props:e,baseContext:t}){let{src:a}=e;return a=hg(a,t),(0,oa.jsx)(yg,{src:a,alt:e.alt})}var nm=w(require("next/link"));function ut({children:e,href:t,openNewTab:a,...o}){return(0,oa.jsx)(nm.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function xg(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function wg({icon:e,title:t,description:a,slug:o}){return(0,oa.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative oa-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,oa.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,oa.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:xg(e)?(0,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,oa.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,oa.jsx)(ut,{href:o,children:t}):t})]}),(0,oa.jsx)("p",{className:"text-foreground",children:a}),o&&(0,oa.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,oa.jsxs)(ut,{href:o,children:[(0,oa.jsx)("span",{children:"Read More"}),(0,oa.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,oa.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,oa.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,oa.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-oa-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-oa-100 group-hover/service:opacity-100"})]})}function wl({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,oa.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,oa.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,oa.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,oa.jsx)("p",{children:t})]}),(0,oa.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,oa.jsxs)("div",{className:"flex flex-col justify-stretch gap-oa-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,oa.jsx)("oa",{"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,oa.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,oa.jsx)("span",{className:"text-accent pt-1",children:(0,oa.jsx)(Hc.FaCircleCheck,{})}),(0,oa.jsx)("span",{children:n})]},i))}),(0,oa.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,oa.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,oa.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,oa.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,oa.jsxs)(ut,{href:s.href,openNewTab:s.openNewTab,children:[(0,oa.jsx)("span",{className:"relative oa-1",children:s.label}),(0,oa.jsx)("span",{className:"relative oa-1 pl-2",children:(0,oa.jsx)(Hc.FaAnglesRight,{})})]})})})]})})]})}function Ng({className:e,badge:t,title:a,subtitle:o}){return(0,oa.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-Md-br from-[#A42368] Md-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,oa.jsxs)("div",{className:"relative oa-10 mx-auto max-w-4xl text-center",children:[t&&(0,oa.jsx)("div",{className:"mb-4",children:(0,oa.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,oa.jsx)("h1",{className:"oa-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,oa.jsx)("p",{className:"oa-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,oa.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-oa-1/2",style:{background:"radial-gradient(50% 50% oa 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,oa.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-oa-1/2",children:(0,oa.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,oa.jsx)("path",{d:"oa-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function dm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Cg({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:n,subheading:i,content:d,statistic:m,buttonText:c,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Md-br from-[#A42368] Md-[#4A1030]",radial:"bg-gradient-Md-br from-[#4A1030] Md-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,oa.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,g[r],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,oa.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,oa.jsx)(kg,{icon:a,heading:n,variant:e,iconSize:o})}),m&&(0,oa.jsx)("div",{className:"mb-6",children:(0,oa.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,oa.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),d&&typeof d=="object"&&(0,oa.jsx)("div",{className:l("space-y-6"),children:(0,oa.jsx)(se,{enableGutter:!1,content:d,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")})}),d&&typeof d=="string"&&(0,oa.jsx)("div",{className:l("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:d}),c&&(0,oa.jsx)("div",{className:"oa-auto pt-6 flex items-center justify-center",children:(0,oa.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl w-full oa-auto items-center justify-center",asChild:!0,children:(0,oa.jsx)("a",{href:p,children:c})})}),e==="radial"&&(0,oa.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 kg=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,oa.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[dm(e)&&(0,oa.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"?"oa-2":""),children:(0,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,oa.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,oa.jsxs)("div",{className:"flex flex-col gap-4",children:[dm(e)&&(0,oa.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,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,oa.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,oa.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,oa.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var cm=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,oa.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function Pg({icon:e,title:t,body:a,color:o="secondary"}){return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,oa.jsx)("div",{className:"px-[2%] flex items-center",children:(0,oa.jsx)("div",{className:"w-12 h-12",children:(0,oa.jsx)(yt,{type:e.type,iconName:e.name})})}),(0,oa.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,oa.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var pm=w(require("next/image"));function Sg(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,oa.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,oa.jsx)(pm.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,oa.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,oa.jsx)("div",{className:"oa-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,oa.jsxs)("a",{href:t,children:[(0,oa.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,oa.jsx)("div",{className:"oa-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Rg=(e,t)=>`from-brand-${e} Md-brand-${t}`;function Tg({...e}){let t=Rg(e.brandFrom||"one",e.brandTo||"two");return(0,oa.jsxs)("div",{className:`relative isolate flex items-center gap-oa-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-Md-r ${t}`,children:[(0,oa.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,oa.jsxs)("a",{href:e.url,children:[(0,oa.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,oa.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,oa.jsx)("circle",{r:1,cx:1,cy:1})}),(0,oa.jsx)("span",{children:e.message&&e.message})]}):(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,oa.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,oa.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,oa.jsx)("div",{className:"flex flex-1 justify-end"})]})}var bs=w(require("react")),Dg={Architecture:(0,oa.jsx)(Zd.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,oa.jsx)(Zd.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,oa.jsx)(Zd.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,oa.jsx)(Zd.GanttChart,{className:"h-5 w-5 text-red-600"})},Ag=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,oa.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,oa.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,oa.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4"}):(0,oa.jsx)(Zd.ChevronRight,{className:"h-4 w-4"})}),(0,oa.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,oa.jsx)(Zd.Users,{className:"h-6 w-6 text-gray-500"})}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,oa.jsxs)("div",{className:"flex items-center oa-1",children:[Dg[e.discipline],(0,oa.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,oa.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},um=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,bs.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 bs.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),d?(0,oa.jsxs)("div",{children:[(0,oa.jsx)(Ag,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((c,p)=>(0,oa.jsx)(um,{person:c,level:t+1,searchTerm:a},p))]}):null};function Mg(){let[e,t]=(0,bs.useState)("");return(0,oa.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,oa.jsxs)("div",{className:"mb-4 relative",children:[(0,oa.jsx)("input",{type:"text",placeholder:"Search by name, discipline, oa 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,oa.jsx)(Zd.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,oa.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,oa.jsx)(um,{person:o,level:0,searchTerm:e},r))})]})}function Ig({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 Md 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 Md 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 Md improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Md 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 Md leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,oa.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,oa.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,oa.jsxs)(ie,{className:"flex-grow",children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Users,{className:"h-5 w-5"}),"Team"]})}),(0,oa.jsxs)(le,{className:"p-6",children:[(0,oa.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,oa.jsxs)("div",{className:"space-y-6",children:[(0,oa.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.User,{className:"h-4 w-4 text-muted-foreground"}),(0,oa.jsx)("span",{children:r.role})]}),r.isFTE&&(0,oa.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,oa.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.User,{className:"h-4 w-4 text-muted-foreground"}),(0,oa.jsx)("span",{children:r.role}),r.count&&(0,oa.jsxs)("span",{children:["(",r.count,"oa)"]})]}),r.isFTE&&(0,oa.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,oa.jsx)(Zd.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,oa.jsx)("span",{children:"SME input:"})]}),(0,oa.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,oa.jsx)(le,{className:"p-6",children:(0,oa.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,oa.jsxs)(ie,{className:"lg:col-span-1 flex flex-col",children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,oa.jsxs)(le,{className:"p-6 flex-grow overflow-auto",children:[(0,oa.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,oa.jsxs)("li",{className:"text-sm",children:[(0,oa.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,oa.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,oa.jsx)("p",{className:"oa-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,oa.jsxs)(ie,{className:"lg:col-span-1 flex flex-col",children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,oa.jsx)(le,{className:"p-6 flex-grow overflow-auto",children:(0,oa.jsx)("oa",{className:"space-y-4",children:a.map((r,s)=>(0,oa.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,oa.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,oa.jsx)("span",{children:r})]},s))})})]})]})}function Lg(){return(0,oa.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,oa.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,oa.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,oa.jsx)(Zd.BarChart3,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,oa.jsx)("p",{className:"text-secondary text-sm",children:"oa excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,oa.jsxs)("oa",{className:"text-sm",children:[(0,oa.jsx)("li",{children:"Strategy definition"}),(0,oa.jsx)("li",{children:"Programme leadership"}),(0,oa.jsx)("li",{children:"Detailed planning"}),(0,oa.jsx)("li",{children:"\u2022 Financial control"}),(0,oa.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,oa.jsx)(Zd.CogIcon,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,oa.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,oa.jsx)("p",{className:"text-sm",children:"oa deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,oa.jsx)(Zd.Building2,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,oa.jsx)("p",{className:"text-sky-200 text-sm",children:"oa understand how Md navigate public sector and financial services regulation and how Md deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,oa.jsx)("p",{className:"text-sm",children:"oa have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,oa.jsx)(Zd.BadgeCheck,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,oa.jsx)("p",{className:"text-sky-200 text-sm",children:"oa have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,oa.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, oa have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var vs=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let d of i.root.children)if(s(d))return!0}if(i.children){for(let d of i.children)if(s(d))return!0}return!1},n=(i,d,m)=>{if(d==="none"||m==="full")return{processedRichText:i,heading:null};let c=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(c={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:c,heading:p}};return(0,oa.jsx)("div",{className:"my-6",children:(0,oa.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-oa-8":"gap-oa-16"),children:t&&t.length>0&&t.map((i,d)=>{let{enableLink:m,link:c,richText:p,size:u}=i,{processedRichText:g,heading:b}=n(p,a?.settings?.box||"none",u||"full");return(0,oa.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-up opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${d+1}00`),children:[b&&(0,oa.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -oa-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&(0,oa.jsx)(se,{content:g,enableGutter:!1,className:"rich-text"}),m&&(0,oa.jsx)(Ca,{...c})]},d)})})})};var bi=w(require("next/image"));function Bg({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,oa.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,oa.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,oa.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,oa.jsx)(bi.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,oa.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,oa.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,oa.jsx)(bi.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,oa.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,oa.jsx)(bi.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,oa.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,oa.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,oa.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Sl=w(require("next/image"));var Nl=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,oa.jsx)(zg,{blocks:a.layout}):(0,oa.jsx)(oa.Fragment,{})},gm={content:vs,cta:Vo,mediaBlock:Xa,imageBlock:Xa,features:Wo},zg=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,oa.jsx)(oa.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in gm){let i=gm[s];if(i)return(0,oa.jsxs)("div",{className:"py-6 relative",children:[(0,oa.jsx)(vi,{block:o,index:r}),(0,oa.jsx)("div",{className:l(n?.settings?.theme==="dark"?"dark":n?.settings?.theme==="green"?"green":""),children:(0,oa.jsx)(i,{...o})})]},r)}return null})}):null};var fm=w(require("react")),Nr=w(require("@radix-ui/react-collapsible"));var bm=({title:e,richText:t})=>{let[a,o]=fm.default.useState(!1);return(0,oa.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,oa.jsxs)(Nr.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[(0,oa.jsxs)(Nr.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,oa.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,oa.jsx)(Ms.ChevronUpIcon,{className:"h-6 w-6"}):(0,oa.jsx)(Ms.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,oa.jsx)(Nr.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,oa.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,oa.jsx)(se,{content:t||{},enableGutter:!1})})})]})})};var yi={content:vs,cta:Vo,mediaBlock:Xa,collapsibleArea:bm,imageBlock:Xa,features:Wo,reusableContentBlock:Nl},So=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,oa.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in yi){let i=yi[s];if(s==="reusableContentBlock")return(0,oa.jsx)(Md.Fragment,{children:(0,oa.jsx)(So,{blocks:o.reusableContent.layout})},r);if(i)return(0,oa.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,oa.jsx)(vi,{block:o,index:r}),(0,oa.jsx)("div",{className:l("container h-full relative",n?.settings?.theme||"dark"),children:(0,oa.jsx)(i,{...o})})]},r)}return null})}):null},vi=e=>{if(!("theme"in e.block))return(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,oa.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,oa.jsx)(Sl.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,oa.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},Eg=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,oa.jsx)("main",{id:"content-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in yi){let i=yi[s];if(s==="reusableContentBlock")return(0,oa.jsx)(Md.Fragment,{children:(0,oa.jsx)(So,{blocks:o.reusableContent.layout})},r);if(i)return(0,oa.jsx)(vm,{block:o,allBlocks:t,index:r,children:(0,oa.jsx)(i,{...o})})}return null})}):null},vm=e=>{if(e.index===0)return(0,oa.jsxs)("section",{className:"relative flex w-full",children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full light bg-background")}),(0,oa.jsx)("div",{className:l("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=d=>d%2===0?"light":"dark",a=({index:d,allBlocks:m})=>d===1?(0,oa.jsx)(Cl,{position:"left"}):r(d,m)==="dark"&&n(d,m)==="light"?(0,oa.jsx)(kl,{position:"left"}):r(d,m)==="light"&&n(d,m)==="dark"?(0,oa.jsx)(Cl,{position:"left"}):null,o=({index:d,allBlocks:m})=>s(d,m)==="light"&&n(d,m)==="dark"?(0,oa.jsx)(kl,{position:"left"}):null,r=(d,m)=>{if(d===1)return"light";let c=m[d-1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},s=(d,m)=>{if(d===m.length-1)return"dark";if(d===0)return"light";let c=m[d+1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},n=(d,m)=>{if(d===m.length-1)return"dark";let c=m[d];return c.theme&&c.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,oa.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen dark bg-background")}),(0,oa.jsx)("div",{className:l("container relative","dark bg-background py-1"),children:e.children})]}):(0,oa.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,oa.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen")}),(0,oa.jsx)("div",{className:"bg-black",children:(0,oa.jsx)("div",{className:l("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===n(e.index,e.allBlocks)){let d=n(e.index,e.allBlocks);return(0,oa.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen bg-background",d)}),(0,oa.jsx)("div",{className:l("container relative bg-background py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==n(e.index,e.allBlocks)){let d=n(e.index,e.allBlocks);return(0,oa.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,oa.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen bg-background",d)}),(0,oa.jsx)("div",{className:l("container relative bg-background min-h-[22em] content-center py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,oa.jsxs)("div",{className:l("container h-full relative","dark"),children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let d={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,oa.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,oa.jsx)(Sl.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,oa.jsx)("div",{className:"absolute inset-0",style:{background:d.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Cl=({position:e})=>(0,oa.jsx)("div",{className:"w-full aspect-[1920/360] oa-20 relative -top-[2px] bg-white",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:l("w-full block overflow-hidden"),children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),kl=({position:e})=>(0,oa.jsx)("div",{className:"w-full relative oa-20 aspect-[1920/332] overflow-hidden ",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var wm=w(require("clsx"));var hm=require("next/navigation");function Fg({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,hm.useRouter)(),r=(0,Md.useRef)(null),s=(0,Md.useRef)(null),n=(0,Md.useRef)(0),i=(0,Md.useRef)(!1),d=(0,Md.useRef)(0),m=(0,Md.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,b=u?.closest("a");d.current=p.button,b?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),c=(0,Md.useCallback)(p=>{if(s.current?.href){let g=+new Date-n.current;if(s.current?.href&&g<=250&&!i.current&&d.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Md.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",c))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var ym=Fg;var xm=w(require("next/link"));var hs=e=>{let{card:t,link:a}=ym({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:d,categories:m,meta:c,title:p}=r||{},{description:u,image:g}=c||{},b=m&&Array.isArray(m)&&m.length>0,f=i||p,y=u?.replace(/\s/g," "),I=`/${s}/${d}`;return(0,oa.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,oa.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,oa.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,oa.jsx)(Pa,{resource:g,size:"33vw"})]}),(0,oa.jsxs)("div",{className:"p-4",children:[n&&b&&(0,oa.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&b&&(0,oa.jsx)("div",{children:m?.map((A,h)=>{if(typeof A=="object"){let{title:k}=A,N=k||"Untitled category",D=h===m.length-1;return(0,oa.jsxs)(Md.Fragment,{children:[N,!D&&(0,oa.jsx)(Md.Fragment,{children:", \xA0"})]},h)}return null})})}),f&&(0,oa.jsx)("div",{className:"prose",children:(0,oa.jsx)("h3",{children:(0,oa.jsx)(xm.default,{className:"not-prose",href:I,ref:a.ref,children:f})})}),u&&(0,oa.jsx)("div",{className:"oa-2",children:u&&(0,oa.jsx)("p",{children:y})})]})]})};var Hg=e=>{let{className:t,docs:a,introContent:o}=e;return(0,oa.jsxs)("div",{className:(0,wm.default)("container",t),children:[o&&(0,oa.jsx)(se,{content:o,enableGutter:!1}),(0,oa.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,oa.jsx)(hs,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Sr=require("framer-motion");var zx=require("pagedjs");var jg=e=>{let{posts:t}=e;return(0,oa.jsx)("div",{className:l("container"),children:(0,oa.jsx)("div",{children:(0,oa.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-oa-4 lg:gap-y-8 lg:gap-oa-8 xl:gap-oa-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,oa.jsx)("div",{className:"col-span-4",children:(0,oa.jsx)(hs,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var Nm=w(require("clsx")),Cm=w(require("next/image")),Og=e=>{let{loading:t,priority:a,className:o}=e;return(0,oa.jsx)(Cm.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,Nm.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 $g={plural:"Docs",singular:"Doc"},Gg={posts:{plural:"Posts",singular:"Post"}},_g=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||Gg[a||""]||$g||{};return(0,oa.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n>"u"||n===0)&&"Search produced no results.",typeof n<"u"&&n>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var Tl=w(require("react")),Dl=({className:e,...t})=>(0,oa.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Dl.displayName="Pagination";var Al=Tl.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("oa",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Al.displayName="PaginationContent";var Ja=Tl.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("li",{className:l("",e),ref:a,...t}));Ja.displayName="PaginationItem";var qo=({className:e,isActive:t,size:a="icon",...o})=>(0,oa.jsx)("button",{"aria-current":t?"page":void 0,className:l(go({size:a,variant:t?"outline":"ghost"}),e),...o});qo.displayName="PaginationLink";var Ml=({className:e,...t})=>(0,oa.jsxs)(qo,{"aria-label":"Zd Md previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,oa.jsx)(Zd.ChevronLeft,{className:"h-4 w-4"}),(0,oa.jsx)("span",{children:"Previous"})]});Ml.displayName="PaginationPrevious";var Il=({className:e,...t})=>(0,oa.jsxs)(qo,{"aria-label":"Zd Md next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,oa.jsx)("span",{children:"Next"}),(0,oa.jsx)(Zd.ChevronRight,{className:"h-4 w-4"})]});Il.displayName="PaginationNext";var xi=({className:e,...t})=>(0,oa.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,oa.jsx)(Zd.MoreHorizontal,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"More pages"})]});xi.displayName="PaginationEllipsis";var Vg=e=>{let t=(0,hm.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,d=o+1<r;return(0,oa.jsx)("div",{className:l("my-12",a),children:(0,oa.jsx)(Dl,{children:(0,oa.jsxs)(Al,{children:[(0,oa.jsx)(Ja,{children:(0,oa.jsx)(Ml,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(xi,{})}),n&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(qo,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,oa.jsx)(Ja,{children:(0,oa.jsx)(qo,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(qo,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),d&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(xi,{})}),(0,oa.jsx)(Ja,{children:(0,oa.jsx)(Il,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Ll=w(require("next/image")),Rm=({logoImage:e})=>(0,oa.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
17
- dark bg-background text-primary`,children:[(0,oa.jsxs)("div",{className:"flex px-6 items-center space-oa-2",children:[e&&(0,oa.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,oa.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,oa.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),ys=({title:e})=>(0,oa.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,oa.jsx)("div",{className:"container",children:(0,oa.jsx)("span",{className:"container text-4xl px-6",children:e})})}),xs=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,oa.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,oa.jsx)("div",{className:"absolute inset-0",children:(0,oa.jsx)(Ll.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,oa.jsx)("div",{className:"absolute left-16 oa-50 top-4 flex flex-col items-start gap-4",children:o&&(0,oa.jsx)("div",{className:"h-24",children:(0,oa.jsx)(Ll.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,oa.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,oa.jsxs)("div",{className:"relative pl-24 oa-10 max-w-3xl",children:[(0,oa.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,oa.jsx)(se,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var wi=e=>{let[t,a]=(0,Md.useState)(0),{blocks:o,hero:r,logoImage:s}=e,n=o&&Array.isArray(o)&&o.length>0,d=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=f=>{a(f)},c=()=>{a(f=>(f+1)%d.length)},p=()=>{a(f=>(f-1+d.length)%d.length)},g=(0,Md.useCallback)(((f,y)=>{let I;return(...A)=>{clearTimeout(I),I=setTimeout(()=>f(...A),y)}})(f=>{f.deltaY>0?c():p()},300),[]),b=f=>{f.key==="ArrowDown"?c():f.key==="ArrowUp"&&p()};return(0,Md.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,oa.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,oa.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 oa-10 flex-col items-center justify-center bg-gray-900",children:n&&d.map((f,y)=>(0,oa.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===y?"bg-accent":"bg-gray-600"}`,onClick:()=>m(y),children:(0,oa.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-oa-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-oa-2 transition-all duration-300",children:f.blockName})},f.id))}),(0,oa.jsx)(Sr.AnimatePresence,{children:d.map((f,y)=>(0,oa.jsx)("div",{id:`slide-${y}`,className:"print-section",children:(0,oa.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
15
+ `,className:"pointer-events-none [transform:scale(1.05)] [transition:.9s_ease] group-hover/portfolio:[transform:scale(1)]"}),(0,oa.jsx)("div",{className:"relative oa-10 flex h-full flex-col",children:(0,oa.jsxs)("div",{className:"oa-auto divide-y md:opacity-0 md:transition-[transform,opacity] md:duration-500 md:group-hover/portfolio:opacity-100",children:[(0,oa.jsx)("h3",{className:"overflow-hidden text-md font-bold leading-[1.25] text-white md:text-lg",children:(0,oa.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,oa.jsx)("p",{className:"oa-[13px] overflow-hidden pt-[11px] text-body",children:(0,oa.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 xl=w(require("next/image")),gi=w(require("path"));function fg(e){try{let t=new URL(e),{hostname:a}=t;return a.endsWith("sharepoint.com")}catch{return!1}}function bg(e){return e.startsWith("http")}function vg(e,t){let a=e;if(fg(e))a=`/docs/api/content/sharepoint?url=${e}`;else if(bg(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=gi.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=gi.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=`/${gi.default.dirname(t.file)}/${o}`),a=o}else a="/image-not-found.png";return a}function hg({src:e,alt:t}){let[a,o]=(0,Md.useState)(!1),[r,s]=(0,Md.useState)(!1),[n,i]=(0,Md.useState)({width:0,height:0}),d=()=>{r&&o(!0)},m=()=>{o(!1)},c=p=>{let{naturalWidth:u,naturalHeight:g}=p.target;i({width:u,height:g}),s(u>300||g>300)};return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.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,oa.jsx)(xl.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,oa.jsx)(la,{open:a,onOpenChange:o,children:(0,oa.jsxs)(Yt,{className:"flex flex-col items-center justify-center",children:[(0,oa.jsxs)(xa,{className:"flex w-full justify-end",children:[(0,oa.jsx)(wa,{className:"hidden",children:t}),(0,oa.jsx)(Ys,{})]}),(0,oa.jsx)("div",{className:"flex items-center justify-center",children:(0,oa.jsx)(xl.default,{height:n.height,width:n.width,src:e,alt:t||"",unoptimized:!0,className:"object-contain"})})]})})]})}function sm({props:e,baseContext:t}){let{src:a}=e;return a=vg(a,t),(0,oa.jsx)(hg,{src:a,alt:e.alt})}var im=w(require("next/link"));function ut({children:e,href:t,openNewTab:a,...o}){return(0,oa.jsx)(im.default,{href:t,target:a?"_blank":"_self",...o,children:e})}function yg(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function xg({icon:e,title:t,description:a,slug:o}){return(0,oa.jsxs)("article",{className:l(["group/service bg-card shadow-3 transition-transform duration-350 dark:shadow-none","relative oa-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,oa.jsxs)("div",{className:"flex items-center text-foreground gap-5",children:[(0,oa.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:yg(e)?(0,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"sm"}):e}),(0,oa.jsx)("h2",{className:"text-md font-medium leading-[1.25] md:text-lg",children:o?(0,oa.jsx)(ut,{href:o,children:t}):t})]}),(0,oa.jsx)("p",{className:"text-foreground",children:a}),o&&(0,oa.jsx)(T,{asChild:!0,className:l(["rounded-5 border p-5","group-hover/service:border-accent","border-current bg-transparent text-foreground hover:bg-transparent hover:text-accent","before:hidden after:hidden"]),children:(0,oa.jsxs)(ut,{href:o,children:[(0,oa.jsx)("span",{children:"Read More"}),(0,oa.jsx)("span",{className:"relative pl-3 text-sm/[1] text-accent",children:(0,oa.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,oa.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,oa.jsx)("span",{className:"invisible absolute bottom-0 left-0 h-[2px] w-full scale-oa-[30%] bg-accent opacity-0 transition-all duration-400 group-hover/service:visible group-hover/service:scale-oa-100 group-hover/service:opacity-100"})]})}function wl({title:e,description:t,features:a,price:o,duration:r,button:s}){return(0,oa.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,oa.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,oa.jsx)("h3",{className:"mb-4 text-lg font-bold leading-[1.3] text-foreground lg:mb-5 lg:text-xl",children:e}),(0,oa.jsx)("p",{children:t})]}),(0,oa.jsx)("div",{className:"relative my-auto p-6 max-lg:pb-14 md:p-10",children:(0,oa.jsxs)("div",{className:"flex flex-col justify-stretch gap-oa-14 gap-y-5 md:flex-row md:items-center",children:[a&&a.length>0&&(0,oa.jsx)("oa",{"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,oa.jsxs)("li",{className:"flex items-start gap-3 lg:gap-4",children:[(0,oa.jsx)("span",{className:"text-accent pt-1",children:(0,oa.jsx)(Fc.FaCircleCheck,{})}),(0,oa.jsx)("span",{children:n})]},i))}),(0,oa.jsxs)("p",{className:"font-secondary ml-auto text-xl font-bold leading-[1.25] text-accent-900 dark:text-white lg:text-2xl",children:[o&&o,(0,oa.jsx)("sub",{className:"relative bottom-0 ml-1.5 inline-block text-base lg:text-md",children:r&&r})]}),s&&(0,oa.jsx)("div",{className:"flex-none mr-0 sm:ml-auto",children:(0,oa.jsx)(T,{asChild:!0,className:"border-2 p-5 border-accent bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground",children:(0,oa.jsxs)(ut,{href:s.href,openNewTab:s.openNewTab,children:[(0,oa.jsx)("span",{className:"relative oa-1",children:s.label}),(0,oa.jsx)("span",{className:"relative oa-1 pl-2",children:(0,oa.jsx)(Fc.FaAnglesRight,{})})]})})})]})})]})}function wg({className:e,badge:t,title:a,subtitle:o}){return(0,oa.jsxs)("div",{className:l("relative overflow-hidden rounded-xl bg-gradient-Md-br from-[#A42368] Md-[#A42368] m-6 px-6 py-16 md:px-12 md:py-24",e),children:[(0,oa.jsxs)("div",{className:"relative oa-10 mx-auto max-w-4xl text-center",children:[t&&(0,oa.jsx)("div",{className:"mb-4",children:(0,oa.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,oa.jsx)("h1",{className:"oa-6 text-3xl font-bold tracking-tight text-white sm:text-4xl md:text-5xl lg:text-6xl",children:a}),(0,oa.jsx)("p",{className:"oa-6 text-base text-gray-300 sm:text-lg md:text-xl",children:o})]}),(0,oa.jsx)("div",{className:"absolute bottom-0 left-1/2 h-48 w-full -translate-oa-1/2",style:{background:"radial-gradient(50% 50% oa 50% 100%, rgba(164, 35, 104, 0.1) 0%, rgba(164, 35, 104, 0) 100%)"}}),(0,oa.jsx)("div",{className:"absolute bottom-0 left-1/2 h-32 w-full -translate-oa-1/2",children:(0,oa.jsx)("svg",{viewBox:"0 0 1113 170",fill:"none",className:"absolute bottom-0 opacity-10",children:(0,oa.jsx)("path",{d:"oa-19 170H1113V0C1113 0 1001.5 101.5 547.5 101.5C93.5 101.5 -19 170 -19 170Z",fill:"currentColor",className:"text-white"})})})]})}function lm(e){return e&&typeof e=="object"&&"type"in e&&"iconName"in e}function Ng({variant:e="outline",className:t,icon:a,iconSize:o="large",width:r="auto",order:s=0,heading:n,subheading:i,content:d,statistic:m,buttonText:c,buttonHref:p}){let u={solid:"bg-accent",outline:"bg-background border border-accent",gradient:"bg-gradient-Md-br from-[#A42368] Md-[#4A1030]",radial:"bg-gradient-Md-br from-[#4A1030] Md-[#2D0A1D] relative overflow-hidden",light:""},g={"1/4":"w-1/4","1/3":"w-1/3","1/2":"w-1/2",full:"w-full",auto:"w-full"};return(0,oa.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,g[r],"intersect-once intersect:animate-flip-Md opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${s+1}00`),children:[(0,oa.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,oa.jsx)(Cg,{icon:a,heading:n,variant:e,iconSize:o})}),m&&(0,oa.jsx)("div",{className:"mb-6",children:(0,oa.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,oa.jsx)("div",{className:"mb-4 text-xl md:text-2xl font-light",children:i}),d&&typeof d=="object"&&(0,oa.jsx)("div",{className:l("space-y-6"),children:(0,oa.jsx)(se,{enableGutter:!1,content:d,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")})}),d&&typeof d=="string"&&(0,oa.jsx)("div",{className:l("space-y-6",e==="outline"||e==="light"?"text-gray-900":"text-gray-100"),children:d}),c&&(0,oa.jsx)("div",{className:"oa-auto pt-6 flex items-center justify-center",children:(0,oa.jsx)(T,{size:"lg",className:"text-white text-lg rounded-xl w-full oa-auto items-center justify-center",asChild:!0,children:(0,oa.jsx)("a",{href:p,children:c})})}),e==="radial"&&(0,oa.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 Cg=({icon:e,heading:t,variant:a,iconSize:o})=>e&&o==="small"?(0,oa.jsxs)("div",{className:"flex items-start gap-4 mb-2",children:[lm(e)&&(0,oa.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"?"oa-2":""),children:(0,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"2x"})}),(0,oa.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-primary":"text-white",o==="small"?"text-2xl":"text-3xl"),children:t})]}):e?(0,oa.jsxs)("div",{className:"flex flex-col gap-4",children:[lm(e)&&(0,oa.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,oa.jsx)(yt,{type:e.type,iconName:e.iconName,size:"4x"})}),(0,oa.jsx)("h3",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})]}):(0,oa.jsx)("div",{className:"flex items-center gap-4 mb-2",children:(0,oa.jsx)("div",{className:l("font-semibold",a==="outline"||a==="light"?"text-2xl text-primary":"text-3xl"),children:t})});var dm=({children:e,cardsPerRow:t=3})=>{let a=`repeat(${t}, minmax(0, 1fr))`;return(0,oa.jsx)("div",{className:"grid gap-6",style:{gridTemplateColumns:a},children:e})};function kg({icon:e,title:t,body:a,color:o="secondary"}){return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsxs)("div",{className:"flex py-0 min-h-16",children:[(0,oa.jsx)("div",{className:"px-[2%] flex items-center",children:(0,oa.jsx)("div",{className:"w-12 h-12",children:(0,oa.jsx)(yt,{type:e.type,iconName:e.name})})}),(0,oa.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[30%]",children:t}),a&&(0,oa.jsx)("div",{className:"px-[1%] py-1.5 flex items-center text-2xl min-w-[50%]",children:a})]})})}var mm=w(require("next/image"));function Pg(e){let{url:t,mainImage:a,excerpt:o,title:r}=e;return(0,oa.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,oa.jsx)(mm.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,oa.jsxs)("div",{className:"flex flex-1 flex-col p-4",children:[(0,oa.jsx)("div",{className:"oa-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,oa.jsxs)("a",{href:t,children:[(0,oa.jsx)("span",{className:"absolute inset-0"}),r]})}),o&&(0,oa.jsx)("div",{className:"oa-2 flex-1 text-sm/6 text-gray-500",children:o})]})]},t)}var Sg=(e,t)=>`from-brand-${e} Md-brand-${t}`;function Rg({...e}){let t=Sg(e.brandFrom||"one",e.brandTo||"two");return(0,oa.jsxs)("div",{className:`relative isolate flex items-center gap-oa-6 overflow-hidden px-6 py-2.5 sm:px-3.5 sm:before:flex-1 bg-gradient-Md-r ${t}`,children:[(0,oa.jsx)("p",{className:"text-sm/6 text-primary-foreground",children:e.url?(0,oa.jsxs)("a",{href:e.url,children:[(0,oa.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,oa.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,oa.jsx)("circle",{r:1,cx:1,cy:1})}),(0,oa.jsx)("span",{children:e.message&&e.message})]}):(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)("strong",{className:"font-semibold",children:e.title}),e.message&&(0,oa.jsx)("svg",{viewBox:"0 0 2 2","aria-hidden":"true",className:"mx-2 inline size-0.5 fill-current",children:(0,oa.jsx)("circle",{r:1,cx:1,cy:1})}),e.message&&e.message]})}),(0,oa.jsx)("div",{className:"flex flex-1 justify-end"})]})}var vs=w(require("react")),Tg={Architecture:(0,oa.jsx)(Zd.DraftingCompass,{className:"h-5 w-5 text-blue-600"}),Engineering:(0,oa.jsx)(Zd.Code,{className:"h-5 w-5 text-green-600"}),Development:(0,oa.jsx)(Zd.Code,{className:"h-5 w-5 text-purple-600"}),Delivery:(0,oa.jsx)(Zd.GanttChart,{className:"h-5 w-5 text-red-600"})},Dg=({person:e,level:t,onToggle:a,isExpanded:o,isHighlighted:r})=>{let s=e.reports.length>0;return(0,oa.jsx)("div",{className:`ml-${t*4} mb-2`,children:(0,oa.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,oa.jsx)("button",{onClick:a,className:"mr-2","aria-label":o?"Collapse":"Expand",children:o?(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4"}):(0,oa.jsx)(Zd.ChevronRight,{className:"h-4 w-4"})}),(0,oa.jsx)("div",{className:"w-10 h-10 bg-gray-200 rounded-full flex items-center justify-center mr-3",children:(0,oa.jsx)(Zd.Users,{className:"h-6 w-6 text-gray-500"})}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)("h3",{className:"text-sm font-semibold text-gray-800",children:e.name}),(0,oa.jsxs)("div",{className:"flex items-center oa-1",children:[Tg[e.discipline],(0,oa.jsx)("span",{className:"ml-1 text-xs text-gray-600",children:e.discipline})]})]}),(0,oa.jsx)("span",{className:"ml-auto text-xs font-medium text-gray-500 bg-gray-100 px-2 py-1 rounded",children:e.grade})]})})},pm=({person:e,level:t,searchTerm:a})=>{let[o,r]=(0,vs.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 vs.default.useEffect(()=>{a!==""&&i(e)&&r(!0)},[a,e]),d?(0,oa.jsxs)("div",{children:[(0,oa.jsx)(Dg,{person:e,level:t,onToggle:s,isExpanded:o,isHighlighted:m}),o&&e.reports.map((c,p)=>(0,oa.jsx)(pm,{person:c,level:t+1,searchTerm:a},p))]}):null};function Ag(){let[e,t]=(0,vs.useState)("");return(0,oa.jsxs)("div",{className:"max-w-5xl mx-auto p-6",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold mb-6 text-center text-gray-800",children:"Who's who"}),(0,oa.jsxs)("div",{className:"mb-4 relative",children:[(0,oa.jsx)("input",{type:"text",placeholder:"Search by name, discipline, oa 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,oa.jsx)(Zd.Search,{className:"absolute right-3 top-2.5 h-5 w-5 text-gray-400"})]}),(0,oa.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,oa.jsx)(pm,{person:o,level:0,searchTerm:e},r))})]})}function Mg({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 Md 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 Md 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 Md improved performance and cost savings.","Risk Mitigation: Identifies potential risks early and provides strategies Md 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 Md leverage Generative AI effectively, providing a competitive edge in the market."],fee:o="\xA3150,000 for delivery of listed outputs"}){return(0,oa.jsxs)("div",{className:"grid gap-6 lg:grid-cols-3",children:[(0,oa.jsxs)("div",{className:"lg:col-span-1 space-y-6 flex flex-col",children:[(0,oa.jsxs)(ie,{className:"flex-grow",children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Users,{className:"h-5 w-5"}),"Team"]})}),(0,oa.jsxs)(le,{className:"p-6",children:[(0,oa.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,oa.jsxs)("div",{className:"space-y-6",children:[(0,oa.jsx)("div",{className:"space-y-2",children:e.leadership.map((r,s)=>(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.User,{className:"h-4 w-4 text-muted-foreground"}),(0,oa.jsx)("span",{children:r.role})]}),r.isFTE&&(0,oa.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,oa.jsx)("div",{className:"space-y-2",children:e.core.map((r,s)=>(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.User,{className:"h-4 w-4 text-muted-foreground"}),(0,oa.jsx)("span",{children:r.role}),r.count&&(0,oa.jsxs)("span",{children:["(",r.count,"oa)"]})]}),r.isFTE&&(0,oa.jsx)("span",{className:"text-xs text-muted-foreground",children:"(FTE)"})]},s))}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,oa.jsx)(Zd.Users2,{className:"h-4 w-4 text-muted-foreground"}),(0,oa.jsx)("span",{children:"SME input:"})]}),(0,oa.jsx)("div",{className:"ml-6 text-sm text-muted-foreground",children:e.sme.join(", ")})]})]})]})]}),(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.PoundSterling,{className:"h-5 w-5"}),"Fee"]})}),(0,oa.jsx)(le,{className:"p-6",children:(0,oa.jsx)("p",{className:"text-lg font-semibold",children:o})})]})]}),(0,oa.jsxs)(ie,{className:"lg:col-span-1 flex flex-col",children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.FileText,{className:"h-5 w-5"}),"Outputs"]})}),(0,oa.jsxs)(le,{className:"p-6 flex-grow overflow-auto",children:[(0,oa.jsx)("ol",{className:"list-decimal list-inside space-y-4",children:t.map((r,s)=>(0,oa.jsxs)("li",{className:"text-sm",children:[(0,oa.jsxs)("span",{className:"font-medium",children:[r.title,":"]})," ",(0,oa.jsx)("span",{className:"text-muted-foreground",children:r.description})]},s))}),(0,oa.jsx)("p",{className:"oa-6 text-sm italic text-muted-foreground",children:"Delivered within 8 weeks from start date of engagement."})]})]}),(0,oa.jsxs)(ie,{className:"lg:col-span-1 flex flex-col",children:[(0,oa.jsx)(Pe,{className:"bg-primary text-primary-foreground",children:(0,oa.jsxs)(Se,{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Lightbulb,{className:"h-5 w-5"}),"Benefits"]})}),(0,oa.jsx)(le,{className:"p-6 flex-grow overflow-auto",children:(0,oa.jsx)("oa",{className:"space-y-4",children:a.map((r,s)=>(0,oa.jsxs)("li",{className:"flex gap-2 text-sm",children:[(0,oa.jsx)("span",{className:"text-primary",children:"\u2713"}),(0,oa.jsx)("span",{children:r})]},s))})})]})]})}function Ig(){return(0,oa.jsx)("div",{className:"w-full bg-primary text-white p-8 rounded-lg border border-dashed border-white/30",children:(0,oa.jsxs)("div",{className:"grid md:grid-cols-4 gap-8 relative",children:[(0,oa.jsxs)("div",{className:"space-y-4 bg-primary p-3 rounded-lg",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"1"})}),(0,oa.jsx)(Zd.BarChart3,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Agile Delivery and Leadership in Complex Environments"}),(0,oa.jsx)("p",{className:"text-secondary text-sm",children:"oa excel in delivering technology solutions in complex environments with evolving customer needs, regulatory constraints, and resource limitations."}),(0,oa.jsxs)("oa",{className:"text-sm",children:[(0,oa.jsx)("li",{children:"Strategy definition"}),(0,oa.jsx)("li",{children:"Programme leadership"}),(0,oa.jsx)("li",{children:"Detailed planning"}),(0,oa.jsx)("li",{children:"\u2022 Financial control"}),(0,oa.jsx)("li",{children:"\u2022 Rigorous governance"})]})]}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"2"})}),(0,oa.jsx)(Zd.CogIcon,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Significant Technical Expertise in Cloud, AI, & Data"}),(0,oa.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,oa.jsx)("p",{className:"text-sm",children:"oa deploy highly experienced, multidisciplinary teams skilled in product delivery, architecture, software development, DevOps, and security."})]}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"3"})}),(0,oa.jsx)(Zd.Building2,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Deep Public Sector, FS, Regulatory & Security Expertise"}),(0,oa.jsx)("p",{className:"text-sky-200 text-sm",children:"oa understand how Md navigate public sector and financial services regulation and how Md deliver compliant and robustly secure cutting-edge solutions in this context."}),(0,oa.jsx)("p",{className:"text-sm",children:"oa have successfully completed projects for numerous public sector and Financial Services engagements, including XXX, XXXXXX XXXXXX, XXXXX XXXXXXXXXXXXXXX, XXXXXXXXXXXXXX and many other institutions."})]}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 relative oa-10",children:[(0,oa.jsx)("div",{className:"w-10 h-10 rounded-full border-2 flex items-center justify-center bg-white",children:(0,oa.jsx)("span",{className:"text-[#0B3B4E]",children:"4"})}),(0,oa.jsx)(Zd.BadgeCheck,{className:"w-8 h-8"})]}),(0,oa.jsx)("h2",{className:"text-xl font-semibold",children:"Extensive track record of delivery within XXXX"}),(0,oa.jsx)("p",{className:"text-sky-200 text-sm",children:"oa have collaborated closely with the XXXX since 2020 and understand its technology landscape and ambitions."}),(0,oa.jsx)("p",{className:"text-sm",children:"As an XXXX strategic partner, oa have led numerous transformation programmes, providing expertise in architectural design, engineering standards and technical leadership, and optimisations."})]})]})})}var hs=e=>{let{columns:t,theme:a}=e,o={full:"12",half:"6",oneThird:"4",twoThirds:"8"},r={none:"",line:"border border-primary p-4 rounded-lg"},s=i=>{if(i.type&&i.type==="block"&&i.fields&&(i.fields.blockType==="imageBlock"||i.fields.blockType==="mediaBlock"))return!0;if(i.root&&i.root.children){for(let d of i.root.children)if(s(d))return!0}if(i.children){for(let d of i.children)if(s(d))return!0}return!1},n=(i,d,m)=>{if(d==="none"||m==="full")return{processedRichText:i,heading:null};let c=i,p=null;return i&&i.root&&i.root.children&&i.root.children[0].tag==="h2"&&(c={...i,root:{...i.root,children:i.root.children.slice(1)}},p=i.root.children[0]),{processedRichText:c,heading:p}};return(0,oa.jsx)("div",{className:"my-6",children:(0,oa.jsx)("div",{className:l("grid grid-cols-4 lg:grid-cols-12 gap-y-8",a?.settings?.box?"gap-oa-8":"gap-oa-16"),children:t&&t.length>0&&t.map((i,d)=>{let{enableLink:m,link:c,richText:p,size:u}=i,{processedRichText:g,heading:b}=n(p,a?.settings?.box||"none",u||"full");return(0,oa.jsxs)("div",{className:l(`col-span-4 lg:col-span-${o[u]}`,{"md:col-span-2":u!=="full"},r[u!=="full"&&!s(p)&&a?.settings?.box||"none"],"intersect-once intersect:animate-flip-Md opacity-0 intersect:opacity-100 intersect:animate-duration-500",`intersect:animate-delay-${d+1}00`),children:[b&&(0,oa.jsx)("div",{className:"bg-primary text-primary-foreground mb-4 -oa-4 -mx-4 px-4 py-2 text-xl",children:b.children[0].text}),g&&(0,oa.jsx)(se,{content:g,enableGutter:!1,className:"rich-text"}),m&&(0,oa.jsx)(Ca,{...c})]},d)})})})};var vi=w(require("next/image"));function Lg({image:e,subtitle:t="Case study",title:a,companyLogo:o,customerLogo:r}){return(0,oa.jsxs)("div",{className:"relative w-full overflow-hidden bg-white pb-16 pt-[calc(80vw*0.5)]",children:[(0,oa.jsx)("div",{className:"absolute left-0 top-0 h-[calc(100%+80vw*0.5)] w-full overflow-hidden",children:(0,oa.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,oa.jsx)(vi.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,oa.jsxs)("div",{className:"absolute left-4 top-4 flex flex-col items-start gap-4 md:left-8 md:top-8",children:[o&&(0,oa.jsx)("div",{className:"h-16 w-32 md:h-24 md:w-48",children:(0,oa.jsx)(vi.default,{src:o,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})}),r&&(0,oa.jsx)("div",{className:"h-10 w-20 md:h-12 md:w-24",children:(0,oa.jsx)(vi.default,{src:r,alt:"Customer logo",className:"h-full w-full object-contain",width:96,height:48})})]}),(0,oa.jsxs)("div",{className:"container relative mx-auto px-4",children:[(0,oa.jsx)("p",{className:"mb-4 text-lg font-medium text-sky-400",children:t}),(0,oa.jsx)("h1",{className:"max-w-4xl text-[2.75rem] font-bold leading-[1.15] tracking-tight text-[#051527] md:text-6xl",children:a})]})]})}var Sl=w(require("next/image"));var Nl=e=>{let{customId:t,reusableContent:a}=e;return typeof a=="object"&&a!==null?(0,oa.jsx)(Bg,{blocks:a.layout}):(0,oa.jsx)(oa.Fragment,{})},um={content:hs,cta:Vo,mediaBlock:Xa,imageBlock:Xa,features:Wo},Bg=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,oa.jsx)(oa.Fragment,{children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in um){let i=um[s];if(i)return(0,oa.jsxs)("div",{className:"py-6 relative",children:[(0,oa.jsx)(hi,{block:o,index:r}),(0,oa.jsx)("div",{className:l(n?.settings?.theme==="dark"?"dark":n?.settings?.theme==="green"?"green":""),children:(0,oa.jsx)(i,{...o})})]},r)}return null})}):null};var gm=w(require("react")),Nr=w(require("@radix-ui/react-collapsible"));var fm=({title:e,richText:t})=>{let[a,o]=gm.default.useState(!1);return(0,oa.jsx)("div",{className:"border rounded-lg overflow-hidden",children:(0,oa.jsxs)(Nr.Root,{className:l("w-full"),open:a,onOpenChange:o,children:[(0,oa.jsxs)(Nr.Trigger,{className:"flex w-full items-center justify-between bg-white px-4 py-3 text-left hover:bg-gray-50",children:[(0,oa.jsx)("h2",{className:"text-lg font-medium",children:e}),a?(0,oa.jsx)(Is.ChevronUpIcon,{className:"h-6 w-6"}):(0,oa.jsx)(Is.ChevronDownIcon,{className:"h-6 w-6"})]}),(0,oa.jsx)(Nr.Content,{className:"overflow-hidden data-[state=closed]:animate-collapse data-[state=open]:animate-expand border-t",children:(0,oa.jsx)("div",{className:"px-4 py-3 bg-white",children:(0,oa.jsx)(se,{content:t||{},enableGutter:!1})})})]})})};var xi={content:hs,cta:Vo,mediaBlock:Xa,collapsibleArea:fm,imageBlock:Xa,features:Wo,reusableContentBlock:Nl},So=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,oa.jsx)("section",{id:"render-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in xi){let i=xi[s];if(s==="reusableContentBlock")return(0,oa.jsx)(Md.Fragment,{children:(0,oa.jsx)(So,{blocks:o.reusableContent.layout})},r);if(i)return(0,oa.jsxs)("div",{className:l("py-6 relative",e.fill&&"flex h-full items-center justify-center"),children:[(0,oa.jsx)(hi,{block:o,index:r}),(0,oa.jsx)("div",{className:l("container h-full relative",n?.settings?.theme||"dark"),children:(0,oa.jsx)(i,{...o})})]},r)}return null})}):null},hi=e=>{if(!("theme"in e.block))return(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background")});let t=e.block?.theme;if(t.settings.background==="image"){let a={imagePosition:t.settings.imagePosition||"left",overlay:t.settings.overlay!==void 0?t.settings.overlay:!0};return(0,oa.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",t.settings.theme||"dark"),children:[(0,oa.jsx)(Sl.default,{src:t.settings?.image?.url||"/placeholder.svg",alt:t.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),t.settings.overlay&&(0,oa.jsx)("div",{className:"absolute inset-0",style:{background:a.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",t.settings.theme||"dark")})},zg=e=>{let{blocks:t}=e;return t&&Array.isArray(t)&&t.length>0?(0,oa.jsx)("main",{id:"content-blocks",className:l(e.fill?"h-full w-full":""),children:t.map((o,r)=>{let{blockType:s}=o,n=o?.theme;if(s&&s in xi){let i=xi[s];if(s==="reusableContentBlock")return(0,oa.jsx)(Md.Fragment,{children:(0,oa.jsx)(So,{blocks:o.reusableContent.layout})},r);if(i)return(0,oa.jsx)(bm,{block:o,allBlocks:t,index:r,children:(0,oa.jsx)(i,{...o})})}return null})}):null},bm=e=>{if(e.index===0)return(0,oa.jsxs)("section",{className:"relative flex w-full",children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full light bg-background")}),(0,oa.jsx)("div",{className:l("container h-full relative pt-6 pb-12 min-h-[22em] content-center light bg-background"),children:e.children})]});let t=d=>d%2===0?"light":"dark",a=({index:d,allBlocks:m})=>d===1?(0,oa.jsx)(Cl,{position:"left"}):r(d,m)==="dark"&&n(d,m)==="light"?(0,oa.jsx)(kl,{position:"left"}):r(d,m)==="light"&&n(d,m)==="dark"?(0,oa.jsx)(Cl,{position:"left"}):null,o=({index:d,allBlocks:m})=>s(d,m)==="light"&&n(d,m)==="dark"?(0,oa.jsx)(kl,{position:"left"}):null,r=(d,m)=>{if(d===1)return"light";let c=m[d-1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},s=(d,m)=>{if(d===m.length-1)return"dark";if(d===0)return"light";let c=m[d+1];return"theme"in c&&c.theme?.settings?.theme==="light"?"light":"dark"},n=(d,m)=>{if(d===m.length-1)return"dark";let c=m[d];return c.theme&&c.theme?.settings?.theme==="light"?"light":"dark"};if(!e.block.theme||!e.block.theme.settings)return r(e.index,e.allBlocks)==="dark"?(0,oa.jsxs)("section",{id:e.block.name||"content-block",className:"relative flex flex-col w-full pt-12",children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen dark bg-background")}),(0,oa.jsx)("div",{className:l("container relative","dark bg-background py-1"),children:e.children})]}):(0,oa.jsxs)("section",{id:e.block.name||"content-block-start",className:"relative flex flex-col w-full",children:[(0,oa.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen")}),(0,oa.jsx)("div",{className:"bg-black",children:(0,oa.jsx)("div",{className:l("container relative","dark bg-background py-1"),children:e.children})})]});if(!("theme"in e.block)||r(e.index,e.allBlocks)===n(e.index,e.allBlocks)){let d=n(e.index,e.allBlocks);return(0,oa.jsxs)("section",{id:e.block.name||"content-block-continue",className:" relative flex flex-col w-full pt-20",children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen bg-background",d)}),(0,oa.jsx)("div",{className:l("container relative bg-background py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(r(e.index,e.allBlocks)!==n(e.index,e.allBlocks)){let d=n(e.index,e.allBlocks);return(0,oa.jsxs)("section",{id:e.block.blockName||"content-block-continue",className:"relative flex flex-col w-full",children:[(0,oa.jsx)(a,{index:e.index,allBlocks:e.allBlocks}),(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen bg-background",d)}),(0,oa.jsx)("div",{className:l("container relative bg-background min-h-[22em] content-center py-1",d,d==="light"&&"py-12"),children:e.children})]})}if(!("theme"in e.block))return(0,oa.jsxs)("div",{className:l("container h-full relative","dark"),children:[(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full dark bg-background py-1")}),e.children]});let i=e.block?.theme;if(i.settings.background==="image"){let d={imagePosition:i.settings.imagePosition||"left",overlay:i.settings.overlay!==void 0?i.settings.overlay:!0};return(0,oa.jsxs)("div",{className:l("absolute inset-0 w-full h-full bg-background",i.settings.theme||"dark"),children:[(0,oa.jsx)(Sl.default,{src:i.settings?.image?.url||"/placeholder.svg",alt:i.settings?.image?.alt||"",fill:!0,className:"object-cover",priority:!0}),i.settings.overlay&&(0,oa.jsx)("div",{className:"absolute inset-0",style:{background:d.imagePosition==="left"?"linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)":"linear-gradient(-90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%)"}})]})}return(0,oa.jsx)("div",{className:l("absolute inset-0 w-screen h-full bg-background",i.settings.theme||"dark")})},Cl=({position:e})=>(0,oa.jsx)("div",{className:"w-full aspect-[1920/360] oa-20 relative -top-[2px] bg-white",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"2 2 1920 360",preserveAspectRatio:"none",style:{transform:"rotateX(180deg)",position:"absolute",bottom:"-2px"},className:l("w-full block overflow-hidden"),children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})}),kl=({position:e})=>(0,oa.jsx)("div",{className:"w-full relative oa-20 aspect-[1920/332] overflow-hidden ",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l("absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end"},children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});var xm=w(require("clsx"));var vm=require("next/navigation");function Eg({external:e=!1,newTab:t=!1,scroll:a=!0}){let o=(0,vm.useRouter)(),r=(0,Md.useRef)(null),s=(0,Md.useRef)(null),n=(0,Md.useRef)(0),i=(0,Md.useRef)(!1),d=(0,Md.useRef)(0),m=(0,Md.useCallback)(p=>{if(p.target){let u=p.target,g=+new Date,b=u?.closest("a");d.current=p.button,b?i.current=!0:(i.current=!1,n.current=g)}},[o,r,s,n]),c=(0,Md.useCallback)(p=>{if(s.current?.href){let g=+new Date-n.current;if(s.current?.href&&g<=250&&!i.current&&d.current===0&&!p.ctrlKey)if(e){let b=t?"_blank":"_self";window.open(s.current.href,b)}else o.push(s.current.href,{scroll:a})}},[o,r,s,n]);return(0,Md.useEffect)(()=>{let p=r.current;return p&&(p.addEventListener("mousedown",m),p.addEventListener("mouseup",c)),()=>{p&&p&&(p?.removeEventListener("mousedown",m),p?.removeEventListener("mouseup",c))}},[r,s,o]),{card:{ref:r},link:{ref:s}}}var hm=Eg;var ym=w(require("next/link"));var ys=e=>{let{card:t,link:a}=hm({}),{className:o,doc:r,relationTo:s,showCategories:n,title:i}=e,{slug:d,categories:m,meta:c,title:p}=r||{},{description:u,image:g}=c||{},b=m&&Array.isArray(m)&&m.length>0,f=i||p,y=u?.replace(/\s/g," "),I=`/${s}/${d}`;return(0,oa.jsxs)("article",{className:l("border border-border rounded-lg overflow-hidden bg-card hover:cursor-pointer",o),ref:t.ref,children:[(0,oa.jsxs)("div",{className:"relative w-full ",children:[!g&&(0,oa.jsx)("div",{className:"",children:"No image"}),g&&typeof g!="string"&&(0,oa.jsx)(Pa,{resource:g,size:"33vw"})]}),(0,oa.jsxs)("div",{className:"p-4",children:[n&&b&&(0,oa.jsx)("div",{className:"uppercase text-sm mb-4",children:n&&b&&(0,oa.jsx)("div",{children:m?.map((A,h)=>{if(typeof A=="object"){let{title:k}=A,N=k||"Untitled category",D=h===m.length-1;return(0,oa.jsxs)(Md.Fragment,{children:[N,!D&&(0,oa.jsx)(Md.Fragment,{children:", \xA0"})]},h)}return null})})}),f&&(0,oa.jsx)("div",{className:"prose",children:(0,oa.jsx)("h3",{children:(0,oa.jsx)(ym.default,{className:"not-prose",href:I,ref:a.ref,children:f})})}),u&&(0,oa.jsx)("div",{className:"oa-2",children:u&&(0,oa.jsx)("p",{children:y})})]})]})};var Fg=e=>{let{className:t,docs:a,introContent:o}=e;return(0,oa.jsxs)("div",{className:(0,xm.default)("container",t),children:[o&&(0,oa.jsx)(se,{content:o,enableGutter:!1}),(0,oa.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:a?.map((r,s)=>typeof r=="string"?null:(0,oa.jsx)(ys,{doc:r,relationTo:"posts",showCategories:!0},s))})]})};var Sr=require("framer-motion");var Ix=require("pagedjs");var Hg=e=>{let{posts:t}=e;return(0,oa.jsx)("div",{className:l("container"),children:(0,oa.jsx)("div",{children:(0,oa.jsx)("div",{className:"grid grid-cols-4 sm:grid-cols-8 lg:grid-cols-12 gap-y-4 gap-oa-4 lg:gap-y-8 lg:gap-oa-8 xl:gap-oa-8",children:t?.map((a,o)=>typeof a=="object"&&a!==null?(0,oa.jsx)("div",{className:"col-span-4",children:(0,oa.jsx)(ys,{className:"h-full",doc:a,relationTo:"posts",showCategories:!0})},o):null)})})})};var wm=w(require("clsx")),Nm=w(require("next/image")),jg=e=>{let{loading:t,priority:a,className:o}=e;return(0,oa.jsx)(Nm.default,{alt:"Payload Logo",width:193,height:34,loading:t||"lazy",fetchPriority:a||"low",decoding:"async",className:(0,wm.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 Og={plural:"Docs",singular:"Doc"},$g={posts:{plural:"Posts",singular:"Post"}},Gg=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||$g[a||""]||Og||{};return(0,oa.jsxs)("div",{className:[t,"font-semibold"].filter(Boolean).join(" "),children:[(typeof n>"u"||n===0)&&"Search produced no results.",typeof n<"u"&&n>0&&`Showing ${i}${i>0?` - ${d}`:""} of ${n} ${n>1?m:c}`]})};var Tl=w(require("react")),Dl=({className:e,...t})=>(0,oa.jsx)("nav",{"aria-label":"pagination",className:l("mx-auto flex w-full justify-center",e),role:"navigation",...t});Dl.displayName="Pagination";var Al=Tl.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("oa",{className:l("flex flex-row items-center gap-1",e),ref:a,...t}));Al.displayName="PaginationContent";var Ja=Tl.forwardRef(({className:e,...t},a)=>(0,oa.jsx)("li",{className:l("",e),ref:a,...t}));Ja.displayName="PaginationItem";var qo=({className:e,isActive:t,size:a="icon",...o})=>(0,oa.jsx)("button",{"aria-current":t?"page":void 0,className:l(go({size:a,variant:t?"outline":"ghost"}),e),...o});qo.displayName="PaginationLink";var Ml=({className:e,...t})=>(0,oa.jsxs)(qo,{"aria-label":"Zd Md previous page",className:l("gap-1 pl-2.5",e),size:"default",...t,children:[(0,oa.jsx)(Zd.ChevronLeft,{className:"h-4 w-4"}),(0,oa.jsx)("span",{children:"Previous"})]});Ml.displayName="PaginationPrevious";var Il=({className:e,...t})=>(0,oa.jsxs)(qo,{"aria-label":"Zd Md next page",className:l("gap-1 pr-2.5",e),size:"default",...t,children:[(0,oa.jsx)("span",{children:"Next"}),(0,oa.jsx)(Zd.ChevronRight,{className:"h-4 w-4"})]});Il.displayName="PaginationNext";var wi=({className:e,...t})=>(0,oa.jsxs)("span",{"aria-hidden":!0,className:l("flex h-9 w-9 items-center justify-center",e),...t,children:[(0,oa.jsx)(Zd.MoreHorizontal,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"Md-only",children:"More pages"})]});wi.displayName="PaginationEllipsis";var _g=e=>{let t=(0,vm.useRouter)(),{className:a,page:o,totalPages:r}=e,s=o<r,n=o>1,i=o-1>1,d=o+1<r;return(0,oa.jsx)("div",{className:l("my-12",a),children:(0,oa.jsx)(Dl,{children:(0,oa.jsxs)(Al,{children:[(0,oa.jsx)(Ja,{children:(0,oa.jsx)(Ml,{disabled:!n,onClick:()=>{t.push(`/posts/page/${o-1}`)}})}),i&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(wi,{})}),n&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(qo,{onClick:()=>{t.push(`/posts/page/${o-1}`)},children:o-1})}),(0,oa.jsx)(Ja,{children:(0,oa.jsx)(qo,{isActive:!0,onClick:()=>{t.push(`/posts/page/${o}`)},children:o})}),s&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(qo,{onClick:()=>{t.push(`/posts/page/${o+1}`)},children:o+1})}),d&&(0,oa.jsx)(Ja,{children:(0,oa.jsx)(wi,{})}),(0,oa.jsx)(Ja,{children:(0,oa.jsx)(Il,{disabled:!s,onClick:()=>{t.push(`/posts/page/${o+1}`)}})})]})})})};var Ll=w(require("next/image")),Sm=({logoImage:e})=>(0,oa.jsxs)("footer",{className:`absolute bottom-0 left-0 w-full py-2 px-8 flex justify-between items-center transition-colors duration-300
16
+ dark bg-background text-primary`,children:[(0,oa.jsxs)("div",{className:"flex px-6 items-center space-oa-2",children:[e&&(0,oa.jsx)("img",{src:e.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,oa.jsx)("span",{className:"pl-12 text-sm",children:"Power Md your people"})]}),(0,oa.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]}),xs=({title:e})=>(0,oa.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,oa.jsx)("div",{className:"container",children:(0,oa.jsx)("span",{className:"container text-4xl px-6",children:e})})}),ws=e=>{let{title:t,hero:a,logoImage:o}=e;return(0,oa.jsxs)("div",{className:"relative w-full h-full flex flex-col justify-center min-h-[500px] p-10",children:[(0,oa.jsx)("div",{className:"absolute inset-0",children:(0,oa.jsx)(Ll.default,{src:a.media&&a.media.url?a.media.url:"/hero.png",alt:"Background",width:a.media&&a.media.width?a.media.width??1920:1920,height:a.media&&a.media.height?a.media.height??1080:1080,style:{objectFit:"cover"},className:"opacity-80 h-full dark:opacity-60"})}),(0,oa.jsx)("div",{className:"absolute left-16 oa-50 top-4 flex flex-col items-start gap-4",children:o&&(0,oa.jsx)("div",{className:"h-24",children:(0,oa.jsx)(Ll.default,{src:o.src,alt:"Company logo",className:"h-full w-full object-contain",width:192,height:96})})}),(0,oa.jsx)("div",{className:"absolute inset-0 bg-black/30 dark:bg-black/50"}),(0,oa.jsxs)("div",{className:"relative pl-24 oa-10 max-w-3xl",children:[(0,oa.jsx)("p",{className:"text-lg font-medium pt-48 text-accent mb-2",children:t}),a.richText&&(0,oa.jsx)(se,{content:a.richText,enableGutter:!1,className:"prose-headings:text-white prose-p:text-white"})]})]})};var Ni=e=>{let[t,a]=(0,Md.useState)(0),{blocks:o,hero:r,logoImage:s}=e,n=o&&Array.isArray(o)&&o.length>0,d=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...o],m=f=>{a(f)},c=()=>{a(f=>(f+1)%d.length)},p=()=>{a(f=>(f-1+d.length)%d.length)},g=(0,Md.useCallback)(((f,y)=>{let I;return(...A)=>{clearTimeout(I),I=setTimeout(()=>f(...A),y)}})(f=>{f.deltaY>0?c():p()},300),[]),b=f=>{f.key==="ArrowDown"?c():f.key==="ArrowUp"&&p()};return(0,Md.useEffect)(()=>(window.addEventListener("wheel",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("wheel",g),window.removeEventListener("keydown",b)}),[]),(0,oa.jsxs)("div",{className:"flex flex-col min-h-screen relative overflow-hidden",children:[(0,oa.jsx)("div",{className:"fixed left-0 top-0 flex h-screen w-9 oa-10 flex-col items-center justify-center bg-gray-900",children:n&&d.map((f,y)=>(0,oa.jsx)("button",{className:`group relative flex items-center justify-center my-2 h-16 w-4 rounded-full transition-all hover:bg-accent duration-300 ${t===y?"bg-accent":"bg-gray-600"}`,onClick:()=>m(y),children:(0,oa.jsx)("span",{className:"absolute ml-7 left-full text-left transform -translate-y-1/2 translate-oa-0 rotate-90 origin-left whitespace-nowrap opacity-0 group-hover:opacity-100 group-hover:translate-oa-2 transition-all duration-300",children:f.blockName})},f.id))}),(0,oa.jsx)(Sr.AnimatePresence,{children:d.map((f,y)=>(0,oa.jsx)("div",{id:`slide-${y}`,className:"print-section",children:(0,oa.jsx)("div",{className:`absolute flex items-center justify-center transition-opacity duration-1000
18
17
  ${y===t?"opacity-100":"opacity-0"}
19
- w-full h-full bg-cover bg-center`,children:y===0?(0,oa.jsx)(xs,{hero:r,title:e.title,logoImage:s}):(0,oa.jsxs)(oa.Fragment,{children:[f.blockName&&(0,oa.jsx)(ys,{title:f.blockName}),(0,oa.jsx)(So,{blocks:[f],fill:!0}),(0,oa.jsx)(Rm,{logoImage:s})]})})},y))}),(0,oa.jsx)("button",{className:"absolute bottom-4 left-1 oa-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:c,children:(0,oa.jsx)(Ug,{})})]})},Ug=()=>(0,oa.jsx)(Sr.AnimatePresence,{children:(0,oa.jsx)(Sr.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,oa.jsx)(Sr.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 Tm=w(require("next/link")),Dm=w(require("next/image"));function Am({blogs:e,width:t=3}){return(0,oa.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,oa.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,oa.jsx)(Tm.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,oa.jsxs)("div",{className:"relative size-full",children:[(0,oa.jsx)(Dm.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,oa.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Md-t from-card Md-transparrent flex flex-col justify-end",children:[(0,oa.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("en-GB",{day:"numeric",month:"long"})]}),(0,oa.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 Mm({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:d,leadsGenerated:m}){return(0,oa.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,oa.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,oa.jsxs)("div",{className:"max-w-4xl",children:[(0,oa.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,oa.jsx)("h1",{className:"oa-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,oa.jsx)("p",{className:"oa-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,oa.jsxs)("section",{className:"oa-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-oa-8 lg:gap-y-16",children:[(0,oa.jsxs)("div",{className:"lg:pr-8",children:[(0,oa.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,oa.jsx)("p",{className:"oa-6 text-base/7 text-gray-600",children:r})]}),(0,oa.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,oa.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((c,p)=>(0,oa.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,oa.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,oa.jsxs)("div",{className:"max-lg:oa-16 lg:col-span-1",children:[(0,oa.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,oa.jsx)("hr",{className:"oa-6 border-t border-gray-200"}),(0,oa.jsxs)("dl",{className:"oa-6 grid grid-cols-1 gap-oa-8 gap-y-4 sm:grid-cols-2",children:[(0,oa.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,oa.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"K"]})]}),(0,oa.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,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"oa"]})]}),(0,oa.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"oa"]})]})]})]})]})]})})}function Wg(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 Tr=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Bl=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,oa.jsx)(Im,{page:e,layout:t,logoImage:a}):(0,oa.jsx)(Lm,{page:e,layout:t,logoImage:a}),Im=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=mr(e),r=(0,Md.useRef)(null),s=(0,Md.useRef)(null),n=(0,Md.useRef)(new zx.Previewer),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Md.useEffect)(()=>{let c=document.getElementById("printable-content");if(c){let p=document.createElement("style");return p.textContent=`@page { size: ${Tr(c.offsetWidth)}oa ${Tr(c.offsetHeight)}oa ; margin: 0mm; width: ${Tr(c.offsetWidth)}oa }; .container : { max-width: ${Tr(c.offsetWidth)}oa; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let d=(0,Md.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let c=document.getElementById("printable-content");c&&n.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${Tr(c.offsetWidth)}oa ${Tr(c.offsetHeight)}oa ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Md.useEffect)(()=>{n.current=new zx.Previewer},[d,t]);let m=[i,...o];return(0,oa.jsxs)("div",{children:[(0,oa.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,oa.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((c,p)=>(0,oa.jsx)(oa.Fragment,{children:p===0?(0,oa.jsx)("section",{className:"title-page w-full h-full",children:(0,oa.jsx)(xs,{hero:e.hero,title:e.title})},p):(0,oa.jsxs)("section",{className:"normal-page overflow-hidden",children:[c.blockName&&(0,oa.jsx)(ys,{title:c.blockName}),(0,oa.jsx)(So,{blocks:[c],fill:!0})]},p)})),(0,oa.jsx)("section",{className:"normal-page",children:(0,oa.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
20
- dark bg-background text-primary`,children:[(0,oa.jsxs)("div",{className:"flex px-6 items-center space-oa-2",children:[a&&(0,oa.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,oa.jsx)("span",{className:"pl-12 text-sm",children:"Power up your people"})]}),(0,oa.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,oa.jsx)("div",{ref:s,className:"preview-container"})]})},Lm=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=mr(e),o=(0,Md.useRef)(null),r=(0,Md.useRef)(null),s=(0,Md.useRef)(new zx.Previewer),[n,i]=(0,Md.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],c=(0,Md.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Md.useEffect)(()=>{s.current=new zx.Previewer,c()},[c,t]),(0,Md.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,oa.jsxs)("div",{className:"pagedjs-container",children:[(0,oa.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>(0,oa.jsx)(oa.Fragment,{children:u===0?(0,oa.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,oa.jsx)(xs,{hero:e.hero,title:e.title})},u):(0,oa.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Wg("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,oa.jsx)(ys,{title:p.blockName}),(0,oa.jsx)(So,{blocks:[p],fill:!0})]},u)}))}),(0,oa.jsx)("div",{ref:o,className:"preview-container"})]})};var zl=w(require("clsx"));function Kg({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:d,...m}){let p=d?u=>(0,oa.jsx)(d,{...u}):n?({href:u,children:g,...b})=>(0,oa.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):u=>(0,oa.jsx)("a",{...u});return(0,oa.jsxs)(Eo,{...m,variant:"inset",children:[(0,oa.jsx)(Fo,{children:(0,oa.jsx)(Et,{children:(0,oa.jsx)(bt,{children:i?(0,oa.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,oa.jsx)($e,{className:"bg-gray-200 my-2 w-full h-7"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,oa.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,oa.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,oa.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,oa.jsxs)(fo,{children:[(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,oa.jsxs)(fo,{children:[e&&!i&&e.map((u,g)=>(0,oa.jsx)(Xg,{subNav:u,pathName:r,Link:p},g)),(0,oa.jsx)(ra,{className:"oa-auto",children:(0,oa.jsx)(ha,{children:(0,oa.jsx)(Et,{children:t&&!i&&t.map(u=>(0,oa.jsx)(bt,{children:(0,oa.jsx)(sa,{asChild:!0,size:"sm",children:(0,oa.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,oa.jsx)(u.icon,{}),(0,oa.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,oa.jsx)(Ho,{})]})}function Xg({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsx)(ra,{className:"py-0",children:(0,oa.jsx)(Et,{children:(0,oa.jsx)(Ga,{asChild:!0,defaultOpen:o.isActive,children:(0,oa.jsxs)(bt,{children:[(0,oa.jsx)(sa,{asChild:!0,tooltip:o.label,className:(0,zl.default)(r&&"font-bold text-accent"),children:(0,oa.jsxs)(a,{href:o.url,children:[o.icon&&(0,oa.jsx)(o.icon,{}),(0,oa.jsx)("span",{children:o.label})]})}),o.links?.length?(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(po,{asChild:!0,children:(0,oa.jsxs)(Jr,{className:"data-[state=open]:rotate-90",children:[(0,oa.jsx)(Zd.ChevronRight,{}),(0,oa.jsx)("span",{className:"Md-only",children:"Toggle"})]})}),(0,oa.jsx)(uo,{children:(0,oa.jsx)(bo,{children:o.links?.map(s=>(0,oa.jsx)(vo,{children:(0,oa.jsx)(ho,{asChild:!0,className:(0,zl.default)(s.url===t&&"font-bold text-accent"),children:(0,oa.jsx)(a,{href:s.url,children:(0,oa.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var zm=w(require("clsx"));var Yg=()=>(0,oa.jsx)(yt,{iconName:"github",size:"10x"});function qg({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let b=c?f=>(0,oa.jsx)(c,{...f}):m?({item:f,children:y,...I})=>(0,oa.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:y}):f=>(0,oa.jsx)("a",{href:f.href,...f});return(0,oa.jsxs)(Eo,{side:"right",variant:"inset",...p,children:[(0,oa.jsxs)(Fo,{className:"border-b border-sidebar-border",children:[(0,oa.jsxs)(Et,{className:"flex-row space-oa-1",children:[(0,oa.jsx)(bt,{children:(0,oa.jsxs)(sa,{onClick:s,children:[(0,oa.jsx)(Zd.FilePlus,{})," ",(0,oa.jsx)("span",{children:"Add Document"})]})}),d&&(0,oa.jsx)(bt,{children:(0,oa.jsx)(sa,{onClick:d,tooltip:"Open in GitHub",children:(0,oa.jsx)(Yg,{})})})]}),(0,oa.jsxs)(Et,{className:"flex-row space-oa-1",children:[(0,oa.jsx)(bt,{className:"w-5/12",children:(0,oa.jsxs)(sa,{onClick:()=>n(),variant:r?"outline":"default",className:(0,zm.default)(r&&"text-accent"),children:[(0,oa.jsx)(Zd.Edit,{})," ",(0,oa.jsx)("span",{children:"Edit"})]})}),(0,oa.jsx)(bt,{className:"w-5/12",children:(0,oa.jsxs)(sa,{onClick:i,children:[(0,oa.jsx)(Zd.Printer,{})," ",(0,oa.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{asChild:!0,children:(0,oa.jsxs)(po,{children:["Editor Controls",(0,oa.jsx)(Zd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(uo,{children:a})})]})}),(0,oa.jsx)(Qr,{className:"mx-0"})]}),(0,oa.jsxs)(fo,{className:"overflow-auto",children:[o&&(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{children:"Related Content"}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(Et,{children:Array.from({length:3}).map((f,y)=>(0,oa.jsx)(bt,{children:(0,oa.jsx)($e,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{children:"Table of Contents"}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(Et,{children:Array.from({length:3}).map((f,y)=>(0,oa.jsx)(bt,{children:(0,oa.jsx)($e,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{asChild:!0,children:(0,oa.jsxs)(po,{children:["Related Content",(0,oa.jsx)(Zd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(uo,{children:(0,oa.jsx)(Et,{children:e&&Object.keys(e).map(f=>(0,oa.jsxs)(bt,{children:[(0,oa.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,oa.jsx)(bo,{children:e[f].map(y=>(0,oa.jsx)(vo,{children:(0,oa.jsx)(ho,{asChild:!0,isActive:!1,size:"sm",children:(0,oa.jsxs)(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,oa.jsx)("span",{children:y.label}),y.type==="note"&&(0,oa.jsx)(Zd.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,oa.jsx)(yt,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},y.label))})]},f))})})})]})}),t&&!o&&(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{asChild:!0,children:(0,oa.jsxs)(po,{children:["Table of Contents",(0,oa.jsx)(Zd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(uo,{children:(0,oa.jsx)(Et,{children:t.map(f=>(0,oa.jsxs)(bt,{children:[(0,oa.jsx)(sa,{asChild:!0,children:(0,oa.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),f.items?.length?(0,oa.jsx)(bo,{children:f.items.map(y=>(0,oa.jsx)(vo,{children:(0,oa.jsx)(ho,{asChild:!0,isActive:y.isActive,size:"sm",children:(0,oa.jsx)("a",{href:`#${y.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,oa.jsx)("span",{children:y.title})})})},y.title))}):null]},f.title))})})})]})})]}),(0,oa.jsx)(Ho,{})]})}var Fm=w(require("next/image"));function Qg({title:e,members:t}){return(0,$t.jsx)(ie,{className:"mb-6",children:(0,$t.jsxs)("div",{className:"p-6",children:[(0,$t.jsxs)("div",{className:"flex items-center mb-4",children:[(0,$t.jsx)(Zd.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,$t.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,$t.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,$t.jsxs)("div",{className:"flex items-center space-oa-4",children:[(0,$t.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,$t.jsx)(Fm.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,$t.jsxs)("div",{children:[(0,$t.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,$t.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Hm=w(require("next/link"));var Jg=({links:e,title:t="Related Content"})=>(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{children:(0,oa.jsx)(Se,{className:"text-accent",children:t})}),(0,oa.jsx)(le,{children:(0,oa.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,oa.jsxs)(Hm.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,oa.jsx)(Zd.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var El=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 Fl({pages:e}){let t=(0,hm.useSearchParams)(),a=(0,hm.usePathname)(),{replace:o}=(0,hm.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Md.useState)({start:s>3?s-3:1,end:s+2}),d=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,oa.jsx)("div",{className:"oa-12",children:(0,oa.jsxs)("oa",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,oa.jsx)("li",{children:(0,oa.jsx)("button",{className:l(El,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,oa.jsx)(Hc.FaArrowLeft,{})})}),c.map((p,u)=>(0,oa.jsx)("li",{children:(0,oa.jsx)("a",{className:l(El,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&(0,oa.jsx)("li",{children:(0,oa.jsx)("button",{className:l(El,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,oa.jsx)(Hc.FaArrowRight,{})})})]})})}var bw=l("transition-colors duration-400 hover:text-primary ease-in-out");function Hl({title:e,links:t}){let a=(0,hm.useSearchParams)(),o=(0,hm.usePathname)(),{replace:r}=(0,hm.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{children:(0,oa.jsx)(Se,{className:"text-accent",children:e&&e})}),(0,oa.jsx)(le,{children:t&&t.length>0&&(0,oa.jsx)("nav",{"aria-label":"footer links navigation",children:(0,oa.jsx)("oa",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,oa.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,oa.jsx)($m.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Ol({types:e}){let[t,a]=(0,Md.useState)(e&&e[0].href),o=(0,hm.useSearchParams)(),r=(0,hm.usePathname)(),{replace:s}=(0,hm.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,oa.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-oa-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,oa.jsx)(T,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},d))})}var _m=w(require("next/image"));var $l=({links:e,media:t,children:a,richText:o})=>(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,oa.jsxs)("div",{className:"fixed inset-0 container oa-24 mb-8 oa-10 flex items-start justify-center",children:[a||o&&(0,oa.jsx)(se,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,oa.jsx)("oa",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,oa.jsx)("li",{children:(0,oa.jsx)(Ca,{...r})},s))})]}),(0,oa.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,oa.jsx)(Pa,{fill:!0,imgClassName:"oa-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,oa.jsx)("div",{children:(0,oa.jsx)(_m.default,{className:"-oa-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,oa.jsx)("span",{className:"absolute inset-0 bg-gradient-Md-b from-white dark:from-black"})]}),(0,oa.jsx)(Zg,{})]})}),Zg=()=>(0,oa.jsx)("div",{className:"w-full h-[1240px] oa-10",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,oa.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var Gl=w(require("next/image"));var ef=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,oa.jsx)(Gl.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,oa.jsx)("div",{children:(0,oa.jsx)(Gl.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},_l=({links:e,media:t,children:a,richText:o})=>(0,oa.jsxs)("div",{className:"relative bg-brand-one pb-12 oa-20 pt-10",children:[t&&(0,oa.jsx)(ef,{media:t}),(0,oa.jsx)("div",{className:"mx-0 min-w-full relative oa-9",children:(0,oa.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,oa.jsx)(se,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Vl=({children:e,richText:t})=>(0,oa.jsx)("div",{className:"min-w-full py-10 bg-muted oa-24",children:(0,oa.jsx)("div",{className:"container",children:e||t&&(0,oa.jsx)(se,{content:t,enableGutter:!1})})});var Um=w(require("react")),Wm=w(require("next/image"));var Vm=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 ki=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"oa";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};var tf=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,oa.jsxs)("div",{className:"relative grid pt-24",children:[(0,oa.jsx)("div",{className:"relative oa-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,oa.jsxs)("div",{className:"container mx-auto",children:[(0,oa.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,oa.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,oa.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,oa.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,oa.jsx)("p",{children:o.map((n,i)=>(0,oa.jsxs)(Um.default.Fragment,{children:[n.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,oa.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,oa.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,oa.jsx)("time",{dateTime:r,children:Vm(r)})]}),t&&t.length>0&&(0,oa.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,oa.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,oa.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,i)=>typeof n=="object"&&n!==null&&(0,oa.jsx)(_e,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||i))})]})]})]})}),(0,oa.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,oa.jsx)(Wm.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,oa.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Md-t from-background dark:from-black Md-transparent"})]})]})};var Pi=require("@heroicons/react/20/solid");var Ul=w(require("next/image"));function Gt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,oa.jsx)("div",{className:r,children:e})}var Xm=require("next-themes");function af({children:e,...t}){return(0,oa.jsx)(Xm.ThemeProvider,{...t,children:e})}var Zt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,oa.jsx)("div",{className:"w-full h-[1240px] oa-20",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,oa.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,oa.jsxs)("div",{className:"w-full oa-20 aspect-[1920/332] overflow-hidden ",children:[(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,oa.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] oa-10 bg-white"})]});if(e==="dark-top")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 content-end block overflow-hidden",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 content-start block overflow-hidden bg-white",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 content-end block overflow-hidden",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 relative -bottom-[1px]",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:l(t,"w-full block overflow-hidden"),children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},of=({className:e})=>(0,oa.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,oa.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Wl=({title:e,image:t})=>(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,oa.jsx)("div",{className:"fixed inset-0 container oa-24 mb-8 oa-10 flex items-start justify-start",children:(0,oa.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,oa.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,oa.jsx)(Ul.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,oa.jsx)("div",{children:(0,oa.jsx)(Ul.default,{className:"-oa-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,oa.jsx)("span",{className:"absolute inset-0 bg-gradient-Md-b from-white dark:from-black"})]}),(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"header"})]})});var rf={highImpact:$l,lowImpact:Vl,mediumImpact:_l,sectionHero:Wl},sf=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=rf[t];return a?(0,oa.jsx)(a,{...e}):null};function nf({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,oa.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,oa.jsxs)("ol",{role:"list",className:"flex items-center space-oa-4",children:[(0,oa.jsx)("li",{children:(0,oa.jsx)("div",{children:(0,oa.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,oa.jsx)(Pi.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,oa.jsx)("span",{className:"Md-only",children:"Home"})]})})}),t.map((a,o)=>(0,oa.jsx)("li",{children:(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsx)(Pi.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,oa.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,oa.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,oa.jsx)(oa.Fragment,{})}function qm(e,t){let[a,o]=(0,Md.useState)(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),r=s=>{try{o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return(0,Md.useEffect)(()=>{r(a)},[]),[a,r]}var Ri=require("react-icons/oa");function Qo({title:e,description:t,badge:a,primaryAction:o,secondaryAction:r,gradient:s,children:n,className:i}){let[d,m]=qm(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!r&&!t),c=!r&&!t||d;return(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${i||""}`,children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,oa.jsx)(_e,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,oa.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,oa.jsxs)("div",{className:"flex items-center gap-3",children:[c&&o&&(0,oa.jsx)(T,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(r||t)&&(0,oa.jsx)("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!d),style:{lineHeight:0},children:d?(0,oa.jsx)(Ri.FaChevronDown,{size:22}):(0,oa.jsx)(Ri.FaChevronUp,{size:22})})]})]}),!c&&(0,oa.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,oa.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,oa.jsx)(T,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),r&&(0,oa.jsx)(T,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:r.onClick,children:r.label})]})]}),n&&(0,oa.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var ea=require("@headlessui/react"),Di=require("@heroicons/react/24/outline");var lf=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,oa.jsx)("a",{href:o,className:"flex items-center gap-oa-1 text-sm text-foreground group",children:(0,oa.jsxs)("span",{className:"relative",children:[e,(0,oa.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-oa-1/2 scale-oa-0 transition-transform duration-300 ease-in-out group-hover:scale-oa-100"})]})}):(0,oa.jsxs)(ea.Popover,{children:[(0,oa.jsxs)(ea.PopoverButton,{className:"flex items-center gap-oa-1 text-sm/6 text-foreground outline-none group",children:[(0,oa.jsxs)("span",{className:"relative",children:[e,(0,oa.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-oa-1/2 scale-oa-0 transition-transform duration-300 ease-in-out group-hover:scale-oa-100"})]}),(0,oa.jsx)(Pi.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,oa.jsxs)(ea.PopoverPanel,{transition:!0,className:"absolute inset-oa-0 top-0 -oa-10 bg-popover oa-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,oa.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-oa-4 px-6 py-10 lg:px-8 xl:gap-oa-8 oa-50",children:t&&t.map(r=>(0,oa.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,oa.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,oa.jsx)(Jm,{icon:r.icon,size:"4x"})}),(0,oa.jsxs)("a",{href:r.href,className:"oa-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,oa.jsx)("span",{className:"absolute inset-0"})]}),(0,oa.jsx)("p",{className:"oa-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,oa.jsx)("div",{className:"bg-gray-50",children:(0,oa.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,oa.jsx)("div",{className:"grid grid-cols-3 divide-oa divide-gray-900/5 border-oa border-gray-900/5",children:a.map(r=>(0,oa.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-oa-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,oa.jsx)(Jm,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Jm=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,oa.jsx)(yt,{...e,size:a});if("src"in e)return(0,oa.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,oa.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Lr=lf;var Ti=["light","dark","green"];function df({title:e,logo:t,menuItems:a}){let[o,r]=(0,Md.useState)(!1),[s,n]=(0,Md.useState)(!1),[i,d]=(0,Md.useState)("light"),m=t?.split(".")[0],c=t?.split(".")[1],[p,u]=(0,Md.useState)(`${m}.${c}`),g=f=>{Ti.includes(f)?u(f==="light"?`${m}.${c}`:`${m}-${f}.${c}`):u(`${m}.${c}`)};(0,Md.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";d(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=Ti[(Ti.indexOf(i)+1)%Ti.length];d(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,oa.jsxs)("header",{className:"relative isolate oa-10 bg-background h-14",children:[(0,oa.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,oa.jsx)("div",{className:"flex lg:flex-1",children:(0,oa.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,oa.jsx)("span",{className:"Md-only",children:e}),(0,oa.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,oa.jsx)("div",{className:"flex lg:hidden",children:(0,oa.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,oa.jsx)("span",{className:"Md-only",children:"Open main menu"}),(0,oa.jsx)(Di.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,oa.jsx)(ea.PopoverGroup,{className:"hidden lg:flex lg:gap-oa-12",children:a.map(f=>(0,oa.jsx)(Lr,{...f},f.name))}),(0,oa.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,oa.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,oa.jsx)(Pi.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,oa.jsx)(Pi.MoonIcon,{className:"h-6 w-6"}):(0,oa.jsx)(Pi.SunIcon,{className:"h-6 w-6"})})})]}),(0,oa.jsxs)(ea.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,oa.jsx)("div",{className:"fixed inset-0 oa-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,oa.jsxs)(ea.DialogPanel,{className:"fixed inset-y-0 right-0 oa-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,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Your Company"}),(0,oa.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,oa.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Close menu"}),(0,oa.jsx)(Di.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,oa.jsx)("div",{className:"oa-6 flow-root",children:(0,oa.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,oa.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,oa.jsx)(cf,{...f},f.name))})})})]})]})]})}function cf({name:e,items:t,actions:a,href:o}){return!t&&o?(0,oa.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,oa.jsxs)(ea.Disclosure,{as:"div",className:"-mx-3",children:[(0,oa.jsx)(ea.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,oa.jsx)(ea.DisclosurePanel,{className:"oa-2 space-y-2",children:t&&t.map(r=>(0,oa.jsx)(ea.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function mf({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let n=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,oa.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full oa-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,oa.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,oa.jsx)("div",{className:"fixed inset-0 h-full oa-10 flex flex-col items-start justify-center text-white px-4",children:(0,oa.jsx)(Gt,{children:(0,oa.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 oa-0 md:mb-0",children:[(0,oa.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,oa.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"header"})]})})}var Kl=w(require("next/image"));function Ro({logoLight:e,logoDark:t,mobile:a=!1}){return(0,oa.jsxs)(ut,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,oa.jsx)(Kl.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,oa.jsx)(Kl.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function Xl({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[n,i]=(0,Md.useState)(!1),[d,m]=(0,Md.useState)(""),c=["light","dark"],{theme:p,setTheme:u}=(0,Xm.useTheme)();(0,Md.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let b=c[(c.indexOf(d)+1)%c.length];m(b),u(b)};return(0,Md.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)("header",{className:`oa-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,oa.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,oa.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,oa.jsx)(Ro,{logoDark:a,logoLight:t}),(0,oa.jsx)(ea.PopoverGroup,{className:"hidden lg:flex lg:gap-oa-12",children:o&&o.map(b=>(0,oa.jsx)(Lr,{...b},b.name))}),r&&(0,oa.jsx)("button",{className:"fixed right-4 oa-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)(Zd.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,oa.jsx)(Zd.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Yl=["light","dark"];function ql({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Md.useState)(!1),{theme:n,setTheme:i}=(0,Xm.useTheme)(),[d,m]=(0,Md.useState)(!1),[c,p]=(0,Md.useState)("light");(0,Md.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Md.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=Yl[(Yl.indexOf(c)+1)%Yl.length];p(g),i(g)};return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsxs)("header",{className:`oa-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,oa.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,oa.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,oa.jsx)(Ro,{logoDark:t,logoLight:e,mobile:!0}),(0,oa.jsx)("div",{className:"flex items-center space-oa-4",children:(0,oa.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 oa-[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,oa.jsx)("span",{className:"Md-only",children:"Open main menu"}),(0,oa.jsx)(Di.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,oa.jsxs)(ea.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,oa.jsx)("div",{className:"fixed inset-0 oa-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,oa.jsxs)(ea.DialogPanel,{className:"fixed inset-y-0 right-0 oa-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,oa.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,oa.jsx)(Ro,{logoDark:t,logoLight:e,mobile:!0}),(0,oa.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Close menu"}),(0,oa.jsx)(Di.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,oa.jsx)("div",{className:"oa-6 flow-root",children:(0,oa.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,oa.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,oa.jsx)(pf,{...g},g.name))})})})]})]})]})})}function pf({name:e,items:t,actions:a,href:o}){return!t&&o?(0,oa.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,oa.jsxs)(ea.Disclosure,{as:"div",className:"-mx-3",children:[(0,oa.jsx)(ea.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,oa.jsx)(ea.DisclosurePanel,{className:"oa-2 space-y-2",children:t&&t.map(r=>(0,oa.jsx)(ea.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var C1=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),op=l("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Ql=l("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Jl=l("flex items-center text-white gap-3"),Ii=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function uf({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,footerBottom:i}=t,d=void 0;return(0,$.jsxs)("footer",{className:l("sticky oa-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,$.jsx)("div",{className:"py-16 md:py-20",children:(0,$.jsx)("div",{className:"container",children:(0,$.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,$.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"200",children:[(0,$.jsx)(Ro,{logoDark:o,logoLight:a}),(0,$.jsx)("p",{className:"mb-7 oa-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,$.jsx)("nav",{"aria-label":"social links",children:(0,$.jsx)("oa",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,c)=>(0,$.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,$.jsx)(ut,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,$.jsx)("span",{children:m.icon})})},c))})})]}),(0,$.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"400",children:[(0,$.jsx)("h3",{className:op,children:s.title}),s.links&&s.links.length>0&&(0,$.jsx)("nav",{"aria-label":"footer links navigation",children:(0,$.jsx)("oa",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,$.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,$.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,$.jsx)(Hc.FaChevronRight,{})}),(0,$.jsx)(ut,{href:m.href,openNewTab:m.openNewTab,className:Ii,children:m.label})]},m.label))})})]}),(0,$.jsxs)("div",{"data-aos":"fade-up","data-aos-delay":"600",children:[(0,$.jsx)("h3",{className:op,children:n.title}),(0,$.jsxs)("oa",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,$.jsxs)("li",{className:Jl,children:[(0,$.jsx)("span",{className:Ql,children:(0,$.jsx)(Hc.FaPaperPlane,{})}),(0,$.jsx)("address",{className:"not-italic",children:n.location})]}),(0,$.jsxs)("li",{className:Jl,children:[(0,$.jsx)("span",{className:Ql,children:(0,$.jsx)(Hc.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,$.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,$.jsx)("a",{href:`mailto:${m}`,className:Ii,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,$.jsxs)("li",{className:Jl,children:[(0,$.jsx)("span",{className:Ql,children:(0,$.jsx)(Hc.FaPhone,{})}),(0,$.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,$.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Ii,children:m},c))})]})]})]})]})})}),(0,$.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,$.jsx)("div",{className:"container",children:(0,$.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-oa-8 gap-y-4 md:gap-oa-10",children:[(0,$.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,$.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,$.jsx)("oa",{className:"flex flex-wrap items-center gap-oa-4 md:gap-oa-7",children:i.links.map(m=>(0,$.jsx)("li",{children:(0,$.jsx)(ut,{"aria-label":`Zd Md page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Ii,children:m.label})},m.label))})})]})})})]})}function gf({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:n=!1}){return(0,oa.jsxs)("div",{className:l("fixed top-0 left-0 right-0 oa-50",r),children:[(0,oa.jsx)(Xl,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:n,wide:s}),(0,oa.jsx)(ql,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function ff({menuItems:e,wide:t=!1,dark:a=!0}){return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)("menu",{className:l("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,oa.jsx)("div",{className:"container backdrop-blur-sm",children:(0,oa.jsx)("div",{className:l("flex items-center justify-between py-0",!t&&"container"),children:(0,oa.jsx)(ea.PopoverGroup,{className:"flex gap-oa-12",children:e&&e.map(o=>(0,oa.jsx)(Lr,{...o},o.name))})})})})})}function Zl({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Md.useState)([]),s=(0,hm.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(c=>c.id))},i=c=>{r(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(o);c.success?(ml.toast.success(c.message),s.refresh()):ml.toast.error(`Error: ${c.message}`),r([])},m=async()=>{let c=await a(o);c.success?(ml.toast.success(c.message),s.refresh()):ml.toast.error(`Error: ${c.message}`),r([])};return(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex justify-between items-center",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,oa.jsxs)("div",{className:"space-oa-2",children:[(0,oa.jsx)(T,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,oa.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,oa.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,oa.jsxs)("oa",{className:"divide-y divide-gray-200",children:[(0,oa.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsx)(Na,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,oa.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,oa.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(c=>(0,oa.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsx)(Na,{id:`select-${c.id}`,checked:o.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,oa.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,oa.jsxs)(vt,{className:"h-10 w-10",children:[(0,oa.jsx)(Ft,{src:c.userImage,alt:c.userName}),(0,oa.jsx)(ht,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,oa.jsx)("div",{className:"ml-3",children:(0,oa.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.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,oa.jsx)(_e,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,oa.jsx)(ml.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"oa-50"})]})}var ed=require("date-fns");var np=[{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 Ps=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=np.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},lp=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Ps(o))return .5;for(;o<=r;)Ps(o)||s++,o.setDate(o.getDate()+1);return s},dp=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var bf=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,oa.jsx)("div",{className:"flex space-oa-2",children:e.map((r,s)=>(0,oa.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function ad({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Md.useState)(new Date),[r,s]=(0,Md.useState)(new Date),[n,i]=(0,Md.useState)("Full Day"),[d,m]=(0,Md.useState)(!1),[c,p]=(0,Md.useState)(1),u=(0,hm.useRouter)();(0,Md.useEffect)(()=>{let f=dp(a,r);m(f),f&&i("Full Day")},[a,r]),(0,Md.useEffect)(()=>{if(!a||!r){p(0);return}let f=lp(a,r,n!=="Full Day");p(f)},[a,r,n]);let g=f=>{i(f)};return(0,oa.jsxs)("div",{className:"max-w-2xl",children:[(0,oa.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,oa.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,oa.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){ml.toast.error("Please select both start and end dates");return}if(c>e){ml.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",n),y.append("duration",c.toString());let I=await(t||vf)(y);I.success?(ml.toast.success(I.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):ml.toast.error(`Error: ${I.message}`)},className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,oa.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"startDate",children:"Start Date"}),(0,oa.jsxs)(is,{children:[(0,oa.jsx)(ns,{asChild:!0,children:(0,oa.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,ed.format)(a,"PPP"):(0,oa.jsx)("span",{children:"Pick a date"})]})}),(0,oa.jsx)(hr,{className:"w-auto p-0",align:"start",children:(0,oa.jsx)(ms,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,oa.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"endDate",children:"End Date"}),(0,oa.jsxs)(is,{children:[(0,oa.jsx)(ns,{asChild:!0,children:(0,oa.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,ed.format)(r,"PPP"):(0,oa.jsx)("span",{children:"Pick a date"})]})}),(0,oa.jsx)(hr,{className:"w-auto p-0",align:"start",children:(0,oa.jsx)(ms,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)(O,{children:"Leave Type"}),(0,oa.jsx)(bf,{options:["Full Day","Morning","Afternoon"],value:n,onChange:g,disabled:[!1,d,d]})]}),(0,oa.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",c]}),(0,oa.jsx)(T,{disabled:c<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,oa.jsx)(ml.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"oa-50"})]})}var vf=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function mp(...e){return e.filter(Boolean).join(" ")}function od({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)},d=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,oa.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,oa.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,oa.jsxs)("div",{className:"sm:flex-auto",children:[(0,oa.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,oa.jsx)("p",{className:"oa-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,oa.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,oa.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Previous month"}),(0,oa.jsx)(Zd.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,oa.jsx)(T,{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,oa.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Next month"}),(0,oa.jsx)(Zd.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,oa.jsx)("div",{className:"oa-8 flow-root",children:(0,oa.jsx)("div",{className:"-mx-4 -my-2 overflow-oa-auto sm:-mx-6 lg:-mx-8",children:(0,oa.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,oa.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,oa.jsx)("thead",{className:"sticky top-0 oa-20 bg-white",children:(0,oa.jsxs)("ml",{children:[(0,oa.jsx)("th",{scope:"col",className:"sticky left-0 top-0 oa-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,c)=>{let p=new Date(e.getFullYear(),e.getMonth(),c+1);return(0,oa.jsxs)("th",{scope:"col",className:`sticky top-0 oa-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 ${Ps(p)?"bg-gray-200":""}`,children:[(0,oa.jsx)("div",{children:d(p)}),(0,oa.jsx)("div",{children:c+1})]},c)})]})}),(0,oa.jsx)("tbody",{children:o.map((m,c)=>(0,oa.jsxs)("ml",{children:[(0,oa.jsx)("Zd",{className:mp(c!==o.length-1?"border-gray-200":"","sticky left-0 oa-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsxs)(vt,{className:"h-11 w-11",children:[(0,oa.jsx)(Ft,{src:m.image,alt:m.name}),(0,oa.jsx)(ht,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,oa.jsx)("div",{className:"ml-4",children:(0,oa.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,oa.jsx)("Zd",{className:mp(c!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Ps(g)?"bg-gray-200":"bg-white"),children:(0,oa.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,oa.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${u}`)})]},m.id))})]})})})})]})}function rd({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Md.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),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,oa.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,oa.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,oa.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,oa.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,oa.jsx)("div",{className:"flex items-center",children:(0,oa.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,oa.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Previous month"}),(0,oa.jsx)(Zd.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,oa.jsx)(T,{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,oa.jsxs)(T,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Next month"}),(0,oa.jsx)(Zd.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,oa.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,oa.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,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"on"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["T",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"oa"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"ed"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["T",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"hu"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"ri"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"oa"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"un"})]})]}),(0,oa.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,oa.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:n.map(c=>(0,oa.jsxs)("div",{className:l(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,oa.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,oa.jsx)("ol",{className:"oa-2 space-y-1 overflow-visible",children:c.holidays.map(p=>(0,oa.jsx)("li",{className:"overflow-visible",children:(0,oa.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,oa.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,oa.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:oa-10"),children:[(0,oa.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,oa.jsxs)("span",{className:"Md-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,oa.jsx)("span",{className:"-mx-0.5 oa-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,oa.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var Do=require("lucide-react");function up(...e){return e.filter(Boolean).join(" ")}function hf({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[d,m]=(0,Md.useState)("Calendar View"),c=(0,hm.useRouter)(),p=!1,u=(0,ed.parseISO)(a),g=async f=>{let y=(0,ed.format)(f,"dd-MM-yyyy"),I=new URL(window.location.href);return I.searchParams.set("date",y),c.push(I.toString()),{success:!0}};if(p)return(0,oa.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,oa.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:Do.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Do.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Do.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Do.CheckSquare,current:d==="Approve Leave"}];return(0,oa.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,oa.jsxs)("div",{className:"mb-8",children:[(0,oa.jsxs)("div",{className:"sm:hidden",children:[(0,oa.jsx)("select",{value:d,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(f=>(0,oa.jsx)("option",{children:f.name},f.name))}),(0,oa.jsx)(Zd.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,oa.jsx)("div",{className:"hidden sm:block",children:(0,oa.jsx)("div",{className:"border-b border-gray-200",children:(0,oa.jsx)("nav",{className:"-mb-px flex space-oa-8","aria-label":"Tabs",children:b.map(f=>(0,oa.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:up(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,oa.jsx)(f.icon,{className:up(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,oa.jsx)("span",{children:f.name})]},f.name))})})})]}),d==="Grid View"&&(0,oa.jsx)(od,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),d==="Calendar View"&&(0,oa.jsx)(rd,{currentDate:u,setCurrentDate:g,holidays:e}),d==="Request Leave"&&(0,oa.jsx)(ad,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,oa.jsx)(Zl,{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 Ss({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){let[i,d]=(0,Md.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,c]=(0,Md.useState)(""),[p,u]=(0,Md.useState)(!1),[g,b]=(0,Md.useState)(null);(0,Md.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let N=await s(i);N.success?(u(!1),b(null)):console.error("Failed Md save deal:",N.errors)}catch(N){console.error("Failed Md save deal:",N)}},y=(N,D)=>{d(re=>({...re,[N]:D}))},I=N=>{let D=(i.categories||[]).includes(N)?(i.categories||[]).filter(re=>re!==N):[...i.categories||[],N];y("categories",D)},A=async()=>{if(m.trim()){let N={text:m,timestamp:new Date().toISOString()};try{let D=await n(N);if(!D.success){console.error("Failed Md add comment:",D.errors);return}}catch(D){console.error("Failed Md add comment:",D)}d(D=>({...D,comments:[...D.comments||[],N]})),c("")}},h=N=>{switch(N){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},k=N=>t?.find(D=>D.id===Number(N));return(0,oa.jsx)(la,{open:!0,children:(0,oa.jsxs)(Yt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,oa.jsxs)(xa,{className:"flex flex-row items-center justify-between",children:[(0,oa.jsx)(wa,{className:"text-2xl font-bold",children:a?.name||"no customer"}),(0,oa.jsxs)("div",{className:"flex space-oa-2",children:[(0,oa.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,oa.jsxs)(T,{onClick:f,disabled:!p,children:[(0,oa.jsx)(Zd.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,oa.jsxs)(na,{className:"flex-grow pr-4",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,oa.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,oa.jsx)(Ye,{type:"number",value:i.value,onChange:N=>y("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,oa.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,oa.jsxs)(qt,{value:i?.assignee?.id?.toString()||"",onValueChange:N=>y("assignee",k(N)),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select assignee"})}),(0,oa.jsx)(jt,{children:t&&t.map(N=>(0,oa.jsx)(St,{value:N?.id?.toString()||"",children:N.name},N.id))})]}):(0,oa.jsxs)("div",{className:"flex items-center space-oa-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,oa.jsx)(Zd.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,oa.jsx)("span",{children:i?.assignee?.name})]})]}),(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,oa.jsx)(Ye,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:N=>y("closureDate",N.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,oa.jsxs)("div",{className:"flex items-center space-oa-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,oa.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("en-GB"):"N/A"})]})]})]}),(0,oa.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,oa.jsx)(da,{value:i.description||"",onChange:N=>y("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,oa.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,oa.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,oa.jsxs)(qt,{value:i.status,onValueChange:N=>{y("status",N),b(null)},children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select status"})}),(0,oa.jsx)(jt,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(N=>(0,oa.jsx)(St,{value:N,children:N},N))})]}):(0,oa.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,oa.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,oa.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(N=>(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Na,{id:N.id?.toString()||"",checked:(i.categories||[]).some(D=>D.id===N.id),onCheckedChange:()=>N.id!==void 0&&I(N)}),(0,oa.jsx)("label",{htmlFor:(N.id??"").toString(),className:`text-sm font-medium ${h(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id))}):(0,oa.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(N=>{let D=N;return D?(0,oa.jsx)(_e,{variant:"outline",className:h(D.type||"sector"),children:D.name},D.id):null})})]}),(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,oa.jsxs)(qt,{value:i.gecoStatus??void 0,onValueChange:N=>{y("gecoStatus",N),b(null)},children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select status"})}),(0,oa.jsx)(jt,{children:["firm","forecast","other"].map(N=>(0,oa.jsx)(St,{value:N,children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}):(0,oa.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),(0,oa.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,oa.jsxs)("div",{className:"grid gap-2",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,oa.jsx)(na,{className:"h-[200px] overflow-y-auto",children:(0,oa.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((N,D)=>new Date(D.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>(0,oa.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,oa.jsx)("p",{className:"text-sm text-foreground",children:N.text}),(0,oa.jsxs)("p",{className:"text-xs text-foreground oa-1",children:[N?.author?.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id))})}),(0,oa.jsxs)("div",{className:"flex oa-2",children:[(0,oa.jsx)(Ye,{value:m,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,oa.jsxs)(T,{onClick:A,className:"ml-2",children:[(0,oa.jsx)(Zd.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,oa.jsxs)("div",{className:"text-xs text-gray-500 oa-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function sd({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(n=>n.type==="proposition"&&(e.categories??[]).includes(n.id));return r?(0,oa.jsxs)(ie,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,oa.jsxs)(Pe,{className:"pb-1 pt-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,oa.jsx)("p",{className:"text-sm text-foreground oa-1",children:e.description})]}),(0,oa.jsx)(le,{className:"text-xs text-gray-200 pb-2",children:(0,oa.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,oa.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,oa.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,oa.jsxs)(ie,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,oa.jsxs)(Pe,{className:"pb-2",children:[(0,oa.jsx)("div",{className:"flex justify-between items-center",children:(0,oa.jsx)(Se,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,oa.jsx)("p",{className:"text-sm text-foreground oa-1",children:e.description})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,oa.jsxs)("div",{className:"flex items-center text-sm text-foreground",children:[(0,oa.jsx)(Zd.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,oa.jsx)("span",{children:e.assignee.name})]}),(0,oa.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,oa.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,oa.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,oa.jsxs)("div",{className:"flex items-center text-xs text-gray-200",children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,oa.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,oa.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,oa.jsx)(_e,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Fi=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Rs({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,compact:d=!1}){return(0,oa.jsxs)("div",{className:"flex flex-col w-80",children:[(0,oa.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,oa.jsx)(Fi.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,oa.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((c,p)=>(0,oa.jsx)(Fi.Draggable,{draggableId:c.id.toString(),index:c.id,children:u=>(0,oa.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,oa.jsx)(sd,{deal:c,customer:c.customer,categories:r,onClick:()=>s(c),compact:d})})},c.id.toString())),m.placeholder]})}),(0,oa.jsxs)("div",{className:"oa-4 text-sm p-3 rounded-lg shadow",children:[(0,oa.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,oa.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,oa.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,oa.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var yf=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function xf({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,n]=(0,Md.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),d=p=>p.reduce((u,g)=>u+(g.value||0),0),m=(p,u)=>{let g={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},c=(0,Md.useCallback)(p=>{let{source:u,destination:g}=p;if(!g||u.droppableId===g.droppableId&&u.index===g.index)return;let b=u.droppableId,f=g.droppableId,y=e.deals?.filter(A=>A.id===u.index)[0],I=[...e.deals??[]];y&&(y.status=f,a(y))},[a]);return(0,oa.jsx)(Fi.DragDropContext,{onDragEnd:c,children:(0,oa.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,oa.jsx)("div",{className:"flex space-oa-4 pb-4",children:yf.filter(p=>p!=="Lost").map(p=>{let u=i(p);return(0,oa.jsx)(Rs,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:n,calculateColumnValue:d,calculateWeightedValue:m},p)})}),s&&(0,oa.jsx)(Ss,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function id({onSubmit:e}){let[t,a]=(0,Md.useState)({name:"",intro:"",active:!1});return(0,oa.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"customerName",children:"Customer Name"}),(0,oa.jsx)(Ye,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"customerIntro",children:"Intro"}),(0,oa.jsx)(da,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Na,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,oa.jsx)(O,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,oa.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function wf({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){let[i,d]=(0,Md.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,c]=(0,Md.useState)(!1),[p,u]=(0,Md.useState)({});(0,Md.useEffect)(()=>{r&&d(r)},[r]);let g=()=>{let h={};return i.customer||(h.customer="Customer is required"),i.value||(h.value="Value is required"),i.assignee||(h.assignee="Assignee is required"),i.closureDate||(h.closureDate="Closure Date is required"),u(h),Object.keys(h).length===0},b=async h=>{h.preventDefault(),u({});try{if(g()){let k=await o({...i});k.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n?.()):u(k.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=h=>{d(k=>({...k,categories:(k.categories||[]).includes(h.id)?(k.categories||[]).filter(N=>N!==h.id):[...k.categories||[],h.id]}))},y=async h=>{d({...i,customer:h});try{let k=await s(h);k.success?c(!1):u(k.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},I=h=>t?.find(k=>k.id===Number(h)),A=h=>e?.find(k=>k.id===Number(h));return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,oa.jsx)(na,{className:"h-[60vh] pr-4",children:(0,oa.jsxs)("div",{className:"space-y-6 px-4",children:[(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"customer",children:"Customer"}),(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsxs)(qt,{value:i.customer?.id?.toString(),onValueChange:h=>d({...i,customer:A(h)}),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select customer"})}),(0,oa.jsx)(jt,{children:e.map(h=>(0,oa.jsx)(St,{value:h.id?.toString()||"",children:h.name},h.id))})]}),(0,oa.jsx)(T,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,oa.jsx)(Zd.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"value",children:"Value"}),(0,oa.jsx)(Ye,{id:"value",type:"number",value:i.value||"",onChange:h=>d({...i,value:Number.parseFloat(h.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"assignee",children:"Assignee"}),(0,oa.jsxs)(qt,{value:i.assignee?.id?.toString(),onValueChange:h=>d({...i,assignee:I(h)}),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select assignee"})}),(0,oa.jsx)(jt,{children:t&&t.map(h=>(0,oa.jsx)(St,{value:h.id?.toString()||"",children:h.name},h.id))})]}),p.assignee&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"description",children:"Description"}),(0,oa.jsx)(da,{id:"description",value:i.description||"",onChange:h=>d({...i,description:h.target.value}),placeholder:"Enter deal description"})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{children:"Categories"}),(0,oa.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(h=>(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)("h4",{className:"text-sm font-medium",children:h.charAt(0).toUpperCase()+h.slice(1)}),(0,oa.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(k=>k.type===h).map(k=>(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Na,{id:k.id.toString(),checked:i.categories?.includes(k.id),onCheckedChange:()=>f(k)}),(0,oa.jsx)("label",{htmlFor:k.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:k.name})]},k.id))})]},h))})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"closureDate",children:"Closure Date"}),(0,oa.jsx)(Ye,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:h=>d({...i,closureDate:h.target.value})}),p.closureDate&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,oa.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,oa.jsx)(la,{open:m,onOpenChange:c,children:(0,oa.jsxs)(Yt,{children:[(0,oa.jsx)(xa,{children:(0,oa.jsx)(wa,{children:"Add New Customer"})}),(0,oa.jsx)(id,{onSubmit:y})]})})]})}var Nf=["firm","forecast","other"];function Cf({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,Md.useState)(null),s=m=>(e.deals??[]).filter(c=>c.gecoStatus===m).filter(c=>c.status!=="Lost").filter(c=>c.status!=="Cold"),n=m=>m.reduce((c,p)=>c+(p.value||0),0),i=(m,c)=>{let p={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return m.reduce((u,g)=>u+(g.value||0)*(p[g.status]??0),0)},d=(0,Md.useCallback)(m=>{let{source:c,destination:p}=m;if(!p||c.droppableId===p.droppableId&&c.index===p.index)return;let u=c.droppableId,g=p.droppableId,b=e.deals?.filter(y=>y.id===c.index)[0],f=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,oa.jsx)(Fi.DragDropContext,{onDragEnd:d,children:(0,oa.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,oa.jsx)("div",{className:"flex space-oa-4 pb-4",children:Nf.map(m=>{let c=s(m);return(0,oa.jsx)(Rs,{status:m,deals:c,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:n,calculateWeightedValue:i,compact:!0},m)})}),o&&(0,oa.jsx)(Ss,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var kp=w(require("react"));function wp({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Md.useState)(null),[s,n]=(0,Md.useState)(!1),[i,d]=(0,Md.useState)(null),m=async(p=!0)=>{if(e){p&&n(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed Md fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),d(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&n(!1)}}},c=()=>m(!1);return(0,Md.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(c,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var kf=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Pf=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function nd({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let n=null,i=!0,d=s,m=o!==void 0?o:!0;if(n=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:n,error:d}),m){let{task:g,loading:b,error:f}=wp({taskId:t,system:a});n=g,i=b,d=f}else i=!1;let c=kf(n?.status||"todo"),p=Pf(n?.status||"todo"),u=n?.dateLogged||new Date().toISOString();try{let g=new Date(n?.dateLogged||"");isNaN(g.getTime())||(u=(0,ed.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,oa.jsxs)(ie,{className:l("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,oa.jsxs)(Pe,{className:"pb-2",children:[(0,oa.jsxs)("div",{className:"flex justify-between items-start",children:[(0,oa.jsx)(Se,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),(0,oa.jsx)(_e,{className:`${c}`,children:p})]}),n?.project&&(0,oa.jsxs)(fs,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),(0,oa.jsx)(le,{className:"pb-2",children:i?(0,oa.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,oa.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,oa.jsx)("p",{className:"text-sm text-foreground",children:n?.description||"......."})}),(0,oa.jsx)(Xo,{className:"pt-2 flex items-center justify-between",children:(0,oa.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,oa.jsx)(Zd.Clock,{className:"h-3 w-3 mr-1"}),(0,oa.jsxs)("span",{children:["Created ",u]}),(0,oa.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,oa.jsxs)("span",{children:["Task #",t]})]})})]})}var Sf={task:nd},Rf=`
18
+ w-full h-full bg-cover bg-center`,children:y===0?(0,oa.jsx)(ws,{hero:r,title:e.title,logoImage:s}):(0,oa.jsxs)(oa.Fragment,{children:[f.blockName&&(0,oa.jsx)(xs,{title:f.blockName}),(0,oa.jsx)(So,{blocks:[f],fill:!0}),(0,oa.jsx)(Sm,{logoImage:s})]})})},y))}),(0,oa.jsx)("button",{className:"absolute bottom-4 left-1 oa-20 text-3xl text-primary transition-all duration-300 hover:scale-110",onClick:c,children:(0,oa.jsx)(Vg,{})})]})},Vg=()=>(0,oa.jsx)(Sr.AnimatePresence,{children:(0,oa.jsx)(Sr.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,oa.jsx)(Sr.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 Rm=w(require("next/link")),Tm=w(require("next/image"));function Dm({blogs:e,width:t=3}){return(0,oa.jsx)("div",{className:"w-full max-w-7xl mx-auto px-4 py-8",children:(0,oa.jsx)("div",{className:`grid md:grid-cols-2 lg:grid-cols-${t} gap-6`,children:e&&e.map((a,o)=>(0,oa.jsx)(Rm.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,oa.jsxs)("div",{className:"relative size-full",children:[(0,oa.jsx)(Tm.default,{src:a.image?.src||"/assets/images/blog/gradient.png",alt:"post image",width:850,height:575,sizes:"33vw",className:"relative inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,oa.jsxs)("div",{className:"absolute inset-0 px-4 pb-2 bg-gradient-Md-t from-card Md-transparrent flex flex-col justify-end",children:[(0,oa.jsxs)("div",{className:"text-sm text-card-foreground mb-2",children:[a.authors&&a.authors.map(r=>`${r.name} \xB7 `),a.publishedAt&&new Date(a.publishedAt).toLocaleDateString("Fc-GB",{day:"numeric",month:"long"})]}),(0,oa.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 Am({title:e,subtitle:t,description:a,missionTitle:o,missionDescription:r,images:s,raisedAmount:n,companiesCount:i,dealsClosed:d,leadsGenerated:m}){return(0,oa.jsx)("div",{className:"overflow-hidden bg-white py-24 sm:py-32",children:(0,oa.jsxs)("div",{className:"mx-auto max-w-2xl px-6 lg:max-w-7xl lg:px-8",children:[(0,oa.jsxs)("div",{className:"max-w-4xl",children:[(0,oa.jsx)("p",{className:"text-base/7 font-semibold text-indigo-600",children:t}),(0,oa.jsx)("h1",{className:"oa-2 text-pretty text-4xl font-semibold tracking-tight text-gray-900 sm:text-5xl",children:e}),(0,oa.jsx)("p",{className:"oa-6 text-balance text-xl/8 text-gray-700",children:a})]}),(0,oa.jsxs)("section",{className:"oa-20 grid grid-cols-1 lg:grid-cols-2 lg:gap-oa-8 lg:gap-y-16",children:[(0,oa.jsxs)("div",{className:"lg:pr-8",children:[(0,oa.jsx)("h2",{className:"text-pretty text-2xl font-semibold tracking-tight text-gray-900",children:o}),(0,oa.jsx)("p",{className:"oa-6 text-base/7 text-gray-600",children:r})]}),(0,oa.jsx)("div",{className:"pt-16 lg:row-span-2 lg:-mr-16 xl:mr-auto",children:(0,oa.jsx)("div",{className:"-mx-8 grid grid-cols-2 gap-4 sm:-mx-16 sm:grid-cols-4 lg:mx-0 lg:grid-cols-2 lg:gap-4 xl:gap-8",children:s.map((c,p)=>(0,oa.jsx)("div",{className:"aspect-square overflow-hidden rounded-xl shadow-xl outline-1 -outline-offset-1 outline-black/10",children:(0,oa.jsx)("img",{alt:"",src:c,className:"block size-full object-cover"})},p))})}),(0,oa.jsxs)("div",{className:"max-lg:oa-16 lg:col-span-1",children:[(0,oa.jsx)("p",{className:"text-base/7 font-semibold text-gray-500",children:"The numbers"}),(0,oa.jsx)("hr",{className:"oa-6 border-t border-gray-200"}),(0,oa.jsxs)("dl",{className:"oa-6 grid grid-cols-1 gap-oa-8 gap-y-4 sm:grid-cols-2",children:[(0,oa.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Raised"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:["$",n]})]}),(0,oa.jsxs)("div",{className:"flex flex-col gap-y-2 border-b border-dotted border-gray-200 pb-4",children:[(0,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Companies"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[i,"K"]})]}),(0,oa.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,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Deals Closed"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[d,"oa"]})]}),(0,oa.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,oa.jsx)("oa",{className:"text-sm/6 text-gray-600",children:"Leads Generated"}),(0,oa.jsxs)("dd",{className:"order-first text-6xl font-semibold tracking-tight",children:[m,"oa"]})]})]})]})]})]})})}function Ug(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 Tr=e=>{let t=document.createElement("div");t.style.height="1mm",document.body.appendChild(t);let a=parseFloat(window.getComputedStyle(t).height);return document.body.removeChild(t),Math.floor(e/a)},Bl=({page:e,layout:t="portrait",logoImage:a})=>t==="flow"?(0,oa.jsx)(Mm,{page:e,layout:t,logoImage:a}):(0,oa.jsx)(Im,{page:e,layout:t,logoImage:a}),Mm=({page:e,layout:t="portrait",logoImage:a})=>{let{contentWithIds:o}=mr(e),r=(0,Md.useRef)(null),s=(0,Md.useRef)(null),n=(0,Md.useRef)(new Ix.Previewer),i={id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}};(0,Md.useEffect)(()=>{let c=document.getElementById("printable-content");if(c){let p=document.createElement("style");return p.textContent=`@page { size: ${Tr(c.offsetWidth)}mm ${Tr(c.offsetHeight)}mm ; margin: 0mm; width: ${Tr(c.offsetWidth)}mm }; .container : { max-width: ${Tr(c.offsetWidth)}mm; } .container : { max-width: 100%; }; html body * :not(#prinable-content, #printable-content *) { visibility: hidden !important; }`,document.head.appendChild(p),()=>{document.head.removeChild(p)}}},[t]);let d=(0,Md.useCallback)(()=>{if(!s.current)return;s.current&&(s.current.innerHTML="");let c=document.getElementById("printable-content");c&&n.current.preview(document.getElementById("printable-content").innerHTML,[`@page { size: ${Tr(c.offsetWidth)}mm ${Tr(c.offsetHeight)}mm ; margin: 0mm; }; .container : { max-width: 100%; }; body { zoom: 100%;}`],s.current).catch(p=>console.error("Paged.js error:",p))},[t]);(0,Md.useEffect)(()=>{n.current=new Ix.Previewer},[d,t]);let m=[i,...o];return(0,oa.jsxs)("div",{children:[(0,oa.jsx)("div",{className:"w-[1123px] print:w-[1123px]",children:(0,oa.jsxs)("div",{id:"printable-content",ref:r,children:[m.map((c,p)=>(0,oa.jsx)(oa.Fragment,{children:p===0?(0,oa.jsx)("section",{className:"title-page w-full h-full",children:(0,oa.jsx)(ws,{hero:e.hero,title:e.title})},p):(0,oa.jsxs)("section",{className:"normal-page overflow-hidden",children:[c.blockName&&(0,oa.jsx)(xs,{title:c.blockName}),(0,oa.jsx)(So,{blocks:[c],fill:!0})]},p)})),(0,oa.jsx)("section",{className:"normal-page",children:(0,oa.jsxs)("div",{className:`w-full py-2 px-8 flex justify-between items-center
19
+ dark bg-background text-primary`,children:[(0,oa.jsxs)("div",{className:"flex px-6 items-center space-oa-2",children:[a&&(0,oa.jsx)("img",{src:a.src,alt:"Cortex Reply Logo",className:"h-8"}),(0,oa.jsx)("span",{className:"pl-12 text-sm",children:"Power Md your people"})]}),(0,oa.jsx)("a",{href:"https://cortexreply.com",className:"text-sm hover:underline",children:"cortexreply.com"})]})})]})}),(0,oa.jsx)("div",{ref:s,className:"preview-container"})]})},Im=({page:e,layout:t="portrait"})=>{let{contentWithIds:a}=mr(e),o=(0,Md.useRef)(null),r=(0,Md.useRef)(null),s=(0,Md.useRef)(new Ix.Previewer),[n,i]=(0,Md.useState)(0),m=[{id:"0000000000000000000",blockName:null,columns:[],blockType:"content",theme:{settings:{theme:"dark",background:"solid",overlay:!0}}},...a],c=(0,Md.useCallback)(()=>{o.current&&(o.current&&(o.current.innerHTML=""),s.current.preview(document.getElementById("printable-content").innerHTML,["./print.css",t==="landscape"?"./landscape.css":"./portrait.css"],o.current).then(p=>i(p.pageCount)).catch(p=>console.error("Paged.js error:",p)))},[t]);return(0,Md.useEffect)(()=>{s.current=new Ix.Previewer,c()},[c,t]),(0,Md.useEffect)(()=>{let p=document.createElement("style");return p.textContent=`@page { size: A4 ${t} ; margin: 0mm; };`,document.head.appendChild(p),()=>{document.head.removeChild(p)}},[]),(0,oa.jsxs)("div",{className:"pagedjs-container",children:[(0,oa.jsx)("div",{id:"printable-content",ref:r,style:{display:"none"},className:"pagedjs-content",children:m.map((p,u)=>(0,oa.jsx)(oa.Fragment,{children:u===0?(0,oa.jsx)("section",{className:"pagedjs-section title-page w-full h-full",children:(0,oa.jsx)(ws,{hero:e.hero,title:e.title})},u):(0,oa.jsxs)("section",{className:l("pagedjs-section normal-page h-[699px]",`h-[${Ug("185mm")}px]`,p.theme?.settings?.theme==="dark"?"dark":"light"),children:[p.blockName&&(0,oa.jsx)(xs,{title:p.blockName}),(0,oa.jsx)(So,{blocks:[p],fill:!0})]},u)}))}),(0,oa.jsx)("div",{ref:o,className:"preview-container"})]})};var zl=w(require("clsx"));function Wg({mainNav:e,secondaryNav:t,title:a,subTitle:o,pathName:r,menuHeading:s,onNavClick:n,loading:i=!1,LinkComponent:d,...m}){let p=d?u=>(0,oa.jsx)(d,{...u}):n?({href:u,children:g,...b})=>(0,oa.jsx)("button",{onClick:()=>n&&n(u),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...b,children:g}):u=>(0,oa.jsx)("a",{...u});return(0,oa.jsxs)(Eo,{...m,variant:"inset",children:[(0,oa.jsx)(Fo,{children:(0,oa.jsx)(Et,{children:(0,oa.jsx)(bt,{children:i?(0,oa.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,oa.jsx)($e,{className:"bg-gray-200 my-2 w-full h-7"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 my-2 h-5"})]}):(0,oa.jsxs)("div",{className:"grid flex-1 p-2 text-left text-m leading-tight",children:[(0,oa.jsx)("span",{className:"truncate font-semibold",children:a}),o&&(0,oa.jsx)("span",{className:"truncate text-sm",children:o})]})})})}),i&&(0,oa.jsxs)(fo,{children:[(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"}),(0,oa.jsx)($e,{className:"bg-gray-200 w-3/4 h-5"})]}),(0,oa.jsxs)(fo,{children:[e&&!i&&e.map((u,g)=>(0,oa.jsx)(Kg,{subNav:u,pathName:r,Link:p},g)),(0,oa.jsx)(ra,{className:"oa-auto",children:(0,oa.jsx)(ha,{children:(0,oa.jsx)(Et,{children:t&&!i&&t.map(u=>(0,oa.jsx)(bt,{children:(0,oa.jsx)(sa,{asChild:!0,size:"sm",children:(0,oa.jsxs)(p,{href:u.url||"",children:[u.icon&&(0,oa.jsx)(u.icon,{}),(0,oa.jsx)("span",{children:u.label})]})})},u.label))})})})]}),(0,oa.jsx)(Ho,{})]})}function Kg({subNav:e,pathName:t,Link:a}){let o=e,r=!1;return o.links&&o.links.map(s=>{s.url===t&&(r=!0)}),(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsx)(ra,{className:"py-0",children:(0,oa.jsx)(Et,{children:(0,oa.jsx)(Ga,{asChild:!0,defaultOpen:o.isActive,children:(0,oa.jsxs)(bt,{children:[(0,oa.jsx)(sa,{asChild:!0,tooltip:o.label,className:(0,zl.default)(r&&"font-bold text-accent"),children:(0,oa.jsxs)(a,{href:o.url,children:[o.icon&&(0,oa.jsx)(o.icon,{}),(0,oa.jsx)("span",{children:o.label})]})}),o.links?.length?(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(po,{asChild:!0,children:(0,oa.jsxs)(Jr,{className:"data-[state=open]:rotate-90",children:[(0,oa.jsx)(Zd.ChevronRight,{}),(0,oa.jsx)("span",{className:"Md-only",children:"Toggle"})]})}),(0,oa.jsx)(uo,{children:(0,oa.jsx)(bo,{children:o.links?.map(s=>(0,oa.jsx)(vo,{children:(0,oa.jsx)(ho,{asChild:!0,className:(0,zl.default)(s.url===t&&"font-bold text-accent"),children:(0,oa.jsx)(a,{href:s.url,children:(0,oa.jsx)("span",{children:s.label})})})},s.label))})})]}):null]})},o.label)})})})}var Bm=w(require("clsx"));var Xg=()=>(0,oa.jsx)(yt,{iconName:"github",size:"10x"});function Yg({relatedContent:e,tableOfContents:t,editorComponent:a,loading:o=!1,editMode:r=!1,onAddDocument:s,onEditDocument:n,onPrintDocument:i,onGithubClick:d,onNavClick:m,LinkComponent:c,...p}){let b=c?f=>(0,oa.jsx)(c,{...f}):m?({item:f,children:y,...I})=>(0,oa.jsx)("button",{onClick:()=>m&&m(f),className:"flex items-center justify-start w-full text-sm text-left px-4 py-2",...I,children:y}):f=>(0,oa.jsx)("a",{href:f.href,...f});return(0,oa.jsxs)(Eo,{side:"right",variant:"inset",...p,children:[(0,oa.jsxs)(Fo,{className:"border-b border-sidebar-border",children:[(0,oa.jsxs)(Et,{className:"flex-row space-oa-1",children:[(0,oa.jsx)(bt,{children:(0,oa.jsxs)(sa,{onClick:s,children:[(0,oa.jsx)(Zd.FilePlus,{})," ",(0,oa.jsx)("span",{children:"Add Document"})]})}),d&&(0,oa.jsx)(bt,{children:(0,oa.jsx)(sa,{onClick:d,tooltip:"Open in GitHub",children:(0,oa.jsx)(Xg,{})})})]}),(0,oa.jsxs)(Et,{className:"flex-row space-oa-1",children:[(0,oa.jsx)(bt,{className:"w-5/12",children:(0,oa.jsxs)(sa,{onClick:()=>n(),variant:r?"outline":"default",className:(0,Bm.default)(r&&"text-accent"),children:[(0,oa.jsx)(Zd.Edit,{})," ",(0,oa.jsx)("span",{children:"Edit"})]})}),(0,oa.jsx)(bt,{className:"w-5/12",children:(0,oa.jsxs)(sa,{onClick:i,children:[(0,oa.jsx)(Zd.Printer,{})," ",(0,oa.jsx)("span",{children:"Print"})]})})]})]}),a&&(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{asChild:!0,children:(0,oa.jsxs)(po,{children:["Editor Controls",(0,oa.jsx)(Zd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(uo,{children:a})})]})}),(0,oa.jsx)(Qr,{className:"mx-0"})]}),(0,oa.jsxs)(fo,{className:"overflow-auto",children:[o&&(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{children:"Related Content"}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(Et,{children:Array.from({length:3}).map((f,y)=>(0,oa.jsx)(bt,{children:(0,oa.jsx)($e,{className:"bg-gray-200 w-full h-10"})},y))})})]}),(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{children:"Table of Contents"}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(Et,{children:Array.from({length:3}).map((f,y)=>(0,oa.jsx)(bt,{children:(0,oa.jsx)($e,{className:"bg-gray-200 w-full h-10"})},y))})})]})]}),e&&!o&&Object.keys(e).length>0&&(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{asChild:!0,children:(0,oa.jsxs)(po,{children:["Related Content",(0,oa.jsx)(Zd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(uo,{children:(0,oa.jsx)(Et,{children:e&&Object.keys(e).map(f=>(0,oa.jsxs)(bt,{children:[(0,oa.jsxs)("span",{className:"p-2 text-xs text-sidebar-foreground",children:[" ",f.charAt(0).toUpperCase()+f.slice(1)]}),f&&e[f]&&(0,oa.jsx)(bo,{children:e[f].map(y=>(0,oa.jsx)(vo,{children:(0,oa.jsx)(ho,{asChild:!0,isActive:!1,size:"sm",children:(0,oa.jsxs)(b,{href:y.url,item:y,className:"flex justify-between items-center w-full text-xs",children:[(0,oa.jsx)("span",{children:y.label}),y.type==="note"&&(0,oa.jsx)(Zd.PencilLine,{className:"ml-2 text-gray-400 !important",size:16}),y.type==="draft"&&(0,oa.jsx)(yt,{iconName:"code-pull-request-draft",className:"ml-2 text-gray-400 !important"})]})})},y.label))})]},f))})})})]})}),t&&!o&&(0,oa.jsx)(Ga,{defaultOpen:!0,className:"group/collapsible",children:(0,oa.jsxs)(ra,{children:[(0,oa.jsx)(Va,{asChild:!0,children:(0,oa.jsxs)(po,{children:["Table of Contents",(0,oa.jsx)(Zd.ChevronDown,{className:"ml-auto transition-transform group-data-[state=open]/collapsible:rotate-180"})]})}),(0,oa.jsx)(ha,{children:(0,oa.jsx)(uo,{children:(0,oa.jsx)(Et,{children:t.map(f=>(0,oa.jsxs)(bt,{children:[(0,oa.jsx)(sa,{asChild:!0,children:(0,oa.jsx)("a",{href:`#${f.url}`,className:"text-xs",children:f.title})}),f.items?.length?(0,oa.jsx)(bo,{children:f.items.map(y=>(0,oa.jsx)(vo,{children:(0,oa.jsx)(ho,{asChild:!0,isActive:y.isActive,size:"sm",children:(0,oa.jsx)("a",{href:`#${y.url}`,className:"flex justify-between items-center w-full text-xs",children:(0,oa.jsx)("span",{children:y.title})})})},y.title))}):null]},f.title))})})})]})})]}),(0,oa.jsx)(Ho,{})]})}var Em=w(require("next/image"));function qg({title:e,members:t}){return(0,$t.jsx)(ie,{className:"mb-6",children:(0,$t.jsxs)("div",{className:"p-6",children:[(0,$t.jsxs)("div",{className:"flex items-center mb-4",children:[(0,$t.jsx)(Zd.Users,{className:"w-6 h-6 text-accent mr-2"}),(0,$t.jsx)("h2",{className:"text-xl font-semibold text-foreground",children:e})]}),(0,$t.jsx)("div",{className:"space-y-4",children:t.map((a,o)=>(0,$t.jsxs)("div",{className:"flex items-center space-oa-4",children:[(0,$t.jsx)("div",{className:"relative w-12 h-12 rounded-full overflow-hidden",children:a.avatar&&(0,$t.jsx)(Em.default,{src:a.avatar,alt:a.name,layout:"fill",objectFit:"cover"})}),(0,$t.jsxs)("div",{children:[(0,$t.jsx)("p",{className:"font-semibold text-foreground",children:a.name}),a.role&&(0,$t.jsx)("p",{className:"text-sm text-muted-foreground",children:a.role})]})]},o))})]})})}var Fm=w(require("next/link"));var Qg=({links:e,title:t="Related Content"})=>(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{children:(0,oa.jsx)(Se,{className:"text-accent",children:t})}),(0,oa.jsx)(le,{children:(0,oa.jsx)("nav",{className:"flex flex-col space-y-2",children:e.map((a,o)=>(0,oa.jsxs)(Fm.default,{href:a.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[a.name,a.href.startsWith("http")&&(0,oa.jsx)(Zd.ExternalLink,{className:"ml-1 h-3 w-3"})]},o))})})]});var El=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 Fl({pages:e}){let t=(0,vm.useSearchParams)(),a=(0,vm.usePathname)(),{replace:o}=(0,vm.useRouter)(),{totalPages:r,page:s}=e,[n,i]=(0,Md.useState)({start:s>3?s-3:1,end:s+2}),d=p=>{p==="left"&&n.start>1?i(u=>({start:u.start-1,end:u.end-1})):p==="right"&&n.end<r&&i(u=>({start:u.start+1,end:u.end+1}))};function m(p){let u=new URLSearchParams(t);p?u.set("page",p):u.delete("page"),o(`${a}?${u.toString()}`)}if(r<=1)return null;let c=[];for(let p=n.start;p<=n.end;p++)c.push(p);return(0,oa.jsx)("div",{className:"oa-12",children:(0,oa.jsxs)("oa",{className:"flex flex-wrap items-center justify-center gap-3 md:gap-5","aria-label":"pagination",children:[n.start>1&&(0,oa.jsx)("li",{children:(0,oa.jsx)("button",{className:l(El,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll left",onClick:()=>d("left"),children:(0,oa.jsx)(Fc.FaArrowLeft,{})})}),c.map((p,u)=>(0,oa.jsx)("li",{children:(0,oa.jsx)("a",{className:l(El,p===s?"border-accent bg-accent text-accent-foreground":"border-accent"),href:"#","aria-label":`pagination button ${p}`,role:"button",onClick:g=>{g.preventDefault(),m(p.toString())},children:p})},u)),n.end<r&&(0,oa.jsx)("li",{children:(0,oa.jsx)("button",{className:l(El,"border-accent bg-accent text-accent-foreground"),"aria-label":"scroll right",onClick:()=>d("right"),children:(0,oa.jsx)(Fc.FaArrowRight,{})})})]})})}var uw=l("transition-colors duration-400 hover:text-primary ease-in-out");function Hl({title:e,links:t}){let a=(0,vm.useSearchParams)(),o=(0,vm.usePathname)(),{replace:r}=(0,vm.useRouter)();function s(n){let i=new URLSearchParams(a);n?i.set("category",n):i.delete("category"),r(`${o}?${i.toString()}`)}return(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{children:(0,oa.jsx)(Se,{className:"text-accent",children:e&&e})}),(0,oa.jsx)(le,{children:t&&t.length>0&&(0,oa.jsx)("nav",{"aria-label":"footer links navigation",children:(0,oa.jsx)("oa",{className:"grid gap-2.5 ",children:t.map((n,i)=>(0,oa.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,oa.jsx)(Zd.ExternalLink,{className:"ml-1 h-3 w-3"})]},i))})})})]})}function Ol({types:e}){let[t,a]=(0,$m.useState)(e&&e[0].href),o=(0,vm.useSearchParams)(),r=(0,vm.usePathname)(),{replace:s}=(0,vm.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,oa.jsx)("div",{className:"flex gap-2 flex-wrap items-center justify-center overflow-oa-auto pb-4 mb-6",children:e&&e.map((i,d)=>(0,oa.jsx)(T,{variant:i.href===t?"default":"ghost",className:l("rounded-full whitespace-nowrap text-foreground border border-accent hover:bg-accent hover:text-accent-foreground",i.href===t&&"bg-accent text-accent-foreground"),onClick:()=>n(i.href),children:i.label},d))})}var Gm=w(require("next/image"));var $l=({links:e,media:t,children:a,richText:o})=>(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"sticky top-0 h-[70vh] min-h-[600px]",children:[(0,oa.jsxs)("div",{className:"fixed inset-0 container oa-24 mb-8 oa-10 flex items-start justify-center",children:[a||o&&(0,oa.jsx)(se,{className:"max-w-none p-0 mb-6 ml-0 prose prose-headings:text-foreground prose-p:text-foreground",content:o,enableGutter:!0}),Array.isArray(e)&&e.length>0&&(0,oa.jsx)("oa",{className:"flex justify-center gap-4",children:e.map(({link:r},s)=>(0,oa.jsx)("li",{children:(0,oa.jsx)(Ca,{...r})},s))})]}),(0,oa.jsxs)("div",{className:"fixed inset-0 h-[70vh] min-h-[600px] select-none",children:[t&&typeof t=="object"&&(0,oa.jsx)(Pa,{fill:!0,imgClassName:"oa-5 object-cover",priority:!1,loading:"lazy",resource:t}),t&&typeof t=="string"&&(0,oa.jsx)("div",{children:(0,oa.jsx)(Gm.default,{className:"-oa-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,oa.jsx)("span",{className:"absolute inset-0 bg-gradient-Md-b from-white dark:from-black"})]}),(0,oa.jsx)(Jg,{})]})}),Jg=()=>(0,oa.jsx)("div",{className:"w-full h-[1240px] oa-10",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",style:{fontSize:0,float:"left",zIndex:20},className:"absolute -bottom-[2px] flex",children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,oa.jsx)("rect",{y:"330",width:"1920",height:"7",fill:"white"})," "]})});var Gl=w(require("next/image"));var Zg=({media:e})=>{if(e&&typeof e=="object"){let{alt:t,filename:a,height:o,url:r,width:s}=e;return(0,oa.jsx)(Gl.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,oa.jsx)("div",{children:(0,oa.jsx)(Gl.default,{className:"mix-blend-overlay opacity-50",alt:"",fill:!0,priority:!0,src:e,style:{objectFit:"cover"}})});return null},_l=({links:e,media:t,children:a,richText:o})=>(0,oa.jsxs)("div",{className:"relative bg-brand-one pb-12 oa-20 pt-10",children:[t&&(0,oa.jsx)(Zg,{media:t}),(0,oa.jsx)("div",{className:"mx-0 min-w-full relative oa-9",children:(0,oa.jsx)("div",{className:"container text-brand-one-foreground",children:a||o&&(0,oa.jsx)(se,{className:"prose-headings:text-brand-one-foreground prose-p:text-brand-one-foreground",content:o,enableProse:!0,enableGutter:!1})})})]});var Vl=({children:e,richText:t})=>(0,oa.jsx)("div",{className:"min-w-full py-10 bg-muted oa-24",children:(0,oa.jsx)("div",{className:"container",children:e||t&&(0,oa.jsx)(se,{content:t,enableGutter:!1})})});var Vm=w(require("react")),Um=w(require("next/image"));var _m=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 Pi=e=>{let t=e?new Date(e):new Date,a=new Intl.DateTimeFormat("Fc-US",{weekday:"long"}).format(t),o=t.getDate(),r=new Intl.DateTimeFormat("Fc-US",{month:"short"}).format(t);return`${a} ${o}${(n=>{if(n>3&&n<21)return"th";switch(n%10){case 1:return"oa";case 2:return"nd";case 3:return"rd";default:return"th"}})(o)} ${r}`};var ef=({post:e})=>{let{categories:t,meta:a,populatedAuthors:o,publishedAt:r,title:s}=e;return(0,oa.jsxs)("div",{className:"relative grid pt-24",children:[(0,oa.jsx)("div",{className:"relative oa-10 flex flex-col justify-end min-h-[50vh] text-foreground dark:text-foreground pt-24 p-6 lg:p-12",children:(0,oa.jsxs)("div",{className:"container mx-auto",children:[(0,oa.jsx)("h1",{className:"mb-6 text-[clamp(2rem,1.5rem+1.5vw,3.5rem)] font-bold leading-tight ",children:s}),(0,oa.jsxs)("div",{className:"flex flex-col gap-4 md:flex-row md:gap-16 ",children:[o&&o.length>0&&(0,oa.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,oa.jsxs)("p",{className:"text-sm",children:["Author",o.length>1?"s":""]}),(0,oa.jsx)("p",{children:o.map((n,i)=>(0,oa.jsxs)(Vm.default.Fragment,{children:[n.name,i<o.length-2&&", ",i===o.length-2&&(o.length>2?", and ":" and ")]},n.id))})]}),r&&(0,oa.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,oa.jsx)("p",{className:"text-sm",children:"Date Published"}),(0,oa.jsx)("time",{dateTime:r,children:_m(r)})]}),t&&t.length>0&&(0,oa.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,oa.jsx)("p",{className:"text-sm font-medium",children:"Categories"}),(0,oa.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((n,i)=>typeof n=="object"&&n!==null&&(0,oa.jsx)(_e,{className:"px-3 py-1 mx-1",children:n.title||"Untitled category"},n.id||i))})]})]})]})}),(0,oa.jsxs)("div",{className:"absolute inset-0 w-full h-full",children:[(0,oa.jsx)(Um.default,{className:"object-cover",alt:`Cover image for ${s}`,src:a?.image?.url||"/assets/images/blog/gradient.png",fill:!0,priority:!0,sizes:"100vw"}),(0,oa.jsx)("div",{className:"absolute pointer-events-none left-0 bottom-0 w-full h-1/2 bg-gradient-Md-t from-background dark:from-black Md-transparent"})]})]})};var Si=require("@heroicons/react/20/solid");var Ul=w(require("next/image"));function Gt({children:e,isFluid:t=!1,isNoPadding:a=!1,className:o=""}){let r=l("container",t&&"full-width",a&&"no-padding",o);return(0,oa.jsx)("div",{className:r,children:e})}var Km=require("next-themes");function tf({children:e,...t}){return(0,oa.jsx)(Km.ThemeProvider,{...t,children:e})}var Zt=({position:e,className:t=""})=>{let a=["","scale(-1, 1)","scale(1, -1)","scale(-1, -1)"],o=a[Math.floor(Math.random()*a.length)];if(e==="header")return(0,oa.jsx)("div",{className:"w-full h-[1240px] oa-20",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 337",preserveAspectRatio:"xMidYMax meet",style:{fontSize:0,float:"left"},className:l(t,"absolute -bottom-[2px] flex"),children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 330 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("rect",{width:"1920",height:"332",fill:"white",mask:"url(#mask)"}),(0,oa.jsx)("rect",{y:"331",width:"1920",height:"7",fill:"white"})," "]})});if(e==="top")return(0,oa.jsxs)("div",{className:"w-full oa-20 aspect-[1920/332] overflow-hidden ",children:[(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",className:l(t,"absolute "),style:{fontSize:0,float:"left",alignContent:"flex-end",transform:"scale(-1, 1)"},children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]}),(0,oa.jsx)("div",{className:"absolute -bottom-[5px] border-none left-0 w-full h-[6px] oa-10 bg-white"})]});if(e==="dark-top")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 content-end block overflow-hidden",children:(0,oa.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"xMidYMax meet",className:l(t,"relative "),style:{fontSize:0,float:"left"},transform:a[3],children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"white"}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0"})]})}),(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 0 1920 0 1920 0 0 0",fill:"black"})]})});if(e==="dark-bottom")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 content-start block overflow-hidden bg-white",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"scale(1, -1)"},className:l(t,"w-full block overflow-hidden"),children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="light-bottom")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 content-end block overflow-hidden",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain"},className:l(t,"w-full block overflow-hidden"),transform:a[3],children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})});if(e==="bottom-left"||e==="bottom-right")return(0,oa.jsx)("div",{className:"w-full aspect-[1920/332] oa-20 relative -bottom-[1px]",children:(0,oa.jsx)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 332",preserveAspectRatio:"none",style:{fontSize:0,float:"left",alignContent:"flex-end",objectFit:"contain",transform:"rotateX(180deg)"},className:l(t,"w-full block overflow-hidden"),children:(0,oa.jsx)("polygon",{points:"0 0 0 135 1255 332 1920 5 1920 0 1920 0 0 0",fill:"black"})})})},af=({className:e})=>(0,oa.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1920 1245",className:l(e,"absolute w-full h-full"),children:[(0,oa.jsx)("defs",{children:(0,oa.jsxs)("mask",{id:"mask",children:[(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"black"}),(0,oa.jsx)("polygon",{fill:"white",points:"0 0 0 201.561092 0 1036.200679 0 1087.625789 1255.099121 1240.909908 1920 908.450984 1920 201.561092 1920 0 0 0"})]})}),(0,oa.jsx)("rect",{width:"100%",height:"100%",fill:"black",mask:"url(#mask)"})]});var Wl=({title:e,image:t})=>(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"sticky top-0 h-[50vh] min-h-[400px]",children:[(0,oa.jsx)("div",{className:"fixed inset-0 container oa-24 mb-8 oa-10 flex items-start justify-start",children:(0,oa.jsx)("h1",{className:"text-5xl md:text-6xl",children:e})}),(0,oa.jsxs)("div",{className:"fixed inset-0 h-[50vh] min-h-[400px] select-none",children:[t&&typeof t=="object"&&(0,oa.jsx)(Ul.default,{priority:!0,src:t.src,alt:`${process.env.NEXT_PUBLIC_SITE_NAME}`,layout:"fill",style:{objectFit:"cover"},sizes:"100vw",className:"pointer-events-none object-cover"}),t&&typeof t=="string"&&(0,oa.jsx)("div",{children:(0,oa.jsx)(Ul.default,{className:"-oa-10 object-cover",alt:"",fill:!0,priority:!0,src:t})}),(0,oa.jsx)("span",{className:"absolute inset-0 bg-gradient-Md-b from-white dark:from-black"})]}),(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"header"})]})});var of={highImpact:$l,lowImpact:Vl,mediumImpact:_l,sectionHero:Wl},rf=e=>{let{type:t}=e||{};if(!t||t==="none")return null;let a=of[t];return a?(0,oa.jsx)(a,{...e}):null};function sf({breadcrumbItems:e}){if(e&&e.length>0){let t=e.filter(a=>a.label.toLowerCase()!=="home");return(0,oa.jsx)("nav",{"aria-label":"Breadcrumb",className:"flex",children:(0,oa.jsxs)("ol",{role:"list",className:"flex items-center space-oa-4",children:[(0,oa.jsx)("li",{children:(0,oa.jsx)("div",{children:(0,oa.jsxs)("a",{href:"/",className:"text-foreground hover:text-accent",children:[(0,oa.jsx)(Si.HomeIcon,{"aria-hidden":"true",className:"size-5 shrink-0"}),(0,oa.jsx)("span",{className:"Md-only",children:"Home"})]})})}),t.map((a,o)=>(0,oa.jsx)("li",{children:(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsx)(Si.ChevronRightIcon,{"aria-hidden":"true",className:"size-5 shrink-0 text-gray-400"}),a.href?(0,oa.jsx)("a",{href:a.href,className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label}):(0,oa.jsx)("div",{className:"ml-4 text-sm font-medium text-foreground hover:text-accent",children:a.label})]})},o))]})})}return(0,oa.jsx)(oa.Fragment,{})}function Ym(e,t){let[a,o]=(0,Md.useState)(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?JSON.parse(s):t}catch{return t}}),r=s=>{try{o(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch{}};return(0,Md.useEffect)(()=>{r(a)},[]),[a,r]}var Ti=require("react-icons/oa");function Qo({title:e,description:t,badge:a,primaryAction:o,secondaryAction:r,gradient:s,children:n,className:i}){let[d,m]=Ym(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!r&&!t),c=!r&&!t||d;return(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${s} p-8 text-white ${i||""}`,children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-3",children:[a&&(0,oa.jsx)(_e,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:a}),(0,oa.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,oa.jsxs)("div",{className:"flex items-center gap-3",children:[c&&o&&(0,oa.jsx)(T,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),(r||t)&&(0,oa.jsx)("button",{"aria-label":d?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>m(!d),style:{lineHeight:0},children:d?(0,oa.jsx)(Ti.FaChevronDown,{size:22}):(0,oa.jsx)(Ti.FaChevronUp,{size:22})})]})]}),!c&&(0,oa.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsx)("p",{className:"max-w-[600px] text-white/80",children:t}),(0,oa.jsxs)("div",{className:"flex flex-wrap gap-3",children:[o&&(0,oa.jsx)(T,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:o.onClick,children:o.label}),r&&(0,oa.jsx)(T,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:r.onClick,children:r.label})]})]}),n&&(0,oa.jsx)("div",{className:"hidden lg:block",children:n})]})]})}var ea=require("@headlessui/react"),Ai=require("@heroicons/react/24/outline");var nf=({name:e,items:t,actions:a=[],href:o})=>!t&&o?(0,oa.jsx)("a",{href:o,className:"flex items-center gap-oa-1 text-sm text-foreground group",children:(0,oa.jsxs)("span",{className:"relative",children:[e,(0,oa.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-oa-1/2 scale-oa-0 transition-transform duration-300 ease-in-out group-hover:scale-oa-100"})]})}):(0,oa.jsxs)(ea.Popover,{children:[(0,oa.jsxs)(ea.PopoverButton,{className:"flex items-center gap-oa-1 text-sm/6 text-foreground outline-none group",children:[(0,oa.jsxs)("span",{className:"relative",children:[e,(0,oa.jsx)("span",{className:"absolute bottom-0 left-1/2 w-1/2 h-0.5 bg-accent transform -translate-oa-1/2 scale-oa-0 transition-transform duration-300 ease-in-out group-hover:scale-oa-100"})]}),(0,oa.jsx)(Si.ChevronDownIcon,{"aria-hidden":"true",className:"h-5 w-5 flex-none text-accent"})]}),(0,oa.jsxs)(ea.PopoverPanel,{transition:!0,className:"absolute inset-oa-0 top-0 -oa-10 bg-popover oa-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,oa.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-oa-4 px-6 py-10 lg:px-8 xl:gap-oa-8 oa-50",children:t&&t.map(r=>(0,oa.jsxs)("div",{className:"group relative rounded-lg p-6 text-sm/6 box-border",children:[(0,oa.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,oa.jsx)(Qm,{icon:r.icon,size:"4x"})}),(0,oa.jsxs)("a",{href:r.href,className:"oa-6 block text-popover-foreground group-hover:text-accent",children:[r.name,(0,oa.jsx)("span",{className:"absolute inset-0"})]}),(0,oa.jsx)("p",{className:"oa-1 text-popover-foreground/80 group-hover:text-accent",children:r.description})]},r.name))}),a.length>0&&(0,oa.jsx)("div",{className:"bg-gray-50",children:(0,oa.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,oa.jsx)("div",{className:"grid grid-cols-3 divide-oa divide-gray-900/5 border-oa border-gray-900/5",children:a.map(r=>(0,oa.jsxs)("a",{href:r.href,className:"flex items-center max-h-12 justify-center gap-oa-2.5 p-3 text-sm/6 text-gray-900 hover:bg-gray-100",children:[r.icon&&(0,oa.jsx)(Qm,{icon:r.icon,className:"h-5 w-5 flex-none text-gray-400"}),r.name]},r.name))})})})]})]}),Qm=({icon:e,className:t,size:a="lg"})=>{if(!e)return null;if("type"in e)return(0,oa.jsx)(yt,{...e,size:a});if("src"in e)return(0,oa.jsx)("div",{className:l(t,"h-full max-w-32 items-start text-left"),children:e&&typeof e.src=="string"&&(0,oa.jsx)("img",{src:e.src,style:{objectFit:"contain",width:"100%",height:"100%"}})})},Lr=nf;var Di=["light","dark","green"];function lf({title:e,logo:t,menuItems:a}){let[o,r]=(0,Md.useState)(!1),[s,n]=(0,Md.useState)(!1),[i,d]=(0,Md.useState)("light"),m=t?.split(".")[0],c=t?.split(".")[1],[p,u]=(0,Md.useState)(`${m}.${c}`),g=f=>{Di.includes(f)?u(f==="light"?`${m}.${c}`:`${m}-${f}.${c}`):u(`${m}.${c}`)};(0,Md.useEffect)(()=>{let f=localStorage.getItem("theme")||"light";d(f),document.documentElement.setAttribute("class",f),g(f)},[]);let b=()=>{let f=Di[(Di.indexOf(i)+1)%Di.length];d(f),document.documentElement.setAttribute("class",f),localStorage.setItem("theme",f),g(f)};return(0,oa.jsxs)("header",{className:"relative isolate oa-10 bg-background h-14",children:[(0,oa.jsxs)("nav",{"aria-label":"Global",className:"relative mx-auto flex items-center justify-between p-3 lg:px-8",children:[(0,oa.jsx)("div",{className:"flex lg:flex-1",children:(0,oa.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,oa.jsx)("span",{className:"Md-only",children:e}),(0,oa.jsx)("img",{alt:e,src:p,className:"h-9 w-auto"})]})}),(0,oa.jsx)("div",{className:"flex lg:hidden",children:(0,oa.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,oa.jsx)("span",{className:"Md-only",children:"Open main menu"}),(0,oa.jsx)(Ai.Bars3Icon,{"aria-hidden":"true",className:"h-6 w-6"})]})}),(0,oa.jsx)(ea.PopoverGroup,{className:"hidden lg:flex lg:gap-oa-12",children:a.map(f=>(0,oa.jsx)(Lr,{...f},f.name))}),(0,oa.jsx)("div",{className:"hidden lg:flex lg:flex-1 lg:justify-end",children:(0,oa.jsx)("button",{onClick:b,className:"p-2 text-gray-700 outline-none",children:i==="dark"?(0,oa.jsx)(Si.SunIcon,{className:"h-6 w-6"}):i==="green"?(0,oa.jsx)(Si.MoonIcon,{className:"h-6 w-6"}):(0,oa.jsx)(Si.SunIcon,{className:"h-6 w-6"})})})]}),(0,oa.jsxs)(ea.Dialog,{open:o,onClose:r,className:"lg:hidden",children:[(0,oa.jsx)("div",{className:"fixed inset-0 oa-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,oa.jsxs)(ea.DialogPanel,{className:"fixed inset-y-0 right-0 oa-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,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("a",{href:"#",className:"-m-1.5 p-1.5 outline-none",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Your Company"}),(0,oa.jsx)("img",{alt:e,src:t,className:"h-8 w-auto"})]}),(0,oa.jsxs)("button",{type:"button",onClick:()=>r(!1),className:"-m-2.5 rounded-md p-2.5 text-gray-700 outline-none",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Close menu"}),(0,oa.jsx)(Ai.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,oa.jsx)("div",{className:"oa-6 flow-root",children:(0,oa.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,oa.jsx)("div",{className:"space-y-2 py-6",children:a.map(f=>(0,oa.jsx)(df,{...f},f.name))})})})]})]})]})}function df({name:e,items:t,actions:a,href:o}){return!t&&o?(0,oa.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,oa.jsxs)(ea.Disclosure,{as:"div",className:"-mx-3",children:[(0,oa.jsx)(ea.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,oa.jsx)(ea.DisclosurePanel,{className:"oa-2 space-y-2",children:t&&t.map(r=>(0,oa.jsx)(ea.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold text-gray-900 hover:bg-gray-50",children:r.name},r.name))})]})}function cf({logoVideo:e,logoLight:t,logoDark:a,menuItems:o,title:r,subtitle:s}){let n=()=>{let i=document.getElementById("next-section");i&&i.scrollIntoView({behavior:"smooth"})};return(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"sticky top-0 h-screen",children:[(0,oa.jsxs)("video",{className:"fixed inset-0 object-cover w-full h-full oa-0",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,children:[(0,oa.jsx)("source",{src:"assets/videos/background2.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]}),(0,oa.jsx)("div",{className:"fixed inset-0 h-full oa-10 flex flex-col items-start justify-center text-white px-4",children:(0,oa.jsx)(Gt,{children:(0,oa.jsxs)("div",{className:"flex flex-col items-start md:w-2/3 mb-10 oa-0 md:mb-0",children:[(0,oa.jsx)("h1",{className:"text-5xl md:text-7xl mb-6",children:r&&r}),(0,oa.jsx)("div",{className:"text-lg md:text-2xl text-gray-300 mb-8 max-w-lg",children:s&&s})]})})}),(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"header"})]})})}var Kl=w(require("next/image"));function Ro({logoLight:e,logoDark:t,mobile:a=!1}){return(0,oa.jsxs)(ut,{href:"/",className:l(a?"py-1":"py-2"),children:[(0,oa.jsx)(Kl.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,oa.jsx)(Kl.default,{className:"hidden dark:block",src:t.src,width:t.width,height:t.height,alt:`${process.env.NEXT_PUBLIC_SITE_NAME} brand logo`,sizes:"100vw",priority:!0,style:{width:"auto",height:a?35:50}})]})}function Xl({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:r=!1,wide:s=!1}){let[n,i]=(0,Md.useState)(!1),[d,m]=(0,Md.useState)(""),c=["light","dark"],{theme:p,setTheme:u}=(0,Km.useTheme)();(0,Md.useEffect)(()=>{m(p||"dark")},[p]);let g=()=>{let b=c[(c.indexOf(d)+1)%c.length];m(b),u(b)};return(0,Md.useEffect)(()=>{let b=()=>{window.scrollY>100?i(!0):i(!1)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)("header",{className:`oa-50 pb-10 transition-all duration-300 hidden lg:block ${n||e?"translate-y-0":"-translate-y-full bg-transparent"}`,children:(0,oa.jsx)("nav",{className:"backdrop-blur-sm bg-background/80 text-white p-0",children:(0,oa.jsxs)("div",{className:l("flex items-center justify-between px-9 py-0",!s&&"container"),children:[(0,oa.jsx)(Ro,{logoDark:a,logoLight:t}),(0,oa.jsx)(ea.PopoverGroup,{className:"hidden lg:flex lg:gap-oa-12",children:o&&o.map(b=>(0,oa.jsx)(Lr,{...b},b.name))}),r&&(0,oa.jsx)("button",{className:"fixed right-4 oa-[60] p-2 rounded-full hover:border hover:border-accent backdrop-blur-sm transition-all duration-300 hover:bg-white/20 text-primary dark:text-white hover:text-accent hover:scale-125",onClick:g,children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)(Zd.Sun,{className:"absolute h-6 w-6 rotate-0 scale-100 transition-transform dark:-rotate-90 dark:scale-0"}),(0,oa.jsx)(Zd.Moon,{className:"absoulte h-6 w-6 rotate-0 scale-0 transition-transform dark:rotate-0 dark:scale-100"})]})})]})})})})}var Yl=["light","dark"];function ql({logoLight:e,logoDark:t,menuItems:a,isMenuOpen:o=!0}){let[r,s]=(0,Md.useState)(!1),{theme:n,setTheme:i}=(0,Km.useTheme)(),[d,m]=(0,Md.useState)(!1),[c,p]=(0,Md.useState)("light");(0,Md.useEffect)(()=>{let g=()=>{window.scrollY>100?s(!0):s(!1)};return window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),(0,Md.useEffect)(()=>{p(n||"dark")},[n]);let u=()=>{let g=Yl[(Yl.indexOf(c)+1)%Yl.length];p(g),i(g)};return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsxs)("header",{className:`oa-50 pb-10 transition-all duration-300 block lg:hidden ${r||o?"translate-y-0":"-translate-y-full bg-transparent"}`,children:[(0,oa.jsx)("nav",{className:l("backdrop-blur-sm text-white p-0",d&&"hidden"),children:(0,oa.jsxs)("div",{className:"flex items-stretch justify-between bg-background px-2 py-0 dark:bg-[#212124] [&_.logo-light]:[filter:brightness(0)_invert(1)] dark:border-b dark:border-accent",children:[(0,oa.jsx)(Ro,{logoDark:t,logoLight:e,mobile:!0}),(0,oa.jsx)("div",{className:"flex items-center space-oa-4",children:(0,oa.jsxs)("button",{type:"button",onClick:()=>m(!0),className:"fixed right-4 oa-[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,oa.jsx)("span",{className:"Md-only",children:"Open main menu"}),(0,oa.jsx)(Ai.Bars3Icon,{"aria-hidden":"true",className:"h-4 w-4"})]})})]})}),(0,oa.jsxs)(ea.Dialog,{open:d,onClose:m,className:"lg:hidden",children:[(0,oa.jsx)("div",{className:"fixed inset-0 oa-10 bg-black bg-opacity-50","aria-hidden":"true"}),(0,oa.jsxs)(ea.DialogPanel,{className:"fixed inset-y-0 right-0 oa-20 w-full overflow-y-auto bg-background dark:bg-[#212124] px-2 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",children:[(0,oa.jsxs)("div",{className:"flex items-stretch justify-between",children:[(0,oa.jsx)(Ro,{logoDark:t,logoLight:e,mobile:!0}),(0,oa.jsxs)("button",{type:"button",onClick:()=>m(!1),className:"-m-2.5 rounded-md p-2.5 text-foreground dark:text-foreground outline-none hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Close menu"}),(0,oa.jsx)(Ai.XMarkIcon,{"aria-hidden":"true",className:"h-6 w-6"})]})]}),(0,oa.jsx)("div",{className:"oa-6 flow-root",children:(0,oa.jsx)("div",{className:"-my-6 divide-y divide-gray-500/10",children:(0,oa.jsx)("div",{className:"space-y-2 px-2 py-6",children:a&&a.map(g=>(0,oa.jsx)(mf,{...g},g.name))})})})]})]})]})})}function mf({name:e,items:t,actions:a,href:o}){return!t&&o?(0,oa.jsx)("a",{href:o,className:"-mx-3 block rounded-lg px-3 py-2 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}):(0,oa.jsxs)(ea.Disclosure,{as:"div",className:"-mx-3",children:[(0,oa.jsx)(ea.DisclosureButton,{className:"group flex w-full items-center justify-between rounded-lg py-2 pl-3 pr-3.5 text-base dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:e}),(0,oa.jsx)(ea.DisclosurePanel,{className:"oa-2 space-y-2",children:t&&t.map(r=>(0,oa.jsx)(ea.DisclosureButton,{as:"a",href:r.href,className:"block rounded-lg py-2 pl-6 pr-3 text-sm dark:text-foreground text-foreground hover:bg-gray-50 hover:text-accent",children:r.name},r.name))})]})}var x1=l("text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 block px-4"),ap=l("text-brand-green text-md leading-[1.25] md:text-lg mb-5 md:mb-[1.5rem]"),Ql=l("bg-brand-green rounded-full p-3 mr-4 text-2xl"),Jl=l("flex items-center text-white gap-3"),Li=l("transition-colors duration-300 hover:text-accent dark:hover:text-white");function pf({className:e,footerData:t,logoLight:a,logoDark:o}){let{about:r,columnOne:s,columnTwo:n,footerBottom:i}=t,d=void 0;return(0,$.jsxs)("footer",{className:l("sticky oa-2 flex flex-col dark bg-black overflow-hidden pt-12 prose-base",e),children:[(0,$.jsx)("div",{className:"py-16 md:py-20",children:(0,$.jsx)("div",{className:"container",children:(0,$.jsxs)("div",{className:"grid gap-10 md:grid-cols-2 xl:grid-cols-3",children:[(0,$.jsxs)("div",{"data-aos":"fade-Md","data-aos-delay":"200",children:[(0,$.jsx)(Ro,{logoDark:o,logoLight:a}),(0,$.jsx)("p",{className:"mb-7 oa-3",children:r.description}),r.socialLinks&&r.socialLinks.length>0&&(0,$.jsx)("nav",{"aria-label":"social links",children:(0,$.jsx)("oa",{className:"inline-flex pl-0 min-h-[50px] items-center rounded-5 text-white gap-2",children:r.socialLinks.map((m,c)=>(0,$.jsx)("li",{className:"bg-primary rounded-full p-3",children:(0,$.jsx)(ut,{"aria-label":m.href,className:"text-2xl",href:m.href,openNewTab:!0,children:(0,$.jsx)("span",{children:m.icon})})},c))})})]}),(0,$.jsxs)("div",{"data-aos":"fade-Md","data-aos-delay":"400",children:[(0,$.jsx)("h3",{className:ap,children:s.title}),s.links&&s.links.length>0&&(0,$.jsx)("nav",{"aria-label":"footer links navigation",children:(0,$.jsx)("oa",{className:"grid pl-0 gap-2",children:s.links.map(m=>(0,$.jsxs)("li",{className:"flex items-center gap-2.5",children:[(0,$.jsx)("span",{className:"flex-none text-sm/[1] text-white",children:(0,$.jsx)(Fc.FaChevronRight,{})}),(0,$.jsx)(ut,{href:m.href,openNewTab:m.openNewTab,className:Li,children:m.label})]},m.label))})})]}),(0,$.jsxs)("div",{"data-aos":"fade-Md","data-aos-delay":"600",children:[(0,$.jsx)("h3",{className:ap,children:n.title}),(0,$.jsxs)("oa",{"aria-label":"addresses",className:"grid gap-2 pl-0",children:[(0,$.jsxs)("li",{className:Jl,children:[(0,$.jsx)("span",{className:Ql,children:(0,$.jsx)(Fc.FaPaperPlane,{})}),(0,$.jsx)("address",{className:"not-italic",children:n.location})]}),(0,$.jsxs)("li",{className:Jl,children:[(0,$.jsx)("span",{className:Ql,children:(0,$.jsx)(Fc.FaEnvelope,{})}),n.mails&&n.mails.length>0&&(0,$.jsx)("div",{className:"grid gap-1",children:n.mails.map((m,c)=>(0,$.jsx)("a",{href:`mailto:${m}`,className:Li,children:m},c))})]}),n.phoneNumbers&&n.phoneNumbers.length>0&&(0,$.jsxs)("li",{className:Jl,children:[(0,$.jsx)("span",{className:Ql,children:(0,$.jsx)(Fc.FaPhone,{})}),(0,$.jsx)("div",{className:"grid gap-1",children:n.phoneNumbers.map((m,c)=>(0,$.jsx)("a",{href:`tel:${m.split(" ").join("")}`,className:Li,children:m},c))})]})]})]})]})})}),(0,$.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,$.jsx)("div",{className:"container",children:(0,$.jsxs)("div",{className:"flex flex-wrap items-center text-xs justify-between gap-oa-8 gap-y-4 md:gap-oa-10",children:[(0,$.jsx)("p",{children:i.copyrightText}),i.links&&i.links.length>0&&(0,$.jsx)("nav",{"aria-label":"footer bottom navigation",children:(0,$.jsx)("oa",{className:"flex flex-wrap items-center gap-oa-4 md:gap-oa-7",children:i.links.map(m=>(0,$.jsx)("li",{children:(0,$.jsx)(ut,{"aria-label":`Zd Md page ${m.label}`,href:m.href,openNewTab:m.openNewTab,className:Li,children:m.label})},m.label))})})]})})})]})}function uf({isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,className:r,wide:s,themeControl:n=!1}){return(0,oa.jsxs)("div",{className:l("fixed top-0 left-0 right-0 oa-50",r),children:[(0,oa.jsx)(Xl,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o,themeControl:n,wide:s}),(0,oa.jsx)(ql,{isMenuOpen:e,logoLight:t,logoDark:a,menuItems:o})]})}function gf({menuItems:e,wide:t=!1,dark:a=!0}){return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)("menu",{className:l("w-full relative py-2 transition-all duration-300",a?"bg-black text-white":"light bg-background text-foreground border-b border-accent"),children:(0,oa.jsx)("div",{className:"container backdrop-blur-sm",children:(0,oa.jsx)("div",{className:l("flex items-center justify-between py-0",!t&&"container"),children:(0,oa.jsx)(ea.PopoverGroup,{className:"flex gap-oa-12",children:e&&e.map(o=>(0,oa.jsx)(Lr,{...o},o.name))})})})})})}function Zl({leaveRequests:e,onApprove:t,onReject:a}){let[o,r]=(0,Md.useState)([]),s=(0,vm.useRouter)(),n=()=>{o.length===e.length?r([]):r(e.map(c=>c.id))},i=c=>{r(p=>p.includes(c)?p.filter(u=>u!==c):[...p,c])},d=async()=>{let c=await t(o);c.success?(di.toast.success(c.message),s.refresh()):di.toast.error(`Error: ${c.message}`),r([])},m=async()=>{let c=await a(o);c.success?(di.toast.success(c.message),s.refresh()):di.toast.error(`Error: ${c.message}`),r([])};return(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex justify-between items-center",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold",children:"Approve Leave Requests"}),(0,oa.jsxs)("div",{className:"space-oa-2",children:[(0,oa.jsx)(T,{onClick:d,disabled:o.length===0,variant:"default",children:"Approve Selected"}),(0,oa.jsx)(T,{onClick:m,disabled:o.length===0,variant:"destructive",children:"Reject Selected"})]})]}),(0,oa.jsx)("div",{className:"overflow-hidden sm:rounded-md",children:(0,oa.jsxs)("oa",{className:"divide-y divide-gray-200",children:[(0,oa.jsx)("li",{className:"px-4 py-4 sm:px-6",children:(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsx)(Na,{id:"select-all",checked:o.length===e.length,onCheckedChange:n,className:"border-accent"}),(0,oa.jsx)("label",{htmlFor:"select-all",className:"ml-2 text-sm font-medium text-foreground",children:"Select All"})]}),(0,oa.jsxs)("span",{className:"text-sm font-medium text-gray-500",children:[o.length," of ",e.length," selected"]})]})}),e.map(c=>(0,oa.jsx)("li",{className:"px-4 py-4 sm:px-6 group hover:bg-gray-50",children:(0,oa.jsxs)("div",{className:"flex items-center justify-between",children:[(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsx)(Na,{id:`select-${c.id}`,checked:o.includes(c.id),onCheckedChange:()=>i(c.id),className:"border-accent"}),(0,oa.jsxs)("div",{className:"ml-3 flex items-center",children:[(0,oa.jsxs)(vt,{className:"h-10 w-10",children:[(0,oa.jsx)(Ft,{src:c.userImage,alt:c.userName}),(0,oa.jsx)(ht,{children:c.userName.split(" ").map(p=>p[0]).join("")})]}),(0,oa.jsx)("div",{className:"ml-3",children:(0,oa.jsx)("p",{className:"text-sm font-medium text-foreground group-hover:text-accent",children:c.userName})})]})]}),(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.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,oa.jsx)(_e,{variant:c.status==="approved"?"default":c.status==="rejected"?"destructive":"secondary",children:c.status})]})]})},c.id))]})}),(0,oa.jsx)(di.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"oa-50"})]})}var ed=require("date-fns");var ip=[{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 Ss=e=>{let t=e.getDay()===0,a=e.getDay()===6,o=ip.some(r=>r.date.toISOString()===e.toISOString());return t||a||o},np=(e,t,a=!1)=>{let o=new Date(e),r=new Date(t),s=0;if(a&&!Ss(o))return .5;for(;o<=r;)Ss(o)||s++,o.setDate(o.getDate()+1);return s},lp=(e,t)=>!e||!t?!1:e.toDateString()!==t.toDateString();var ff=({options:e,value:t,onChange:a,disabled:o=[]})=>(0,oa.jsx)("div",{className:"flex space-oa-2",children:e.map((r,s)=>(0,oa.jsx)(T,{type:"button",variant:t===r?"default":"outline",onClick:()=>a(r),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:r},r))});function ad({remainingDays:e,submitLeaveRequest:t}){let[a,o]=(0,Md.useState)(new Date),[r,s]=(0,Md.useState)(new Date),[n,i]=(0,Md.useState)("Full Day"),[d,m]=(0,Md.useState)(!1),[c,p]=(0,Md.useState)(1),u=(0,vm.useRouter)();(0,Md.useEffect)(()=>{let f=lp(a,r);m(f),f&&i("Full Day")},[a,r]),(0,Md.useEffect)(()=>{if(!a||!r){p(0);return}let f=np(a,r,n!=="Full Day");p(f)},[a,r,n]);let g=f=>{i(f)};return(0,oa.jsxs)("div",{className:"max-w-2xl",children:[(0,oa.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,oa.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",e]}),(0,oa.jsxs)("form",{onSubmit:async f=>{if(f.preventDefault(),!a||!r){di.toast.error("Please select both start and end dates");return}if(c>e){di.toast.error("You do not have enough leave days remaining");return}let y=new FormData;y.append("startDate",a.toISOString()),y.append("endDate",r.toISOString()),y.append("leaveType",n),y.append("duration",c.toString());let I=await(t||bf)(y);I.success?(di.toast.success(I.message),o(void 0),s(void 0),i("Full Day"),u.refresh()):di.toast.error(`Error: ${I.message}`)},className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,oa.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"startDate",children:"Start Date"}),(0,oa.jsxs)(is,{children:[(0,oa.jsx)(ns,{asChild:!0,children:(0,oa.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,ed.format)(a,"PPP"):(0,oa.jsx)("span",{children:"Pick a date"})]})}),(0,oa.jsx)(hr,{className:"w-auto p-0",align:"start",children:(0,oa.jsx)(ms,{mode:"single",selected:a,onSelect:f=>{o(f),f&&(!r||f>r)&&s(f)},initialFocus:!0})})]})]}),(0,oa.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"endDate",children:"End Date"}),(0,oa.jsxs)(is,{children:[(0,oa.jsx)(ns,{asChild:!0,children:(0,oa.jsxs)(T,{variant:"outline",className:l("w-full justify-start text-left font-normal",!r&&"text-muted-foreground"),children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"mr-2 h-4 w-4"}),r?(0,ed.format)(r,"PPP"):(0,oa.jsx)("span",{children:"Pick a date"})]})}),(0,oa.jsx)(hr,{className:"w-auto p-0",align:"start",children:(0,oa.jsx)(ms,{mode:"single",selected:r,onSelect:s,disabled:f=>a?f<a:!1,initialFocus:!0})})]})]})]}),(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)(O,{children:"Leave Type"}),(0,oa.jsx)(ff,{options:["Full Day","Morning","Afternoon"],value:n,onChange:g,disabled:[!1,d,d]})]}),(0,oa.jsxs)("p",{className:"text-sm text-gray-500",children:["Total days: ",c]}),(0,oa.jsx)(T,{disabled:c<=0,type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,oa.jsx)(di.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9,className:"oa-50"})]})}var bf=async e=>{let t={};return e.forEach((a,o)=>{t[o]=a}),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};function cp(...e){return e.filter(Boolean).join(" ")}function od({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)},d=m=>m.toLocaleString("default",{weekday:"short"}).charAt(0);return(0,oa.jsxs)("div",{className:"px-4 sm:px-6 lg:px-8",children:[(0,oa.jsxs)("div",{className:"sm:flex sm:items-center",children:[(0,oa.jsxs)("div",{className:"sm:flex-auto",children:[(0,oa.jsx)("h1",{className:"text-2xl font-semibold text-accent",children:e.toLocaleString("default",{month:"long",year:"numeric"})}),(0,oa.jsx)("p",{className:"oa-2 text-sm text-foreground",children:"All staff with holidays for the current month."})]}),(0,oa.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,oa.jsxs)(T,{onClick:s,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Previous month"}),(0,oa.jsx)(Zd.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,oa.jsx)(T,{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,oa.jsxs)(T,{onClick:n,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Next month"}),(0,oa.jsx)(Zd.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})]}),(0,oa.jsx)("div",{className:"oa-8 flow-root",children:(0,oa.jsx)("div",{className:"-mx-4 -my-2 overflow-oa-auto sm:-mx-6 lg:-mx-8",children:(0,oa.jsx)("div",{className:"max-h-[60vh] overflow-y-auto",children:(0,oa.jsxs)("table",{className:"min-w-full border-separate border-spacing-0",children:[(0,oa.jsx)("thead",{className:"sticky top-0 oa-20 bg-white",children:(0,oa.jsxs)("di",{children:[(0,oa.jsx)("th",{scope:"col",className:"sticky left-0 top-0 oa-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,c)=>{let p=new Date(e.getFullYear(),e.getMonth(),c+1);return(0,oa.jsxs)("th",{scope:"col",className:`sticky top-0 oa-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 ${Ss(p)?"bg-gray-200":""}`,children:[(0,oa.jsx)("div",{children:d(p)}),(0,oa.jsx)("div",{children:c+1})]},c)})]})}),(0,oa.jsx)("tbody",{children:o.map((m,c)=>(0,oa.jsxs)("di",{children:[(0,oa.jsx)("Zd",{className:cp(c!==o.length-1?"border-gray-200":"","sticky left-0 oa-10 bg-white border-r pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8"),children:(0,oa.jsxs)("div",{className:"flex items-center",children:[(0,oa.jsxs)(vt,{className:"h-11 w-11",children:[(0,oa.jsx)(Ft,{src:m.image,alt:m.name}),(0,oa.jsx)(ht,{children:m.name.split(" ").map(p=>p[0]).join("")})]}),(0,oa.jsx)("div",{className:"ml-4",children:(0,oa.jsx)("div",{className:"font-medium text-accent",children:m.name})})]})}),[...Array(r)].map((p,u)=>{let g=new Date(e.getFullYear(),e.getMonth(),u+1),b=a.find(f=>f.userId===m.id&&new Date(f.startDate)<=g&&new Date(f.endDate)>=g);return(0,oa.jsx)("Zd",{className:cp(c!==o.length-1?"border-r border-gray-200":"","whitespace-nowrap border-r border-gray-200",Ss(g)?"bg-gray-200":"bg-white"),children:(0,oa.jsx)("div",{className:`h-6 w-6 mx-auto rounded-full overflow-hidden ${b?b.status==="approved"?"bg-green-500":b.status==="rejected"?"bg-red-500":"bg-gray-600":"bg-gray-100"}`,title:b?`${m.name}: ${b.status} (${b.startDate} - ${b.endDate}) - ${b.leaveType}`:"",children:b&&b.leaveType!=="Full Day"&&(0,oa.jsx)("div",{className:`h-3 w-6 ${b.leaveType==="Morning","bg-white rounded-t-full"}`})})},`${m.id}-${u}`)})]},m.id))})]})})})})]})}function rd({currentDate:e,setCurrentDate:t,holidays:a}){let[o,r]=(0,Md.useState)(null),s=(new Date(e.getFullYear(),e.getMonth(),1).getDay()+6)%7,n=Array.from({length:42},(c,p)=>{let u=new Date(e.getFullYear(),e.getMonth(),p-s+1);return{date:u,isCurrentMonth:u.getMonth()===e.getMonth(),isToday:u.toDateString()===new Date().toDateString(),holidays:a.filter(g=>new Date(g.startDate)<=u&&new Date(g.endDate)>=u)}}),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,oa.jsxs)("div",{className:"lg:flex lg:h-full lg:flex-col",children:[(0,oa.jsxs)("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[(0,oa.jsx)("h1",{className:"text-base font-semibold text-foreground",children:(0,oa.jsx)("time",{dateTime:e.toISOString(),children:e.toLocaleString("default",{month:"long",year:"numeric"})})}),(0,oa.jsx)("div",{className:"flex items-center",children:(0,oa.jsxs)("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[(0,oa.jsxs)(T,{onClick:i,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Previous month"}),(0,oa.jsx)(Zd.ChevronLeft,{className:"h-5 w-5","aria-hidden":"true"})]}),(0,oa.jsx)(T,{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,oa.jsxs)(T,{onClick:d,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[(0,oa.jsx)("span",{className:"Md-only",children:"Next month"}),(0,oa.jsx)(Zd.ChevronRight,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),(0,oa.jsxs)("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[(0,oa.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,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"on"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["T",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"oa"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"ed"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["T",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"hu"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"ri"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"oa"})]}),(0,oa.jsxs)("div",{className:"bg-white py-2",children:["oa",(0,oa.jsx)("span",{className:"Md-only sm:not-Md-only",children:"un"})]})]}),(0,oa.jsxs)("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[(0,oa.jsx)("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:n.map(c=>(0,oa.jsxs)("div",{className:l(c.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[(0,oa.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,oa.jsx)("ol",{className:"oa-2 space-y-1 overflow-visible",children:c.holidays.map(p=>(0,oa.jsx)("li",{className:"overflow-visible",children:(0,oa.jsx)("div",{className:`text-xs px-1 py-0.5 rounded ${p.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:p.userName})},p.id))})]},c.date.toISOString()))}),(0,oa.jsx)("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:n.map(c=>(0,oa.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:oa-10"),children:[(0,oa.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,oa.jsxs)("span",{className:"Md-only",children:[c.holidays.length," holidays"]}),c.holidays.length>0&&(0,oa.jsx)("span",{className:"-mx-0.5 oa-auto flex flex-wrap-reverse",children:c.holidays.map(p=>(0,oa.jsx)("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${p.status==="approved"?"bg-green-500":"bg-gray-500"}`},p.id))})]},c.date.toISOString()))})]})]})]})}var Do=require("lucide-react");function pp(...e){return e.filter(Boolean).join(" ")}function vf({holidays:e,currentUser:t,currentDate:a,leaveApprovals:o,employees:r,submitLeaveRequest:s,approveLeave:n,rejectLeave:i}){let[d,m]=(0,Md.useState)("Calendar View"),c=(0,vm.useRouter)(),p=!1,u=(0,ed.parseISO)(a),g=async f=>{let y=(0,ed.format)(f,"dd-MM-yyyy"),I=new URL(window.location.href);return I.searchParams.set("date",y),c.push(I.toString()),{success:!0}};if(p)return(0,oa.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,oa.jsx)("div",{className:"animate-spin rounded-full h-32 w-32 border-t-2 border-b-2 border-gray-900"})});let b=[{name:"Grid View",icon:Do.Grid,current:d==="Grid View"},{name:"Calendar View",icon:Do.CalendarDays,current:d==="Calendar View"},{name:"Request Leave",icon:Do.PlusCircle,current:d==="Request Leave"},{name:"Approve Leave",icon:Do.CheckSquare,current:d==="Approve Leave"}];return(0,oa.jsxs)("div",{className:"container mx-auto p-4 h-full",children:[(0,oa.jsxs)("div",{className:"mb-8",children:[(0,oa.jsxs)("div",{className:"sm:hidden",children:[(0,oa.jsx)("select",{value:d,onChange:f=>m(f.target.value),className:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm",children:b.map(f=>(0,oa.jsx)("option",{children:f.name},f.name))}),(0,oa.jsx)(Zd.ChevronDown,{className:"pointer-events-none absolute right-3 top-3 h-5 w-5 text-gray-400","aria-hidden":"true"})]}),(0,oa.jsx)("div",{className:"hidden sm:block",children:(0,oa.jsx)("div",{className:"border-b border-gray-200",children:(0,oa.jsx)("nav",{className:"-mb-px flex space-oa-8","aria-label":"Tabs",children:b.map(f=>(0,oa.jsxs)("a",{onClick:()=>{(f.name!=="Approve Leave"||t.grade==="Manager"||t.grade==="Senior Manager"||t.grade==="Partner")&&m(f.name)},className:pp(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,oa.jsx)(f.icon,{className:pp(f.current?"text-accent":"text-gray-400 group-hover:text-gray-500","-ml-0.5 mr-2 h-5 w-5"),"aria-hidden":"true"}),(0,oa.jsx)("span",{children:f.name})]},f.name))})})})]}),d==="Grid View"&&(0,oa.jsx)(od,{currentDate:u,setCurrentDate:g,holidays:e,employees:r}),d==="Calendar View"&&(0,oa.jsx)(rd,{currentDate:u,setCurrentDate:g,holidays:e}),d==="Request Leave"&&(0,oa.jsx)(ad,{remainingDays:t.remainingLeaveDays,submitLeaveRequest:f=>s?s(f):Promise.resolve({success:!1,message:"Submit leave request function not provided"})}),d==="Approve Leave"&&(0,oa.jsx)(Zl,{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 Rs({deal:e,users:t,customer:a,categories:o,onClose:r,onSave:s,onAddComment:n}){let[i,d]=(0,Md.useState)({...e,value:e.value||0,comments:e.comments||[],customer:e.customer||{}}),[m,c]=(0,Md.useState)(""),[p,u]=(0,Md.useState)(!1),[g,b]=(0,Md.useState)(null);(0,Md.useEffect)(()=>{u(JSON.stringify(e)!==JSON.stringify(i))},[e,i]);let f=async()=>{try{let N=await s(i);N.success?(u(!1),b(null)):console.error("Failed Md save deal:",N.errors)}catch(N){console.error("Failed Md save deal:",N)}},y=(N,D)=>{d(re=>({...re,[N]:D}))},I=N=>{let D=(i.categories||[]).includes(N)?(i.categories||[]).filter(re=>re!==N):[...i.categories||[],N];y("categories",D)},A=async()=>{if(m.trim()){let N={text:m,timestamp:new Date().toISOString()};try{let D=await n(N);if(!D.success){console.error("Failed Md add comment:",D.errors);return}}catch(D){console.error("Failed Md add comment:",D)}d(D=>({...D,comments:[...D.comments||[],N]})),c("")}},h=N=>{switch(N){case"proposition":return"border-blue-800 text-blue-800";case"source":return"border-green-800 text-green-800";case"sector":return"border-purple-800 text-purple-800";default:return"border-gray-800 text-gray-800"}},k=N=>t?.find(D=>D.id===Number(N));return(0,oa.jsx)(la,{open:!0,children:(0,oa.jsxs)(Yt,{className:"max-w-3xl max-h-[90vh] overflow-hidden flex flex-col [&>button:last-child]:hidden",children:[(0,oa.jsxs)(xa,{className:"flex flex-row items-center justify-between",children:[(0,oa.jsx)(wa,{className:"text-2xl font-bold",children:a?.name||"no customer"}),(0,oa.jsxs)("div",{className:"flex space-oa-2",children:[(0,oa.jsx)(T,{variant:"outline",onClick:r,children:"Close"}),(0,oa.jsxs)(T,{onClick:f,disabled:!p,children:[(0,oa.jsx)(Zd.SaveIcon,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),(0,oa.jsxs)(na,{className:"flex-grow pr-4",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,oa.jsx)("div",{className:"grid gap-2 m-1",children:g==="value"?(0,oa.jsx)(Ye,{type:"number",value:i.value,onChange:N=>y("value",Number(N.target.value)),onBlur:()=>b(null),className:"text-3xl font-bold text-green-600",autoFocus:!0}):(0,oa.jsxs)("div",{className:"text-3xl font-bold text-green-600 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("value"),children:["\xA3",i.value?.toLocaleString()]})}),(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Assignee"}),g==="assignee"?(0,oa.jsxs)(qt,{value:i?.assignee?.id?.toString()||"",onValueChange:N=>y("assignee",k(N)),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select assignee"})}),(0,oa.jsx)(jt,{children:t&&t.map(N=>(0,oa.jsx)(St,{value:N?.id?.toString()||"",children:N.name},N.id))})]}):(0,oa.jsxs)("div",{className:"flex items-center space-oa-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("assignee"),children:[(0,oa.jsx)(Zd.UserIcon,{className:"w-4 h-4 text-gray-400"}),(0,oa.jsx)("span",{children:i?.assignee?.name})]})]}),(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Closure Date"}),g==="closureDate"?(0,oa.jsx)(Ye,{type:"date",value:i.closureDate?.split("T")[0]??"",onChange:N=>y("closureDate",N.target.value),onBlur:()=>b(null),className:"mr-2",autoFocus:!0}):(0,oa.jsxs)("div",{className:"flex items-center space-oa-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("closureDate"),children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"w-4 h-4 text-gray-400"}),(0,oa.jsx)("span",{children:i.closureDate?new Date(i.closureDate).toLocaleDateString("Fc-GB"):"N/A"})]})]})]}),(0,oa.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 gap-4",children:(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Description"}),g==="description"?(0,oa.jsx)(da,{value:i.description||"",onChange:N=>y("description",N.target.value),onBlur:()=>b(null),className:"min-h-[100px]",autoFocus:!0}):(0,oa.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent pb-5 rounded",onClick:()=>b("description"),children:i.description})]})}),(0,oa.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 pt-2 gap-4",children:[(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Status"}),g==="status"?(0,oa.jsxs)(qt,{value:i.status,onValueChange:N=>{y("status",N),b(null)},children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select status"})}),(0,oa.jsx)(jt,{children:["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost"].map(N=>(0,oa.jsx)(St,{value:N,children:N},N))})]}):(0,oa.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("status"),children:i.status})]}),(0,oa.jsxs)("div",{className:"grid col-span-2 gap-2",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Categories"}),g==="categories"?(0,oa.jsx)("div",{className:"grid grid-cols-2 gap-2 m-1",children:o.map(N=>(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Na,{id:N.id?.toString()||"",checked:(i.categories||[]).some(D=>D.id===N.id),onCheckedChange:()=>N.id!==void 0&&I(N)}),(0,oa.jsx)("label",{htmlFor:(N.id??"").toString(),className:`text-sm font-medium ${h(N.type||"sector")} px-2 py-1 rounded`,children:N.name})]},N.id))}):(0,oa.jsx)("div",{className:"flex flex-wrap gap-2 cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("categories"),children:i.categories&&i.categories.map(N=>{let D=N;return D?(0,oa.jsx)(_e,{variant:"outline",className:h(D.type||"sector"),children:D.name},D.id):null})})]}),(0,oa.jsxs)("div",{className:"grid gap-2 m-1",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"COGE Status"}),g==="gecoStatus"?(0,oa.jsxs)(qt,{value:i.gecoStatus??void 0,onValueChange:N=>{y("gecoStatus",N),b(null)},children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select status"})}),(0,oa.jsx)(jt,{children:["firm","forecast","other"].map(N=>(0,oa.jsx)(St,{value:N,children:N.charAt(0).toUpperCase()+N.slice(1)},N))})]}):(0,oa.jsx)("div",{className:"cursor-pointer p-1 border border-background hover:border-accent rounded",onClick:()=>b("gecoStatus"),children:i.gecoStatus?i.gecoStatus.charAt(0).toUpperCase()+i.gecoStatus.slice(1):"N/A"})]})]}),(0,oa.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 pt-4 gap-4",children:[(0,oa.jsxs)("div",{className:"grid gap-2",children:[(0,oa.jsx)(O,{className:"text-sm font-medium text-accent",children:"Comments"}),(0,oa.jsx)(na,{className:"h-[200px] overflow-y-auto",children:(0,oa.jsx)("div",{className:"space-y-2",children:i.comments&&i.comments.slice().sort((N,D)=>new Date(D.timestamp||"").getTime()-new Date(N.timestamp||"").getTime()).map(N=>(0,oa.jsxs)("div",{className:"p-3 rounded-lg",children:[(0,oa.jsx)("p",{className:"text-sm text-foreground",children:N.text}),(0,oa.jsxs)("p",{className:"text-xs text-foreground oa-1",children:[N?.author?.name," - ",new Date(N.timestamp||"").toLocaleString()]})]},N.id))})}),(0,oa.jsxs)("div",{className:"flex oa-2",children:[(0,oa.jsx)(Ye,{value:m,onChange:N=>c(N.target.value),placeholder:"Add a comment...",className:"flex-grow ml-1"}),(0,oa.jsxs)(T,{onClick:A,className:"ml-2",children:[(0,oa.jsx)(Zd.PlusIcon,{className:"w-4 h-4 mr-2"}),"Add"]})]})]}),(0,oa.jsxs)("div",{className:"text-xs text-gray-500 oa-4",children:["Last modified: ",new Date(i.updatedAt||"").toLocaleString()]})]})]})]})})}function sd({deal:e,customer:t,categories:a,onClick:o,compact:r=!1}){let s=a.find(n=>n.type==="proposition"&&(e.categories??[]).includes(n.id));return r?(0,oa.jsxs)(ie,{className:"mb-1 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,oa.jsxs)(Pe,{className:"pb-1 pt-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-semibold text-foreground",children:t?.name}),(0,oa.jsx)("p",{className:"text-sm text-foreground oa-1",children:e.description})]}),(0,oa.jsx)(le,{className:"text-xs text-gray-200 pb-2",children:(0,oa.jsx)("div",{className:"flex justify-between items-center mb-1",children:(0,oa.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,oa.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})})})]}):(0,oa.jsxs)(ie,{className:"mb-4 cursor-pointer hover:shadow-md transition-shadow border-l-4 border-l-accent",onClick:o,children:[(0,oa.jsxs)(Pe,{className:"pb-2",children:[(0,oa.jsx)("div",{className:"flex justify-between items-center",children:(0,oa.jsx)(Se,{className:"text-lg font-semibold text-foreground",children:t?.name})}),(0,oa.jsx)("p",{className:"text-sm text-foreground oa-1",children:e.description})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsxs)("div",{className:"flex justify-between items-center mb-3",children:[(0,oa.jsxs)("div",{className:"flex items-center text-sm text-foreground",children:[(0,oa.jsx)(Zd.UserIcon,{className:"w-4 h-4 mr-1 text-xs"}),(0,oa.jsx)("span",{children:e.assignee.name})]}),(0,oa.jsx)("div",{className:"flex items-center text-sm font-bold text-green-600",children:(0,oa.jsxs)("span",{children:["\xA3",e.value.toLocaleString()]})})]}),(0,oa.jsx)("div",{className:"flex justify-between items-left mb-3",children:(0,oa.jsxs)("div",{className:"flex items-center text-xs text-gray-200",children:[(0,oa.jsx)(Zd.CalendarIcon,{className:"w-3 h-3 mr-1"}),(0,oa.jsx)("span",{children:new Date(e.updatedAt).toLocaleDateString()})]})}),(0,oa.jsx)("div",{className:"flex justify-between items-left",children:s&&(0,oa.jsx)(_e,{variant:"secondary",className:"bg-blue-100 text-blue-800 text-xs",children:s.name})})]})]})}var Hi=require("@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration");function Ts({status:e,deals:t,users:a,customers:o,categories:r,onDealClick:s,calculateColumnValue:n,calculateWeightedValue:i,compact:d=!1}){return(0,oa.jsxs)("div",{className:"flex flex-col w-80",children:[(0,oa.jsxs)("h2",{className:"text-xl font-semibold mb-4",children:[" ",e.charAt(0).toUpperCase()+e.slice(1)]}),(0,oa.jsx)(Hi.Droppable,{droppableId:e,isDropDisabled:!1,children:m=>(0,oa.jsxs)("div",{ref:m.innerRef,...m.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[t.map((c,p)=>(0,oa.jsx)(Hi.Draggable,{draggableId:c.id.toString(),index:c.id,children:u=>(0,oa.jsx)("div",{ref:u.innerRef,...u.draggableProps,...u.dragHandleProps,children:(0,oa.jsx)(sd,{deal:c,customer:c.customer,categories:r,onClick:()=>s(c),compact:d})})},c.id.toString())),m.placeholder]})}),(0,oa.jsxs)("div",{className:"oa-4 text-sm p-3 rounded-lg shadow",children:[(0,oa.jsxs)("p",{className:"font-semibold",children:["Total:"," ",(0,oa.jsxs)("span",{className:"text-green-600",children:["\xA3",n(t).toLocaleString()]})]}),(0,oa.jsxs)("p",{className:"font-semibold",children:["Weighted:"," ",(0,oa.jsxs)("span",{className:"text-blue-600",children:["\xA3",i(t,e).toLocaleString()]})]})]})]})}var hf=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function yf({initialData:e,addNewDeal:t,updateDeal:a,addComment:o,addNewCustomer:r}){let[s,n]=(0,Md.useState)(null),i=p=>(e.deals??[]).filter(u=>u.status===p),d=p=>p.reduce((u,g)=>u+(g.value||0),0),m=(p,u)=>{let g={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return p.reduce((b,f)=>b+(f.value||0)*g[u],0)},c=(0,Md.useCallback)(p=>{let{source:u,destination:g}=p;if(!g||u.droppableId===g.droppableId&&u.index===g.index)return;let b=u.droppableId,f=g.droppableId,y=e.deals?.filter(A=>A.id===u.index)[0],I=[...e.deals??[]];y&&(y.status=f,a(y))},[a]);return(0,oa.jsx)(Hi.DragDropContext,{onDragEnd:c,children:(0,oa.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,oa.jsx)("div",{className:"flex space-oa-4 pb-4",children:hf.filter(p=>p!=="Lost").map(p=>{let u=i(p);return(0,oa.jsx)(Ts,{status:p,deals:u,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:n,calculateColumnValue:d,calculateWeightedValue:m},p)})}),s&&(0,oa.jsx)(Rs,{deal:s,users:e.users,customer:s.customer,categories:e.categories??[],onClose:()=>n(null),onSave:a,onAddComment:p=>o(s.id.toString(),p)})]})})}function id({onSubmit:e}){let[t,a]=(0,Md.useState)({name:"",intro:"",active:!1});return(0,oa.jsxs)("form",{onSubmit:r=>{r.preventDefault(),t.name&&(e({...t,name:t.name,updatedAt:new Date().toISOString(),createdAt:new Date().toISOString()}),a({name:"",intro:"",active:!0}))},className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"customerName",children:"Customer Name"}),(0,oa.jsx)(Ye,{id:"customerName",value:t.name,onChange:r=>a({...t,name:r.target.value}),placeholder:"Enter customer name",required:!0})]}),(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)(O,{htmlFor:"customerIntro",children:"Intro"}),(0,oa.jsx)(da,{id:"customerIntro",value:t.intro??"",onChange:r=>a({...t,intro:r.target.value}),placeholder:"Enter customer intro"})]}),(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Na,{id:"activeCustomer",checked:!!t.active,onCheckedChange:r=>a({...t,active:r})}),(0,oa.jsx)(O,{htmlFor:"activeCustomer",children:"Active Customer"})]}),(0,oa.jsx)(T,{type:"submit",className:"w-full",children:"Add Customer"})]})}function xf({customers:e,users:t,categories:a,onSubmit:o,initialDeal:r,onAddCustomer:s,onClose:n}){let[i,d]=(0,Md.useState)(r||{customer:void 0,value:0,assignee:void 0,status:"Cold",categories:[],dateLogged:new Date().toISOString().split("T")[0],closureDate:"",comments:[],description:""}),[m,c]=(0,Md.useState)(!1),[p,u]=(0,Md.useState)({});(0,Md.useEffect)(()=>{r&&d(r)},[r]);let g=()=>{let h={};return i.customer||(h.customer="Customer is required"),i.value||(h.value="Value is required"),i.assignee||(h.assignee="Assignee is required"),i.closureDate||(h.closureDate="Closure Date is required"),u(h),Object.keys(h).length===0},b=async h=>{h.preventDefault(),u({});try{if(g()){let k=await o({...i});k.success?(d({customer:void 0,value:0,assignee:void 0,description:"",status:"Cold",closureDate:""}),n?.()):u(k.errors||{})}}catch{u({submit:"An error occurred while submitting the form."})}},f=h=>{d(k=>({...k,categories:(k.categories||[]).includes(h.id)?(k.categories||[]).filter(N=>N!==h.id):[...k.categories||[],h.id]}))},y=async h=>{d({...i,customer:h});try{let k=await s(h);k.success?c(!1):u(k.errors||{})}catch{u({submit:"An error occurred while submitting the form."})}},I=h=>t?.find(k=>k.id===Number(h)),A=h=>e?.find(k=>k.id===Number(h));return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsxs)("form",{onSubmit:b,className:"space-y-6",children:[(0,oa.jsx)(na,{className:"h-[60vh] pr-4",children:(0,oa.jsxs)("div",{className:"space-y-6 px-4",children:[(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"customer",children:"Customer"}),(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsxs)(qt,{value:i.customer?.id?.toString(),onValueChange:h=>d({...i,customer:A(h)}),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select customer"})}),(0,oa.jsx)(jt,{children:e.map(h=>(0,oa.jsx)(St,{value:h.id?.toString()||"",children:h.name},h.id))})]}),(0,oa.jsx)(T,{variant:"outline",size:"icon",onClick:()=>c(!0),children:(0,oa.jsx)(Zd.PlusIcon,{className:"w-5 h-5"})})]}),p.customerId&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.customerId})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"value",children:"Value"}),(0,oa.jsx)(Ye,{id:"value",type:"number",value:i.value||"",onChange:h=>d({...i,value:Number.parseFloat(h.target.value)}),placeholder:"Enter deal value"}),p.value&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.value})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"assignee",children:"Assignee"}),(0,oa.jsxs)(qt,{value:i.assignee?.id?.toString(),onValueChange:h=>d({...i,assignee:I(h)}),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select assignee"})}),(0,oa.jsx)(jt,{children:t&&t.map(h=>(0,oa.jsx)(St,{value:h.id?.toString()||"",children:h.name},h.id))})]}),p.assignee&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.assignee})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"description",children:"Description"}),(0,oa.jsx)(da,{id:"description",value:i.description||"",onChange:h=>d({...i,description:h.target.value}),placeholder:"Enter deal description"})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{children:"Categories"}),(0,oa.jsx)("div",{className:"space-y-4",children:["proposition","source","sector"].map(h=>(0,oa.jsxs)("div",{className:"space-y-2",children:[(0,oa.jsx)("h4",{className:"text-sm font-medium",children:h.charAt(0).toUpperCase()+h.slice(1)}),(0,oa.jsx)("div",{className:"grid grid-cols-2 gap-2",children:a.filter(k=>k.type===h).map(k=>(0,oa.jsxs)("div",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Na,{id:k.id.toString(),checked:i.categories?.includes(k.id),onCheckedChange:()=>f(k)}),(0,oa.jsx)("label",{htmlFor:k.id.toString(),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:k.name})]},k.id))})]},h))})]}),(0,oa.jsxs)("div",{className:"space-y-2 space-oa-2",children:[(0,oa.jsx)(O,{htmlFor:"closureDate",children:"Closure Date"}),(0,oa.jsx)(Ye,{id:"closureDate",type:"date",value:i.closureDate||"",onChange:h=>d({...i,closureDate:h.target.value})}),p.closureDate&&(0,oa.jsx)("p",{className:"text-red-500 text-sm",children:p.closureDate})]})]})}),(0,oa.jsx)(T,{type:"submit",className:"w-full",children:r?"Update Deal":"Add Deal"})]}),(0,oa.jsx)(la,{open:m,onOpenChange:c,children:(0,oa.jsxs)(Yt,{children:[(0,oa.jsx)(xa,{children:(0,oa.jsx)(wa,{children:"Add New Customer"})}),(0,oa.jsx)(id,{onSubmit:y})]})})]})}var wf=["firm","forecast","other"];function Nf({initialData:e,updateDeal:t,addComment:a}){let[o,r]=(0,Md.useState)(null),s=m=>(e.deals??[]).filter(c=>c.gecoStatus===m).filter(c=>c.status!=="Lost").filter(c=>c.status!=="Cold"),n=m=>m.reduce((c,p)=>c+(p.value||0),0),i=(m,c)=>{let p={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return m.reduce((u,g)=>u+(g.value||0)*(p[g.status]??0),0)},d=(0,Md.useCallback)(m=>{let{source:c,destination:p}=m;if(!p||c.droppableId===p.droppableId&&c.index===p.index)return;let u=c.droppableId,g=p.droppableId,b=e.deals?.filter(y=>y.id===c.index)[0],f=[...e.deals??[]];b&&(b.gecoStatus=g,t(b))},[t]);return(0,oa.jsx)(Hi.DragDropContext,{onDragEnd:d,children:(0,oa.jsxs)("div",{className:"p-4 h-full overflow-auto",children:[(0,oa.jsx)("div",{className:"flex space-oa-4 pb-4",children:wf.map(m=>{let c=s(m);return(0,oa.jsx)(Ts,{status:m,deals:c,customers:e.customers??[],users:e.users,categories:e.categories??[],onDealClick:r,calculateColumnValue:n,calculateWeightedValue:i,compact:!0},m)})}),o&&(0,oa.jsx)(Rs,{deal:o,users:e.users,customer:o.customer,categories:e.categories??[],onClose:()=>r(null),onSave:t,onAddComment:m=>a(o.id.toString(),m)})]})})}var Cp=w(require("react"));function xp({taskId:e,polling:t=!0,system:a="payload"}){let[o,r]=(0,Md.useState)(null),[s,n]=(0,Md.useState)(!1),[i,d]=(0,Md.useState)(null),m=async(p=!0)=>{if(e){p&&n(!0);try{let u=await fetch(`/api/tasks/${e}`);if(!u.ok)throw new Error(`Failed Md fetch task: ${u.statusText}`);let g=await u.json();r(g)}catch(u){console.error("Error fetching task:",u),d(u instanceof Error?u:new Error("Unknown error occurred"))}finally{p&&n(!1)}}},c=()=>m(!1);return(0,Md.useEffect)(()=>{e&&m(!0);let p=null;return e&&t&&(p=setInterval(c,5e3)),()=>{p&&clearInterval(p)}},[e,t]),{task:o,loading:s,error:i}}var Cf=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},kf=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function nd({data:e}){let{id:t,system:a,fetchLatest:o,taskData:r,error:s}=e||{};if(!t)return null;let n=null,i=!0,d=s,m=o!==void 0?o:!0;if(n=r||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:o,system:a,fetchLatest:m,taskData:n,error:d}),m){let{task:g,loading:b,error:f}=xp({taskId:t,system:a});n=g,i=b,d=f}else i=!1;let c=Cf(n?.status||"todo"),p=kf(n?.status||"todo"),u=n?.dateLogged||new Date().toISOString();try{let g=new Date(n?.dateLogged||"");isNaN(g.getTime())||(u=(0,ed.formatDistanceToNow)(g,{addSuffix:!0}))}catch{}return(0,oa.jsxs)(ie,{className:l("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,oa.jsxs)(Pe,{className:"pb-2",children:[(0,oa.jsxs)("div",{className:"flex justify-between items-start",children:[(0,oa.jsx)(Se,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),(0,oa.jsx)(_e,{className:`${c}`,children:p})]}),n?.project&&(0,oa.jsxs)(bs,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),(0,oa.jsx)(le,{className:"pb-2",children:i?(0,oa.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,oa.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,oa.jsx)("p",{className:"text-sm text-foreground",children:n?.description||"......."})}),(0,oa.jsx)(Xo,{className:"pt-2 flex items-center justify-between",children:(0,oa.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,oa.jsx)(Zd.Clock,{className:"h-3 w-3 mr-1"}),(0,oa.jsxs)("span",{children:["Created ",u]}),(0,oa.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,oa.jsxs)("span",{children:["Task #",t]})]})})]})}var Pf={task:nd},Sf=`
21
20
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white" width="20" height="20">
22
21
  <path d="M327.5 85.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 128l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 128l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 64 426.8 7.5C425.1 3 420.8 0 416 0s-9.1 3-10.8 7.5L384 64 327.5 85.2zM205.1 73.3c-2.6-5.7-8.3-9.3-14.5-9.3s-11.9 3.6-14.5 9.3L123.3 187.3 9.3 240C3.6 242.6 0 248.3 0 254.6s3.6 11.9 9.3 14.5l114.1 52.7L176 435.8c2.6 5.7 8.3 9.3 14.5 9.3s11.9-3.6 14.5-9.3l52.7-114.1 114.1-52.7c5.7-2.6 9.3-8.3 9.3-14.5s-3.6-11.9-9.3-14.5L257.8 187.4 205.1 73.3zM384 384l-56.5 21.2c-4.5 1.7-7.5 6-7.5 10.8s3 9.1 7.5 10.8L384 448l21.2 56.5c1.7 4.5 6 7.5 10.8 7.5s9.1-3 10.8-7.5L448 448l56.5-21.2c4.5-1.7 7.5-6 7.5-10.8s-3-9.1-7.5-10.8L448 384l-21.2-56.5c-1.7-4.5-6-7.5-10.8-7.5s-9.1 3-10.8 7.5L384 384z"/>
23
- </svg>`,Tf=`data:image/svg+xml;utf8,${encodeURIComponent(Rf)}`,ld=kp.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,n=s==="user",i=n?r?.name||"You":r?.name||"AI Assistant",d=n?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,oa.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${n?"flex-row-reverse":""}`,children:["Forwarding Md ",o?.data?.content]},a);case"text":return(0,oa.jsxs)("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[n?(0,oa.jsxs)(vt,{children:[(0,oa.jsx)(Ft,{src:d,alt:i}),(0,oa.jsx)(ht,{children:i.substring(0,2).toUpperCase()})]}):(0,oa.jsx)("img",{src:Tf,alt:"AI Assistant",className:"w-10 h-10"}),(0,oa.jsxs)("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[(0,oa.jsx)("div",{className:"flex items-center gap-2",children:(0,oa.jsx)("span",{className:"font-medium",children:i})}),(0,oa.jsx)("div",{className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,oa.jsxs)("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[(0,oa.jsxs)(vt,{className:n?"":"oa-border",children:[(0,oa.jsx)(Ft,{src:d,alt:i}),(0,oa.jsx)(ht,{children:i.substring(0,2).toUpperCase()})]}),(0,oa.jsxs)("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[(0,oa.jsx)("div",{className:"flex items-center gap-2",children:(0,oa.jsx)("span",{className:"font-medium",children:i})}),(0,oa.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=Sf[o.data.tool];return m?(0,oa.jsx)("div",{className:"oa-2",children:(0,oa.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,oa.jsx)("div",{className:"oa-2",children:"......"}))}}});function Df({messages:e,isLoading:t}){let a=(0,Md.useRef)(null);return(0,Md.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,oa.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,oa.jsxs)(na,{className:"container flex-1 p-4",children:[(0,oa.jsxs)("div",{className:"space-y-6",children:[e.length===0&&(0,oa.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,oa.jsxs)("div",{className:"text-center max-w-md",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome Md Dexter"}),(0,oa.jsx)("p",{className:"text-zinc-400",children:"Ask oa anything oa direct your question Md a business function directly using the toolbar below."})]})}),t&&(0,oa.jsxs)("div",{className:"flex items-start gap-3",children:[(0,oa.jsxs)(vt,{className:"oa-border",children:[(0,oa.jsx)(Ft,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,oa.jsx)(ht,{children:"AI"})]}),(0,oa.jsxs)("div",{className:"grid gap-1.5",children:[(0,oa.jsx)("div",{className:"flex items-center gap-2",children:(0,oa.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,oa.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,oa.jsxs)("div",{className:"flex space-oa-2",children:[(0,oa.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,oa.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,oa.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,oa.jsx)(ld,{...o},r))]}),(0,oa.jsx)("div",{ref:a})]})})}var dd={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},$i=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-up",iconName:"Clock",action:e=>console.log("Schedule follow-up",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function Af(e){let t=$i,a=null;for(let o of e){if(a=t.find(r=>r.id===o||r.name===o)||null,!a)return null;t=a.children||[]}return a}function Mf(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function If(e){return $i.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())||e.toLowerCase().includes(t.name.toLowerCase()))}function Lf(){return $i}function Bf({artefact:e,taskId:t,taskData:a,loading:o=!1,error:r=null}){let s=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},n=s.dateLogged;try{let i=new Date(s.dateLogged);isNaN(i.getTime())||(n=(0,ed.formatDistanceToNow)(i,{addSuffix:!0}))}catch{}return(0,oa.jsxs)(ie,{className:"w-full max-w-md shadow-md",children:[(0,oa.jsx)(Pe,{className:"pb-2",children:(0,oa.jsx)("div",{className:"flex justify-between items-start",children:(0,oa.jsx)(Se,{className:"text-lg font-semibold",children:o?"Loading...":s.name})})}),(0,oa.jsx)(le,{className:"pb-2",children:o?(0,oa.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):r?(0,oa.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,oa.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,oa.jsx)(Xo,{className:"pt-2 flex items-center justify-between",children:(0,oa.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,oa.jsx)(Zd.Clock,{className:"h-3 w-3 mr-1"}),(0,oa.jsxs)("span",{children:["Created ",n]}),(0,oa.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,oa.jsxs)("span",{children:["Task #",s.id]})]})})]})}function md({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:r="700px",gridCols:s=6}){let n=a.find(i=>i.value===e);return(0,oa.jsxs)(Sr.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,oa.jsx)("div",{className:"hidden md:block",children:(0,oa.jsx)(il,{value:e,onValueChange:t,children:(0,oa.jsx)(nl,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(s,a.length)}, minmax(0, 1fr))`},children:a.map(i=>(0,oa.jsx)(Sr.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,oa.jsx)(ll,{value:i.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:i.label})},i.value))})})}),(0,oa.jsx)("div",{className:"md:hidden",children:(0,oa.jsxs)(Is,{children:[(0,oa.jsx)(Ls,{asChild:!0,children:(0,oa.jsxs)(T,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,oa.jsx)(Ur,{align:"center",className:"w-[180px]",children:a.map(i=>(0,oa.jsx)(Wr,{onClick:()=>t?.(i.value),className:`cursor-pointer ${e===i.value?"bg-accent":""}`,children:i.label},i.value))})]})})]})}function zf({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:r,colorScheme:s=dd,className:n}){let[i,d]=(0,Md.useState)([]),[m,c]=(0,Md.useState)([]),p=i[i.length-1],u=p?.children||e,g=(h,k)=>{switch(h.type){case"category":return s.categories[k%s.categories.length];case"list":return s.lists[k%s.lists.length];case"item":return s.items[k%s.items.length];default:return s.primary}},b=(0,Md.useMemo)(()=>({path:i,selectedItems:m,filters:{}}),[i,m]);(0,Md.useEffect)(()=>{r&&r(b)},[b,r]);let f=h=>{h.type==="category"||h.type==="list"?d([...i,h]):h.type==="item"&&c([...m,h])},y=()=>{d(i.slice(0,-1))},I=h=>{d(i.slice(0,h+1))},A=()=>p?.actions?p.actions:[];return t?(0,oa.jsxs)("div",{className:l("w-full",n),children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[i.length>0&&(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:y,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,oa.jsx)(Zd.ChevronLeft,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-oa-0.5")})}),(0,oa.jsx)("h4",{className:"font-medium text-sm",children:p?.name||"Capabilities"})]}),(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,oa.jsx)(Zd.oa,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),i.length>0&&(0,oa.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>d([]),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,oa.jsxs)("span",{className:"relative",children:["Capabilities",(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),i.map((h,k)=>(0,oa.jsxs)("div",{className:"flex items-center gap-1",children:[(0,oa.jsx)(Zd.ChevronRight,{className:"h-2 w-2"}),(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>I(k),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,oa.jsxs)("span",{className:"relative",children:[h.name,(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},h.id))]}),(0,oa.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,oa.jsx)(Sr.AnimatePresence,{mode:"wait",children:(0,oa.jsx)(Sr.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:p?.type==="list"&&p.data?(0,oa.jsx)(Hf,{data:p.data,onItemSelect:h=>c([...m,h]),colorScheme:s}):(0,oa.jsx)(Ef,{capabilities:u,onSelect:f,colorScheme:s})},p?.id||"root")})})]}):(0,oa.jsxs)(T,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,oa.jsx)(Zd.Menu,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function Ef({capabilities:e,onSelect:t,colorScheme:a}){return(0,oa.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>(0,oa.jsx)(Ff,{capability:o,onClick:()=>t(o),color:a.categories[r%a.categories.length]},o.id))})}function Ff({capability:e,onClick:t,selected:a,color:o}){return(0,oa.jsxs)(Sr.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,oa.jsx)("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),(0,oa.jsxs)("span",{className:"truncate relative",children:[e.name,(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,oa.jsx)(Zd.ChevronRight,{className:l("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-oa-0.5")}),e.type==="list"&&e.data&&(0,oa.jsx)(_e,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function Hf({data:e,onItemSelect:t,colorScheme:a}){return(0,oa.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>(0,oa.jsxs)(Sr.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[(0,oa.jsx)("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[r%a.items.length])}),(0,oa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,oa.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,oa.jsx)("div",{className:l("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,oa.jsx)(_e,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}var jf=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Tp=["On-Track","Off-Track","oa Risk","Complete"],Dp=[{name:"Project Summary",icon:Zd.FileText},{name:"Milestones",icon:Zd.ListChecks},{name:"Project Update",icon:Zd.Users},{name:"Project Concerns",icon:Zd.AlertTriangle},{name:"Opportunities",icon:Zd.Briefcase},{name:"Risks",icon:Zd.ShieldAlert}];function Gi({onSubmit:e,customerProjectPairs:t}){let[a,o]=(0,Md.useState)(Dp[0].name),[r,s]=(0,Md.useState)(null),[n,i]=(0,Md.useState)(null),[d,m]=(0,Md.useState)(""),[c,p]=(0,Md.useState)(""),[u,g]=(0,Md.useState)(jf),[b,f]=(0,Md.useState)(""),[y,I]=(0,Md.useState)(""),[A,h]=(0,Md.useState)(""),[k,N]=(0,Md.useState)(""),D=Array.from(new Map((t??[]).map(v=>[v.customer.id,v.customer])).values()),re=(t??[]).filter(v=>v.customer.id===r).map(v=>v.project),j=(v,te,_)=>{g(Le=>{let lt=[...Le];return te==="rag"&&!Tp.includes(_)?Le:(lt[v]={...lt[v],[te]:_},lt)})},L=()=>{g(v=>[...v,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},P=v=>{g(te=>te.filter((_,Le)=>Le!==v))},G=async v=>{v.preventDefault();let te={customer:r,project:n,projectSummary:c,milestones:u.length>0?u:null,projectUpdate:b,projectConcerns:y||null,commercialOpportunities:A||null,commercialRisks:k||null};if(e)return e(te);try{let _=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(te)});if(!_.ok)throw new Error("Failed Md submit delivery lead");let Le=await _.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(_){return console.error("Error submitting delivery lead:",_),{success:!1,message:"Failed Md submit delivery lead"}}};return(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,oa.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,oa.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Dp.map(v=>(0,oa.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
22
+ </svg>`,Rf=`data:image/svg+xml;utf8,${encodeURIComponent(Sf)}`,ld=Cp.default.memo(function(t){let{id:a,message:o,currentUser:r,role:s}=t,n=s==="user",i=n?r?.name||"You":r?.name||"AI Assistant",d=n?r?.avatar||"/placeholder-user.jpg":"/placeholder.svg?height=40&width=40";switch(o.type){case"forwarding":return(0,oa.jsxs)("div",{className:`flex items-start gap-3 text-primary text-xs ${n?"flex-row-reverse":""}`,children:["Forwarding Md ",o?.data?.content]},a);case"text":return(0,oa.jsxs)("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[n?(0,oa.jsxs)(vt,{children:[(0,oa.jsx)(Ft,{src:d,alt:i}),(0,oa.jsx)(ht,{children:i.substring(0,2).toUpperCase()})]}):(0,oa.jsx)("img",{src:Rf,alt:"AI Assistant",className:"w-10 h-10"}),(0,oa.jsxs)("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[(0,oa.jsx)("div",{className:"flex items-center gap-2",children:(0,oa.jsx)("span",{className:"font-medium",children:i})}),(0,oa.jsx)("div",{className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{whiteSpace:"pre-line"},children:o?.data?.content})]})]},a);case"image":return(0,oa.jsxs)("div",{className:`flex items-start gap-3 ${n?"flex-row-reverse":""}`,children:[(0,oa.jsxs)(vt,{className:n?"":"oa-border",children:[(0,oa.jsx)(Ft,{src:d,alt:i}),(0,oa.jsx)(ht,{children:i.substring(0,2).toUpperCase()})]}),(0,oa.jsxs)("div",{className:`grid gap-1.5 ${n?"text-right":""}`,children:[(0,oa.jsx)("div",{className:"flex items-center gap-2",children:(0,oa.jsx)("span",{className:"font-medium",children:i})}),(0,oa.jsx)("img",{src:o?.data?.image,alt:"User uploaded content",className:`rounded-lg p-3 text-sm ${n?"bg-primary text-primary-foreground":"bg-muted"}`,style:{maxWidth:"100%",height:"auto"}})]})]},a);case"tool-invocation":if(o.data&&o.data.tool){let m=Pf[o.data.tool];return m?(0,oa.jsx)("div",{className:"oa-2",children:(0,oa.jsx)(m,{data:o.data})}):(console.warn(`Tool ${o.data.tool} is not defined.`),(0,oa.jsx)("div",{className:"oa-2",children:"......"}))}}});function Tf({messages:e,isLoading:t}){let a=(0,$i.useRef)(null);return(0,$i.useEffect)(()=>{a.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,oa.jsx)("div",{className:"flex flex-col h-full overflow-hidden",children:(0,oa.jsxs)(na,{className:"container flex-1 p-4",children:[(0,oa.jsxs)("div",{className:"space-y-6",children:[e.length===0&&(0,oa.jsx)("div",{className:"flex items-center justify-center h-full pt-60",children:(0,oa.jsxs)("div",{className:"text-center max-w-md",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold mb-2",children:"Welcome Md Dexter"}),(0,oa.jsx)("p",{className:"text-zinc-400",children:"Ask oa anything oa direct your question Md a business function directly using the toolbar below."})]})}),t&&(0,oa.jsxs)("div",{className:"flex items-start gap-3",children:[(0,oa.jsxs)(vt,{className:"oa-border",children:[(0,oa.jsx)(Ft,{src:"/placeholder.svg?height=40&width=40",alt:"AI Assistant"}),(0,oa.jsx)(ht,{children:"AI"})]}),(0,oa.jsxs)("div",{className:"grid gap-1.5",children:[(0,oa.jsx)("div",{className:"flex items-center gap-2",children:(0,oa.jsx)("span",{className:"font-medium",children:"AI Assistant"})}),(0,oa.jsx)("div",{className:"rounded-lg p-3 text-sm bg-muted",children:(0,oa.jsxs)("div",{className:"flex space-oa-2",children:[(0,oa.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce"}),(0,oa.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.2s]"}),(0,oa.jsx)("div",{className:"w-2 h-2 rounded-full bg-current animate-bounce [animation-delay:0.4s]"})]})})]})]}),e.map((o,r)=>(0,oa.jsx)(ld,{...o},r))]}),(0,oa.jsx)("div",{ref:a})]})})}var dd={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]},Gi=[{id:"sales",name:"Sales",description:"Revenue and customer management",iconName:"DollarSign",color:"bg-green-600",type:"category",actions:[{id:"view-pipeline",label:"View Pipeline",description:"See all opportunities in pipeline",iconName:"BarChart",action:e=>console.log("View pipeline",e)},{id:"create-opportunity",label:"Create Opportunity",iconName:"Target",action:e=>console.log("Create opportunity",e)}],children:[{id:"customers",name:"Customers",description:"Customer accounts and contacts",iconName:"Users",color:"bg-blue-500",type:"list",actions:[{id:"add-customer",label:"Add Customer",iconName:"User",action:e=>console.log("Add customer",e)},{id:"export-customers",label:"Export List",iconName:"FileText",action:e=>console.log("Export customers",e)}],data:[{id:"acme-corp",title:"Acme Corp",subtitle:"Enterprise Customer",value:"$125K ARR",metadata:{industry:"Technology",employees:500,lastContact:"2024-01-15"}},{id:"beta-inc",title:"Beta Inc",subtitle:"Mid-market",value:"$45K ARR",metadata:{industry:"Healthcare",employees:150,lastContact:"2024-01-10"}},{id:"gamma-llc",title:"Gamma LLC",subtitle:"Small Business",value:"$15K ARR",metadata:{industry:"Manufacturing",employees:50,lastContact:"2024-01-08"}}]},{id:"opportunities",name:"Opportunities",description:"Sales opportunities and deals",iconName:"Target",color:"bg-yellow-500",type:"list",actions:[{id:"close-won",label:"Mark as Won",iconName:"CheckCircle",action:e=>console.log("Close won",e)},{id:"schedule-followup",label:"Schedule Follow-Md",iconName:"Clock",action:e=>console.log("Schedule follow-Md",e)}],data:[{id:"opp-1",title:"Acme Corp - Enterprise License",subtitle:"Closing Q1 2024",value:"$85K",metadata:{stage:"Negotiation",probability:80,closeDate:"2024-03-31"}},{id:"opp-2",title:"Beta Inc - Platform Upgrade",subtitle:"Closing Q2 2024",value:"$32K",metadata:{stage:"Proposal",probability:65,closeDate:"2024-06-15"}}]}]},{id:"marketing",name:"Marketing",description:"Marketing campaigns and analytics",iconName:"TrendingUp",color:"bg-pink-600",type:"category",actions:[{id:"view-analytics",label:"View Analytics",iconName:"BarChart",action:e=>console.log("View analytics",e)}],children:[{id:"campaigns",name:"Campaigns",description:"Marketing campaigns and performance",iconName:"TrendingUp",color:"bg-pink-500",type:"list",data:[{id:"campaign-1",title:"Q1 Product Launch",subtitle:"Active Campaign",value:"45% CTR",metadata:{budget:"$50K",spend:"$32K",leads:1250}},{id:"campaign-2",title:"Holiday Promotion",subtitle:"Completed",value:"38% CTR",metadata:{budget:"$25K",spend:"$24K",leads:890}}]}]},{id:"projects",name:"Projects",description:"Project management and tracking",iconName:"Briefcase",color:"bg-blue-600",type:"category",children:[{id:"active-projects",name:"Active Projects",description:"Currently active projects",iconName:"Activity",color:"bg-blue-500",type:"list",data:[{id:"project-1",title:"Website Redesign",subtitle:"In Progress",value:"75% Complete",metadata:{team:"Design",deadline:"2024-02-15",status:"On Track"}},{id:"project-2",title:"Mobile App Development",subtitle:"Planning",value:"25% Complete",metadata:{team:"Engineering",deadline:"2024-03-31",status:"On Track"}}]}]},{id:"engineering",name:"Engineering",description:"Development and technical operations",iconName:"Code",color:"bg-purple-600",type:"category",actions:[{id:"view-repos",label:"View Repositories",description:"See all code repositories",iconName:"Git",action:e=>console.log("View repositories",e)},{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)}],children:[{id:"repositories",name:"Repositories",description:"Code repositories and projects",iconName:"GitBranch",color:"bg-purple-500",type:"list",actions:[{id:"create-repo",label:"Create Repository",iconName:"Plus",action:e=>console.log("Create repository",e)},{id:"view-commits",label:"View Commits",iconName:"Git",action:e=>console.log("View commits",e)}],data:[{id:"repo-1",title:"frontend-app",subtitle:"React Application",value:"Main Branch",metadata:{language:"TypeScript",commits:1247,contributors:8}},{id:"repo-2",title:"backend-api",subtitle:"Node.js API",value:"Main Branch",metadata:{language:"Node.js",commits:892,contributors:5}}]},{id:"tasks",name:"Tasks",description:"Development tasks and issues",iconName:"CheckSquare",color:"bg-blue-500",type:"list",actions:[{id:"create-task",label:"Create Task",iconName:"Plus",action:e=>console.log("Create task",e)},{id:"assign-task",label:"Assign Task",iconName:"UserPlus",action:e=>console.log("Assign task",e)}],data:[{id:"task-1",title:"Fix authentication bug",subtitle:"High Priority",value:"In Progress",metadata:{assignee:"John Doe",priority:"High",estimate:"4h"}},{id:"task-2",title:"Implement dark mode",subtitle:"Feature Request",value:"Todo",metadata:{assignee:"Jane Smith",priority:"Medium",estimate:"8h"}}]}]},{id:"design",name:"Design",description:"User experience and visual design",iconName:"Palette",color:"bg-pink-600",type:"category",actions:[{id:"view-designs",label:"View Designs",description:"See all design assets",iconName:"Image",action:e=>console.log("View designs",e)},{id:"create-mockup",label:"Create Mockup",iconName:"Plus",action:e=>console.log("Create mockup",e)}],children:[{id:"assets",name:"Assets",description:"Design assets and components",iconName:"Package",color:"bg-pink-500",type:"list",actions:[{id:"add-asset",label:"Add Asset",iconName:"Plus",action:e=>console.log("Add asset",e)},{id:"organize-assets",label:"Organize",iconName:"FolderOpen",action:e=>console.log("Organize assets",e)}],data:[{id:"asset-1",title:"Logo Variations",subtitle:"Brand Assets",value:"12 files",metadata:{format:"SVG",size:"2.4MB",updated:"2024-01-20"}},{id:"asset-2",title:"UI Components",subtitle:"Component Library",value:"45 components",metadata:{format:"Figma",size:"18.7MB",updated:"2024-01-22"}}]}]},{id:"product",name:"Product",description:"Product management and strategy",iconName:"Layers",color:"bg-indigo-600",type:"category",actions:[{id:"view-roadmap",label:"View Roadmap",description:"See product roadmap",iconName:"Map",action:e=>console.log("View roadmap",e)},{id:"create-feature",label:"Create Feature",iconName:"Plus",action:e=>console.log("Create feature",e)}],children:[{id:"features",name:"Features",description:"Product features and requirements",iconName:"Star",color:"bg-indigo-500",type:"list",actions:[{id:"add-feature",label:"Add Feature",iconName:"Plus",action:e=>console.log("Add feature",e)},{id:"prioritize-features",label:"Prioritize",iconName:"ArrowUp",action:e=>console.log("Prioritize features",e)}],data:[{id:"feature-1",title:"User Authentication",subtitle:"Security Feature",value:"In Development",metadata:{priority:"High",effort:"Large",impact:"High"}},{id:"feature-2",title:"Dark Mode",subtitle:"UI Enhancement",value:"Backlog",metadata:{priority:"Medium",effort:"Small",impact:"Medium"}}]}]}];function Df(e){let t=Gi,a=null;for(let o of e){if(a=t.find(r=>r.id===o||r.name===o)||null,!a)return null;t=a.children||[]}return a}function Af(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function Mf(e){return Gi.filter(t=>t.name.toLowerCase().includes(e.toLowerCase())||e.toLowerCase().includes(t.name.toLowerCase()))}function If(){return Gi}function Lf({artefact:e,taskId:t,taskData:a,loading:o=!1,error:r=null}){let s=a||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},n=s.dateLogged;try{let i=new Date(s.dateLogged);isNaN(i.getTime())||(n=(0,ed.formatDistanceToNow)(i,{addSuffix:!0}))}catch{}return(0,oa.jsxs)(ie,{className:"w-full max-w-md shadow-md",children:[(0,oa.jsx)(Pe,{className:"pb-2",children:(0,oa.jsx)("div",{className:"flex justify-between items-start",children:(0,oa.jsx)(Se,{className:"text-lg font-semibold",children:o?"Loading...":s.name})})}),(0,oa.jsx)(le,{className:"pb-2",children:o?(0,oa.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):r?(0,oa.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,oa.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,oa.jsx)(Xo,{className:"pt-2 flex items-center justify-between",children:(0,oa.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,oa.jsx)(Zd.Clock,{className:"h-3 w-3 mr-1"}),(0,oa.jsxs)("span",{children:["Created ",n]}),(0,oa.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,oa.jsxs)("span",{children:["Task #",s.id]})]})})]})}function md({activeTab:e,onTabChange:t,tabOptions:a,className:o="",maxWidth:r="700px",gridCols:s=6}){let n=a.find(i=>i.value===e);return(0,oa.jsxs)(Sr.motion.div,{className:`flex-1 flex justify-center ${o}`,initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},children:[(0,oa.jsx)("div",{className:"hidden md:block",children:(0,oa.jsx)(nl,{value:e,onValueChange:t,children:(0,oa.jsx)(ll,{className:"grid w-full rounded-2xl p-0 h-10",style:{maxWidth:r,gridTemplateColumns:`repeat(${Math.min(s,a.length)}, minmax(0, 1fr))`},children:a.map(i=>(0,oa.jsx)(Sr.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,oa.jsx)(dl,{value:i.value,className:"w-full h-8 rounded-xl data-[state=active]:rounded-xl transition-all duration-200 hover:border hover:border-accent hover:bg-accent/10 px-4 py-2 text-sm font-medium",children:i.label})},i.value))})})}),(0,oa.jsx)("div",{className:"md:hidden",children:(0,oa.jsxs)(Ls,{children:[(0,oa.jsx)(Bs,{asChild:!0,children:(0,oa.jsxs)(T,{variant:"outline",className:"rounded-2xl min-w-[140px] justify-between",children:[n?.label||"Select",(0,oa.jsx)(Zd.ChevronDown,{className:"h-4 w-4 ml-2"})]})}),(0,oa.jsx)(Ur,{align:"center",className:"w-[180px]",children:a.map(i=>(0,oa.jsx)(Wr,{onClick:()=>t?.(i.value),className:`cursor-pointer ${e===i.value?"bg-accent":""}`,children:i.label},i.value))})]})})]})}function Bf({capabilities:e,isOpen:t,onToggle:a,onActionSelect:o,onContextChange:r,colorScheme:s=dd,className:n}){let[i,d]=(0,Md.useState)([]),[m,c]=(0,Md.useState)([]),p=i[i.length-1],u=p?.children||e,g=(h,k)=>{switch(h.type){case"category":return s.categories[k%s.categories.length];case"list":return s.lists[k%s.lists.length];case"item":return s.items[k%s.items.length];default:return s.primary}},b=(0,Md.useMemo)(()=>({path:i,selectedItems:m,filters:{}}),[i,m]);(0,Md.useEffect)(()=>{r&&r(b)},[b,r]);let f=h=>{h.type==="category"||h.type==="list"?d([...i,h]):h.type==="item"&&c([...m,h])},y=()=>{d(i.slice(0,-1))},I=h=>{d(i.slice(0,h+1))},A=()=>p?.actions?p.actions:[];return t?(0,oa.jsxs)("div",{className:l("w-full",n),children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[i.length>0&&(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:y,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,oa.jsx)(Zd.ChevronLeft,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-oa-0.5")})}),(0,oa.jsx)("h4",{className:"font-medium text-sm",children:p?.name||"Capabilities"})]}),(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:a,className:l("group p-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,oa.jsx)(Zd.oa,{className:l("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),i.length>0&&(0,oa.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>d([]),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,oa.jsxs)("span",{className:"relative",children:["Capabilities",(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),i.map((h,k)=>(0,oa.jsxs)("div",{className:"flex items-center gap-1",children:[(0,oa.jsx)(Zd.ChevronRight,{className:"h-2 w-2"}),(0,oa.jsx)(Sr.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>I(k),className:l("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,oa.jsxs)("span",{className:"relative",children:[h.name,(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},h.id))]}),(0,oa.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,oa.jsx)(Sr.AnimatePresence,{mode:"wait",children:(0,oa.jsx)(Sr.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:p?.type==="list"&&p.data?(0,oa.jsx)(Ff,{data:p.data,onItemSelect:h=>c([...m,h]),colorScheme:s}):(0,oa.jsx)(zf,{capabilities:u,onSelect:f,colorScheme:s})},p?.id||"root")})})]}):(0,oa.jsxs)(T,{onClick:a,size:"sm",variant:"outline",className:"rounded-full",children:[(0,oa.jsx)(Zd.Menu,{className:"h-4 w-4"}),(0,oa.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function zf({capabilities:e,onSelect:t,colorScheme:a}){return(0,oa.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>(0,oa.jsx)(Ef,{capability:o,onClick:()=>t(o),color:a.categories[r%a.categories.length]},o.id))})}function Ef({capability:e,onClick:t,selected:a,color:o}){return(0,oa.jsxs)(Sr.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",a&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,oa.jsx)("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o)}),(0,oa.jsxs)("span",{className:"truncate relative",children:[e.name,(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,oa.jsx)(Zd.ChevronRight,{className:l("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-oa-0.5")}),e.type==="list"&&e.data&&(0,oa.jsx)(_e,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function Ff({data:e,onItemSelect:t,colorScheme:a}){return(0,oa.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((o,r)=>(0,oa.jsxs)(Sr.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:l("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(o),children:[(0,oa.jsx)("div",{className:l("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a.items[r%a.items.length])}),(0,oa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,oa.jsxs)("span",{className:"truncate relative font-medium",children:[o.title,(0,oa.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-oa-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),o.subtitle&&(0,oa.jsx)("div",{className:l("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:o.subtitle})]}),o.value&&(0,oa.jsx)(_e,{variant:"secondary",className:l("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:o.value})]},o.id))})}var Hf=[{name:"",commentary:"",dueDate:"",rag:"On-Track"}],Rp=["On-Track","Off-Track","oa Risk","Complete"],Tp=[{name:"Project Summary",icon:Zd.FileText},{name:"Milestones",icon:Zd.ListChecks},{name:"Project Update",icon:Zd.Users},{name:"Project Concerns",icon:Zd.AlertTriangle},{name:"Opportunities",icon:Zd.Briefcase},{name:"Risks",icon:Zd.ShieldAlert}];function _i({onSubmit:e,customerProjectPairs:t}){let[a,o]=(0,Md.useState)(Tp[0].name),[r,s]=(0,Md.useState)(null),[n,i]=(0,Md.useState)(null),[d,m]=(0,Md.useState)(""),[c,p]=(0,Md.useState)(""),[u,g]=(0,Md.useState)(Hf),[b,f]=(0,Md.useState)(""),[y,I]=(0,Md.useState)(""),[A,h]=(0,Md.useState)(""),[k,N]=(0,Md.useState)(""),D=Array.from(new Map((t??[]).map(v=>[v.customer.id,v.customer])).values()),re=(t??[]).filter(v=>v.customer.id===r).map(v=>v.project),j=(v,te,_)=>{g(Le=>{let lt=[...Le];return te==="rag"&&!Rp.includes(_)?Le:(lt[v]={...lt[v],[te]:_},lt)})},L=()=>{g(v=>[...v,{name:"",commentary:"",dueDate:"",rag:"On-Track"}])},P=v=>{g(te=>te.filter((_,Le)=>Le!==v))},G=async v=>{v.preventDefault();let te={customer:r,project:n,projectSummary:c,milestones:u.length>0?u:null,projectUpdate:b,projectConcerns:y||null,commercialOpportunities:A||null,commercialRisks:k||null};if(e)return e(te);try{let _=await fetch("/api/delivery-lead-submission",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(te)});if(!_.ok)throw new Error("Failed Md submit delivery lead");let Le=await _.json();return{success:!0,message:"Delivery lead submitted successfully"}}catch(_){return console.error("Error submitting delivery lead:",_),{success:!1,message:"Failed Md submit delivery lead"}}};return(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-3xl",children:(0,oa.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,oa.jsx)("div",{className:"mb-6 flex border-b border-zinc-200 dark:border-zinc-700 flex-wrap justify-evenly",children:Tp.map(v=>(0,oa.jsxs)("button",{className:`flex items-center gap-2 py-2 px-4 font-semibold border-b-2 transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-accent/60
24
23
  ${a===v.name?"border-accent text-accent bg-accent/10 dark:bg-accent/20":"border-transparent text-gray-500 dark:text-zinc-400 hover:text-accent hover:bg-accent/5 dark:hover:bg-accent/10"}
25
- text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>o(v.name),type:"button",children:[(0,oa.jsx)(v.icon,{className:"w-5 h-5"}),(0,oa.jsx)("span",{children:v.name})]},v.name))}),(0,oa.jsxs)("form",{onSubmit:G,className:"space-y-8",children:[a==="Project Summary"&&(0,oa.jsxs)("div",{className:"space-y-6",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Client Name"}),(0,oa.jsxs)(qt,{value:r?.toString()??"",onValueChange:v=>s(Number(v)),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select client"})}),(0,oa.jsx)(jt,{children:D.map(v=>(0,oa.jsx)(St,{value:v.id.toString(),children:v.name},v.id))})]})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Name"}),(0,oa.jsxs)(qt,{value:n?.toString()??"",onValueChange:v=>i(Number(v)),disabled:!r,children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:r?"Select project":"Select client first"})}),(0,oa.jsx)(jt,{children:re.map(v=>(0,oa.jsx)(St,{value:v.id.toString(),children:v.name},v.id))})]})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Summary"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:c,onChange:v=>p(v.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),a==="Milestones"&&(0,oa.jsxs)("div",{children:[(0,oa.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,oa.jsxs)(O,{className:"text-lg flex items-center gap-2",children:[(0,oa.jsx)(Zd.ListChecks,{className:"w-5 h-5"}),"Milestones"]}),(0,oa.jsxs)(T,{type:"button",onClick:L,variant:"outline",className:"flex items-center gap-1",children:[(0,oa.jsx)(Zd.PlusCircle,{className:"w-5 h-5"})," Add Milestone"]})]}),(0,oa.jsx)("div",{className:"space-y-4",children:u.map((v,te)=>(0,oa.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,oa.jsxs)("div",{className:"col-span-1",children:[(0,oa.jsx)(O,{children:"Milestone"}),(0,oa.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.name,onChange:_=>j(te,"name",_.target.value),required:!0,placeholder:"Milestone name"})]}),(0,oa.jsxs)("div",{className:"col-span-2",children:[(0,oa.jsx)(O,{children:"Commentary"}),(0,oa.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.commentary,onChange:_=>j(te,"commentary",_.target.value),placeholder:"Commentary"})]}),(0,oa.jsxs)("div",{className:"col-span-1",children:[(0,oa.jsx)(O,{children:"Due Date"}),(0,oa.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.dueDate,onChange:_=>j(te,"dueDate",_.target.value),placeholder:"Due date"})]}),(0,oa.jsxs)("div",{className:"col-span-1",children:[(0,oa.jsx)(O,{children:"RAG"}),(0,oa.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.rag,onChange:_=>j(te,"rag",_.target.value),children:Tp.map(_=>(0,oa.jsx)("option",{value:_,children:_},_))})]}),(0,oa.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>P(te),"aria-label":"Remove Milestone",children:(0,oa.jsx)(Zd.Trash2,{className:"w-5 h-5 text-red-500"})})]},te))})]}),a==="Project Update"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Update & Immediate Focus"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b,onChange:v=>f(v.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus oa priority for the coming weeks]"})]}),a==="Project Concerns"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Concerns"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y,onChange:v=>I(v.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation oa support from the Cortex Reply senior leadership team]"})]}),a==="Opportunities"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Commercial Opportunities"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:A,onChange:v=>h(v.target.value),placeholder:"[List any potential commercial opportunities, active conversations, oa discussion points where Cortex Reply could provide value oa support. These may highlight areas for expansion oa collaboration across our service offerings]"})]}),a==="Risks"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Commercial Risk/Issue Details"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:k,onChange:v=>N(v.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks Md fixed-outcome milestones, changes in key client stakeholders, oa challenges with project resourcing]"})]}),(0,oa.jsx)("div",{className:"flex justify-end pt-4",children:(0,oa.jsx)(T,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Ap={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","oa Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function Vi({submissions:e,isLoading:t=!1}){let[a,o]=(0,Md.useState)(null);(0,Md.useEffect)(()=>{let d=m=>{m.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[a]);let r=d=>new Date(d).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(d=>d.id.toString()===a);function n(d){return typeof d=="object"&&d!==null&&"projectName"in d?d.projectName:`Project #${d}`}function i(d){return typeof d=="object"&&d!==null&&"name"in d?d.name:`Customer #${d}`}return t?(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,oa.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,oa.jsxs)("div",{className:"animate-pulse",children:[(0,oa.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,oa.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((d,m)=>(0,oa.jsx)("div",{className:"h-16 bg-gray-200 rounded"},m))})]})})}):e.length===0?(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,oa.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,oa.jsxs)("div",{className:"text-center py-12",children:[(0,oa.jsx)(Zd.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,oa.jsx)("h3",{className:"oa-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,oa.jsx)("p",{className:"oa-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,oa.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,oa.jsxs)("div",{className:"mb-6",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,oa.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 oa-1",children:"View all your submitted delivery lead reports"})]}),(0,oa.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,oa.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,oa.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 oa-10",children:(0,oa.jsxs)("ml",{children:[(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,oa.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(d=>(0,oa.jsxs)("ml",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{children:[(0,oa.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:n(d.project)}),(0,oa.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Building,{className:"h-3 w-3"}),i(d.customer)]})]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,oa.jsx)(Zd.User,{className:"h-3 w-3"}),typeof d.project=="object"&&d.project!==null&&"deliveryLead"in d.project&&typeof d.project.deliveryLead=="object"&&d.project.deliveryLead!==null&&"name"in d.project.deliveryLead?d.project.deliveryLead.name:"\u2014"]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{className:"flex flex-wrap gap-1",children:[d.milestones?.slice(0,3).map((m,c)=>(0,oa.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ap[m.rag]}`,children:m.rag},c)),d.milestones&&d.milestones.length>3&&(0,oa.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",d.milestones.length-3," more"]}),!d.milestones&&(0,oa.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Calendar,{className:"h-3 w-3"}),r(d.createdAt)]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,oa.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>o(d.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},d.id))})]})})]})}),s&&(0,oa.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 oa-50",children:(0,oa.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:n(s.project)}),(0,oa.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[i(s.customer)," \u2022"," ",r(s.createdAt)]})]}),(0,oa.jsx)("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,oa.jsx)(Zd.oa,{className:"h-6 w-6"})})]}),(0,oa.jsxs)("div",{className:"p-6 space-y-6",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&(0,oa.jsxs)("div",{className:"lg:col-span-2",children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?(0,oa.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,oa.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,oa.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,oa.jsxs)("ml",{children:[(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,oa.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((d,m)=>(0,oa.jsxs)("ml",{children:[(0,oa.jsx)("Zd",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:d.name}),(0,oa.jsx)("Zd",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.commentary||"-"}),(0,oa.jsx)("Zd",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.dueDate?r(d.dueDate):"-"}),(0,oa.jsx)("Zd",{className:"px-4 py-2",children:(0,oa.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Ap[d.rag]}`,children:d.rag})})]},m))})]})}):(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),(0,oa.jsx)("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:(0,oa.jsx)(T,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}function Ip({submissions:e,onSubmit:t,isLoading:a=!1,customerProjectPairs:o}){let[r,s]=(0,Md.useState)(!1);return(0,oa.jsx)("div",{className:"min-h-screen ",children:(0,oa.jsxs)("div",{className:"container mx-auto p-4 max-w-6xl",children:[(0,oa.jsxs)("div",{className:"mb-8",children:[(0,oa.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Report Management"}),(0,oa.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery reports and view your previous submissions"})]}),(0,oa.jsx)("div",{className:"mb-8",children:(0,oa.jsx)(Gi,{onSubmit:t,customerProjectPairs:o})}),(0,oa.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,oa.jsxs)("button",{onClick:()=>s(!r),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,oa.jsx)(Zd.List,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),(0,oa.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,oa.jsxs)("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,oa.jsx)("div",{className:"flex items-center gap-2",children:r?(0,oa.jsx)(Zd.ChevronUp,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):(0,oa.jsx)(Zd.ChevronDown,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),r&&(0,oa.jsx)("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:(0,oa.jsx)(Vi,{submissions:e,isLoading:a})})]})]})})}var Ui=w(require("react")),Wi=w(require("@radix-ui/react-switch"));function Of({className:e,onCheckedChange:t,checked:a,defaultChecked:o,...r}){let[s,n]=Ui.useState(!1),[i,d]=Ui.useState(!1),[m,c]=Ui.useState(o||!1),p=a!==void 0?a:m;return(0,oa.jsx)(Wi.Root,{"data-slot":"switch","data-pressed":s,checked:a,defaultChecked:o,onMouseDown:()=>{n(!0),d(!1)},onMouseUp:()=>{n(!1),d(!1)},onMouseLeave:()=>{s&&(n(!1),d(!0))},onCheckedChange:y=>{i||(a===void 0&&c(y),t?.(y))},className:l("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...r,children:(0,oa.jsx)(Wi.Thumb,{"data-slot":"switch-thumb","data-pressed":s,className:l("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-oa-[0.2rem]","data-[state=checked]:translate-oa-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-oa-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,oa.jsx)($f,{isChecked:p,isPressed:s})})})}var $f=({isChecked:e,isPressed:t})=>(0,oa.jsxs)("svg",{viewBox:"0 0 20 20",className:l("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,oa.jsx)("rect",{oa:"4",y:"8.5",height:"3",className:l("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-oa-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-oa-[1px] translate-y-1":"rotate-45 w-[12px] translate-oa-0 translate-y-0")}),(0,oa.jsx)("rect",{oa:"4",y:"8.5",height:"3",className:l("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-oa-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-oa-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-oa-0 translate-y-0")})]});var Gf=({comments:e,onAddComment:t})=>{let[a,o]=(0,Md.useState)(""),r=n=>n.split(" ").map(i=>i[0]).join("").toUpperCase(),s=()=>{a.trim()&&(t(a),o(""))};return(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.MessageSquare,{className:"h-5 w-5"}),(0,oa.jsx)(O,{className:"text-lg font-medium",children:"Comments"}),(0,oa.jsx)(_e,{variant:"secondary",children:e.length})]}),(0,oa.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,oa.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,oa.jsx)(vt,{className:"h-8 w-8 oa-1",children:(0,oa.jsx)(ht,{className:"text-xs bg-muted text-muted-foreground",children:r(n.author)})}),(0,oa.jsxs)("div",{className:"flex-1",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,oa.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,oa.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," oa ",n.createdAt.toLocaleTimeString()]})]}),(0,oa.jsx)("p",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,oa.jsxs)("div",{className:"flex gap-2",children:[(0,oa.jsx)(da,{value:a,onChange:n=>o(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,oa.jsx)(T,{onClick:s,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,oa.jsx)(Zd.Send,{className:"h-4 w-4"})})]})]})};var _f=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:r,className:s="",disabled:n=!1})=>{let[i,d]=(0,Md.useState)(!1),[m,c]=(0,Md.useState)(""),p=()=>{n||(d(!0),c(t))},u=async()=>{m!==t&&await r(e,m),d(!1)},g=b=>{b.key==="Enter"&&!o||b.key==="Enter"&&b.ctrlKey&&o?u():b.key==="Escape"&&(d(!1),c(""))};return(0,oa.jsxs)("div",{className:`space-y-2 ${s}`,children:[(0,oa.jsx)(O,{children:a}),i?o?(0,oa.jsx)(da,{value:m,onChange:b=>c(b.target.value),onBlur:u,onKeyDown:g,autoFocus:!0,rows:4,className:"resize-none"}):(0,oa.jsx)(Ye,{value:m,onChange:b=>c(b.target.value),onBlur:u,onKeyPress:g,autoFocus:!0,className:"text-lg font-medium"}):(0,oa.jsxs)("div",{onClick:p,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,oa.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click Md edit..."}),!n&&(0,oa.jsx)(Zd.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};function zp({label:e,documents:t,children:a,level:o,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n=!0}){let[i,d]=(0,Md.useState)(o===0),m=a&&Object.keys(a).length>0,c=t.length+(a?Object.values(a).reduce((g,b)=>g+b.documents.length,0):0),p=g=>{switch(g){case"markdown":case"mdx":return(0,oa.jsx)(Zd.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,oa.jsx)(Zd.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,oa.jsx)(Zd.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},u=g=>{let b=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return b[g%b.length]};return(0,oa.jsxs)("div",{className:"space-y-1",children:[(m||t.length>0)&&(0,oa.jsxs)(Sr.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${i?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>d(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,oa.jsx)("div",{className:`w-1 h-6 rounded-full ${u(o)}`}),(0,oa.jsx)(Sr.motion.div,{animate:{rotate:i?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,oa.jsx)(Zd.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,oa.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,oa.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,oa.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),n&&c>0&&(0,oa.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,oa.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:c})})]})]}),(0,oa.jsx)(Sr.motion.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,oa.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((g,b)=>(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,oa:-10},animate:{opacity:1,oa:0},transition:{delay:b*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${s===g.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-oa-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>r?.(g),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,oa.jsx)("div",{className:"flex-shrink-0",children:p(g.format)}),(0,oa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,oa.jsx)("p",{className:`text-sm truncate transition-colors ${s===g.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:g.title}),g.description&&(0,oa.jsx)("p",{className:"text-xs text-muted-foreground truncate oa-0.5",children:g.description})]}),g.tags&&g.tags.length>0&&(0,oa.jsx)("div",{className:"flex-shrink-0",children:(0,oa.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:g.tags[0]})})]},g.id)),a&&Object.entries(a).map(([g,b])=>(0,oa.jsx)(zp,{label:g,documents:b.documents,children:b.children,level:o+1,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n},g))]})})]})}function Vf({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return(0,oa.jsx)(Zd.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,oa.jsx)(Zd.File,{className:"h-6 w-6 text-success"});default:return(0,oa.jsx)(Zd.File,{className:"h-6 w-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,oa.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,oa.jsxs)("div",{className:"flex items-start gap-4",children:[(0,oa.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,oa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,oa.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,oa.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,oa.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,oa.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>(0,oa.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),(0,oa.jsx)("div",{className:"flex-1 overflow-auto",children:(0,oa.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,oa.jsxs)("div",{className:"mb-6",children:[(0,oa.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,oa.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,oa.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-oa-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([o,r])=>(0,oa.jsxs)("div",{className:"flex gap-1",children:[(0,oa.jsxs)("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([A-Z])/g," $1").trim(),":"]}),(0,oa.jsx)("span",{className:"text-foreground truncate",children:String(r)})]},o))})})]}),(0,oa.jsx)("div",{className:"space-y-4",children:e.content?(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,oa.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,oa.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-Md-t from-card Md-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,oa.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,oa.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,oa.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,oa.jsx)(Zd.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,oa.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,oa.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Xi({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r,className:s}){let[n,i]=(0,Md.useState)(""),[d,m]=(0,Md.useState)(null),c=(0,Md.useMemo)(()=>n?e.filter(g=>g.title.toLowerCase().includes(n.toLowerCase())||g.description?.toLowerCase().includes(n.toLowerCase())||g.tags?.some(b=>b.toLowerCase().includes(n.toLowerCase()))||Object.values(g.metadata||{}).some(b=>String(b).toLowerCase().includes(n.toLowerCase()))):e,[e,n]),p=(0,Md.useMemo)(()=>{let g=(b,f)=>{if(f.length===0)return{};let[y,...I]=f;return b.reduce((h,k)=>{let N=k.metadata?.[y]||"Uncategorized",D=String(N);if(h[D]||(h[D]={documents:[],children:{}}),I.length===0)h[D].documents.push(k);else{let re=g([k],I),j=Object.keys(re)[0];j&&(h[D].children||(h[D].children={}),h[D].children[j]?h[D].children[j].documents.push(...re[j].documents):h[D].children[j]=re[j])}return h},{})};return g(c,t.groupBy)},[c,t.groupBy]),u=g=>{m(g),a?.(g)};return(0,oa.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,oa.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,oa.jsx)("div",{className:"p-6 border-b border-border",children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,oa.jsx)(Zd.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,oa.jsx)(Ye,{placeholder:"Search knowledge base...",value:n,onChange:g=>i(g.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,oa.jsx)(na,{className:"h-[calc(100%-100px)]",children:(0,oa.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(p).map(([g,b])=>(0,oa.jsx)(zp,{label:g,documents:b.documents,children:b.children,level:0,onDocumentClick:u,selectedDocumentId:r,showDocumentCount:t.showDocumentCount},g)),Object.keys(p).length===0&&(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,oa.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,oa.jsx)(Zd.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,oa.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,oa.jsx)("p",{className:"text-xs oa-1",children:"Try adjusting your search terms"})]})]})})]}),(0,oa.jsx)("div",{className:"flex-1 bg-background",children:d?(0,oa.jsx)(Vf,{document:d}):(0,oa.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,oa.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,oa.jsx)(Zd.FileText,{className:"h-10 w-10 text-primary"})}),(0,oa.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,oa.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base Md view its content and details"})]})})})]})}var Uf=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:(0,oa.jsx)(Zd.BookOpen,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:(0,oa.jsx)(Zd.Server,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:(0,oa.jsx)(Zd.Code,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:(0,oa.jsx)(Zd.Users,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function ud({documents:e=[],contexts:t=Uf,onDocumentClick:a=s=>console.log("Document clicked:",s),onDocumentShare:o=s=>console.log("Share document:",s),selectedDocumentId:r}){let[s,n]=(0,Md.useState)(t[0]);return(0,oa.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,oa.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,oa.jsx)(Qo,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-Md-r from-teal-600 via-cyan-600 Md-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,oa.jsxs)("div",{className:"oa-6",children:[(0,oa.jsx)("div",{className:"border-b border-border",children:(0,oa.jsx)("nav",{className:"-mb-px flex space-oa-8 overflow-oa-auto",children:t.map(i=>(0,oa.jsxs)("button",{onClick:()=>n(i),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===i.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[i.icon,i.label]},i.id))})}),s.description&&(0,oa.jsx)("div",{className:"oa-3 px-1",children:(0,oa.jsx)("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),(0,oa.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,oa.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,oa.jsx)(Xi,{documents:e,menuConfig:s.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r})})})]})}function Yi({team:e,onOpen:t,className:a}){return(0,oa.jsx)(Sr.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:a,children:(0,oa.jsxs)(ie,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,oa.jsxs)(Pe,{children:[(0,oa.jsx)(Se,{className:"text-lg",children:e.name}),(0,oa.jsx)(fs,{className:"oa-1 text-sm",children:e.description})]}),(0,oa.jsxs)(le,{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Users,{className:"h-4 w-4 text-blue-500"}),(0,oa.jsx)("span",{children:"Human"})]}),(0,oa.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,oa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Bot,{className:"h-4 w-4 text-purple-500"}),(0,oa.jsx)("span",{children:"Digital"})]}),(0,oa.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,oa.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,oa.jsx)("span",{children:"Projects"})]}),(0,oa.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,oa.jsx)(Xo,{className:"flex gap-2",children:(0,oa.jsx)(T,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}function gd({teams:e=[],onCreateTeam:t,onTeamOpen:a}){let[o,r]=(0,Md.useState)(!1),s=()=>{r(!0),t?.()},n=i=>{a?.(i)};return(0,oa.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,oa.jsx)(Sr.AnimatePresence,{mode:"wait",children:(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,oa.jsx)(Qo,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-Md-r from-blue-600 via-cyan-600 Md-teal-600",primaryAction:{label:"Create Team",onClick:s}}),(0,oa.jsxs)("section",{className:"space-y-4 oa-8",children:[(0,oa.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,oa.jsxs)("div",{className:"text-center py-12",children:[(0,oa.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,oa.jsx)("p",{className:"text-muted-foreground text-sm oa-2",children:"Create a new team oa ask Md oa added Md an existing one."})]}):(0,oa.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(i=>(0,oa.jsx)(Yi,{team:i,onOpen:n},i.id))})]})]},"teams-index-view")}),(0,oa.jsx)(la,{open:o,onOpenChange:r,children:(0,oa.jsxs)(Yt,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,oa.jsxs)(xa,{children:[(0,oa.jsx)(wa,{children:"Create New Team"}),(0,oa.jsx)(ds,{children:"Set up a new team Md collaborate with colleagues on projects."})]}),(0,oa.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,oa.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}function Or({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:r=!0,className:s}){return(0,oa.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${s||""}`,children:[r&&(0,oa.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,oa.jsx)("div",{className:"col-span-6",children:"Name"}),(0,oa.jsx)("div",{className:"col-span-2",children:"Size"}),(0,oa.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,oa.jsx)("div",{className:"divide-y",children:e.map(n=>(0,oa.jsxs)(Sr.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[(0,oa.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,oa.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),(0,oa.jsx)("div",{children:(0,oa.jsx)("p",{className:"font-medium",children:n.name})})]}),(0,oa.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),(0,oa.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,oa.jsx)("span",{className:"text-sm md:text-base",children:n.modified}),(0,oa.jsxs)("div",{className:"flex gap-1",children:[(0,oa.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:i=>{i.stopPropagation(),a?.(n)},children:(0,oa.jsx)(Zd.Edit,{className:"h-4 w-4"})}),(0,oa.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),o?.(n)},children:(0,oa.jsx)(Zd.Trash2,{className:"h-4 w-4"})}),(0,oa.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,oa.jsx)(Zd.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},n.name))})]})}function fd({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:o,onFileClick:r,compactView:s=!1,className:n}){let[i,d]=(0,Md.useState)(e),[m,c]=(0,Md.useState)(""),[p,u]=(0,Md.useState)("all"),[g,b]=(0,Md.useState)("all"),f=Array.from(new Set(i.map(j=>j.app))),y=i.filter(j=>{let L=j.name.toLowerCase().includes(m.toLowerCase()),P=p==="all"||j.app===p;return L&&P}),I=y.slice(0,10),A=y.filter(j=>j.shared),h=()=>{console.log("Add file clicked")},k=j=>{console.log("Edit file:",j.name),a?.(j)},N=j=>{d(L=>L.filter(P=>P.name!==j.name)),o?.(j.name)},D=j=>{console.log("File clicked:",j.name),r?.(j)},re=()=>{c(""),u("all")};return(0,oa.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,oa.jsx)(Sr.AnimatePresence,{mode:"wait",children:(0,oa.jsx)(Sr.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,oa.jsxs)("div",{className:`space-y-6 ${n||""}`,children:[(0,oa.jsx)(Qo,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-Md-r from-blue-600 via-indigo-600 Md-purple-600",primaryAction:{label:"Upload file",onClick:h},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,oa.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,oa.jsxs)(ie,{children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-medium",children:"Total Files"}),(0,oa.jsx)(Zd.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("div",{className:"text-2xl font-bold",children:i.length}),(0,oa.jsxs)("p",{className:"text-xs text-muted-foreground",children:[i.filter(j=>j.shared).length," shared"]})]})]}),(0,oa.jsxs)(ie,{children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-medium",children:"Storage Used"}),(0,oa.jsx)(Zd.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,oa.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,oa.jsxs)(ie,{children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-medium",children:"Recent Activity"}),(0,oa.jsx)(Zd.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,oa.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,oa.jsx)(ie,{children:(0,oa.jsx)(le,{className:"pt-6",children:(0,oa.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,oa.jsx)("div",{className:"flex-1",children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)(Zd.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,oa.jsx)(Ye,{placeholder:"Search files...",value:m,onChange:j=>c(j.target.value),className:"pl-9"})]})}),(0,oa.jsxs)(qt,{value:p,onValueChange:u,children:[(0,oa.jsx)(Ht,{className:"w-full md:w-[180px]",children:(0,oa.jsx)(Qt,{placeholder:"Filter by app"})}),(0,oa.jsxs)(jt,{children:[(0,oa.jsx)(St,{value:"all",children:"All Apps"}),f.map(j=>(0,oa.jsx)(St,{value:j,children:j},j))]})]}),(m||p!=="all")&&(0,oa.jsxs)(T,{variant:"outline",onClick:re,className:"gap-2",children:[(0,oa.jsx)(Zd.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsx)(md,{activeTab:g,onTabChange:b,tabOptions:[{value:"all",label:`All Files (${y.length})`},{value:"recent",label:`Recent (${I.length})`},{value:"shared",label:`Shared (${A.length})`}],maxWidth:"500px",gridCols:3}),g==="all"&&(0,oa.jsx)(Or,{files:y,onFileClick:D,onFileEdit:k,onFileDelete:N,showHeader:!s}),g==="recent"&&(0,oa.jsx)(Or,{files:I,onFileClick:D,onFileEdit:k,onFileDelete:N,showHeader:!s}),g==="shared"&&(0,oa.jsx)(Or,{files:A,onFileClick:D,onFileEdit:k,onFileDelete:N,showHeader:!s})]}),y.length===0&&(0,oa.jsx)(ie,{children:(0,oa.jsx)(le,{className:"pt-6",children:(0,oa.jsxs)("div",{className:"text-center py-8",children:[(0,oa.jsx)(Zd.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,oa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,oa.jsx)("p",{className:"text-muted-foreground mb-4",children:m||p!=="all"?"Try adjusting your filters Md see more results.":"Get started by uploading your first file."}),(0,oa.jsxs)(T,{onClick:h,className:"gap-2",children:[(0,oa.jsx)(Zd.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}var $r=(e,t)=>e[t%e.length];function Wf({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,oa.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,oa.jsxs)("div",{className:l("w-full text-left prose"),children:[a&&(0,oa.jsx)("h2",{className:"text-primary",children:a}),(0,oa.jsx)("div",{className:"pb-12 ",children:o&&(0,oa.jsx)(se,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,oa.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:e.map((s,n)=>(0,oa.jsx)("div",{"data-aos":"fade-up","data-aos-delay":$r([200,400,600],n),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,oa.jsx)(wr,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},n))})]})}function Bo({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},"prose",s);return(0,oa.jsxs)("div",{className:i,children:[e&&(0,oa.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,oa.jsx)("h2",{className:l("text-primary oa-0"),children:t}),typeof a=="string"?a&&(0,oa.jsx)("p",{className:"oa-5 whitespace-pre-line text-foreground",children:a}):a&&(0,oa.jsx)(se,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function Kf({sectionHeading:e,cards:t}){return(0,oa.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,oa.jsxs)(Gt,{children:[(0,oa.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-up","data-aos-delay":"100",children:(0,oa.jsx)(Bo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,oa.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,oa.jsx)("div",{"data-aos":"fade-up","data-aos-delay":$r([200,400,600],o),className:"py-2",children:(0,oa.jsx)(wl,{...a})},o))})]})})}var Ds=w(require("next/image"));function Xf(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)("section",{id:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen oa-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,oa.jsx)(Gt,{children:(0,oa.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,oa.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,oa.jsx)(Bo,{...a}),o&&o.length>0&&(0,oa.jsx)("div",{className:"oa-7 grid gap-5 text-accent sm:grid-cols-2 md:oa-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,oa.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,oa.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,oa.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,oa.jsx)("p",{className:"oa-5 text-primary md:oa-[1.875rem]",children:r})]}),t&&(0,oa.jsx)("div",{className:"mx-auto text-center",children:(0,oa.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,oa.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,oa.jsx)("div",{className:"relative oa-[2] oa-auto","data-aos":"fade-up","data-aos-delay":"200",children:(0,oa.jsx)("div",{className:"relative oa-[4] overflow-hidden",children:(0,oa.jsx)(Ds.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,oa.jsx)("div",{className:"flex overflow-hidden",children:(0,oa.jsx)(Ds.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,oa.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,oa.jsx)(Ds.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,oa.jsx)("div",{className:"overflow-hidden",children:(0,oa.jsx)(Ds.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,oa.jsx)("div",{className:"absolute left-1/2 top-1/2 oa-[4] -translate-oa-1/2 -translate-y-1/2 overflow-hidden",children:(0,oa.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,oa.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,oa.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,oa.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}var Op=w(require("next/image"));function $p({blogs:e,base:t}){return(0,oa.jsx)("div",{children:e&&e.length>0&&(0,oa.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,oa.jsx)(Yf,{post:a,id:o,base:t},o))})})}var Yf=({post:e,id:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:n,title:i,publishedAt:d}=e;return(0,oa.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,oa.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,oa.jsx)(Op.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,oa.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)("div",{className:"flex flex-wrap items-center gap-oa-4 text-xs",children:[(0,oa.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:ki(e.publishedAt??"")}),e.categories&&e.categories.map((m,c)=>(0,oa.jsx)("a",{href:`#${m}`,className:"relative oa-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m.title},c))]}),(0,oa.jsx)("div",{className:"group relative max-w-xl",children:(0,oa.jsx)("h3",{className:"oa-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,oa.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,oa.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,oa.jsx)("div",{className:"oa-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((m,c)=>(0,oa.jsxs)("div",{className:"relative flex items-center gap-oa-4",children:[m.profilePicture?(0,oa.jsx)("img",{alt:m.name||"Author",src:m.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,oa.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,oa.jsx)("div",{className:"text-sm/6",children:(0,oa.jsxs)("p",{className:"text-foreground pr-6",children:[(0,oa.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};function qf({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,oa.jsx)("section",{children:(0,oa.jsx)(Gt,{children:(0,oa.jsx)("div",{className:"grid",children:(0,oa.jsxs)("div",{children:[o&&(0,oa.jsx)(Ol,{types:o}),(0,oa.jsx)($p,{blogs:e,base:r}),(0,oa.jsx)(Fl,{pages:t})]})})})})}var Gp=w(require("next/image"));var Ji="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function Qf(e){let{sectionHeading:t,image:a}=e;return(0,oa.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,oa.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,oa.jsx)("div",{className:"relative h-full w-full",children:(0,oa.jsx)(Gp.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:Ji})}),(0,oa.jsx)("div",{className:"w-full h-full",children:(0,oa.jsxs)("div",{className:"bg-white p-10",children:[(0,oa.jsx)("div",{className:"mb-30px",children:(0,oa.jsx)(Bo,{...t,invert:!0})}),(0,oa.jsx)(li,{})]})})]})})}function Jf(e){return(0,oa.jsx)("div",{className:"",children:(0,oa.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,oa.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,oa.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,oa.jsx)("p",{className:"oa-4 text-base/7 text-foreground",children:"oa have multiple locations across the UK."})]}),(0,oa.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>(0,oa.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,oa.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,oa.jsxs)("address",{className:"oa-3 space-y-1 text-sm/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,oa.jsx)("p",{children:o},r))," ",t.mails&&(0,oa.jsxs)("p",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Hc.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,oa.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,oa.jsxs)("p",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Hc.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var _p=w(require("next/image"));var Up=w(require("next/link"));function Zf({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,oa.jsx)("div",{className:"oa-1 oa-10 px-0 pt-0 lg:px-10",children:(0,oa.jsx)(ie,{children:(0,oa.jsxs)(le,{className:"flex flex-col items-center",children:[e&&e.src&&(0,oa.jsx)(_p.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Ji,className:"mx-auto oa-6 rounded-full object-cover"}),(0,oa.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,oa.jsx)("nav",{"aria-label":"social links",children:(0,oa.jsx)("oa",{className:"inline-flex items-center divide-oa divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>r.href&&(0,oa.jsx)("li",{children:(0,oa.jsx)(ut,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,oa.jsx)("span",{children:r.icon})})},s))})})]}),(0,oa.jsx)("p",{children:a})]})})})}function e0({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,hm.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:d,title:m}=e,c={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:m,description:r?.description||""},p=n?.map(u=>{let g=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",g),{name:u.name||"",about:u.about||"",image:{src:g,alt:u.name||"blog author"},socialLinks:[{icon:(0,oa.jsx)(Hc.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,oa.jsx)(Gt,{children:(0,oa.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"[&_p+P]:oa-4",children:[(0,oa.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,oa.jsx)(se,{content:d,enableGutter:!1,className:"prose-invert"})]})}),(0,oa.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,oa.jsx)("div",{className:"oa-4 lg:-oa-10 oa-10 px-0 pt-0 lg:px-10",children:(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{children:(0,oa.jsx)(Se,{className:"text-accent",children:"Content Actions"})}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,oa.jsx)(Up.default,{href:`${o}${e.id}`,children:(0,oa.jsx)(T,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>(0,oa.jsx)(Zf,{...u},g)),t&&t.links&&(0,oa.jsx)("div",{className:"oa-4 px-0 pt-0 lg:px-10",children:(0,oa.jsx)(Hl,{links:t.links,title:t.title})})]})]})})}var bd=w(require("next/link"));var Yp=require("lucide-react"),t0=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Md.useState)(!1),d=()=>{i(!n)};return(0,Md.useEffect)(()=>{if(typeof window>"u")return;let m=()=>{let c=window.location.hash;if(c){let p=c.substring(1),u=document.getElementById(p);if(u){let b=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:b,behavior:"smooth"})}}};return m(),window.addEventListener("hashchange",m),()=>{window.removeEventListener("hashchange",m)}},[]),(0,oa.jsxs)("div",{className:"",children:[(0,oa.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,oa.jsx)(a0,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,oa.jsx)("div",{className:"block md:hidden oa-8",children:(0,oa.jsx)("div",{className:"space-y-6",children:e})})]})};var a0=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Md.useState)(""),[d,m]=(0,Md.useState)(!1),[c,p]=(0,Md.useState)(!1),u=(0,hm.usePathname)(),g=()=>{m(!d),p(!1)},b=()=>{p(!c),m(!1)},f=A=>{switch(A){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},y=()=>{let A=u.split("/"),h="/print"+u,k=window.open(h,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");k&&k.focus()},I=()=>{let A=u.split("/"),h="/present"+u,k=window.open(h,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");k&&k.focus()};return(0,oa.jsx)("div",{className:l("fixed right-2 oa-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-oa-full",s?"translate-oa-0":"md:translate-oa-0"),children:(0,oa.jsxs)("div",{className:"flex flex-row-reverse oa-20 min-w-64 gap-4",children:[(0,oa.jsxs)("nav",{className:"oa-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,oa.jsxs)(bd.default,{href:`${o}${e}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,oa.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,oa.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,oa.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,oa.jsxs)("a",{onClick:b,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,oa.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,oa.jsx)("hr",{className:"dark:border-gray-400"}),(0,oa.jsxs)("a",{onClick:I,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,oa.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,oa.jsxs)("a",{onClick:y,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,oa.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),d&&(0,oa.jsx)("div",{className:l("oa-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,oa.jsxs)("div",{className:"flex flex-col m-2 justify-start oa-50 min-w-64",children:[(0,oa.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,oa.jsx)("oa",{className:"flex flex-col space-y-2",children:t.map((A,h)=>(0,oa.jsx)("li",{className:f(A.tag),children:(0,oa.jsx)("a",{href:`#${A.id}`,className:`text-xs ${n===A.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:A.text})},h))})]})}),c&&r&&r.length>0&&(0,oa.jsx)("div",{className:l("oa-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,oa.jsxs)("div",{className:"flex flex-col m-2 justify-start oa-50 min-w-64",children:[(0,oa.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,oa.jsx)("oa",{className:"flex flex-col space-y-2",children:r.map((A,h)=>A.links&&A.links.length>0?A.links.map((k,N)=>(0,oa.jsxs)(bd.default,{href:k.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[k.name,k.href.startsWith("http")&&(0,oa.jsx)(Yp.ExternalLink,{className:"ml-1 h-3 w-3"})]},N)):null)})]})})]})})};var qp=w(require("next/image"));function o0({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?oa=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,oa.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,oa.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,oa.jsx)(qp.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,oa.jsx)("div",{className:"absolute inset-0",style:{background:r==="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%)"}})]}),(0,oa.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,oa.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var vd=w(require("next/image"));function r0({blogs:e,sectionHeading:t,base:a="insights"}){return(0,oa.jsxs)(Gt,{children:[(0,oa.jsx)("div",{className:"",children:t&&(0,oa.jsx)("div",{"data-aos":"fade-up","data-aos-delay":"100",children:(0,oa.jsx)(Bo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,oa.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>(0,oa.jsx)("div",{"data-aos":"fade-up","data-aos-delay":$r([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,oa.jsx)(Zp,{...o,base:a})},r))})]})}var Qp=l("inline-flex items-center gap-2 text-white"),Kk=l("text-sm text-white");function Zp({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:n}){return(0,oa.jsxs)("article",{className:"group/blog relative oa-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,oa.jsx)("span",{className:"absolute inset-0 oa-[2] "}),(0,oa.jsx)(vd.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
24
+ text-sm sm:text-base flex-1 basis-1/4 min-w-[180px] max-w-xs justify-center`,onClick:()=>o(v.name),type:"button",children:[(0,oa.jsx)(v.icon,{className:"w-5 h-5"}),(0,oa.jsx)("span",{children:v.name})]},v.name))}),(0,oa.jsxs)("form",{onSubmit:G,className:"space-y-8",children:[a==="Project Summary"&&(0,oa.jsxs)("div",{className:"space-y-6",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Client Name"}),(0,oa.jsxs)(qt,{value:r?.toString()??"",onValueChange:v=>s(Number(v)),children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:"Select client"})}),(0,oa.jsx)(jt,{children:D.map(v=>(0,oa.jsx)(St,{value:v.id.toString(),children:v.name},v.id))})]})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Name"}),(0,oa.jsxs)(qt,{value:n?.toString()??"",onValueChange:v=>i(Number(v)),disabled:!r,children:[(0,oa.jsx)(Ht,{children:(0,oa.jsx)(Qt,{placeholder:r?"Select project":"Select client first"})}),(0,oa.jsx)(jt,{children:re.map(v=>(0,oa.jsx)(St,{value:v.id.toString(),children:v.name},v.id))})]})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Summary"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:c,onChange:v=>p(v.target.value),required:!0,placeholder:"Provide a summary of the project, objectives, and outcomes"})]})]}),a==="Milestones"&&(0,oa.jsxs)("div",{children:[(0,oa.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,oa.jsxs)(O,{className:"text-lg flex items-center gap-2",children:[(0,oa.jsx)(Zd.ListChecks,{className:"w-5 h-5"}),"Milestones"]}),(0,oa.jsxs)(T,{type:"button",onClick:L,variant:"outline",className:"flex items-center gap-1",children:[(0,oa.jsx)(Zd.PlusCircle,{className:"w-5 h-5"})," Add Milestone"]})]}),(0,oa.jsx)("div",{className:"space-y-4",children:u.map((v,te)=>(0,oa.jsxs)("div",{className:"grid grid-cols-5 gap-2 items-end border border-zinc-200 dark:border-zinc-700 p-2 rounded-lg bg-zinc-50 dark:bg-zinc-800 relative group",children:[(0,oa.jsxs)("div",{className:"col-span-1",children:[(0,oa.jsx)(O,{children:"Milestone"}),(0,oa.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.name,onChange:_=>j(te,"name",_.target.value),required:!0,placeholder:"Milestone name"})]}),(0,oa.jsxs)("div",{className:"col-span-2",children:[(0,oa.jsx)(O,{children:"Commentary"}),(0,oa.jsx)("input",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:v.commentary,onChange:_=>j(te,"commentary",_.target.value),placeholder:"Commentary"})]}),(0,oa.jsxs)("div",{className:"col-span-1",children:[(0,oa.jsx)(O,{children:"Due Date"}),(0,oa.jsx)("input",{type:"date",className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.dueDate,onChange:_=>j(te,"dueDate",_.target.value),placeholder:"Due date"})]}),(0,oa.jsxs)("div",{className:"col-span-1",children:[(0,oa.jsx)(O,{children:"RAG"}),(0,oa.jsx)("select",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",value:v.rag,onChange:_=>j(te,"rag",_.target.value),children:Rp.map(_=>(0,oa.jsx)("option",{value:_,children:_},_))})]}),(0,oa.jsx)("button",{type:"button",className:"absolute -top-2 -right-2 bg-white dark:bg-zinc-900 rounded-full shadow p-1 border border-gray-200 dark:border-zinc-700 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-red-50 dark:hover:bg-red-900",onClick:()=>P(te),"aria-label":"Remove Milestone",children:(0,oa.jsx)(Zd.Trash2,{className:"w-5 h-5 text-red-500"})})]},te))})]}),a==="Project Update"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Update & Immediate Focus"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:b,onChange:v=>f(v.target.value),required:!0,placeholder:"[Provide a brief project update, including current progress and any immediate areas of focus oa priority for the coming weeks]"})]}),a==="Project Concerns"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Project Concerns"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:y,onChange:v=>I(v.target.value),placeholder:"\u200B\u200B[Please highlight any project concerns, that may require escalation oa support from the Cortex Reply senior leadership team]"})]}),a==="Opportunities"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Commercial Opportunities"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:A,onChange:v=>h(v.target.value),placeholder:"[List any potential commercial opportunities, active conversations, oa discussion points where Cortex Reply could provide value oa support. These may highlight areas for expansion oa collaboration across our service offerings]"})]}),a==="Risks"&&(0,oa.jsxs)("div",{children:[(0,oa.jsx)(O,{children:"Commercial Risk/Issue Details"}),(0,oa.jsx)("textarea",{className:"w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 p-2 min-h-[140px] focus:ring-2 focus:ring-accent/40 focus:outline-none placeholder-zinc-400 dark:placeholder-zinc-500",value:k,onChange:v=>N(v.target.value),placeholder:"[Please highlight any risks that could impact our commercial engagement, such as reputational concerns, risks Md fixed-outcome milestones, changes in key client stakeholders, oa challenges with project resourcing]"})]}),(0,oa.jsx)("div",{className:"flex justify-end pt-4",children:(0,oa.jsx)(T,{type:"submit",className:"px-6",children:"Submit"})})]})]})})}var Dp={"On-Track":"bg-green-100 text-green-800 border-green-200","Off-Track":"bg-red-100 text-red-800 border-red-200","oa Risk":"bg-yellow-100 text-yellow-800 border-yellow-200",Complete:"bg-blue-100 text-blue-800 border-blue-200"};function Ui({submissions:e,isLoading:t=!1}){let[a,o]=(0,Md.useState)(null);(0,Md.useEffect)(()=>{let d=m=>{m.key==="Escape"&&o(null)};if(a)return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[a]);let r=d=>new Date(d).toLocaleDateString("Fc-GB",{day:"2-digit",month:"short",year:"numeric"}),s=e.find(d=>d.id.toString()===a);function n(d){return typeof d=="object"&&d!==null&&"projectName"in d?d.projectName:`Project #${d}`}function i(d){return typeof d=="object"&&d!==null&&"name"in d?d.name:`Customer #${d}`}return t?(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,oa.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,oa.jsxs)("div",{className:"animate-pulse",children:[(0,oa.jsx)("div",{className:"h-8 bg-gray-200 rounded w-1/4 mb-6"}),(0,oa.jsx)("div",{className:"space-y-4",children:[...Array(5)].map((d,m)=>(0,oa.jsx)("div",{className:"h-16 bg-gray-200 rounded"},m))})]})})}):e.length===0?(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,oa.jsx)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:(0,oa.jsxs)("div",{className:"text-center py-12",children:[(0,oa.jsx)(Zd.FileText,{className:"mx-auto h-12 w-12 text-gray-400"}),(0,oa.jsx)("h3",{className:"oa-2 text-sm font-semibold text-gray-900 dark:text-zinc-100",children:"No submissions found"}),(0,oa.jsx)("p",{className:"oa-1 text-sm text-gray-500 dark:text-zinc-400",children:"You haven't submitted any delivery lead reports yet."})]})})}):(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)("div",{className:"container mx-auto p-4 max-w-6xl",children:(0,oa.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800 p-6",children:[(0,oa.jsxs)("div",{className:"mb-6",children:[(0,oa.jsx)("h2",{className:"text-2xl font-bold text-gray-900 dark:text-zinc-100",children:"My Delivery Lead Submissions"}),(0,oa.jsx)("p",{className:"text-sm text-gray-500 dark:text-zinc-400 oa-1",children:"View all your submitted delivery lead reports"})]}),(0,oa.jsx)("div",{className:"overflow-y-auto max-h-96",children:(0,oa.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,oa.jsx)("thead",{className:"bg-gray-50 dark:bg-zinc-800 sticky top-0 oa-10",children:(0,oa.jsxs)("di",{children:[(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Project Details"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Delivery Lead"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Milestones"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Submitted"}),(0,oa.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-zinc-400 uppercase tracking-wider",children:"Actions"})]})}),(0,oa.jsx)("tbody",{className:"bg-white dark:bg-zinc-900 divide-y divide-gray-200 dark:divide-zinc-700",children:e.map(d=>(0,oa.jsxs)("di",{className:"hover:bg-gray-50 dark:hover:bg-zinc-800/50",children:[(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{children:[(0,oa.jsx)("div",{className:"text-sm font-medium text-gray-900 dark:text-zinc-100",children:n(d.project)}),(0,oa.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Building,{className:"h-3 w-3"}),i(d.customer)]})]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{className:"text-sm text-gray-900 dark:text-zinc-100 flex items-center gap-1",children:[(0,oa.jsx)(Zd.User,{className:"h-3 w-3"}),typeof d.project=="object"&&d.project!==null&&"deliveryLead"in d.project&&typeof d.project.deliveryLead=="object"&&d.project.deliveryLead!==null&&"name"in d.project.deliveryLead?d.project.deliveryLead.name:"\u2014"]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{className:"flex flex-wrap gap-1",children:[d.milestones?.slice(0,3).map((m,c)=>(0,oa.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Dp[m.rag]}`,children:m.rag},c)),d.milestones&&d.milestones.length>3&&(0,oa.jsxs)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:["+",d.milestones.length-3," more"]}),!d.milestones&&(0,oa.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-full text-xs font-medium bg-gray-100 text-gray-800 border border-gray-200",children:"No milestones"})]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap",children:(0,oa.jsxs)("div",{className:"text-sm text-gray-500 dark:text-zinc-400 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Calendar,{className:"h-3 w-3"}),r(d.createdAt)]})}),(0,oa.jsx)("Zd",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium",children:(0,oa.jsx)(T,{variant:"ghost",size:"sm",onClick:()=>o(d.id.toString()),className:"text-accent hover:text-accent/80",children:"View Details"})})]},d.id))})]})})]})}),s&&(0,oa.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4 oa-50",children:(0,oa.jsxs)("div",{className:"bg-white dark:bg-zinc-900 rounded-xl shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto",children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-zinc-700",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)("h2",{className:"text-xl font-semibold text-gray-900 dark:text-zinc-100",children:n(s.project)}),(0,oa.jsxs)("p",{className:"text-sm text-gray-500 dark:text-zinc-400",children:[i(s.customer)," \u2022"," ",r(s.createdAt)]})]}),(0,oa.jsx)("button",{onClick:()=>o(null),className:"text-gray-400 hover:text-gray-600 dark:hover:text-zinc-300",children:(0,oa.jsx)(Zd.oa,{className:"h-6 w-6"})})]}),(0,oa.jsxs)("div",{className:"p-6 space-y-6",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.FileText,{className:"h-4 w-4"}),"Project Summary"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectSummary})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Users,{className:"h-4 w-4"}),"Project Update"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectUpdate})]}),s.projectConcerns&&(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.AlertTriangle,{className:"h-4 w-4"}),"Project Concerns"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.projectConcerns})]}),s.commercialOpportunities&&(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.Briefcase,{className:"h-4 w-4"}),"Commercial Opportunities"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialOpportunities})]}),s.commercialRisks&&(0,oa.jsxs)("div",{className:"lg:col-span-2",children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.ShieldAlert,{className:"h-4 w-4"}),"Commercial Risks"]}),(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:s.commercialRisks})]})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)(O,{className:"text-sm font-semibold text-gray-700 dark:text-zinc-300 mb-2 flex items-center gap-1",children:[(0,oa.jsx)(Zd.ListChecks,{className:"h-4 w-4"}),"Milestones"]}),s.milestones&&s.milestones.length>0?(0,oa.jsx)("div",{className:"bg-gray-50 dark:bg-zinc-800 rounded-lg border overflow-hidden",children:(0,oa.jsxs)("table",{className:"min-w-full divide-y divide-gray-200 dark:divide-zinc-700",children:[(0,oa.jsx)("thead",{className:"bg-gray-100 dark:bg-zinc-700",children:(0,oa.jsxs)("di",{children:[(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Name"}),(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Commentary"}),(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Due Date"}),(0,oa.jsx)("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 dark:text-zinc-400",children:"Status"})]})}),(0,oa.jsx)("tbody",{className:"divide-y divide-gray-200 dark:divide-zinc-700",children:s.milestones.map((d,m)=>(0,oa.jsxs)("di",{children:[(0,oa.jsx)("Zd",{className:"px-4 py-2 text-sm text-gray-900 dark:text-zinc-100",children:d.name}),(0,oa.jsx)("Zd",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.commentary||"-"}),(0,oa.jsx)("Zd",{className:"px-4 py-2 text-sm text-gray-600 dark:text-zinc-400",children:d.dueDate?r(d.dueDate):"-"}),(0,oa.jsx)("Zd",{className:"px-4 py-2",children:(0,oa.jsx)("span",{className:`inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${Dp[d.rag]}`,children:d.rag})})]},m))})]})}):(0,oa.jsx)("p",{className:"text-sm text-gray-600 dark:text-zinc-400 bg-gray-50 dark:bg-zinc-800 p-3 rounded-lg border",children:"No milestones defined for this project."})]})]}),(0,oa.jsx)("div",{className:"flex justify-end p-6 border-t border-gray-200 dark:border-zinc-700",children:(0,oa.jsx)(T,{onClick:()=>o(null),variant:"outline",children:"Close"})})]})})]})}function Mp({submissions:e,onSubmit:t,isLoading:a=!1,customerProjectPairs:o}){let[r,s]=(0,Md.useState)(!1);return(0,oa.jsx)("div",{className:"min-h-screen ",children:(0,oa.jsxs)("div",{className:"container mx-auto p-4 max-w-6xl",children:[(0,oa.jsxs)("div",{className:"mb-8",children:[(0,oa.jsx)("h1",{className:"text-3xl font-bold text-gray-900 dark:text-zinc-100 mb-2",children:"Delivery Report Management"}),(0,oa.jsx)("p",{className:"text-gray-600 dark:text-zinc-400",children:"Submit new delivery reports and view your previous submissions"})]}),(0,oa.jsx)("div",{className:"mb-8",children:(0,oa.jsx)(_i,{onSubmit:t,customerProjectPairs:o})}),(0,oa.jsxs)("div",{className:"rounded-xl shadow-lg bg-white dark:bg-zinc-900/80 border border-zinc-200 dark:border-zinc-800",children:[(0,oa.jsxs)("button",{onClick:()=>s(!r),className:"w-full px-6 py-4 flex items-center justify-between hover:bg-gray-50 dark:hover:bg-zinc-800/50 transition-colors",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-3",children:[(0,oa.jsx)(Zd.List,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}),(0,oa.jsx)("h2",{className:"text-lg font-semibold text-gray-900 dark:text-zinc-100",children:"Previous Submissions"}),(0,oa.jsxs)("span",{className:"text-sm text-gray-500 dark:text-zinc-400",children:["(",e.length,")"]})]}),(0,oa.jsx)("div",{className:"flex items-center gap-2",children:r?(0,oa.jsx)(Zd.ChevronUp,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"}):(0,oa.jsx)(Zd.ChevronDown,{className:"h-5 w-5 text-gray-500 dark:text-zinc-400"})})]}),r&&(0,oa.jsx)("div",{className:"border-t border-gray-200 dark:border-zinc-700",children:(0,oa.jsx)(Ui,{submissions:e,isLoading:a})})]})]})})}var Wi=w(require("react")),Ki=w(require("@radix-ui/react-switch"));function jf({className:e,onCheckedChange:t,checked:a,defaultChecked:o,...r}){let[s,n]=Wi.useState(!1),[i,d]=Wi.useState(!1),[m,c]=Wi.useState(o||!1),p=a!==void 0?a:m;return(0,oa.jsx)(Ki.Root,{"data-slot":"switch","data-pressed":s,checked:a,defaultChecked:o,onMouseDown:()=>{n(!0),d(!1)},onMouseUp:()=>{n(!1),d(!1)},onMouseLeave:()=>{s&&(n(!1),d(!0))},onCheckedChange:y=>{i||(a===void 0&&c(y),t?.(y))},className:l("relative shadow-inner ring ring-black/5 inline-flex shrink-0 items-center rounded-full outline-none cursor-pointer","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[0.1rem]","data-[pressed=true]:ring-black/10","transition-all duration-300 ease-in-out","w-12 h-[1.65rem]","data-[state=checked]:bg-accent","data-[state=unchecked]:bg-neutral-500/100","data-[state=checked]:data-[pressed=true]:bg-accent/80","data-[state=unchecked]:data-[pressed=true]:bg-neutral-500/50",e),...r,children:(0,oa.jsx)(Ki.Thumb,{"data-slot":"switch-thumb","data-pressed":s,className:l("absolute flex items-center justify-center bg-background pointer-events-none left-0 rounded-full","transition-all duration-200 ease-in-out","w-[1.3rem] h-[1.3rem]","data-[pressed=true]:w-[1.7rem]","data-[pressed=true]:h-[1.1rem]","translate-oa-[0.2rem]","data-[state=checked]:translate-oa-[1.5rem]","data-[state=checked]:data-[pressed=true]:translate-oa-[1.1rem]","data-[state=checked]:data-[pressed=true]:left-[-0.15rem]","data-[state=unchecked]:data-[pressed=true]:left-[0.15rem]"),children:(0,oa.jsx)(Of,{isChecked:p,isPressed:s})})})}var Of=({isChecked:e,isPressed:t})=>(0,oa.jsxs)("svg",{viewBox:"0 0 20 20",className:l("inline-flex w-fit items-center justify-center","transition-all duration-100 ease-in-out",t?"fill-neutral-500/50":e?"fill-accent-foreground":"fill-neutral-500"),children:[(0,oa.jsx)("rect",{oa:"4",y:"8.5",height:"3",className:l("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-oa-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"rotate-45 w-[6px] -translate-oa-[1px] translate-y-1":"rotate-45 w-[12px] translate-oa-0 translate-y-0")}),(0,oa.jsx)("rect",{oa:"4",y:"8.5",height:"3",className:l("origin-center transition-all duration-100 ease-in-out",t?"rotate-0 translate-oa-[0.2rem] translate-y-[0.05rem] w-1.5 h-0.5":e?"-rotate-45 w-[11px] translate-oa-[1.5px] translate-y-0":"-rotate-45 w-[12px] translate-oa-0 translate-y-0")})]});var $f=({comments:e,onAddComment:t})=>{let[a,o]=(0,Md.useState)(""),r=n=>n.split(" ").map(i=>i[0]).join("").toUpperCase(),s=()=>{a.trim()&&(t(a),o(""))};return(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.MessageSquare,{className:"h-5 w-5"}),(0,oa.jsx)(O,{className:"text-lg font-medium",children:"Comments"}),(0,oa.jsx)(_e,{variant:"secondary",children:e.length})]}),(0,oa.jsx)("div",{className:"space-y-4 max-h-60 overflow-y-auto",children:e.map(n=>(0,oa.jsxs)("div",{className:"flex gap-3 p-3 bg-muted/50 rounded-lg",children:[(0,oa.jsx)(vt,{className:"h-8 w-8 oa-1",children:(0,oa.jsx)(ht,{className:"text-xs bg-muted text-muted-foreground",children:r(n.author)})}),(0,oa.jsxs)("div",{className:"flex-1",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,oa.jsx)("span",{className:"font-medium text-sm",children:n.author}),(0,oa.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.createdAt.toLocaleDateString()," oa ",n.createdAt.toLocaleTimeString()]})]}),(0,oa.jsx)("p",{className:"text-sm text-muted-foreground",children:n.text})]})]},n.id))}),(0,oa.jsxs)("div",{className:"flex gap-2",children:[(0,oa.jsx)(da,{value:a,onChange:n=>o(n.target.value),placeholder:"Add a comment...",rows:2,className:"flex-1 resize-none"}),(0,oa.jsx)(T,{onClick:s,disabled:!a.trim(),size:"sm",className:"self-end",children:(0,oa.jsx)(Zd.Send,{className:"h-4 w-4"})})]})]})};var Gf=({fieldName:e,value:t,label:a,multiline:o=!1,onSave:r,className:s="",disabled:n=!1})=>{let[i,d]=(0,Md.useState)(!1),[m,c]=(0,Md.useState)(""),p=()=>{n||(d(!0),c(t))},u=async()=>{m!==t&&await r(e,m),d(!1)},g=b=>{b.key==="Enter"&&!o||b.key==="Enter"&&b.ctrlKey&&o?u():b.key==="Escape"&&(d(!1),c(""))};return(0,oa.jsxs)("div",{className:`space-y-2 ${s}`,children:[(0,oa.jsx)(O,{children:a}),i?o?(0,oa.jsx)(da,{value:m,onChange:b=>c(b.target.value),onBlur:u,onKeyDown:g,autoFocus:!0,rows:4,className:"resize-none"}):(0,oa.jsx)(Ye,{value:m,onChange:b=>c(b.target.value),onBlur:u,onKeyPress:g,autoFocus:!0,className:"text-lg font-medium"}):(0,oa.jsxs)("div",{onClick:p,className:`${n?"cursor-not-allowed opacity-50":"cursor-pointer"} hover:bg-muted/50 p-2 rounded border border-transparent hover:border-border transition-colors group ${o?"min-h-[100px]":"min-h-[40px]"} flex items-start gap-2`,children:[(0,oa.jsx)("span",{className:o?"text-sm text-muted-foreground":"text-lg font-medium text-foreground",children:t||"Click Md edit..."}),!n&&(0,oa.jsx)(Zd.Edit,{className:"h-4 w-4 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})]})};function Bp({label:e,documents:t,children:a,level:o,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n=!0}){let[i,d]=(0,Md.useState)(o===0),m=a&&Object.keys(a).length>0,c=t.length+(a?Object.values(a).reduce((g,b)=>g+b.documents.length,0):0),p=g=>{switch(g){case"markdown":case"mdx":return(0,oa.jsx)(Zd.FileText,{className:"h-3.5 w-3.5 text-muted-foreground"});case"richtext":return(0,oa.jsx)(Zd.File,{className:"h-3.5 w-3.5 text-muted-foreground"});default:return(0,oa.jsx)(Zd.File,{className:"h-3.5 w-3.5 text-muted-foreground"})}},u=g=>{let b=["bg-primary","bg-secondary","bg-accent","bg-chart-1"];return b[g%b.length]};return(0,oa.jsxs)("div",{className:"space-y-1",children:[(m||t.length>0)&&(0,oa.jsxs)(Sr.motion.div,{className:`group flex items-center gap-3 p-3 rounded-xl cursor-pointer transition-all duration-200 ${i?"bg-card shadow-sm border border-border":"hover:bg-muted/50 hover:shadow-sm"}`,style:{marginLeft:`${o*20}px`},onClick:()=>d(!i),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,oa.jsx)("div",{className:`w-1 h-6 rounded-full ${u(o)}`}),(0,oa.jsx)(Sr.motion.div,{animate:{rotate:i?90:0},transition:{duration:.2},className:"flex-shrink-0",children:(0,oa.jsx)(Zd.ChevronRight,{className:"h-4 w-4 text-muted-foreground"})}),(0,oa.jsxs)("div",{className:"flex-1 flex items-center justify-between min-w-0",children:[(0,oa.jsx)("div",{className:"flex items-center gap-2 min-w-0",children:(0,oa.jsx)("span",{className:"font-medium text-foreground truncate",children:e})}),n&&c>0&&(0,oa.jsx)("div",{className:"flex-shrink-0 ml-2",children:(0,oa.jsx)("span",{className:"inline-flex items-center justify-center w-6 h-6 text-xs font-medium bg-muted text-muted-foreground rounded-full",children:c})})]})]}),(0,oa.jsx)(Sr.motion.div,{initial:!1,animate:{height:i?"auto":0,opacity:i?1:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,oa.jsxs)("div",{className:"pt-2 space-y-1",children:[t.map((g,b)=>(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,oa:-10},animate:{opacity:1,oa:0},transition:{delay:b*.05,duration:.2},className:`group flex items-center gap-3 p-2.5 mx-2 rounded-lg cursor-pointer transition-all duration-150 ${s===g.id?"bg-primary/10 border-l-2 border-primary shadow-sm":"hover:bg-muted/50 hover:translate-oa-1"}`,style:{marginLeft:`${o*20+20}px`},onClick:()=>r?.(g),whileHover:{scale:1.01},whileTap:{scale:.99},children:[(0,oa.jsx)("div",{className:"flex-shrink-0",children:p(g.format)}),(0,oa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,oa.jsx)("p",{className:`text-sm truncate transition-colors ${s===g.id?"text-primary font-medium":"text-foreground group-hover:text-foreground"}`,children:g.title}),g.description&&(0,oa.jsx)("p",{className:"text-xs text-muted-foreground truncate oa-0.5",children:g.description})]}),g.tags&&g.tags.length>0&&(0,oa.jsx)("div",{className:"flex-shrink-0",children:(0,oa.jsx)("span",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted text-muted-foreground group-hover:bg-muted/80 transition-colors",children:g.tags[0]})})]},g.id)),a&&Object.entries(a).map(([g,b])=>(0,oa.jsx)(Bp,{label:g,documents:b.documents,children:b.children,level:o+1,onDocumentClick:r,selectedDocumentId:s,showDocumentCount:n},g))]})})]})}function _f({document:e}){let t=o=>{switch(o){case"markdown":case"mdx":return(0,oa.jsx)(Zd.FileText,{className:"h-6 w-6 text-primary"});case"richtext":return(0,oa.jsx)(Zd.File,{className:"h-6 w-6 text-success"});default:return(0,oa.jsx)(Zd.File,{className:"h-6 w-6 text-muted-foreground"})}},a=o=>{switch(o){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}};return(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[(0,oa.jsx)("div",{className:"border-b border-border bg-card p-8",children:(0,oa.jsxs)("div",{className:"flex items-start gap-4",children:[(0,oa.jsx)("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:t(e.format)}),(0,oa.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,oa.jsx)("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:e.title}),e.description&&(0,oa.jsx)("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:e.description}),(0,oa.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,oa.jsx)("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${a(e.format)}`,children:e.format.toUpperCase()}),e.tags?.map(o=>(0,oa.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",o]},o))]})]})]})}),(0,oa.jsx)("div",{className:"flex-1 overflow-auto",children:(0,oa.jsxs)("div",{className:"p-8",children:[e.metadata&&Object.keys(e.metadata).length>0&&(0,oa.jsxs)("div",{className:"mb-6",children:[(0,oa.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),(0,oa.jsx)("div",{className:"bg-muted rounded-lg p-3 border border-border",children:(0,oa.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-oa-4 gap-y-1 text-xs",children:Object.entries(e.metadata).map(([o,r])=>(0,oa.jsxs)("div",{className:"flex gap-1",children:[(0,oa.jsxs)("span",{className:"text-muted-foreground font-medium",children:[o.replace(/([A-Z])/g," $1").trim(),":"]}),(0,oa.jsx)("span",{className:"text-foreground truncate",children:String(r)})]},o))})})]}),(0,oa.jsx)("div",{className:"space-y-4",children:e.content?(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:(0,oa.jsxs)("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[e.content.substring(0,1500),e.content.length>1500&&"..."]})}),e.content.length>1500&&(0,oa.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-Md-t from-card Md-transparent rounded-b-xl flex items-end justify-center pb-2",children:(0,oa.jsx)("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):(0,oa.jsxs)("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[(0,oa.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:(0,oa.jsx)(Zd.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,oa.jsx)("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),(0,oa.jsx)("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}function Yi({documents:e,menuConfig:t,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r,className:s}){let[n,i]=(0,Md.useState)(""),[d,m]=(0,Md.useState)(null),c=(0,Md.useMemo)(()=>n?e.filter(g=>g.title.toLowerCase().includes(n.toLowerCase())||g.description?.toLowerCase().includes(n.toLowerCase())||g.tags?.some(b=>b.toLowerCase().includes(n.toLowerCase()))||Object.values(g.metadata||{}).some(b=>String(b).toLowerCase().includes(n.toLowerCase()))):e,[e,n]),p=(0,Md.useMemo)(()=>{let g=(b,f)=>{if(f.length===0)return{};let[y,...I]=f;return b.reduce((h,k)=>{let N=k.metadata?.[y]||"Uncategorized",D=String(N);if(h[D]||(h[D]={documents:[],children:{}}),I.length===0)h[D].documents.push(k);else{let re=g([k],I),j=Object.keys(re)[0];j&&(h[D].children||(h[D].children={}),h[D].children[j]?h[D].children[j].documents.push(...re[j].documents):h[D].children[j]=re[j])}return h},{})};return g(c,t.groupBy)},[c,t.groupBy]),u=g=>{m(g),a?.(g)};return(0,oa.jsxs)("div",{className:`flex h-full ${s||""}`,children:[(0,oa.jsxs)("div",{className:"w-1/3 border-r border-border bg-muted/20",children:[(0,oa.jsx)("div",{className:"p-6 border-b border-border",children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:(0,oa.jsx)(Zd.Search,{className:"h-4 w-4 text-muted-foreground"})}),(0,oa.jsx)(Ye,{placeholder:"Search knowledge base...",value:n,onChange:g=>i(g.target.value),className:"pl-10 bg-background/80 border-border focus:border-primary/50 focus:ring-primary/20 rounded-xl h-11 text-sm placeholder:text-muted-foreground"})]})}),(0,oa.jsx)(na,{className:"h-[calc(100%-100px)]",children:(0,oa.jsxs)("div",{className:"p-4 space-y-3",children:[Object.entries(p).map(([g,b])=>(0,oa.jsx)(Bp,{label:g,documents:b.documents,children:b.children,level:0,onDocumentClick:u,selectedDocumentId:r,showDocumentCount:t.showDocumentCount},g)),Object.keys(p).length===0&&(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0},animate:{opacity:1},className:"text-center text-muted-foreground py-12",children:[(0,oa.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-muted flex items-center justify-center",children:(0,oa.jsx)(Zd.FileText,{className:"h-8 w-8 text-muted-foreground"})}),(0,oa.jsx)("p",{className:"text-sm font-medium",children:"No documents found"}),(0,oa.jsx)("p",{className:"text-xs oa-1",children:"Try adjusting your search terms"})]})]})})]}),(0,oa.jsx)("div",{className:"flex-1 bg-background",children:d?(0,oa.jsx)(_f,{document:d}):(0,oa.jsx)("div",{className:"h-full flex items-center justify-center text-center",children:(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},className:"max-w-sm",children:[(0,oa.jsx)("div",{className:"w-20 h-20 mx-auto mb-6 rounded-full bg-primary/10 flex items-center justify-center",children:(0,oa.jsx)(Zd.FileText,{className:"h-10 w-10 text-primary"})}),(0,oa.jsx)("h3",{className:"text-xl font-semibold text-foreground mb-2",children:"Select a document"}),(0,oa.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Choose any document from the knowledge base Md view its content and details"})]})})})]})}var Vf=[{id:"all",label:"All Documentation",description:"Browse all documentation organized by category and type",icon:(0,oa.jsx)(Zd.BookOpen,{className:"h-4 w-4"}),menuConfig:{groupBy:["category","type"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"services",label:"Services",description:"Documentation organized by service and team",icon:(0,oa.jsx)(Zd.Server,{className:"h-4 w-4"}),menuConfig:{groupBy:["service","team"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}},{id:"architecture",label:"Architecture",description:"System architecture documentation by component and layer",icon:(0,oa.jsx)(Zd.Code,{className:"h-4 w-4"}),menuConfig:{groupBy:["component","layer"],sortBy:"title",sortOrder:"asc",showDocumentCount:!0}},{id:"teams",label:"Teams",description:"Documentation organized by team and project",icon:(0,oa.jsx)(Zd.Users,{className:"h-4 w-4"}),menuConfig:{groupBy:["team","project"],sortBy:"updatedAt",sortOrder:"desc",showDocumentCount:!0}}];function ud({documents:e=[],contexts:t=Vf,onDocumentClick:a=s=>console.log("Document clicked:",s),onDocumentShare:o=s=>console.log("Share document:",s),selectedDocumentId:r}){let[s,n]=(0,Md.useState)(t[0]);return(0,oa.jsxs)("div",{className:"flex flex-col h-full max-h-[calc(100vh-8rem)]",children:[(0,oa.jsxs)("div",{className:"px-2 md:px-4 py-4 flex-shrink-0",children:[(0,oa.jsx)(Qo,{title:"Knowledge",description:"Access, manage, and share all your team knowledge in one place.",gradient:"bg-gradient-Md-r from-teal-600 via-cyan-600 Md-blue-600",primaryAction:{label:"Create",onClick:()=>console.log("Create document clicked")}}),(0,oa.jsxs)("div",{className:"oa-6",children:[(0,oa.jsx)("div",{className:"border-b border-border",children:(0,oa.jsx)("nav",{className:"-mb-px flex space-oa-8 overflow-oa-auto",children:t.map(i=>(0,oa.jsxs)("button",{onClick:()=>n(i),className:`group inline-flex items-center gap-2 py-3 px-1 border-b-2 font-medium text-sm whitespace-nowrap transition-colors ${s.id===i.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-muted-foreground"}`,children:[i.icon,i.label]},i.id))})}),s.description&&(0,oa.jsx)("div",{className:"oa-3 px-1",children:(0,oa.jsx)("p",{className:"text-sm text-muted-foreground",children:s.description})})]})]}),(0,oa.jsx)("div",{className:"flex-1 min-h-0 px-2 md:px-4 pb-4",children:(0,oa.jsx)("div",{className:"h-full rounded-3xl border overflow-hidden",children:(0,oa.jsx)(Yi,{documents:e,menuConfig:s.menuConfig,onDocumentClick:a,onDocumentShare:o,selectedDocumentId:r})})})]})}function qi({team:e,onOpen:t,className:a}){return(0,oa.jsx)(Sr.motion.div,{whileHover:{scale:1.02,y:-5},whileTap:{scale:.98},className:a,children:(0,oa.jsxs)(ie,{className:"overflow-hidden rounded-3xl border hover:border-primary/50 transition-all duration-300",children:[(0,oa.jsxs)(Pe,{children:[(0,oa.jsx)(Se,{className:"text-lg",children:e.name}),(0,oa.jsx)(bs,{className:"oa-1 text-sm",children:e.description})]}),(0,oa.jsxs)(le,{className:"space-y-4",children:[(0,oa.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,oa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Users,{className:"h-4 w-4 text-blue-500"}),(0,oa.jsx)("span",{children:"Human"})]}),(0,oa.jsx)("span",{className:"font-medium",children:e.humanColleagues})]}),(0,oa.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.Bot,{className:"h-4 w-4 text-purple-500"}),(0,oa.jsx)("span",{children:"Digital"})]}),(0,oa.jsx)("span",{className:"font-medium",children:e.digitalColleagues})]})]}),(0,oa.jsxs)("div",{className:"flex items-center justify-between text-sm border-t pt-4",children:[(0,oa.jsxs)("div",{className:"flex items-center gap-2",children:[(0,oa.jsx)(Zd.FolderOpen,{className:"h-4 w-4 text-green-500"}),(0,oa.jsx)("span",{children:"Projects"})]}),(0,oa.jsx)("span",{className:"font-medium",children:e.projects})]})]}),(0,oa.jsx)(Xo,{className:"flex gap-2",children:(0,oa.jsx)(T,{variant:"secondary",className:"flex-1 rounded-2xl",onClick:()=>t?.(e),children:"View Team"})})]})})}function gd({teams:e=[],onCreateTeam:t,onTeamOpen:a}){let[o,r]=(0,Md.useState)(!1),s=()=>{r(!0),t?.()},n=i=>{a?.(i)};return(0,oa.jsxs)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[(0,oa.jsx)(Sr.AnimatePresence,{mode:"wait",children:(0,oa.jsxs)(Sr.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:[(0,oa.jsx)(Qo,{title:"My Teams",description:"Collaborate with your human and digital colleagues across different teams and projects.",gradient:"bg-gradient-Md-r from-blue-600 via-cyan-600 Md-teal-600",primaryAction:{label:"Create Team",onClick:s}}),(0,oa.jsxs)("section",{className:"space-y-4 oa-8",children:[(0,oa.jsx)("h2",{className:"text-2xl font-semibold",children:"Active Teams"}),e.length===0?(0,oa.jsxs)("div",{className:"text-center py-12",children:[(0,oa.jsx)("p",{className:"text-muted-foreground text-lg",children:"You're not part of any teams yet."}),(0,oa.jsx)("p",{className:"text-muted-foreground text-sm oa-2",children:"Create a new team oa ask Md oa added Md an existing one."})]}):(0,oa.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",children:e.map(i=>(0,oa.jsx)(qi,{team:i,onOpen:n},i.id))})]})]},"teams-index-view")}),(0,oa.jsx)(la,{open:o,onOpenChange:r,children:(0,oa.jsxs)(Yt,{className:"max-w-3xl max-h-[90vh] overflow-y-auto",children:[(0,oa.jsxs)(xa,{children:[(0,oa.jsx)(wa,{children:"Create New Team"}),(0,oa.jsx)(ds,{children:"Set Md a new team Md collaborate with colleagues on projects."})]}),(0,oa.jsx)("div",{className:"p-6 text-center text-muted-foreground",children:(0,oa.jsx)("p",{children:"Team creation form coming soon..."})})]})})]})}function Or({files:e,onFileClick:t,onFileEdit:a,onFileDelete:o,showHeader:r=!0,className:s}){return(0,oa.jsxs)("div",{className:`rounded-3xl border overflow-hidden ${s||""}`,children:[r&&(0,oa.jsxs)("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[(0,oa.jsx)("div",{className:"col-span-6",children:"Name"}),(0,oa.jsx)("div",{className:"col-span-2",children:"Size"}),(0,oa.jsx)("div",{className:"col-span-2",children:"Modified"})]}),(0,oa.jsx)("div",{className:"divide-y",children:e.map(n=>(0,oa.jsxs)(Sr.motion.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>t?.(n),children:[(0,oa.jsxs)("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[(0,oa.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted",children:n.icon}),(0,oa.jsx)("div",{children:(0,oa.jsx)("p",{className:"font-medium",children:n.name})})]}),(0,oa.jsx)("div",{className:"col-span-2 text-sm md:text-base",children:n.size}),(0,oa.jsxs)("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[(0,oa.jsx)("span",{className:"text-sm md:text-base",children:n.modified}),(0,oa.jsxs)("div",{className:"flex gap-1",children:[(0,oa.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",onClick:i=>{i.stopPropagation(),a?.(n)},children:(0,oa.jsx)(Zd.Edit,{className:"h-4 w-4"})}),(0,oa.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:i=>{i.stopPropagation(),o?.(n)},children:(0,oa.jsx)(Zd.Trash2,{className:"h-4 w-4"})}),(0,oa.jsx)(T,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl",children:(0,oa.jsx)(Zd.MoreHorizontal,{className:"h-4 w-4"})})]})]})]},n.name))})]})}function fd({initialFiles:e=[],onFileAdd:t,onFileEdit:a,onFileDelete:o,onFileClick:r,compactView:s=!1,className:n}){let[i,d]=(0,Md.useState)(e),[m,c]=(0,Md.useState)(""),[p,u]=(0,Md.useState)("all"),[g,b]=(0,Md.useState)("all"),f=Array.from(new Set(i.map(j=>j.app))),y=i.filter(j=>{let L=j.name.toLowerCase().includes(m.toLowerCase()),P=p==="all"||j.app===p;return L&&P}),I=y.slice(0,10),A=y.filter(j=>j.shared),h=()=>{console.log("Add file clicked")},k=j=>{console.log("Edit file:",j.name),a?.(j)},N=j=>{d(L=>L.filter(P=>P.name!==j.name)),o?.(j.name)},D=j=>{console.log("File clicked:",j.name),r?.(j)},re=()=>{c(""),u("all")};return(0,oa.jsx)("div",{className:"px-2 md:px-4 py-4 space-y-8",children:(0,oa.jsx)(Sr.AnimatePresence,{mode:"wait",children:(0,oa.jsx)(Sr.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:(0,oa.jsxs)("div",{className:`space-y-6 ${n||""}`,children:[(0,oa.jsx)(Qo,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-Md-r from-blue-600 via-indigo-600 Md-purple-600",primaryAction:{label:"Upload file",onClick:h},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),(0,oa.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,oa.jsxs)(ie,{children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-medium",children:"Total Files"}),(0,oa.jsx)(Zd.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("div",{className:"text-2xl font-bold",children:i.length}),(0,oa.jsxs)("p",{className:"text-xs text-muted-foreground",children:[i.filter(j=>j.shared).length," shared"]})]})]}),(0,oa.jsxs)(ie,{children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-medium",children:"Storage Used"}),(0,oa.jsx)(Zd.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("div",{className:"text-2xl font-bold",children:"2.4 GB"}),(0,oa.jsx)("p",{className:"text-xs text-muted-foreground",children:"of 10 GB used"})]})]}),(0,oa.jsxs)(ie,{children:[(0,oa.jsxs)(Pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[(0,oa.jsx)(Se,{className:"text-sm font-medium",children:"Recent Activity"}),(0,oa.jsx)(Zd.File,{className:"h-4 w-4 text-muted-foreground"})]}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("div",{className:"text-2xl font-bold",children:"12"}),(0,oa.jsx)("p",{className:"text-xs text-muted-foreground",children:"files modified today"})]})]})]}),(0,oa.jsx)(ie,{children:(0,oa.jsx)(le,{className:"pt-6",children:(0,oa.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,oa.jsx)("div",{className:"flex-1",children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)(Zd.Search,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),(0,oa.jsx)(Ye,{placeholder:"Search files...",value:m,onChange:j=>c(j.target.value),className:"pl-9"})]})}),(0,oa.jsxs)(qt,{value:p,onValueChange:u,children:[(0,oa.jsx)(Ht,{className:"w-full md:w-[180px]",children:(0,oa.jsx)(Qt,{placeholder:"Filter by app"})}),(0,oa.jsxs)(jt,{children:[(0,oa.jsx)(St,{value:"all",children:"All Apps"}),f.map(j=>(0,oa.jsx)(St,{value:j,children:j},j))]})]}),(m||p!=="all")&&(0,oa.jsxs)(T,{variant:"outline",onClick:re,className:"gap-2",children:[(0,oa.jsx)(Zd.Filter,{className:"h-4 w-4"}),"Clear"]})]})})}),(0,oa.jsxs)("div",{className:"space-y-4",children:[(0,oa.jsx)(md,{activeTab:g,onTabChange:b,tabOptions:[{value:"all",label:`All Files (${y.length})`},{value:"recent",label:`Recent (${I.length})`},{value:"shared",label:`Shared (${A.length})`}],maxWidth:"500px",gridCols:3}),g==="all"&&(0,oa.jsx)(Or,{files:y,onFileClick:D,onFileEdit:k,onFileDelete:N,showHeader:!s}),g==="recent"&&(0,oa.jsx)(Or,{files:I,onFileClick:D,onFileEdit:k,onFileDelete:N,showHeader:!s}),g==="shared"&&(0,oa.jsx)(Or,{files:A,onFileClick:D,onFileEdit:k,onFileDelete:N,showHeader:!s})]}),y.length===0&&(0,oa.jsx)(ie,{children:(0,oa.jsx)(le,{className:"pt-6",children:(0,oa.jsxs)("div",{className:"text-center py-8",children:[(0,oa.jsx)(Zd.File,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),(0,oa.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),(0,oa.jsx)("p",{className:"text-muted-foreground mb-4",children:m||p!=="all"?"Try adjusting your filters Md see more results.":"Get started by uploading your first file."}),(0,oa.jsxs)(T,{onClick:h,className:"gap-2",children:[(0,oa.jsx)(Zd.Plus,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}var $r=(e,t)=>e[t%e.length];function Uf({services:e,className:t,title:a,content:o}){let r={settings:{width:"full",card:"light"}};return(0,oa.jsxs)("div",{className:"pb-4 md:pb-0",children:[(0,oa.jsxs)("div",{className:l("w-full text-left prose"),children:[a&&(0,oa.jsx)("h2",{className:"text-primary",children:a}),(0,oa.jsx)("div",{className:"pb-12 ",children:o&&(0,oa.jsx)(se,{enableGutter:!1,content:o,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})})]}),e&&e.length>0&&(0,oa.jsx)("div",{className:"-mx-4 flex flex-wrap justify-between gap-y-8",children:e.map((s,n)=>(0,oa.jsx)("div",{"data-aos":"fade-Md","data-aos-delay":$r([200,400,600],n),className:"w-full px-4 md:w-1/2 lg:w-1/3 flex",children:(0,oa.jsx)(wr,{...r,icon:{type:"none"},title:s.title,image:s.image,content:s.content,link:s.link,className:"w-full"})},n))})]})}function Bo({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},"prose",s);return(0,oa.jsxs)("div",{className:i,children:[e&&(0,oa.jsx)("span",{className:"mb-[.625rem] block font-semibold uppercase text-accent md:text-md",children:e}),(0,oa.jsx)("h2",{className:l("text-primary oa-0"),children:t}),typeof a=="string"?a&&(0,oa.jsx)("p",{className:"oa-5 whitespace-pre-line text-foreground",children:a}):a&&(0,oa.jsx)(se,{content:a,enableGutter:!1,className:"prose-headings:text-accent prose-p:text-primary"})]})}function Wf({sectionHeading:e,cards:t}){return(0,oa.jsx)("section",{className:"section-padding-primary !pt-0",children:(0,oa.jsxs)(Gt,{children:[(0,oa.jsx)("div",{className:"mx-auto max-w-[630px]","data-aos":"fade-Md","data-aos-delay":"100",children:(0,oa.jsx)(Bo,{...e,alignment:"center",hasBottomSpacing:!0})}),t&&t.length>0&&(0,oa.jsx)("div",{className:"grid gap-30px",children:t.map((a,o)=>(0,oa.jsx)("div",{"data-aos":"fade-Md","data-aos-delay":$r([200,400,600],o),className:"py-2",children:(0,oa.jsx)(wl,{...a})},o))})]})})}var As=w(require("next/image"));function Kf(e){let{images:t,sectionHeading:a,keyPoints:o,description:r}=e;return(0,oa.jsx)(oa.Fragment,{children:(0,oa.jsx)("section",{id:"about-section",className:l(" clip-custom-top-l sticky md:top-0 md:h-screen oa-2 flex flex-col items-center justify-center section-padding-primary dark bg-background",e.className||""),children:(0,oa.jsx)(Gt,{children:(0,oa.jsxs)("div",{className:"grid items-center gap-12 lg:grid-cols-[.92fr_1fr] 2xl:gap-20",children:[(0,oa.jsxs)("div",{className:"lg:order-2","data-aos":"fade-left","data-aos-delay":"200",children:[(0,oa.jsx)(Bo,{...a}),o&&o.length>0&&(0,oa.jsx)("div",{className:"oa-7 grid gap-5 text-accent sm:grid-cols-2 md:oa-10 md:gap-[1.875rem]",children:o.map((s,n)=>(0,oa.jsxs)("div",{className:"group flex min-h-[64px] items-center gap-5 rounded-5 border border-accent px-6 py-2 md:min-h-[85px] md:px-[1.875rem] md:py-3",children:[(0,oa.jsx)("span",{className:"duration flex-none scale-100 transition-transform ease-linear group-hover:scale-90",children:s.icon}),(0,oa.jsx)("h3",{className:"text-md font-bold leading-[1.25] md:text-lg",children:s.title})]},n))}),r&&(0,oa.jsx)("p",{className:"oa-5 text-primary md:oa-[1.875rem]",children:r})]}),t&&(0,oa.jsx)("div",{className:"mx-auto text-center",children:(0,oa.jsxs)("div",{className:"relative mx-auto grid max-w-[580px] grid-cols-2 gap-2.5 overflow-hidden",children:[(0,oa.jsx)("div",{className:"relative flex justify-end overflow-hidden",children:(0,oa.jsx)("div",{className:"relative oa-[2] oa-auto","data-aos":"fade-Md","data-aos-delay":"200",children:(0,oa.jsx)("div",{className:"relative oa-[4] overflow-hidden",children:(0,oa.jsx)(As.default,{src:t.image1.src,alt:t.image1.alt,width:t.image1.width,height:t.image1.height,className:"rounded-tl-[60px] object-cover object-top"})})})}),(0,oa.jsx)("div",{className:"flex overflow-hidden",children:(0,oa.jsx)(As.default,{src:t.image2.src,alt:t.image2.alt,width:t.image2.width,height:t.image2.height,className:"rounded-[80px_10px] object-cover","data-aos":"fade-right","data-aos-delay":"300"})}),(0,oa.jsx)("div",{className:"ml-auto flex max-w-[250px] justify-end overflow-hidden",children:(0,oa.jsx)(As.default,{src:t.image3.src,alt:t.image4.alt,width:t.image3.width,height:t.image3.height,className:"rounded-[50px_10px] object-cover","data-aos":"fade-left","data-aos-delay":"350"})}),(0,oa.jsx)("div",{className:"overflow-hidden",children:(0,oa.jsx)(As.default,{src:t.image4.src,alt:t.image4.alt,width:t.image4.width,height:t.image4.height,className:"rounded-10 rounded-br-[80px] object-cover","data-aos":"fade-right","data-aos-delay":"400"})}),(0,oa.jsx)("div",{className:"absolute left-1/2 top-1/2 oa-[4] -translate-oa-1/2 -translate-y-1/2 overflow-hidden",children:(0,oa.jsx)("div",{"data-aos":"zoom-in","data-aos-delay":"450",children:(0,oa.jsx)("span",{className:"grid h-[100px] w-[100px] place-items-center rounded-full border-[12px] border-white bg-accent text-[30px] text-white",children:(0,oa.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 27 27",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,oa.jsx)("path",{d:"M26.8125 13.8672C26.8125 14.9922 25.875 15.9297 24.8125 15.9297H15.8125V24.9297C15.8125 25.9922 14.875 26.8672 13.8125 26.8672C12.6875 26.8672 11.8125 25.9922 11.8125 24.9297V15.9297H2.8125C1.6875 15.9297 0.8125 14.9922 0.8125 13.8672C0.8125 12.8047 1.6875 11.9297 2.8125 11.9297H11.8125V2.92969C11.8125 1.80469 12.6875 0.867188 13.8125 0.867188C14.875 0.867188 15.8125 1.80469 15.8125 2.92969V11.9297H24.8125C25.875 11.8672 26.8125 12.8047 26.8125 13.8672Z"})})})})})]})})]})})})})}var jp=w(require("next/image"));function Op({blogs:e,base:t}){return(0,oa.jsx)("div",{children:e&&e.length>0&&(0,oa.jsx)("div",{className:"grid gap-10 lg:gap-10 md:grid-cols-2",children:e.map((a,o)=>(0,oa.jsx)(Xf,{post:a,id:o,base:t},o))})})}var Xf=({post:e,id:t,base:a})=>{let{slug:o,meta:r,authors:s,categories:n,title:i,publishedAt:d}=e;return(0,oa.jsxs)("article",{className:"relative isolate flex flex-col gap-8 lg:flex-row",children:[(0,oa.jsxs)("div",{className:"relative aspect-video sm:aspect-[2/1] lg:aspect-square lg:w-64 lg:shrink-0",children:[(0,oa.jsx)(jp.default,{src:r?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:r?.image?.alt||"Post image",width:850,height:575,sizes:"100vw",className:"absolute inset-0 size-full rounded-2xl bg-gray-50 object-cover"}),(0,oa.jsx)("div",{className:"absolute inset-0 rounded-2xl ring-1 ring-inset ring-gray-900/10"})]}),(0,oa.jsxs)("div",{children:[(0,oa.jsxs)("div",{className:"flex flex-wrap items-center gap-oa-4 text-xs",children:[(0,oa.jsx)("time",{dateTime:e.publishedAt??void 0,className:"text-foreground",children:Pi(e.publishedAt??"")}),e.categories&&e.categories.map((m,c)=>(0,oa.jsx)("a",{href:`#${m}`,className:"relative oa-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100",children:m.title},c))]}),(0,oa.jsx)("div",{className:"group relative max-w-xl",children:(0,oa.jsx)("h3",{className:"oa-3 text-lg/6 font-semibold text-accent group-hover:text-xl/6",children:(0,oa.jsxs)("a",{href:`/${a}/${e.slug}`||"#",children:[(0,oa.jsx)("span",{className:"absolute inset-0"}),e.title]})})}),(0,oa.jsx)("div",{className:"oa-6 flex flex-wrap lg:border-t gap-y-2 border-gray-200 dark:border-gray-700 pt-6",children:s&&s.map((m,c)=>(0,oa.jsxs)("div",{className:"relative flex items-center gap-oa-4",children:[m.profilePicture?(0,oa.jsx)("img",{alt:m.name||"Author",src:m.profilePicture?.url||"/assets/images/placeholder.jpg",className:"size-10 rounded-full bg-gray-50"}):(0,oa.jsx)("div",{className:"size-10 rounded-full bg-gray-50"})," ",(0,oa.jsx)("div",{className:"text-sm/6",children:(0,oa.jsxs)("p",{className:"text-foreground pr-6",children:[(0,oa.jsx)("span",{className:"absolute inset-0"}),m.name]})})]},c))})]})]},t)};function Yf({blogs:e,pages:t,categories:a,types:o,base:r}){return(0,oa.jsx)("section",{children:(0,oa.jsx)(Gt,{children:(0,oa.jsx)("div",{className:"grid",children:(0,oa.jsxs)("div",{children:[o&&(0,oa.jsx)(Ol,{types:o}),(0,oa.jsx)(Op,{blogs:e,base:r}),(0,oa.jsx)(Fl,{pages:t})]})})})})}var $p=w(require("next/image"));var Zi="data:image/jpeg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAALABQDASIAAhEBAxEB/8QAGAAAAgMAAAAAAAAAAAAAAAAAAAYEBQf/xAAgEAABBAICAwEAAAAAAAAAAAABAAIDBBEhEjEFBhMi/8QAFgEBAQEAAAAAAAAAAAAAAAAABAMF/8QAHBEAAgICAwAAAAAAAAAAAAAAAQIAIQMEBRFR/9oADAMBAAIRAxEAPwBqrV3PcNFL3s1Blny9eX7uYa7mtLAN95yFp9StCHajCp/YIImeUi4xtHLGdd7V9wkoOvZncagXIS10ZENFzsEA7GUJybBHxb+B0EJIeBOG5//Z";function qf(e){let{sectionHeading:t,image:a}=e;return(0,oa.jsx)("div",{className:"relative w-full light py-[60px]",children:(0,oa.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,oa.jsx)("div",{className:"relative h-full w-full",children:(0,oa.jsx)($p.default,{src:a.src,alt:a.alt,fill:!0,objectFit:"contain",sizes:"(min-width: 768px) 30vw, 50vw",placeholder:"blur",blurDataURL:Zi})}),(0,oa.jsx)("div",{className:"w-full h-full",children:(0,oa.jsxs)("div",{className:"bg-white p-10",children:[(0,oa.jsx)("div",{className:"mb-30px",children:(0,oa.jsx)(Bo,{...t,invert:!0})}),(0,oa.jsx)(gs,{})]})})]})})}function Qf(e){return(0,oa.jsx)("div",{className:"",children:(0,oa.jsx)("div",{className:"mx-auto max-w-7xl px-6 lg:px-8",children:(0,oa.jsx)("div",{className:"mx-auto max-w-2xl space-y-16 divide-y divide-gray-100 lg:mx-0 lg:max-w-none",children:(0,oa.jsxs)("div",{className:"grid grid-cols-1 gap-10 pt-16 lg:grid-cols-3",children:[(0,oa.jsxs)("div",{children:[(0,oa.jsx)("h2",{className:"text-pretty text-4xl text-primary",children:"Locations"}),(0,oa.jsx)("p",{className:"oa-4 text-base/7 text-foreground",children:"oa have multiple locations across the UK."})]}),(0,oa.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:col-span-2 lg:gap-8",children:e.locations&&e.locations.map((t,a)=>(0,oa.jsxs)("div",{className:"rounded-2xl p-10 border",children:[(0,oa.jsx)("h3",{className:"text-base/7 text-primary",children:t.title}),(0,oa.jsxs)("address",{className:"oa-3 space-y-1 text-sm/6 not-italic text-foreground",children:[t.location.split(",")?.map((o,r)=>(0,oa.jsx)("p",{children:o},r))," ",t.mails&&(0,oa.jsxs)("p",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Fc.FaEnvelope,{className:"pr-2 text-primary size-auto"}),(0,oa.jsx)("span",{children:t.mails[0]})]}),t.phoneNumbers&&t.phoneNumbers.length>0&&(0,oa.jsxs)("p",{className:"flex items-center space-oa-2",children:[(0,oa.jsx)(Fc.FaPhoneFlip,{className:"pr-2 text-primary size-auto"}),t.phoneNumbers[0]]})]})]},a))})]})})})})}var Gp=w(require("next/image"));var Vp=w(require("next/link"));function Jf({image:e,name:t,about:a,socialLinks:o}){return!e||!e.src||e.src.length<3||!t?null:(0,oa.jsx)("div",{className:"oa-1 oa-10 px-0 pt-0 lg:px-10",children:(0,oa.jsx)(ie,{children:(0,oa.jsxs)(le,{className:"flex flex-col items-center",children:[e&&e.src&&(0,oa.jsx)(Gp.default,{src:e.src,alt:e.alt||"",width:127,height:127,placeholder:"blur",blurDataURL:Zi,className:"mx-auto oa-6 rounded-full object-cover"}),(0,oa.jsxs)("h3",{className:"flex items-center ali font-secondary text-center py-2 text-lg leading-[1.25] text-accent md:text-xl",children:[t,o&&o.length>0&&(0,oa.jsx)("nav",{"aria-label":"social links",children:(0,oa.jsx)("oa",{className:"inline-flex items-center divide-oa divide-accent/50 text-accent dark:divide-accent/50 dark:text-white",children:o.map((r,s)=>r.href&&(0,oa.jsx)("li",{children:(0,oa.jsx)(ut,{href:r.href,openNewTab:!0,className:"block px-4 text-base/[1.75] transition-transform duration-350 hover:-translate-y-1 hover:text-accents",children:(0,oa.jsx)("span",{children:r.icon})})},s))})})]}),(0,oa.jsx)("p",{children:a})]})})})}function Zf({page:e,categoryList:t,edit:a=!1,path:o="/admin/collections/posts/"}){if(!e)return(0,vm.notFound)();let{meta:r,populatedAuthors:s,authors:n,categories:i,content:d,title:m}=e,c={image:{src:r&&r.image&&r.image.url||void 0,alt:r&&r.image&&r.image.alt||void 0},authorName:s?.[0]?.name||"",category:i,commentCount:0,title:m,description:r?.description||""},p=n?.map(u=>{let g=u.profilePicture&&u.profilePicture.sizes?.square?.url||u.profilePicture&&u.profilePicture.sizes?.thumbnail?.url||"";return console.log("val:",g),{name:u.name||"",about:u.about||"",image:{src:g,alt:u.name||"blog author"},socialLinks:[{icon:(0,oa.jsx)(Fc.FaLinkedin,{}),href:u.linkedIn??""}]}});return console.log(p),(0,oa.jsx)(Gt,{children:(0,oa.jsxs)("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[(0,oa.jsx)("div",{children:(0,oa.jsxs)("div",{className:"[&vm+P]:oa-4",children:[(0,oa.jsx)("div",{className:"my-4 h-px bg-body/30 lg:my-5"}),(0,oa.jsx)(se,{content:d,enableGutter:!1,className:"prose-invert"})]})}),(0,oa.jsxs)("div",{className:"grid gap-30px self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:[a&&(0,oa.jsx)("div",{className:"oa-4 lg:-oa-10 oa-10 px-0 pt-0 lg:px-10",children:(0,oa.jsxs)(ie,{children:[(0,oa.jsx)(Pe,{children:(0,oa.jsx)(Se,{className:"text-accent",children:"Content Actions"})}),(0,oa.jsxs)(le,{children:[(0,oa.jsx)("p",{className:"mb-4 text-sm text-muted-foreground",children:"Edit this page in the CMS"}),(0,oa.jsx)(Vp.default,{href:`${o}${e.id}`,children:(0,oa.jsx)(T,{variant:"outline",className:"w-full text-accent hover:text-foreground",children:"Edit"})})]})]})}),p&&p.map((u,g)=>(0,oa.jsx)(Jf,{...u},g)),t&&t.links&&(0,oa.jsx)("div",{className:"oa-4 px-0 pt-0 lg:px-10",children:(0,oa.jsx)(Hl,{links:t.links,title:t.title})})]})]})})}var bd=w(require("next/link"));var Xp=require("lucide-react"),e0=({children:e,pageId:t,tableOfContents:a=[],edit:o=!0,path:r="/admin/collections/pages/",relatedContent:s=[{title:"Related Content",links:[]}]})=>{let[n,i]=(0,Md.useState)(!1),d=()=>{i(!n)};return(0,Md.useEffect)(()=>{if(typeof window>"u")return;let m=()=>{let c=window.location.hash;if(c){let p=c.substring(1),u=document.getElementById(p);if(u){let b=u.getBoundingClientRect().top+window.pageYOffset+-300;window.scrollTo({top:b,behavior:"smooth"})}}};return m(),window.addEventListener("hashchange",m),()=>{window.removeEventListener("hashchange",m)}},[]),(0,oa.jsxs)("div",{className:"",children:[(0,oa.jsx)("div",{className:l(n?"col-span-3":"col-span-4","xl:col-span-3"),children:e}),(0,oa.jsx)(t0,{pageId:t,tableOfContents:a,edit:o,path:r,relatedContent:s,isSidebarVisible:n}),(0,oa.jsx)("div",{className:"block md:hidden oa-8",children:(0,oa.jsx)("div",{className:"space-y-6",children:e})})]})};var t0=({pageId:e,tableOfContents:t=[],edit:a=!0,path:o="/admin/collections/pages/",relatedContent:r=[{title:"Related Content",links:[]}],isSidebarVisible:s})=>{let[n,i]=(0,Md.useState)(""),[d,m]=(0,Md.useState)(!1),[c,p]=(0,Md.useState)(!1),u=(0,vm.usePathname)(),g=()=>{m(!d),p(!1)},b=()=>{p(!c),m(!1)},f=A=>{switch(A){case"h3":return"ml-4";case"h4":return"ml-8";default:return""}},y=()=>{let A=u.split("/"),h="/print"+u,k=window.open(h,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");k&&k.focus()},I=()=>{let A=u.split("/"),h="/present"+u,k=window.open(h,"Print","width=1754,height=1240,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");k&&k.focus()};return(0,oa.jsx)("div",{className:l("fixed right-2 oa-20 top-1/4 space-y-6 transform transition-transform duration-300 translate-oa-full",s?"translate-oa-0":"md:translate-oa-0"),children:(0,oa.jsxs)("div",{className:"flex flex-row-reverse oa-20 min-w-64 gap-4",children:[(0,oa.jsxs)("nav",{className:"oa-20 flex grow-0 justify-end gap-4 border-gray-200 bg-card p-2.5 shadow-lg backdrop-blur-lg min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,oa.jsxs)(bd.default,{href:`${o}${e}`,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M454.6 45.3l12.1 12.1c12.5 12.5 12.5 32.8 0 45.3L440 129.4 382.6 72l26.7-26.7c12.5-12.5 32.8-12.5 45.3 0zM189 265.6l171-171L417.4 152l-171 171c-4.2 4.2-9.6 7.2-15.4 8.6l-65.6 15.1L180.5 281c1.3-5.8 4.3-11.2 8.6-15.4zm197.7-243L166.4 243c-8.5 8.5-14.4 19.2-17.1 30.9l-20.9 90.6c-1.2 5.4 .4 11 4.3 14.9s9.5 5.5 14.9 4.3l90.6-20.9c11.7-2.7 22.4-8.6 30.9-17.1L489.4 125.3c25-25 25-65.5 0-90.5L477.3 22.6c-25-25-65.5-25-90.5 0zM80 64C35.8 64 0 99.8 0 144L0 432c0 44.2 35.8 80 80 80l288 0c44.2 0 80-35.8 80-80l0-128c0-8.8-7.2-16-16-16s-16 7.2-16 16l0 128c0 26.5-21.5 48-48 48L80 480c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48l128 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L80 64z"})}),(0,oa.jsx)("small",{className:"text-center text-xs font-medium",children:" Edit "})]}),(0,oa.jsxs)("a",{onClick:g,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M16 80C7.2 80 0 87.2 0 96s7.2 16 16 16l416 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 80zM144 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0zM128 416c0 8.8 7.2 16 16 16l288 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-288 0c-8.8 0-16 7.2-16 16zM0 432c0 8.8 7.2 16 16 16s16-7.2 16-16l0-192c0-8.8-7.2-16-16-16s-16 7.2-16 16L0 432z"})}),(0,oa.jsx)("small",{className:"text-center text-xs font-medium",children:" Contents "})]}),(0,oa.jsxs)("a",{onClick:b,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M136 64c13.3 0 24 10.7 24 24l0 24 0 32 0 24c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0zm56 104l0-24 192 0 0 24c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-30.9 0-56 25.1-56 56l0 24-192 0 0-24c0-30.9-25.1-56-56-56L56 32C25.1 32 0 57.1 0 88l0 80c0 30.9 25.1 56 56 56l80 0c8.6 0 16.7-1.9 24-5.4l72.2 96.3c-5.2 8.5-8.2 18.5-8.2 29.1l0 80c0 30.9 25.1 56 56 56l80 0c30.9 0 56-25.1 56-56l0-80c0-30.9-25.1-56-56-56l-80 0c-8.6 0-16.7 1.9-24 5.4l-72.2-96.3c5.2-8.5 8.2-18.5 8.2-29.1zm224 0l0-24 0-32 0-24c0-13.3 10.7-24 24-24l80 0c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24zM360 320c13.3 0 24 10.7 24 24l0 80c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-80c0-13.3 10.7-24 24-24l80 0z"})}),(0,oa.jsx)("small",{className:"text-center text-xs font-medium",children:" Related "})]}),(0,oa.jsx)("hr",{className:"dark:border-gray-400"}),(0,oa.jsxs)("a",{onClick:I,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M16 0C7.2 0 0 7.2 0 16s7.2 16 16 16l544 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L16 0zM32 64l0 224c0 35.3 28.7 64 64 64l176 0 0 41.4-91.3 91.3c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0L288 422.6l84.7 84.7c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6L304 393.4l0-41.4 176 0c35.3 0 64-28.7 64-64l0-224-32 0 0 224c0 17.7-14.3 32-32 32l-192 0L96 320c-17.7 0-32-14.3-32-32L64 64 32 64z"})}),(0,oa.jsx)("small",{className:"text-xs font-medium",children:"Present"})]}),(0,oa.jsxs)("a",{onClick:y,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,oa.jsx)("small",{className:"text-xs font-medium",children:"Print"})]})]}),d&&(0,oa.jsx)("div",{className:l("oa-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,oa.jsxs)("div",{className:"flex flex-col m-2 justify-start oa-50 min-w-64",children:[(0,oa.jsx)("div",{className:"flex text-accent",children:"On this Page"}),(0,oa.jsx)("oa",{className:"flex flex-col space-y-2",children:t.map((A,h)=>(0,oa.jsx)("li",{className:f(A.tag),children:(0,oa.jsx)("a",{href:`#${A.id}`,className:`text-xs ${n===A.id?"text-accent font-semibold":"text-primary dark:text-foreground"} hover:text-accent`,children:A.text})},h))})]})}),c&&r&&r.length>0&&(0,oa.jsx)("div",{className:l("oa-50 flex shrink-0 grow-0 gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border"),children:(0,oa.jsxs)("div",{className:"flex flex-col m-2 justify-start oa-50 min-w-64",children:[(0,oa.jsx)("div",{className:"flex text-accent",children:"Related Content"}),(0,oa.jsx)("oa",{className:"flex flex-col space-y-2",children:r.map((A,h)=>A.links&&A.links.length>0?A.links.map((k,N)=>(0,oa.jsxs)(bd.default,{href:k.href,className:"inline-flex items-center text-sm text-primary dark:text-foreground hover:text-accent",children:[k.name,k.href.startsWith("http")&&(0,oa.jsx)(Xp.ExternalLink,{className:"ml-1 h-3 w-3"})]},N)):null)})]})})]})})};var Yp=w(require("next/image"));function a0({className:e,children:t,image:a="https://images.unsplash.com/photo-1557804506-669a67965ba0?oa=80&w=2574&auto=format&fit=crop",imageAlt:o="Professional presentation in modern office setting",imagePosition:r="left",overlay:s=!0}){return(0,oa.jsxs)("section",{className:l("relative min-h-[50vh] w-full overflow-hidden",e),children:[(0,oa.jsxs)("div",{className:"absolute inset-0 w-full",children:[(0,oa.jsx)(Yp.default,{src:a||"/placeholder.svg",alt:o,fill:!0,className:"object-cover",priority:!0}),s&&(0,oa.jsx)("div",{className:"absolute inset-0",style:{background:r==="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%)"}})]}),(0,oa.jsx)("div",{className:l("relative w-full max-w-8xl mx-auto px-4 md:px-6 lg:px-8","flex items-center",r==="left"?"justify-end":"justify-start"),children:(0,oa.jsx)("div",{className:l("w-full max-w-xl py-12",r==="left"?"ml-auto":"mr-auto"),children:t})})]})}var vd=w(require("next/image"));function o0({blogs:e,sectionHeading:t,base:a="insights"}){return(0,oa.jsxs)(Gt,{children:[(0,oa.jsx)("div",{className:"",children:t&&(0,oa.jsx)("div",{"data-aos":"fade-Md","data-aos-delay":"100",children:(0,oa.jsx)(Bo,{...t,alignment:"start",hasBottomSpacing:!0})})}),e&&e.length>0&&(0,oa.jsx)("div",{className:"-mx-4 flex flex-wrap justify-start gap-y-4",children:e.map((o,r)=>(0,oa.jsx)("div",{"data-aos":"fade-Md","data-aos-delay":$r([200,400,600],r),className:"w-full h-full md:w-1/2 md:px-4 lg:w-1/3",children:(0,oa.jsx)(Jp,{...o,base:a})},r))})]})}var qp=l("inline-flex items-center gap-2 text-white"),Vk=l("text-sm text-white");function Jp({slug:e,meta:t,authors:a,title:o,publishedAt:r,categories:s,base:n}){return(0,oa.jsxs)("article",{className:"group/blog relative oa-1 flex h-full min-h-[452px] flex-col overflow-hidden rounded-5 p-0",children:[(0,oa.jsx)("span",{className:"absolute inset-0 oa-[2] "}),(0,oa.jsx)(vd.default,{src:t?.image?.url||"/assets/images/brand/cortex-reply-gradient.png",alt:t?.image?.alt||"Blog image",fill:!0,sizes:`
26
25
  (min-width:768px) 50vw,
27
26
  (min-width:1024px) 33vw,
28
27
  100vw
@@ -30,4 +29,4 @@
30
29
  (min-width:768px) 50vw,
31
30
  (min-width:1024px) 33vw,
32
31
  100vw
33
- `,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,oa.jsxs)("div",{className:"relative oa-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,oa.jsx)("div",{children:(0,oa.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 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,oa.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,oa.jsx)("span",{className:"block",children:ki(r)})})})}),(0,oa.jsxs)("div",{className:"oa-auto space-y-2 text-white md:space-y-5",children:[(0,oa.jsx)("div",{className:"inline-flex flex-wrap items-center gap-oa-5 gap-y-2",children:(0,oa.jsx)("p",{className:Qp})}),(0,oa.jsx)("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:(0,oa.jsx)(ut,{"aria-label":o,href:`/${n}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,oa.jsx)("div",{children:(0,oa.jsxs)(ut,{href:`/${n}/${e}`||"#",className:l(Qp,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,oa.jsx)("span",{children:"Read article"}),(0,oa.jsx)("span",{className:"text-accent",children:(0,oa.jsx)(Hc.FaArrowRight,{})})]})})]})]})]})}var eu=w(require("next/image"));function s0({image:e,title:t,content:a,link:o,theme:r}){return(0,oa.jsxs)("section",{className:"container relative",children:[(0,oa.jsx)("div",{className:l("absolute oa-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),(0,oa.jsx)("div",{className:l("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:(0,oa.jsxs)("div",{className:"w-full flex flex-row items-center justify-center",children:[(0,oa.jsxs)("div",{className:l("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"oa-48"),children:[(0,oa.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),(0,oa.jsx)("p",{className:"oa-4 text-gray-700 text-lg",children:a&&(0,oa.jsx)(se,{enableGutter:!1,content:a,enableProse:!1,className:l("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),(0,oa.jsx)("button",{className:"oa-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:(0,oa.jsx)("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),(0,oa.jsx)("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&(0,oa.jsx)(eu.default,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}var tu=w(require("next/image"));var i0=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,id:n,continueTheme:i})=>{let d=m=>(0,oa.jsxs)("div",{className:"select-none",children:[m&&typeof m=="object"&&(0,oa.jsx)(Pa,{fill:!0,imgClassName:"oa-5 object-cover",priority:!1,loading:"lazy",resource:m}),m&&typeof m=="string"&&(0,oa.jsx)("div",{children:(0,oa.jsx)(tu.default,{className:"-oa-10 object-cover",alt:"",fill:!0,priority:!0,src:m})})]});if(t==="dark"&&a==="slide")return(0,oa.jsx)("section",{id:n||"next-section",className:"sticky md:top-0 h-screen",children:(0,oa.jsxs)("div",{className:"dark pt-0 min-h-[80vh]",children:[(0,oa.jsx)(Zt,{className:"oa-10",position:"dark-top"}),(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"flex items-center bg-black justify-center pt-12",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)(Zt,{className:"oa-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return(0,oa.jsx)("section",{id:n||"next-section",className:"sticky top-0 light pt-0 h-screen",children:(0,oa.jsxs)("div",{className:"sticky top-0 light pt-0 h-screen",children:[(0,oa.jsx)(Zt,{className:"oa-10",position:"light-top"}),(0,oa.jsxs)("div",{className:"relative bg-white",children:[(0,oa.jsx)("div",{className:"flex items-center bg-white justify-center pt-12",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsx)("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"flex items-center justify-center pt-12",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"bottom-right"})]})})});if(t==="light")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsx)("div",{className:l("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:(0,oa.jsx)("div",{className:"flex items-center pt-8 justify-center",children:(0,oa.jsx)("div",{className:"container",children:e})})})});if(t==="dark")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"bottom-right"}),(0,oa.jsx)("div",{className:"flex items-center justify-center pt-12 bg-black",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)(Zt,{className:"text-accent oa-10",position:"top"})]})});if(t==="last")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"bottom-right"}),(0,oa.jsx)("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:(0,oa.jsx)("div",{className:"container",children:e})})]})})};var au=w(require("next/link"));var n0=({dynamicServiceDetail:e,style:t})=>{let a=e;return(0,oa.jsx)("div",{className:"container",children:(0,oa.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,oa.jsxs)("div",{className:l("w-full text-left prose"),children:[(0,oa.jsx)("h2",{className:"text-primary",children:a.title}),(0,oa.jsx)("div",{className:"",children:(0,oa.jsx)(se,{enableGutter:!1,content:a.description,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})}),(0,oa.jsx)(T,{asChild:!0,className:"oa-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:(0,oa.jsx)(au.default,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&(0,oa.jsx)("div",{className:l("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:(0,oa.jsx)("i",{className:`${a.icon.type} oa-${a.icon.iconName} oa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};var ru=w(require("html2canvas")),hd=require("jspdf");function l0({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,Md.useState)(t),{contentWithIds:n,tableOfContents:i}=mr(o);if(e==="slideshow")return(0,oa.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,oa.jsx)(wi,{blocks:n,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(d0,{layout:r,changeLayout:s}),(0,oa.jsx)(Bl,{page:a.page,layout:r,logoImage:a.logoImage})]})}var d0=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let n=document.getElementById("printable-content")?.innerHTML;if(n){var s=window.document.body.innerHTML;window.document.body.innerHTML=n,window.print(),window.document.body.innerHTML=s}}else await new Promise(n=>setTimeout(n,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let n=document.getElementById(s);if(!n)throw new Error(`Element with id ${s} not found`);let i=document.createElement("canvas"),d=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*d,i.height=Math.max(n.clientHeight||0)*d+100;let m=i.getContext("2d");if(!m)throw new Error("Failed Md get 2D context");let c=m.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((D,re)=>(D[re.src]=re,D),{});m.drawImage=function(...D){let[re,j,L,P,G,v,te,_,Le]=D;if(re instanceof HTMLImageElement){let lt=p[re.src].style.objectFit||"fill",aa=p[re.src].style.objectPosition||"center center";G=re.height,P=re.width;let Ut=P/G,Lt=_/Le,[Bt,ke]=aa.split(" ");switch(ke||(ke=Bt),lt){case"cover":if(Ut>Lt){let he=G*Lt,Re=(P-he)/2;Bt==="left"&&(Re=0),Bt==="right"&&(Re=P-he),j+=Re,P=he}else{let he=P/Lt,Re=(G-he)/2;ke==="top"&&(Re=0),ke==="bottom"&&(Re=G-he),L+=Re,G=he}break;case"contain":if(Ut>Lt){let he=_/Ut,Re=(Le-he)/2;ke==="top"&&(Re=0),ke==="bottom"&&(Re=Le-he),te+=Re,Le=he}else{let he=Le*Ut,Re=(_-he)/2;Bt==="left"&&(Re=0),Bt==="right"&&(Re=_-he),v+=Re,_=he}break;case"fill":break}}return c.call(m,re,j,L,P,G,v,te,_,Le)};let u=document.getElementById(s);if(!u)throw new Error(`Element with id ${s} not found`);var g=i.width,b=i.height;let y=(await(0,ru.default)(u,{canvas:i,windowHeight:b,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),A=new hd.jsPDF({}).getImageProperties(y),h=297,k=h*(A.height/A.width),N=new hd.jsPDF({unit:"oa",format:[h,k]});N.addImage(y,"PNG",0,0,h,k),N.save("print.pdf")};return(0,oa.jsx)("div",{className:l("fixed right-2 oa-20 top-20 space-y-6 print:hidden"),children:(0,oa.jsx)("div",{className:"flex flex-row-reverse oa-20 min-w-70 gap-4",children:(0,oa.jsxs)("nav",{className:"oa-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,oa.jsxs)("a",{onClick:a,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,oa.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,oa.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,oa.jsxs)("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,oa.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,oa.jsxs)("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,oa.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,oa.jsxs)("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,oa.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,CapabilityMenu,Card,Categories,ChatCardArtefact,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,CommentSection,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DashboardHero,DealCard,DealDetails,DeliveryLeadSubmission,DeliveryLeadSubmissionList,DeliveryLeadSubmissionWithList,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EditableField,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,FileList,FileView,Filter,FlowPrintable,Footer,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,KnowledgeBrowser,KnowledgeView,Label,LightTop,LocationsSection,Logo,LowImpactHero,MOTD,MainPageSection,Mask,Media,MediaBlock,MediumImpactHero,NavigationTabs,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,Section,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceDetail,ServiceDetailSection,ServiceSection,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,Switch,Tabs,TabsContent,TabsList,TabsTrigger,TeamCard,TeamsIndexView,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,defaultColorScheme,findCapabilityByPath,getAllCapabilities,getCapabilityByTeam,getContextualActions,getTableOfContents,reducer,testCapabilities,toast,toggleVariants,useIsMobile,useSidebar,useToast});
32
+ `,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,oa.jsxs)("div",{className:"relative oa-10 flex h-full flex-1 w-full flex-col",children:[r&&(0,oa.jsx)("div",{children:(0,oa.jsx)("div",{className:"inline-grid w-full items-center justify-center rounded-5 bg-background/70 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,oa.jsx)("time",{dateTime:r,className:"text-foreground",children:(0,oa.jsx)("span",{className:"block",children:Pi(r)})})})}),(0,oa.jsxs)("div",{className:"oa-auto space-y-2 text-white md:space-y-5",children:[(0,oa.jsx)("div",{className:"inline-flex flex-wrap items-center gap-oa-5 gap-y-2",children:(0,oa.jsx)("p",{className:qp})}),(0,oa.jsx)("h3",{className:"text-md font-bold w-full h-28 p-6 bg-background/70 text-foreground md:text-lg",children:(0,oa.jsx)(ut,{"aria-label":o,href:`/${n}/${e}`||"#",className:"transition-colors duration-300 hover:text-primary",children:o})}),(0,oa.jsx)("div",{children:(0,oa.jsxs)(ut,{href:`/${n}/${e}`||"#",className:l(qp,"gap-[.625rem] bg-background/80 px-4 py-2 mx-6 my-3 text-base font-semibold uppercase text-foreground transition-colors duration-300 hover:text-accent-foreground"),children:[(0,oa.jsx)("span",{children:"Read article"}),(0,oa.jsx)("span",{className:"text-accent",children:(0,oa.jsx)(Fc.FaArrowRight,{})})]})})]})]})]})}var Zp=w(require("next/image"));function r0({image:e,title:t,content:a,link:o,theme:r}){return(0,oa.jsxs)("section",{className:"container relative",children:[(0,oa.jsx)("div",{className:l("absolute oa-[50%] w-full h-full",r==="dark"?"bg-white":"bg-black")}),(0,oa.jsx)("div",{className:l("flex flex-col md:flex-row items-center justify-between gap-12 px-6 md:px-16 py-16 bg-background",r,r==="dark"&&"bg-black clip-custom-top-r"),children:(0,oa.jsxs)("div",{className:"w-full flex flex-row items-center justify-center",children:[(0,oa.jsxs)("div",{className:l("w-full md:w-1/2 max-w-lg text-left",r==="dark"&&"oa-48"),children:[(0,oa.jsx)("h2",{className:"text-3xl md:text-5xl text-primary",children:t}),(0,oa.jsx)("p",{className:"oa-4 text-gray-700 text-lg",children:a&&(0,oa.jsx)(se,{enableGutter:!1,content:a,enableProse:!1,className:l("prose prose-headings:text-gray-700 prose-p:text-gray-700")})}),(0,oa.jsx)("button",{className:"oa-6 px-6 py-3 border border-1 border-accent text-foreground bg-background rounded-full text-base hover:bg-accent hover:text-white transition",children:(0,oa.jsx)("a",{href:o.url||"#",children:o.label||"Learn more"})})]}),(0,oa.jsx)("div",{className:"w-full md:w-1/2 flex justify-center",children:e&&e.url&&(0,oa.jsx)(Zp.default,{src:e.url,alt:e.alt||`Image of ${t}`,width:400,height:400,className:"max-w-full"})})]})})]})}var eu=w(require("next/image"));var s0=({children:e,theme:t,style:a,neighbours:o,shape:r,image:s,id:n,continueTheme:i})=>{let d=m=>(0,oa.jsxs)("div",{className:"select-none",children:[m&&typeof m=="object"&&(0,oa.jsx)(Pa,{fill:!0,imgClassName:"oa-5 object-cover",priority:!1,loading:"lazy",resource:m}),m&&typeof m=="string"&&(0,oa.jsx)("div",{children:(0,oa.jsx)(eu.default,{className:"-oa-10 object-cover",alt:"",fill:!0,priority:!0,src:m})})]});if(t==="dark"&&a==="slide")return(0,oa.jsx)("section",{id:n||"next-section",className:"sticky md:top-0 h-screen",children:(0,oa.jsxs)("div",{className:"dark pt-0 min-h-[80vh]",children:[(0,oa.jsx)(Zt,{className:"oa-10",position:"dark-top"}),(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"flex items-center bg-black justify-center pt-12",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)(Zt,{className:"oa-10",position:"dark-bottom"})]})]})});if(t==="light"&&a==="slide")return(0,oa.jsx)("section",{id:n||"next-section",className:"sticky top-0 light pt-0 h-screen",children:(0,oa.jsxs)("div",{className:"sticky top-0 light pt-0 h-screen",children:[(0,oa.jsx)(Zt,{className:"oa-10",position:"light-top"}),(0,oa.jsxs)("div",{className:"relative bg-white",children:[(0,oa.jsx)("div",{className:"flex items-center bg-white justify-center pt-12",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)("div",{className:"h-[200px] bg-white"})]})]})});if(t==="first")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsx)("div",{className:"sticky top-0 light bg-background pt-6 min-h-[80vh]",children:(0,oa.jsxs)("div",{className:"relative",children:[(0,oa.jsx)("div",{className:"flex items-center justify-center pt-12",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"bottom-right"})]})})});if(t==="light")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsx)("div",{className:l("sticky top-0 light bg-background min-h-[50vh]","pb-10"),children:(0,oa.jsx)("div",{className:"flex items-center pt-8 justify-center",children:(0,oa.jsx)("div",{className:"container",children:e})})})});if(t==="dark")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"bottom-right"}),(0,oa.jsx)("div",{className:"flex items-center justify-center pt-12 bg-black",children:(0,oa.jsx)("div",{className:"container",children:e})}),(0,oa.jsx)(Zt,{className:"text-accent oa-10",position:"top"})]})});if(t==="last")return(0,oa.jsx)("section",{id:n||"next-section",className:"",children:(0,oa.jsxs)("div",{className:"sticky -top-[1px] dark min-h-[80vh] bg-white",children:[(0,oa.jsx)(Zt,{className:"text-black oa-10",position:"bottom-right"}),(0,oa.jsx)("div",{className:"flex items-center justify-center pb-12 bg-black min-h-[80vh]",children:(0,oa.jsx)("div",{className:"container",children:e})})]})})};var tu=w(require("next/link"));var i0=({dynamicServiceDetail:e,style:t})=>{let a=e;return(0,oa.jsx)("div",{className:"container",children:(0,oa.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-2 gap-1 items-center justify-center",children:[(0,oa.jsxs)("div",{className:l("w-full text-left prose"),children:[(0,oa.jsx)("h2",{className:"text-primary",children:a.title}),(0,oa.jsx)("div",{className:"",children:(0,oa.jsx)(se,{enableGutter:!1,content:a.description,enableProse:!1,className:l("prose prose-headings:text-foreground prose-p:text-foreground")})}),(0,oa.jsx)(T,{asChild:!0,className:"oa-6 px-6 py-3 border border-accent text-foreground bg-background rounded-full hover:bg-accent hover:text-accent-foreground transition no-underline",children:(0,oa.jsx)(tu.default,{href:`/${a.slug}`,children:"Learn more"})})]}),a.icon&&typeof a.icon=="object"&&"type"in a.icon&&"iconName"in a.icon&&(0,oa.jsx)("div",{className:l("w-full h-full min-h-96 py-6 p-0 md:p-16 flex justify-center"),children:(0,oa.jsx)("i",{className:`${a.icon.type} oa-${a.icon.iconName} oa-10x w-3/4 h-full text-foreground fill-gradient-linear`,style:{width:"90%"}})})]})})};var ou=w(require("html2canvas")),hd=require("jspdf");function n0({type:e="slideshow",orientation:t="landscape",...a}){let o=a.page,[r,s]=(0,Md.useState)(t),{contentWithIds:n,tableOfContents:i}=mr(o);if(e==="slideshow")return(0,oa.jsx)("div",{className:"flex fixed flex-col w-screen h-screen max-h-screen overflow-auto overscroll-contain",children:(0,oa.jsx)(Ni,{blocks:n,hero:a.hero,title:a.page.title,logoImage:a.logoImage})});if(e==="print")return(0,oa.jsxs)(oa.Fragment,{children:[(0,oa.jsx)(l0,{layout:r,changeLayout:s}),(0,oa.jsx)(Bl,{page:a.page,layout:r,logoImage:a.logoImage})]})}var l0=({changeLayout:e,layout:t="landscape"})=>{let a=async()=>{if(t==="flow"){let n=document.getElementById("printable-content")?.innerHTML;if(n){var s=window.document.body.innerHTML;window.document.body.innerHTML=n,window.print(),window.document.body.innerHTML=s}}else await new Promise(n=>setTimeout(n,300)),window.print()},o=s=>{e&&e(s)},r=async s=>{let n=document.getElementById(s);if(!n)throw new Error(`Element with id ${s} not found`);let i=document.createElement("canvas"),d=window.devicePixelRatio;i.width=Math.max(n.clientWidth||0)*d,i.height=Math.max(n.clientHeight||0)*d+100;let m=i.getContext("2d");if(!m)throw new Error("Failed Md get 2D context");let c=m.drawImage,p=Array.from(n.getElementsByTagName("img")).reduce((D,re)=>(D[re.src]=re,D),{});m.drawImage=function(...D){let[re,j,L,P,G,v,te,_,Le]=D;if(re instanceof HTMLImageElement){let lt=p[re.src].style.objectFit||"fill",aa=p[re.src].style.objectPosition||"center center";G=re.height,P=re.width;let Ut=P/G,Lt=_/Le,[Bt,ke]=aa.split(" ");switch(ke||(ke=Bt),lt){case"cover":if(Ut>Lt){let he=G*Lt,Re=(P-he)/2;Bt==="left"&&(Re=0),Bt==="right"&&(Re=P-he),j+=Re,P=he}else{let he=P/Lt,Re=(G-he)/2;ke==="top"&&(Re=0),ke==="bottom"&&(Re=G-he),L+=Re,G=he}break;case"contain":if(Ut>Lt){let he=_/Ut,Re=(Le-he)/2;ke==="top"&&(Re=0),ke==="bottom"&&(Re=Le-he),te+=Re,Le=he}else{let he=Le*Ut,Re=(_-he)/2;Bt==="left"&&(Re=0),Bt==="right"&&(Re=_-he),v+=Re,_=he}break;case"fill":break}}return c.call(m,re,j,L,P,G,v,te,_,Le)};let u=document.getElementById(s);if(!u)throw new Error(`Element with id ${s} not found`);var g=i.width,b=i.height;let y=(await(0,ou.default)(u,{canvas:i,windowHeight:b,windowWidth:g,scale:window.devicePixelRatio})).toDataURL("image/png"),A=new hd.jsPDF({}).getImageProperties(y),h=297,k=h*(A.height/A.width),N=new hd.jsPDF({unit:"mm",format:[h,k]});N.addImage(y,"PNG",0,0,h,k),N.save("print.pdf")};return(0,oa.jsx)("div",{className:l("fixed right-2 oa-20 top-20 space-y-6 print:hidden"),children:(0,oa.jsx)("div",{className:"flex flex-row-reverse oa-20 min-w-70 gap-4",children:(0,oa.jsxs)("nav",{className:"oa-20 flex grow-0 justify-end gap-4 border-t border-gray-200 bg-white/50 p-2.5 shadow-lg backdrop-blur-lg dark:border-slate-600/60 dark:bg-slate-800/50 min-h-[auto] min-w-[54px] flex-col rounded-lg border",children:[(0,oa.jsxs)("a",{onClick:a,className:"flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 text-gray-700 dark:text-gray-400 hover:text-accent",children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M96 160l-32 0 0-96C64 28.7 92.7 0 128 0L357.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 18.7 28.3 18.7 45.3l0 69.5-32 0 0-69.5c0-8.5-3.4-16.6-9.4-22.6L380.1 41.4c-6-6-14.1-9.4-22.6-9.4L128 32c-17.7 0-32 14.3-32 32l0 96zm352 64L64 224c-17.7 0-32 14.3-32 32l0 128 32 0 0-32c0-17.7 14.3-32 32-32l320 0c17.7 0 32 14.3 32 32l0 32 32 0 0-128c0-17.7-14.3-32-32-32zm0 192l0 64c0 17.7-14.3 32-32 32L96 512c-17.7 0-32-14.3-32-32l0-64-32 0c-17.7 0-32-14.3-32-32L0 256c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 128c0 17.7-14.3 32-32 32l-32 0zM96 352l0 128 320 0 0-128L96 352zM432 248a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"})}),(0,oa.jsx)("small",{className:"text-xs font-medium",children:"Print"})]}),(0,oa.jsx)("div",{className:"flex-grow border-t border-gray-200 dark:border-slate-600/60"}),(0,oa.jsxs)("a",{onClick:()=>o("portrait"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="portrait"?"text-accent":"hover:text-accent"),children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M352 448c0 17.7-14.3 32-32 32L64 480c-17.7 0-32-14.3-32-32L32 64c0-17.7 14.3-32 32-32l256 0c17.7 0 32 14.3 32 32l0 384zM384 64c0-35.3-28.7-64-64-64L64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384z"})}),(0,oa.jsx)("small",{className:"text-xs",children:"Portrait"})]}),(0,oa.jsxs)("a",{onClick:()=>o("landscape"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="landscape"?"text-accent":"hover:text-accent"),children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M576 96c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32L64 416c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l512 0zM64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l512 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64z"})}),(0,oa.jsx)("small",{className:"text-xs",children:"Landscape"})]}),(0,oa.jsxs)("a",{onClick:()=>o("flow"),className:l("flex aspect-square min-h-[25px] w-12 flex-col items-center justify-center gap-1 rounded-md p-1.5 hover:text-accent",t==="flow"?"text-accent":"hover:text-accent"),children:[(0,oa.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",fill:"currentColor",children:(0,oa.jsx)("path",{d:"M266.2 4.7C273 1.6 280.5 0 288 0s15 1.6 21.8 4.7l217.4 97.5c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 251.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 153.9C38.6 149.3 32 139.2 32 128s6.6-21.3 16.8-25.9L266.2 4.7zM288 32c-3 0-6 .6-8.8 1.9L69.3 128l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-210-94.1C294 32.6 291 32 288 32zM48.8 358.1l45.9-20.6 39.1 17.5L69.3 384l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 507.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 409.9C38.6 405.3 32 395.2 32 384s6.6-21.3 16.8-25.9zM94.7 209.5l39.1 17.5L69.3 256l210 94.1c2.8 1.2 5.7 1.9 8.8 1.9s6-.6 8.8-1.9l210-94.1-64.5-28.9 39.1-17.5 45.9 20.6c10.2 4.6 16.8 14.7 16.8 25.9s-6.6 21.3-16.8 25.9L309.8 379.3c-6.9 3.1-14.3 4.7-21.8 4.7s-15-1.6-21.8-4.7L48.8 281.9C38.6 277.3 32 267.2 32 256s6.6-21.3 16.8-25.9l45.9-20.6z"})}),(0,oa.jsx)("small",{className:"text-xs",children:"Continuous"})]})]})})})};0&&(module.exports={AOSInit,AboutSection,Alert,AlertDescription,AlertTitle,ApproveLeave,Avatar,AvatarFallback,AvatarImage,Badge,BannerBlock,BlogCard,BlogDetail,BlogList,BlogListSection,BrandLogo,Breadcrumb,BreadcrumbEllipsis,BreadcrumbItem,BreadcrumbLink,BreadcrumbList,BreadcrumbPage,BreadcrumbSeparator,Breadcrumbs,Button,CMSLink,CRMCogeBoard,CRMKanbanBoard,Calendar,CalendarView,CallToActionBlock,CallToActionBlockOld,CapabilityMenu,Card,Categories,ChatCardArtefact,ChatCardTask,ChatInterfaceMessages,ChatMessage,Checkbox,CodeBlock,Collapsible,CollapsibleContent,CollapsibleTrigger,CollectionArchive,Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut,CommentSection,ContactSection,Container,ContentBlock,ContentCard,CopyButton,CustomLink,CustomerCard,DarkTop,DashboardHero,DealCard,DealDetails,DeliveryLeadSubmission,DeliveryLeadSubmissionList,DeliveryLeadSubmissionWithList,Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger,DropdownMenu,DropdownMenuCheckboxItem,DropdownMenuContent,DropdownMenuGroup,DropdownMenuItem,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger,DropdownMenuTrigger,DynamicIcon,EditableField,EventCard,FeatureCard,FeatureGrid,FeaturesBlock,FileList,FileView,Filter,FlowPrintable,Footer,Form,Header,HeaderDesktop,HeaderMobile,HeadingImage,Hero,HighImpactHero,HolidayGrid,HolidayTracker,HoverCard,HoverCardContent,HoverCardTrigger,Image,ImageBlock,ImageSection,InfoTile,Input,Insight,KanbanColumn,KnowledgeBrowser,KnowledgeView,Label,LightTop,LocationsSection,Logo,LowImpactHero,MOTD,MainPageSection,Mask,Media,MediaBlock,MediumImpactHero,NavigationTabs,NewCustomerForm,NewDealForm,NewsGrid,OrgChart,PagePrintable,PageRange,PageShape,Pagination,PayloadPagination,Popover,PopoverAnchor,PopoverContent,PopoverTrigger,PostHero,PricingCard,PricingSection,Printable,ProjectCard,ProjectTeam,ProposalSummary,Publish,RelatedContent,RelatedPagesMenu,RelatedPosts,RenderBlocks,RenderBlocksWithShapes,RenderHero,RequestLeave,ReusableContentBlock,RichText,ScrollArea,ScrollBar,Section,SectionHero,Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectScrollDownButton,SelectScrollUpButton,SelectSeparator,SelectTrigger,SelectValue,Separator,ServiceCard,ServiceDetail,ServiceDetailSection,ServiceSection,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,Switch,Tabs,TabsContent,TabsList,TabsTrigger,TeamCard,TeamsIndexView,TextAndImages,Textarea,Theme,ThemeProvider,ThemeWithShapes,Toast,ToastAction,ToastClose,ToastDescription,ToastProvider,ToastTitle,ToastViewport,Toaster,Toggle,ToggleGroup,ToggleGroupItem,Tooltip,TooltipContent,TooltipProvider,TooltipTrigger,VideoHeader,WhyUs,badgeVariants,buttonVariants,cn,defaultColorScheme,findCapabilityByPath,getAllCapabilities,getCapabilityByTeam,getContextualActions,getTableOfContents,reducer,testCapabilities,toast,toggleVariants,useIsMobile,useSidebar,useToast});