cortex-react-components 2.26.3 → 2.26.5

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 (200) hide show
  1. package/dist/{chunk-BDNY6OKE.mjs → chunk-2GM2LPLB.mjs} +1 -1
  2. package/dist/{chunk-2GZQYAN3.mjs → chunk-2OOJ4ZFB.mjs} +1 -1
  3. package/dist/{chunk-UX5OJ3WS.mjs → chunk-3ANJOET7.mjs} +1 -1
  4. package/dist/{chunk-HB57GPGK.mjs → chunk-3M5KHST3.mjs} +1 -1
  5. package/dist/{chunk-NXG2Y4N4.mjs → chunk-4SRUEQTP.mjs} +1 -1
  6. package/dist/{chunk-AGWQ5S2Z.mjs → chunk-5NIEZE7A.mjs} +1 -1
  7. package/dist/chunk-6YHCNPFB.mjs +4 -0
  8. package/dist/{chunk-PRK2XFAZ.mjs → chunk-7OMPPFGG.mjs} +1 -1
  9. package/dist/{chunk-CNCT3JZV.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  10. package/dist/{chunk-WDZOGIT2.mjs → chunk-BQQ4V4PX.mjs} +1 -1
  11. package/dist/{chunk-R3SDBXF2.mjs → chunk-CKU2T3AN.mjs} +1 -1
  12. package/dist/{chunk-RIFUOB7A.mjs → chunk-EFNFK7TR.mjs} +1 -1
  13. package/dist/{chunk-T36QUKC6.mjs → chunk-F64CA5CH.mjs} +1 -1
  14. package/dist/{chunk-VDN4LQSS.mjs → chunk-F6DMXMR4.mjs} +1 -1
  15. package/dist/{chunk-KRLNPNMZ.mjs → chunk-FEWOSBUJ.mjs} +1 -1
  16. package/dist/{chunk-CJ2ZX7QN.mjs → chunk-FMXCT6LU.mjs} +1 -1
  17. package/dist/{chunk-BGADMIWV.mjs → chunk-FYQBRCQM.mjs} +1 -1
  18. package/dist/{chunk-JLUX7EHB.mjs → chunk-GAZHKHGB.mjs} +1 -1
  19. package/dist/{chunk-5KS3DITB.mjs → chunk-GETYSIZV.mjs} +1 -1
  20. package/dist/chunk-GLZEHRPY.mjs +4 -0
  21. package/dist/chunk-HD6E7KI2.mjs +4 -0
  22. package/dist/{chunk-M74BIPBM.mjs → chunk-HDKHF3EA.mjs} +1 -1
  23. package/dist/{chunk-BN747TQM.mjs → chunk-HKMNAXLM.mjs} +1 -1
  24. package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
  25. package/dist/{chunk-6LY5CH7J.mjs → chunk-JCWFPKF3.mjs} +1 -1
  26. package/dist/{chunk-OP6ZWZIM.mjs → chunk-JVTCOOUV.mjs} +1 -1
  27. package/dist/{chunk-DJ2KA3MS.mjs → chunk-KBLVWXLK.mjs} +1 -1
  28. package/dist/{chunk-S3P6OGB7.mjs → chunk-KVLUT4U2.mjs} +1 -1
  29. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  30. package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  31. package/dist/chunk-LCEEFZH7.mjs +4 -0
  32. package/dist/chunk-LEF6M5ZD.mjs +4 -0
  33. package/dist/{chunk-ERHNVIOZ.mjs → chunk-LHO4WFYP.mjs} +1 -1
  34. package/dist/{chunk-JT65KF7C.mjs → chunk-MO4HRQEL.mjs} +1 -1
  35. package/dist/{chunk-DKRRVTCV.mjs → chunk-MS7YIAWP.mjs} +1 -1
  36. package/dist/chunk-MXMW65GM.mjs +4 -0
  37. package/dist/{chunk-GIL2SMPM.mjs → chunk-O24GFE6Q.mjs} +1 -1
  38. package/dist/chunk-P2B3OITE.mjs +4 -0
  39. package/dist/{chunk-PZZTGPEO.mjs → chunk-P6OSMPUQ.mjs} +1 -1
  40. package/dist/{chunk-23XORW7A.mjs → chunk-P7S6XFU4.mjs} +1 -1
  41. package/dist/{chunk-4NHQXOKZ.mjs → chunk-PNUBVBSR.mjs} +1 -1
  42. package/dist/{chunk-66ODXUVL.mjs → chunk-PTZT4QJW.mjs} +1 -1
  43. package/dist/{chunk-YJ7XPZWV.mjs → chunk-QUMUO63J.mjs} +1 -1
  44. package/dist/{chunk-JUFFNFV6.mjs → chunk-R6AYIVIR.mjs} +1 -1
  45. package/dist/{chunk-67PJ7D4O.mjs → chunk-RS4VD3ML.mjs} +1 -1
  46. package/dist/{chunk-CTTBF7F4.mjs → chunk-RS4WAAGI.mjs} +1 -1
  47. package/dist/{chunk-Y62OBV2E.mjs → chunk-U3FYDDE2.mjs} +1 -1
  48. package/dist/chunk-U3PUWUVM.mjs +4 -0
  49. package/dist/{chunk-DVE2KPLR.mjs → chunk-WH6JZSIA.mjs} +1 -1
  50. package/dist/{chunk-PXLSH6S2.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  51. package/dist/{chunk-I6OBIS4J.mjs → chunk-ZG5N4C4S.mjs} +1 -1
  52. package/dist/components/AdvancedComponents/AppSidebar.d.ts +3 -2
  53. package/dist/components/AdvancedComponents/AppSidebar.js +1 -2
  54. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  55. package/dist/components/AdvancedComponents/app-header.js +1 -1
  56. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  57. package/dist/components/AdvancedComponents/index.js +1 -1
  58. package/dist/components/AdvancedComponents/index.mjs +1 -1
  59. package/dist/components/AdvancedComponents/navigation-tabs.js +1 -1
  60. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  61. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  62. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  63. package/dist/components/Blocks/Banner.mjs +1 -1
  64. package/dist/components/Blocks/CallToAction.mjs +1 -1
  65. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  66. package/dist/components/Blocks/Content.mjs +1 -1
  67. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  68. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  69. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  70. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  71. package/dist/components/Blocks/index.mjs +1 -1
  72. package/dist/components/Cards/ContentCard.mjs +1 -1
  73. package/dist/components/Cards/FeatureCard.mjs +1 -1
  74. package/dist/components/Cards/index.mjs +1 -1
  75. package/dist/components/Chat/CopilotInterface.js +3 -3
  76. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  77. package/dist/components/Chat/demo-long-messages.js +5 -5
  78. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  79. package/dist/components/Chat/demo-tests.js +5 -5
  80. package/dist/components/Chat/demo-tests.mjs +1 -1
  81. package/dist/components/Chat/demo.js +3 -3
  82. package/dist/components/Chat/demo.mjs +1 -1
  83. package/dist/components/Chat/example-usage.js +3 -3
  84. package/dist/components/Chat/example-usage.mjs +1 -1
  85. package/dist/components/Chat/example-with-vercel-ai.js +3 -3
  86. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  87. package/dist/components/Chat/index.js +3 -3
  88. package/dist/components/Chat/index.mjs +1 -1
  89. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  90. package/dist/components/DigitalColleagues/DigitalColleageusLayout.js +1 -1
  91. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  92. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  93. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +5 -5
  94. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  95. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  96. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  97. package/dist/components/DigitalColleagues/Views/index.js +5 -5
  98. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  99. package/dist/components/DigitalColleagues/index.js +5 -5
  100. package/dist/components/DigitalColleagues/index.mjs +1 -1
  101. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  102. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  103. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  104. package/dist/components/Foundary/MainPage.mjs +1 -1
  105. package/dist/components/Foundary/Pages/dashboardpage.js +6 -6
  106. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  107. package/dist/components/Foundary/Views/ColleaguesView.d.ts +12 -1
  108. package/dist/components/Foundary/Views/ColleaguesView.js +1 -1
  109. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  110. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  111. package/dist/components/Foundary/Views/index.js +5 -5
  112. package/dist/components/Foundary/Views/index.mjs +1 -1
  113. package/dist/components/Foundary/colleague-card.js +1 -1
  114. package/dist/components/Foundary/colleague-card.mjs +1 -1
  115. package/dist/components/Foundary/colleague-form.d.ts +12 -1
  116. package/dist/components/Foundary/colleague-form.js +1 -1
  117. package/dist/components/Foundary/colleague-form.mjs +1 -1
  118. package/dist/components/Foundary/file-edit.mjs +1 -1
  119. package/dist/components/Foundary/foundary-clone.js +1 -1
  120. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  121. package/dist/components/Foundary/foundary-layout.d.ts +2 -1
  122. package/dist/components/Foundary/foundary-layout.js +1 -1
  123. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  124. package/dist/components/Foundary/index.js +5 -5
  125. package/dist/components/Foundary/index.mjs +1 -1
  126. package/dist/components/Foundary/knowledge-search.js +1 -1
  127. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  128. package/dist/components/Foundary/types.d.ts +32 -9
  129. package/dist/components/HeaderFooter/Header.mjs +1 -1
  130. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  131. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  132. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  133. package/dist/components/HeaderFooter/index.mjs +1 -1
  134. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  135. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  136. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  137. package/dist/components/Heros/PostHero/index.mjs +1 -1
  138. package/dist/components/Heros/RenderHero.mjs +1 -1
  139. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  140. package/dist/components/Heros/index.mjs +1 -1
  141. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  142. package/dist/components/Layouts/Print.mjs +1 -1
  143. package/dist/components/Layouts/SlideShow.mjs +1 -1
  144. package/dist/components/Layouts/index.mjs +1 -1
  145. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  146. package/dist/components/Menus/SidebarRight.mjs +1 -1
  147. package/dist/components/Menus/index.mjs +1 -1
  148. package/dist/components/Other/index.mjs +1 -1
  149. package/dist/components/Payload/RichText/index.mjs +1 -1
  150. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  151. package/dist/components/Payload/index.mjs +1 -1
  152. package/dist/components/Projects/FileView.js +1 -1
  153. package/dist/components/Projects/FileView.mjs +1 -1
  154. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  155. package/dist/components/Projects/ProjectPage.js +5 -5
  156. package/dist/components/Projects/ProjectPage.mjs +1 -1
  157. package/dist/components/Projects/ProjectView.js +1 -1
  158. package/dist/components/Projects/ProjectView.mjs +1 -1
  159. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  160. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  161. package/dist/components/Projects/file-list.mjs +1 -1
  162. package/dist/components/Projects/index.mjs +1 -1
  163. package/dist/components/dc-temp/index.js +1 -1
  164. package/dist/components/dc-temp/index.mjs +1 -1
  165. package/dist/components/index.js +20 -20
  166. package/dist/components/index.mjs +1 -1
  167. package/dist/components/ui/index.mjs +1 -1
  168. package/dist/components/ui/sidebar.mjs +1 -1
  169. package/dist/index.js +27 -27
  170. package/dist/index.mjs +1 -1
  171. package/dist/metafile-cjs.json +1 -1
  172. package/dist/metafile-esm.json +1 -1
  173. package/dist/pages/Blog.mjs +1 -1
  174. package/dist/pages/Documentation.mjs +1 -1
  175. package/dist/pages/IndexPage.mjs +1 -1
  176. package/dist/pages/Intranet.mjs +1 -1
  177. package/dist/pages/LandingPage.mjs +1 -1
  178. package/dist/pages/Page.mjs +1 -1
  179. package/dist/pages/Publish.mjs +1 -1
  180. package/dist/pages/Website.mjs +1 -1
  181. package/dist/sections/AboutSection.mjs +1 -1
  182. package/dist/sections/BlogDetail.mjs +1 -1
  183. package/dist/sections/BlogList.mjs +1 -1
  184. package/dist/sections/BlogListSection.mjs +1 -1
  185. package/dist/sections/ContactSection.mjs +1 -1
  186. package/dist/sections/PageSections.mjs +1 -1
  187. package/dist/sections/PricingSection.mjs +1 -1
  188. package/dist/sections/ServiceDetail.mjs +1 -1
  189. package/dist/sections/ServiceDetailSection.mjs +1 -1
  190. package/dist/sections/ServiceSection.mjs +1 -1
  191. package/dist/sections/index.mjs +1 -1
  192. package/package.json +1 -1
  193. package/dist/chunk-4WA47ZQA.mjs +0 -4
  194. package/dist/chunk-5HT2KC5I.mjs +0 -4
  195. package/dist/chunk-CRAFZGCI.mjs +0 -4
  196. package/dist/chunk-FGEFYI5E.mjs +0 -4
  197. package/dist/chunk-GPFPTU7U.mjs +0 -4
  198. package/dist/chunk-KKW3FINI.mjs +0 -4
  199. package/dist/chunk-NDZ26EG6.mjs +0 -4
  200. package/dist/chunk-Y7H3EUBR.mjs +0 -4
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-DVE2KPLR.mjs";import"../../../chunk-BGQC6IQK.mjs";import"../../../chunk-I6XKBCH4.mjs";import"../../../chunk-WLI2YTOQ.mjs";import"../../../chunk-GPFPTU7U.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-QY3UXH77.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-CRAFZGCI.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-5EM6P7SU.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-KKW3FINI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-CMU5JFUC.mjs";import"../../../chunk-NXAQ6ESJ.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-HTS3KCJL.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-AN744MXS.mjs";import"../../../chunk-VTFO5GXK.mjs";import"../../../chunk-GULRIPMU.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-4WA47ZQA.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-VDN4LQSS.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-PXLSH6S2.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-WH6JZSIA.mjs";import"../../../chunk-BGQC6IQK.mjs";import"../../../chunk-I6XKBCH4.mjs";import"../../../chunk-WLI2YTOQ.mjs";import"../../../chunk-LEF6M5ZD.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-QY3UXH77.mjs";import"../../../chunk-LCEEFZH7.mjs";import"../../../chunk-HD6E7KI2.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-5EM6P7SU.mjs";import"../../../chunk-3M5KHST3.mjs";import"../../../chunk-MXMW65GM.mjs";import"../../../chunk-U3PUWUVM.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-CMU5JFUC.mjs";import"../../../chunk-NXAQ6ESJ.mjs";import"../../../chunk-R4SE63GR.mjs";import"../../../chunk-DXRAJQMA.mjs";import"../../../chunk-KPTGYVDM.mjs";import"../../../chunk-5RTGHMF3.mjs";import"../../../chunk-HTS3KCJL.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-AN744MXS.mjs";import"../../../chunk-VTFO5GXK.mjs";import"../../../chunk-GULRIPMU.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-P2B3OITE.mjs";import"../../../chunk-6YHCNPFB.mjs";import"../../../chunk-NPVUICIF.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-F6DMXMR4.mjs";import"../../../chunk-GLZEHRPY.mjs";import"../../../chunk-MU5WPW4N.mjs";import"../../../chunk-AZKOVKSK.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -10,6 +10,17 @@ interface ColleaguesViewProps {
10
10
  availableUsers?: UserType[];
11
11
  existingDigitalColleagues?: DigitalColleague[];
12
12
  availableKnowledgeDocuments?: Knowledge[];
13
+ availableCapabilities?: Array<{
14
+ relationTo: 'mcpTools' | 'capabilities' | 'internalTools' | 'digital-colleagues';
15
+ value: number | {
16
+ id: number;
17
+ name: string;
18
+ };
19
+ }>;
20
+ availableModels?: Array<{
21
+ id: number | string;
22
+ name: string;
23
+ }>;
13
24
  }
14
- export default function ColleaguesView({ initialColleagues, onColleagueAdd, onColleagueEdit, onColleagueDelete, compactView, departments, className, availableUsers, existingDigitalColleagues, availableKnowledgeDocuments, }: ColleaguesViewProps): import("react/jsx-runtime").JSX.Element;
25
+ export default function ColleaguesView({ initialColleagues, onColleagueAdd, onColleagueEdit, onColleagueDelete, compactView, departments, className, availableUsers, existingDigitalColleagues, availableKnowledgeDocuments, availableCapabilities, availableModels, }: ColleaguesViewProps): import("react/jsx-runtime").JSX.Element;
15
26
  export {};
@@ -2,4 +2,4 @@
2
2
  "use strict";
3
3
  "use client"
4
4
 
5
- "use strict";"use client";var vo=Object.create;var Qe=Object.defineProperty;var bo=Object.getOwnPropertyDescriptor;var ho=Object.getOwnPropertyNames;var wo=Object.getPrototypeOf,xo=Object.prototype.hasOwnProperty;var yo=(e,t)=>{for(var o in t)Qe(e,o,{get:t[o],enumerable:!0})},Pt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ho(t))!xo.call(e,i)&&i!==o&&Qe(e,i,{get:()=>t[i],enumerable:!(r=bo(t,i))||r.enumerable});return e};var q=(e,t,o)=>(o=e!=null?vo(wo(e)):{},Pt(t||!e||!e.__esModule?Qe(o,"default",{value:e,enumerable:!0}):o,e)),Co=e=>Pt(Qe({},"__esModule",{value:!0}),e);var fr={};yo(fr,{default:()=>po});module.exports=Co(fr);var se=require("react"),Y=require("lucide-react");var Lt=require("clsx");var gt="-",No=e=>{let t=Po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{let n=c.split(gt);return n[0]===""&&n.length!==1&&n.shift(),kt(n,t)||So(c)},getConflictingClassGroupIds:(c,n)=>{let f=o[c]||[];return n&&r[c]?[...f,...r[c]]:f}}},kt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),i=r?kt(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(gt);return t.validators.find(({validator:c})=>c(a))?.classGroupId},Rt=/^\[(.+)\]$/,So=e=>{if(Rt.test(e)){let t=Rt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Po=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return Do(Object.entries(e.classGroups),o).forEach(([a,c])=>{ft(c,r,a,t)}),r},ft=(e,t,o,r)=>{e.forEach(i=>{if(typeof i=="string"){let a=i===""?t:Dt(t,i);a.classGroupId=o;return}if(typeof i=="function"){if(Ro(i)){ft(i(r),t,o,r);return}t.validators.push({validator:i,classGroupId:o});return}Object.entries(i).forEach(([a,c])=>{ft(c,Dt(t,a),o,r)})})},Dt=(e,t)=>{let o=e;return t.split(gt).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},Ro=e=>e.isThemeGetter,Do=(e,t)=>t?e.map(([o,r])=>{let i=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([c,n])=>[t+c,n])):a);return[o,i]}):e,ko=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,i=(a,c)=>{o.set(a,c),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let c=o.get(a);if(c!==void 0)return c;if((c=r.get(a))!==void 0)return i(a,c),c},set(a,c){o.has(a)?o.set(a,c):i(a,c)}}},Tt="!",To=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,i=t[0],a=t.length,c=n=>{let f=[],d=0,N=0,g;for(let p=0;p<n.length;p++){let T=n[p];if(d===0){if(T===i&&(r||n.slice(p,p+a)===t)){f.push(n.slice(N,p)),N=p+a;continue}if(T==="/"){g=p;continue}}T==="["?d++:T==="]"&&d--}let v=f.length===0?n:n.substring(N),$=v.startsWith(Tt),E=$?v.substring(1):v,k=g&&g>N?g-N:void 0;return{modifiers:f,hasImportantModifier:$,baseClassName:E,maybePostfixModifierPosition:k}};return o?n=>o({className:n,parseClassName:c}):c},Mo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},Ao=e=>({cache:ko(e.cacheSize),parseClassName:To(e),...No(e)}),Io=/\Ht+/,Lo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],c=e.trim().split(Io),n="";for(let f=c.length-1;f>=0;f-=1){let d=c[f],{modifiers:N,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:$}=o(d),E=!!$,k=r(E?v.substring(0,$):v);if(!k){if(!E){n=d+(n.length>0?" "+n:n);continue}if(k=r(v),!k){n=d+(n.length>0?" "+n:n);continue}E=!1}let p=Mo(N).join(":"),T=g?p+Tt:p,H=T+k;if(a.includes(H))continue;a.push(H);let X=i(k,E);for(let V=0;V<X.length;++V){let ee=X[V];a.push(T+ee)}n=d+(n.length>0?" "+n:n)}return n};function Bo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Mt(t))&&(r&&(r+=" "),r+=o);return r}var Mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=Mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Eo(e,...t){let o,r,i,a=c;function c(f){let d=t.reduce((N,g)=>g(N),e());return o=Ao(d),r=o.cache.get,i=o.cache.set,a=n,n(f)}function n(f){let d=r(f);if(d)return d;let N=Lo(f,o);return i(f,N),N}return function(){return a(Bo.apply(null,arguments))}}var z=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},At=/^\[(?:([a-z-]+):)?(.+)\]$/i,zo=/^\d+\/\d+$/,Ho=new Set(["px","full","screen"]),Fo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ko=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ht|Ht|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Uo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,de=e=>He(e)||Ho.has(e)||zo.test(e),we=e=>Fe(e,"length",Xo),He=e=>!!e&&!Number.isNaN(Number(e)),ut=e=>Fe(e,"number",He),$e=e=>!!e&&Number.isInteger(Number(e)),Wo=e=>e.endsWith("%")&&He(e.slice(0,-1)),C=e=>At.test(e),xe=e=>Fo.test(e),$o=new Set(["length","size","percentage"]),Go=e=>Fe(e,$o,It),Oo=e=>Fe(e,"position",It),_o=new Set(["image","url"]),qo=e=>Fe(e,_o,Qo),Jo=e=>Fe(e,"",Zo),Ge=()=>!0,Fe=(e,t,o)=>{let r=At.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},Xo=e=>Ko.test(e)&&!jo.test(e),It=()=>!1,Zo=e=>Uo.test(e),Qo=e=>Vo.test(e);var Yo=()=>{let e=z("colors"),t=z("spacing"),o=z("blur"),r=z("brightness"),i=z("borderColor"),a=z("borderRadius"),c=z("borderSpacing"),n=z("borderWidth"),f=z("contrast"),d=z("grayscale"),N=z("hueRotate"),g=z("invert"),v=z("gap"),$=z("gradientColorStops"),E=z("gradientColorStopPositions"),k=z("inset"),p=z("margin"),T=z("opacity"),H=z("padding"),X=z("saturate"),V=z("scale"),ee=z("sepia"),ve=z("skew"),le=z("space"),b=z("translate"),O=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",C,t],A=()=>[C,t],Se=()=>["",de,we],_=()=>["auto",He,C],be=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],he=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],We=()=>["start","end","center","between","around","evenly","stretch"],Pe=()=>["","0",C],Ze=()=>["auto","avoid","all","avoid-page","page","left","right","column"],te=()=>[He,C];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[de,we],blur:["none","",xe,C],brightness:te(),borderColor:[e],borderRadius:["none","","full",xe,C],borderSpacing:A(),borderWidth:Se(),contrast:te(),grayscale:Pe(),hueRotate:te(),invert:Pe(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Wo,we],inset:L(),margin:L(),opacity:te(),padding:A(),saturate:te(),scale:te(),sepia:Pe(),skew:te(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[xe]}],"break-after":[{"break-after":Ze()}],"break-before":[{"break-before":Ze()}],"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:[...be(),C]}],overflow:[{overflow:W()}],"overflow-Ht":[{"overflow-Ht":W()}],"overflow-Ht":[{"overflow-Ht":W()}],overscroll:[{overscroll:O()}],"overscroll-Ht":[{"overscroll-Ht":O()}],"overscroll-Ht":[{"overscroll-Ht":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[k]}],"inset-Ht":[{"inset-Ht":[k]}],"inset-Ht":[{"inset-Ht":[k]}],start:[{start:[k]}],end:[{end:[k]}],top:[{top:[k]}],right:[{right:[k]}],bottom:[{bottom:[k]}],left:[{left:[k]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",$e,C]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Pe()}],shrink:[{shrink:Pe()}],order:[{order:["first","last","none",$e,C]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",$e,C]},C]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[$e,C]},C]}],"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","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[v]}],"gap-Ht":[{"gap-Ht":[v]}],"gap-Ht":[{"gap-Ht":[v]}],"justify-content":[{justify:["normal",...We()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...We(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...We(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[H]}],px:[{px:[H]}],py:[{py:[H]}],ps:[{ps:[H]}],pe:[{pe:[H]}],pt:[{pt:[H]}],pr:[{pr:[H]}],pb:[{pb:[H]}],pl:[{pl:[H]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],ht:[{ht:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-Ht":[{"space-Ht":[le]}],"space-Ht-reverse":["space-Ht-reverse"],"space-Ht":[{"space-Ht":[le]}],"space-Ht-reverse":["space-Ht-reverse"],Ht:[{Ht:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-Ht":[{"min-Ht":[C,t,"min","max","fit"]}],"max-Ht":[{"max-Ht":[C,t,"none","full","min","max","fit","prose",{screen:[xe]},xe]}],Ht:[{Ht:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ht":[{"min-Ht":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ht":[{"max-Ht":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",xe,we]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ut]}],"font-family":[{font:[Ge]}],"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",C]}],"line-clamp":[{"line-clamp":["none",He,ut]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",de,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",de,we]}],"underline-offset":[{"underline-offset":["auto",de,C]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],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",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...be(),Oo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ht","Ht","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Go]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},qo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[$]}],"gradient-via":[{via:[$]}],"gradient-to":[{to:[$]}],rounded:[{rounded:[a]}],"rounded-Ht":[{"rounded-Ht":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-Ht":[{border:[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-Ht":[{"border-Ht":[n]}],"border-Ht-e":[{"border-e":[n]}],"border-Ht-t":[{"border-t":[n]}],"border-Ht-r":[{"border-r":[n]}],"border-Ht-b":[{"border-b":[n]}],"border-Ht-l":[{"border-l":[n]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...he(),"hidden"]}],"divide-Ht":[{"divide-Ht":[n]}],"divide-Ht-reverse":["divide-Ht-reverse"],"divide-Ht":[{"divide-Ht":[n]}],"divide-Ht-reverse":["divide-Ht-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:he()}],"border-color":[{border:[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-Ht":[{"border-Ht":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...he()]}],"outline-offset":[{"outline-offset":[de,C]}],"outline-Ht":[{outline:[de,we]}],"outline-color":[{outline:[e]}],"ring-Ht":[{ring:Se()}],"ring-Ht-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-Ht":[{"ring-offset":[de,we]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",xe,Jo]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",xe,C]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[N]}],invert:[{invert:[g]}],saturate:[{saturate:[X]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[X]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[c]}],"border-spacing-Ht":[{"border-spacing-Ht":[c]}],"border-spacing-Ht":[{"border-spacing-Ht":[c]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:te()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:te()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-Ht":[{"scale-Ht":[V]}],"scale-Ht":[{"scale-Ht":[V]}],rotate:[{rotate:[$e,C]}],"translate-Ht":[{"translate-Ht":[b]}],"translate-Ht":[{"translate-Ht":[b]}],"skew-Ht":[{"skew-Ht":[ve]}],"skew-Ht":[{"skew-Ht":[ve]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],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","Ht-resize","Ht-resize","Y-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ht","Ht",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-ht":[{"scroll-ht":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ht","Ht","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ht":[{"touch-pan":["Ht","left","right"]}],"touch-Ht":[{"touch-pan":["Ht","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-Ht":[{stroke:[de,we,ut]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ht","overflow-Ht"],overscroll:["overscroll-Ht","overscroll-Ht"],inset:["inset-Ht","inset-Ht","start","end","top","right","bottom","left"],"inset-Ht":["right","left"],"inset-Ht":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ht","gap-Ht"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","ht","mr","mb","ml"],mx:["mr","ml"],my:["ht","mb"],size:["Ht","Ht"],"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-Ht","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-Ht":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Ht","border-spacing-Ht"],"border-Ht":["border-Ht-Ht","border-Ht-e","border-Ht-t","border-Ht-r","border-Ht-b","border-Ht-l"],"border-Ht-Ht":["border-Ht-r","border-Ht-l"],"border-Ht-Ht":["border-Ht-t","border-Ht-b"],"border-color":["border-color-Ht","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ht":["border-color-r","border-color-l"],"border-color-Ht":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-ht","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-ht","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ht","touch-Ht","touch-pz"],"touch-Ht":["touch"],"touch-Ht":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Ye=Eo(Yo);function m(...e){return Ye((0,Lt.clsx)(e))}var Bt=require("@radix-ui/react-slot"),Et=require("class-variance-authority"),zt=q(require("react")),Ht=require("react/jsx-runtime"),er=(0,Et.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:"Ht-10 px-4 py-2",icon:"Ht-10 Ht-10",lg:"Ht-11 rounded px-8",sm:"Ht-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"}}}),M=zt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...i},a)=>(0,Ht.jsx)(e?Bt.Slot:"button",{className:m(er({className:t,size:o,variant:r})),ref:a,...i}));M.displayName="Button";var Re=q(require("react"));var I=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("rounded-xl border bg-card text-card-foreground shadow",e),...t}));I.displayName="Card";var K=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("flex flex-col space-Ht-1.5 p-6",e),...t}));K.displayName="CardHeader";var G=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("font-semibold leading-none tracking-tight",e),...t}));G.displayName="CardTitle";var tr=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("text-sm text-muted-foreground",e),...t}));tr.displayName="CardDescription";var B=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("p-6 pt-0",e),...t}));B.displayName="CardContent";var or=Re.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("div",{ref:o,className:m("flex items-center p-6 pt-0",e),...t}));or.displayName="CardFooter";var Ft=q(require("react"));var oe=Ft.forwardRef(({className:e,type:t,...o},r)=>(0,Ht.jsx)("input",{type:t,className:m("flex Ht-9 Ht-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:r,...o}));oe.displayName="Input";var P=q(require("@radix-ui/react-select")),ye=q(require("react")),vt=P.Root;var bt=P.Value,et=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ht.jsxs)(P.Trigger,{className:m("flex Ht-10 Ht-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:r,...o,children:[e,(0,Ht.jsx)(P.Icon,{asChild:!0,children:(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4 opacity-50"})})]}));et.displayName=P.Trigger.displayName;var jt=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.ScrollUpButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ht.jsx)(Y.ChevronUp,{className:"Ht-4 Ht-4"})}));jt.displayName=P.ScrollUpButton.displayName;var Ut=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.ScrollDownButton,{className:m("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4"})}));Ut.displayName=P.ScrollDownButton.displayName;var tt=ye.forwardRef(({children:e,className:t,position:o="popper",...r},i)=>(0,Ht.jsx)(P.Portal,{children:(0,Ht.jsxs)(P.Content,{className:m("relative z-50 max-Ht-96 min-Ht-[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",o==="popper"&&"data-[side=bottom]:translate-Ht-1 data-[side=left]:-translate-Ht-1 data-[side=right]:translate-Ht-1 data-[side=top]:-translate-Ht-1",t),position:o,ref:i,...r,children:[(0,Ht.jsx)(jt,{}),(0,Ht.jsx)(P.Viewport,{className:m("p-1",o==="popper"&&"Ht-[var(--radix-select-trigger-height)] Ht-full min-Ht-[var(--radix-select-trigger-width)]"),children:e}),(0,Ht.jsx)(Ut,{})]})}));tt.displayName=P.Content.displayName;var rr=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.Label,{className:m("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));rr.displayName=P.Label.displayName;var Te=ye.forwardRef(({children:e,className:t,...o},r)=>(0,Ht.jsxs)(P.Item,{className:m("relative flex Ht-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:r,...o,children:[(0,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(P.ItemIndicator,{children:(0,Ht.jsx)(Y.Check,{className:"Ht-4 Ht-4"})})}),(0,Ht.jsx)(P.ItemText,{children:e})]}));Te.displayName=P.Item.displayName;var ar=ye.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(P.Separator,{className:m("-mx-1 my-1 Ht-px bg-muted",e),ref:o,...t}));ar.displayName=P.Separator.displayName;var ht=require("motion/react");var Me=q(require("@radix-ui/react-tabs"));function Vt({className:e,...t}){return(0,Ht.jsx)(Me.Root,{"data-slot":"tabs",className:m("flex flex-col gap-2",e),...t})}function Wt({className:e,...t}){return(0,Ht.jsx)(Me.List,{"data-slot":"tabs-list",className:m("bg-muted text-muted-foreground inline-flex Ht-9 Ht-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function $t({className:e,...t}){return(0,Ht.jsx)(Me.Trigger,{"data-slot":"tabs-trigger",className:m("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 Ht-[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})}var ce=q(require("react")),R=q(require("@radix-ui/react-dropdown-menu")),Ke=require("@radix-ui/react-icons");var rt=R.Root,at=R.Trigger;var ir=ce.forwardRef(({className:e,inset:t,children:o,...r},i)=>(0,Ht.jsxs)(R.SubTrigger,{ref:i,className:m("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),...r,children:[o,(0,Ht.jsx)(Ke.ChevronRightIcon,{className:"ml-auto"})]}));ir.displayName=R.SubTrigger.displayName;var nr=ce.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(R.SubContent,{ref:o,className:m("z-50 min-Ht-[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}));nr.displayName=R.SubContent.displayName;var Oe=ce.forwardRef(({className:e,sideOffset:t=4,...o},r)=>(0,Ht.jsx)(R.Portal,{children:(0,Ht.jsx)(R.Content,{ref:r,sideOffset:t,className:m("z-50 min-Ht-[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),...o})}));Oe.displayName=R.Content.displayName;var Ae=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(R.Item,{ref:r,className:m("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),...o}));Ae.displayName=R.Item.displayName;var sr=ce.forwardRef(({className:e,children:t,checked:o,...r},i)=>(0,Ht.jsxs)(R.CheckboxItem,{ref:i,className:m("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:o,...r,children:[(0,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(R.ItemIndicator,{children:(0,Ht.jsx)(Ke.CheckIcon,{className:"Ht-4 Ht-4"})})}),t]}));sr.displayName=R.CheckboxItem.displayName;var lr=ce.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(R.RadioItem,{ref:r,className:m("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),...o,children:[(0,Ht.jsx)("span",{className:"absolute left-2 flex Ht-3.5 Ht-3.5 items-center justify-center",children:(0,Ht.jsx)(R.ItemIndicator,{children:(0,Ht.jsx)(Ke.DotFilledIcon,{className:"Ht-4 Ht-4 fill-current"})})}),t]}));lr.displayName=R.RadioItem.displayName;var dr=ce.forwardRef(({className:e,inset:t,...o},r)=>(0,Ht.jsx)(R.Label,{ref:r,className:m("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));dr.displayName=R.Label.displayName;var cr=ce.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(R.Separator,{ref:o,className:m("-mx-1 my-1 Ht-px bg-muted",e),...t}));cr.displayName=R.Separator.displayName;var mr=({className:e,...t})=>(0,Ht.jsx)("span",{className:m("ml-auto text-xs tracking-widest opacity-60",e),...t});mr.displayName="DropdownMenuShortcut";function Ot({activeTab:e,onTabChange:t,tabOptions:o,className:r="",maxWidth:i="700px",gridCols:a=6}){let c=o.find(n=>n.value===e);return(0,Ht.jsxs)(ht.motion.div,{className:`flex-1 flex justify-center ${r}`,initial:{opacity:0,Ht:-20},animate:{opacity:1,Ht:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ht.jsx)("div",{className:"hidden lg:block",children:(0,Ht.jsx)(Vt,{value:e,onValueChange:t,children:(0,Ht.jsx)(Wt,{className:"grid Ht-full rounded-2xl p-0 Ht-10",style:{maxWidth:i,gridTemplateColumns:`repeat(${Math.min(a,o.length)}, minmax(0, 1fr))`},children:o.map(n=>(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ht.jsx)($t,{value:n.value,className:"Ht-full Ht-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:n.label})},n.value))})})}),(0,Ht.jsx)("div",{className:"lg:hidden",children:(0,Ht.jsxs)(rt,{children:[(0,Ht.jsx)(at,{asChild:!0,children:(0,Ht.jsxs)(M,{variant:"outline",className:"rounded-2xl min-Ht-[140px] justify-between",children:[c?.label||"Select",(0,Ht.jsx)(Y.ChevronDown,{className:"Ht-4 Ht-4 ml-2"})]})}),(0,Ht.jsx)(Oe,{align:"center",className:"Ht-[180px]",children:o.map(n=>(0,Ht.jsx)(Ae,{onClick:()=>t?.(n.value),className:`cursor-pointer ${e===n.value?"bg-accent":""}`,children:n.label},n.value))})]})})]})}var it=q(require("react")),me=q(require("@radix-ui/react-avatar"));var Ie=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Root,{ref:o,className:m("relative flex Ht-10 Ht-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ie.displayName=me.Root.displayName;var wt=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Image,{ref:o,className:m("aspect-square Ht-full Ht-full",e),...t}));wt.displayName=me.Image.displayName;var Le=it.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(me.Fallback,{ref:o,className:m("flex Ht-full Ht-full items-center justify-center rounded-full bg-muted",e),...t}));Le.displayName=me.Fallback.displayName;var pr=(0,Et.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 re({className:e,variant:t,...o}){return(0,Ht.jsx)("div",{className:m(pr({variant:t}),e),...o})}function st({colleague:e,onEdit:t,onDelete:o,onViewDetails:r,showActions:i=!0,compact:a=!1,className:c}){let[n,f]=(0,se.useState)(!1),d=v=>{switch(v){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},N=v=>{switch(v){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},g=v=>{if(!v)return"Never";let E=Math.floor((new Date().getTime()-v.getTime())/(1e3*60));return E<1?"Just now":E<60?`${E}m ago`:E<1440?`${Math.floor(E/60)}Ht ago`:`${Math.floor(E/1440)}d ago`};return(0,Ht.jsxs)(I,{className:m("hover:shadow-md transition-shadow",a&&"p-2",c),children:[(0,Ht.jsx)(K,{className:m("pb-3",a&&"pb-2"),children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)("div",{className:"relative",children:(0,Ht.jsxs)(Ie,{className:m("Ht-12 Ht-12",a&&"Ht-8 Ht-8"),children:[(0,Ht.jsx)(wt,{src:"/placeholder.svg",alt:e.name||"name"}),(0,Ht.jsx)(Le,{children:e.name?.split(" ").map(v=>v[0]).join("")})]})}),(0,Ht.jsxs)("div",{className:"flex-1 min-Ht-0",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ht.jsx)("h3",{className:m("font-semibold text-sm truncate",a&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ht.jsx)(Y.Bot,{className:m("Ht-4 Ht-4 text-blue-500",a&&"Ht-3 Ht-3")}):(0,Ht.jsx)(Y.User,{className:m("Ht-4 Ht-4 text-green-500",a&&"Ht-3 Ht-3")})]}),(0,Ht.jsx)("p",{className:m("text-sm text-muted-foreground truncate",a&&"text-xs")}),!a&&(0,Ht.jsx)("div",{className:"flex items-center gap-2 ht-1"})]})]}),i&&(0,Ht.jsxs)(rt,{children:[(0,Ht.jsx)(at,{asChild:!0,children:(0,Ht.jsx)(M,{variant:"ghost",size:"icon",className:m("Ht-8 Ht-8",a&&"Ht-6 Ht-6"),children:(0,Ht.jsx)(Y.MoreHorizontal,{className:m("Ht-4 Ht-4",a&&"Ht-3 Ht-3")})})}),(0,Ht.jsxs)(Oe,{align:"end",children:[e.type==="digital"&&(0,Ht.jsxs)(Ht.Fragment,{children:[(0,Ht.jsxs)(Ae,{onClick:()=>r?.(e),children:[(0,Ht.jsx)(Y.Settings,{className:"Ht-4 Ht-4 mr-2"}),"View Details"]}),(0,Ht.jsxs)(Ae,{onClick:()=>t?.(e),children:[(0,Ht.jsx)(Y.Edit,{className:"Ht-4 Ht-4 mr-2"}),"Edit"]})]}),(0,Ht.jsxs)(Ae,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,Ht.jsx)(Y.Trash2,{className:"Ht-4 Ht-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!a&&(0,Ht.jsxs)(B,{className:"pt-0",children:[(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[e.type==="human"&&(0,Ht.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ht.jsx)(Y.Mail,{className:"Ht-3 Ht-3"}),(0,Ht.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="digital"&&(0,Ht.jsx)("div",{className:"flex items-center gap-2 text-muted-foreground",children:(0,Ht.jsx)("span",{children:e.description})})]}),e.type==="digital"&&(0,Ht.jsx)("div",{className:"ht-3",children:(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,n?e.capabilities.length:2).map(v=>(0,Ht.jsx)(re,{variant:"outline",className:"text-xs",children:typeof v.value=="number"?v.value:v.value.name},typeof v.value=="number"?v.value:v.value.name)),(e.capabilities?.length||0)>2&&(0,Ht.jsx)(M,{variant:"ghost",size:"sm",className:"Ht-5 px-2 text-xs",onClick:()=>f(!n),children:n?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var Xt=q(require("react")),xt=q(require("@radix-ui/react-label"));var ur=(0,Et.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pe=Xt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)(xt.Root,{ref:o,className:m(ur(),e),...t}));pe.displayName=xt.Root.displayName;var Yt=q(require("react")),_e=Yt.forwardRef(({className:e,...t},o)=>(0,Ht.jsx)("textarea",{className:m("flex min-Ht-[80px] Ht-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:o,...t}));_e.displayName="Textarea";var yt=q(require("react")),ae=q(require("@radix-ui/react-scroll-area"));var Ct=yt.forwardRef(({className:e,children:t,...o},r)=>(0,Ht.jsxs)(ae.Root,{ref:r,className:m("relative overflow-hidden",e),...o,children:[(0,Ht.jsx)(ae.Viewport,{className:"Ht-full Ht-full rounded-[inherit]",children:t}),(0,Ht.jsx)(to,{}),(0,Ht.jsx)(ae.Corner,{})]}));Ct.displayName=ae.Root.displayName;var to=yt.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,Ht.jsx)(ae.ScrollAreaScrollbar,{ref:r,orientation:t,className:m("flex touch-none select-none transition-colors",t==="vertical"&&"Ht-full Ht-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"Ht-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ht.jsx)(ae.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));to.displayName=ae.ScrollAreaScrollbar.displayName;function oo({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:r,placeholder:i="Search knowledge documents...",maxSelections:a,disabled:c=!1}){let[n,f]=(0,se.useState)(""),[d,N]=(0,se.useState)([]),[g,v]=(0,se.useState)(!1);(0,se.useEffect)(()=>{if(!n.trim()){N([]),v(!1);return}let p=o.filter(T=>{if(e.map(V=>V.id).includes(T.id))return!1;let X=n.toLowerCase();return T.title.toLowerCase().includes(X)||T.description?.toLowerCase().includes(X)||T.tags?.some(V=>V.toLowerCase().includes(X))||Object.values(T.metadata||{}).some(V=>String(V).toLowerCase().includes(X))});N(p),v(!0)},[n,e,o]);let $=p=>{a&&e.length>=a&&e.pop(),t([...e,p]),f(""),v(!1)},E=p=>{console.log("doc",p,e),t(e.filter(T=>T.id!==p))},k=!a||e.length<a;return(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{children:r}),(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{value:n,onChange:p=>f(p.target.value),placeholder:k?i:`Maximum ${a} documents selected`,className:"pl-9",disabled:c||!k,onFocus:()=>n&&v(!0)})]}),g&&d.length>0&&(0,Ht.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 ht-1 max-Ht-60",children:(0,Ht.jsx)(Ct,{className:"Ht-full",children:(0,Ht.jsx)(B,{className:"p-2",children:d.map(p=>(0,Ht.jsx)(M,{variant:"ghost",className:"Ht-full justify-start Ht-auto p-3 mb-1",onClick:()=>$(p),disabled:c,children:(0,Ht.jsxs)("div",{className:"flex items-start gap-3 Ht-full",children:[(0,Ht.jsx)(Y.FileText,{className:"Ht-4 Ht-4 ht-0.5 text-muted-foreground flex-shrink-0"}),(0,Ht.jsxs)("div",{className:"text-left flex-1 min-Ht-0",children:[(0,Ht.jsx)("div",{className:"font-medium text-sm truncate",children:p.title}),p.description&&(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground ht-1 line-clamp-2",children:p.description}),p.tags&&p.tags.length>0&&(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-1 ht-2",children:[p.tags.slice(0,3).map(T=>(0,Ht.jsx)(re,{variant:"outline",className:"text-xs",children:T},T)),p.tags.length>3&&(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",p.tags.length-3," more"]})]})]})]})},p.id))})})}),g&&n&&d.length===0&&(0,Ht.jsx)(I,{className:"absolute top-full left-0 right-0 z-10 ht-1",children:(0,Ht.jsxs)(B,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',n,'"']})})]}),e.length>0&&(0,Ht.jsx)("div",{className:"space-Ht-2",children:(0,Ht.jsx)("div",{className:"space-Ht-2",children:e.map(p=>(0,Ht.jsx)(I,{className:"p-3",children:(0,Ht.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ht.jsx)(Y.FileText,{className:"Ht-4 Ht-4 ht-0.5 text-muted-foreground flex-shrink-0"}),(0,Ht.jsxs)("div",{className:"flex-1 min-Ht-0",children:[(0,Ht.jsx)("div",{className:"font-medium text-sm",children:p.title}),p.description&&(0,Ht.jsx)("div",{className:"text-xs text-muted-foreground ht-1",children:p.description}),p.tags&&p.tags.length>0&&(0,Ht.jsx)("div",{className:"flex flex-wrap gap-1 ht-2",children:p.tags.map(T=>(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:[(0,Ht.jsx)(Y.Tag,{className:"Ht-3 Ht-3 mr-1"}),T]},T))})]}),(0,Ht.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"Ht-6 Ht-6 flex-shrink-0",onClick:()=>E(p.id),disabled:c,children:(0,Ht.jsx)(Y.X,{className:"Ht-3 Ht-3"})})]})},p.id))})}),g&&(0,Ht.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>v(!1)})]})}function Nt({colleague:e,onSave:t,onCancel:o,isLoading:r=!1,title:i,submitLabel:a,cancelLabel:c="Cancel",readOnly:n=!1,availableKnowledgeDocuments:f=[]}){let[d,N]=(0,se.useState)({type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,coreKnowledge:null,...e}),[g,v]=(0,se.useState)(""),[$,E]=(0,se.useState)(""),[k,p]=(0,se.useState)(!n);(0,se.useEffect)(()=>{e&&N(e)},[e]);let T=b=>{b.preventDefault();let O={id:d.id||parseInt(Date.now().toString()),name:d.name,type:"digital",description:d.description,jobDescription:d.jobDescription||"",workInstructions:d.workInstructions||"",capabilities:d.capabilities||[],capabilityLevel:d.capabilityLevel||0,coreKnowledge:d.coreKnowledge||null};t(O)},H=(b,O,W)=>{if(!O.trim())return;let L=d[b]||[];N({...d,[b]:[...L,O.trim()]}),W("")},X=(b,O)=>{let W=d[b]||[];N({...d,[b]:W.filter((L,A)=>A!==O)})},V=b=>{b.preventDefault(),p(!k)},ee=(b,O,W,L,A)=>{let Se=d[b]||[];return(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{children:O}),k&&(0,Ht.jsxs)("div",{className:"flex gap-2",children:[(0,Ht.jsx)(oe,{value:W,onChange:_=>L(_.target.value),placeholder:A,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),H(b,W,L))},disabled:r}),(0,Ht.jsx)(M,{type:"button",variant:"outline",size:"icon",onClick:()=>H(b,W,L),disabled:r,children:(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4"})})]}),(0,Ht.jsx)("div",{className:"flex flex-wrap gap-2",children:Se.map((_,be)=>(0,Ht.jsxs)(re,{className:"gap-1",children:[_,k&&(0,Ht.jsx)(M,{type:"button",variant:"ghost",size:"icon",className:"Ht-4 Ht-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>X(b,be),disabled:r,children:(0,Ht.jsx)(Y.X,{className:"Ht-3 Ht-3"})})]},`${b}-${be}-${_}`))})]})},ve=i||(k?e?"Edit Colleague":"Add New Colleague":"View Colleague"),le=a||(e?"Update Colleague":"Add Colleague");return(0,Ht.jsxs)(I,{className:"m-8 Ht-full max-Ht-4xl mx-auto overflow-Ht-scroll no-scrollbar",children:[(0,Ht.jsx)(K,{children:(0,Ht.jsxs)(G,{className:"flex items-center gap-2",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-5 Ht-5"}),ve]})}),(0,Ht.jsx)(B,{children:(0,Ht.jsxs)("form",{onSubmit:T,className:"space-Ht-6",children:[(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"name",children:"Name *"}),(0,Ht.jsx)(oe,{id:"name",value:d.name||"",onChange:b=>N({...d,name:b.target.value}),required:!0,disabled:r||!k})]}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"description",children:"Description"}),(0,Ht.jsx)(_e,{id:"description",value:d.description||"",onChange:b=>N({...d,description:b.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:r||!k})]})]}),(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ht.jsx)(_e,{id:"jobDescription",value:d.jobDescription||"",onChange:b=>N({...d,jobDescription:b.target.value}),rows:4,required:d.type==="digital",disabled:r||!k})]}),(0,Ht.jsxs)("div",{className:"space-Ht-2",children:[(0,Ht.jsx)(pe,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ht.jsx)(_e,{id:"workInstructions",value:d.workInstructions||"",onChange:b=>N({...d,workInstructions:b.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:r||!k})]}),ee("capabilities","Capabilities",$,E,"Add capability"),(0,Ht.jsx)(oo,{selectedDocuments:d.coreKnowledge?[{id:d.coreKnowledge?.id?.toString(),title:d.coreKnowledge?.name,format:"markdown",content:d.coreKnowledge?.content||"",createdAt:new Date(d.coreKnowledge?.createdAt),description:d.coreKnowledge?.description||"",metadata:d.coreKnowledge?.metadata||{},updatedAt:new Date(d.coreKnowledge?.updatedAt)}]:[],onDocumentsChange:b=>{let O={createdAt:b[0]?.createdAt.toISOString(),id:parseInt(b[0]?.id),name:b[0]?.title,source:"payload",updatedAt:(b[0]?.updatedAt||new Date).toISOString()};console.log(b),N({...d,coreKnowledge:b&&b.length>0?O:void 0})},label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:1,disabled:r||!k,availableDocuments:f.map(b=>({id:b.id.toString(),title:b.name,name:b.name,format:"markdown",content:b.content||"",createdAt:new Date(b.createdAt),source:b.source,description:b.description||"",metadata:b.metadata||{},updatedAt:new Date(b.updatedAt)}))})]}),(0,Ht.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ht.jsx)(M,{type:"button",variant:"outline",onClick:o,disabled:r,children:k?c:"Close"}),k?(0,Ht.jsx)(M,{type:"submit",disabled:r,children:r?"Saving...":le}):(0,Ht.jsxs)(M,{type:"button",onClick:V,disabled:r,className:"gap-2",children:[(0,Ht.jsx)(Y.Edit,{className:"Ht-4 Ht-4"}),"Edit"]})]})]})})]})}function ro({users:e,onUserSelect:t,onCancel:o,selectedUserId:r}){let[i,a]=(0,se.useState)(""),c=(0,se.useMemo)(()=>e.filter(f=>f.name?.toLowerCase().includes(i.toLowerCase())||f.email.toLowerCase().includes(i.toLowerCase())),[e,i]),n=f=>{t(f)};return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose a user to add as a colleague"})]})]}),(0,Ht.jsx)(I,{className:"container",children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search users by name, email, role, or skills...",value:i,onChange:f=>a(f.target.value),className:"pl-9"})]})})})})}),(0,Ht.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:c.map(f=>(0,Ht.jsx)(ht.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ht.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r===f.id?"ring-2 ring-primary":""}`,onClick:()=>n(f),children:[(0,Ht.jsx)(K,{className:"pb-3",children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)(Ie,{children:(0,Ht.jsx)(Le,{children:(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4"})})}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(G,{className:"text-lg",children:f.name})})]}),r===f.id&&(0,Ht.jsx)(Y.Check,{className:"Ht-5 Ht-5 text-primary"})]})}),(0,Ht.jsx)(B,{className:"pt-0",children:(0,Ht.jsxs)("div",{className:"space-Ht-3",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ht.jsx)("p",{className:"text-sm font-medium",children:f.email})]}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},f.id))}),c.length===0&&(0,Ht.jsx)(I,{className:"container ht-4",children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.User,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function ao({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:r}){let[i,a]=(0,se.useState)(""),[c,n]=(0,se.useState)("all"),f=(0,se.useMemo)(()=>e.filter(g=>g.name.toLowerCase().includes(i.toLowerCase())||g.jobDescription?.toLowerCase().includes(i.toLowerCase())||g.workInstructions?.toLowerCase().includes(i.toLowerCase())),[e,i,c]),d=g=>{let v={...g,name:`${g.name} (Copy)`};t(v)},N=g=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(g);return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague to clone"})]})]}),(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search by name, job description, or capabilities...",value:i,onChange:g=>a(g.target.value),className:"pl-9"})]})}),(0,Ht.jsxs)("select",{value:c,onChange:g=>n(g.target.value),className:"Ht-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ht.jsx)("option",{value:"all",children:"All Status"}),(0,Ht.jsx)("option",{value:"active",children:"Active"}),(0,Ht.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ht.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:f.map(g=>(0,Ht.jsx)(ht.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ht.jsxs)(I,{className:`cursor-pointer transition-all hover:shadow-lg ${r?.toString()===g.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>d(g),children:[(0,Ht.jsx)(K,{className:"pb-3",children:(0,Ht.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ht.jsx)(Ie,{children:(0,Ht.jsx)(Le,{className:"bg-blue-100",children:(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-blue-600"})})}),(0,Ht.jsx)("div",{children:(0,Ht.jsx)(G,{className:"text-lg flex items-center gap-2",children:g.name})})]}),(0,Ht.jsxs)(M,{size:"sm",variant:"outline",className:"gap-2 Ht-8",onClick:v=>{v.stopPropagation(),d(g)},children:[(0,Ht.jsx)(Y.Copy,{className:"Ht-3 Ht-3"}),"Clone"]})]})}),(0,Ht.jsx)(B,{className:"pt-0",children:(0,Ht.jsxs)("div",{className:"space-Ht-3",children:[(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ht.jsx)("p",{className:"text-sm line-clamp-2",children:g.jobDescription})]}),g.capabilities&&g.capabilities.length>0&&(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ht.jsx)("div",{className:"flex flex-wrap gap-1",children:g.capabilities.length>3&&(0,Ht.jsxs)(re,{variant:"outline",className:"text-xs",children:["+",g.capabilities.length-3]})})]}),(0,Ht.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),g.workInstructions&&(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ht.jsx)("p",{className:"text-xs line-clamp-2",children:g.workInstructions})]})]})})]})},g.id))}),f.length===0&&(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function io({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague to add"})]})]}),(0,Ht.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.User,{className:"Ht-8 Ht-8 text-blue-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization to add as team members."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Browse existing users"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:e,children:"Select User"})]})]})}),(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Bot,{className:"Ht-8 Ht-8 text-purple-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-purple-600"}),(0,Ht.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-purple-600"}),(0,Ht.jsx)("span",{children:"Create from templates"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function no({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-6",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ht.jsxs)(M,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ht.jsx)(Y.ChevronLeft,{className:"Ht-4 Ht-4"}),"Back"]}),(0,Ht.jsxs)("div",{children:[(0,Ht.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ht.jsx)("p",{className:"text-muted-foreground",children:"Choose how to create your digital colleague"})]})]}),(0,Ht.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ht-4xl mx-auto",children:[(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Copy,{className:"Ht-8 Ht-8 text-blue-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Clone Existing"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Copy,{className:"Ht-4 Ht-4 text-blue-600"}),(0,Ht.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ht.jsx)(ht.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ht.jsxs)(I,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ht.jsxs)(K,{className:"text-center pb-4",children:[(0,Ht.jsx)("div",{className:"mx-auto Ht-16 Ht-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ht.jsx)(Y.Sparkles,{className:"Ht-8 Ht-8 text-green-600"})}),(0,Ht.jsx)(G,{className:"text-xl",children:"Create New"})]}),(0,Ht.jsxs)(B,{className:"text-center",children:[(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ht.jsxs)("div",{className:"space-Ht-2 text-sm",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4 text-green-600"}),(0,Ht.jsx)("span",{children:"Custom job description"})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ht.jsx)(Y.Sparkles,{className:"Ht-4 Ht-4 text-green-600"}),(0,Ht.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ht.jsx)(M,{className:"ht-6 Ht-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function so(e,t){let[o,r]=(0,se.useState)(()=>{if(typeof window>"Ht")return t;try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=a=>{try{r(a),typeof window<"Ht"&&window.localStorage.setItem(e,JSON.stringify(a))}catch{}};return(0,se.useEffect)(()=>{i(o)},[]),[o,i]}var ct=require("react-icons/fa");function co({title:e,description:t,badge:o,primaryAction:r,secondaryAction:i,gradient:a,children:c,className:n}){let[f,d]=so(`hero-section-minimized-${e.replace(/\Ht+/g,"-").toLowerCase()}`,!i&&!t),N=!i&&!t||f;return(0,Ht.jsxs)(ht.motion.div,{initial:{opacity:0,Ht:20},animate:{opacity:1,Ht:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${a} p-8 text-white ${n||""}`,children:[(0,Ht.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ht.jsx)(re,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ht.jsx)("h2",{className:"text-3xl font-bold m-0",children:e})]}),(0,Ht.jsxs)("div",{className:"flex items-center gap-3",children:[N&&r&&(0,Ht.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),(i||t)&&(0,Ht.jsx)("button",{"aria-label":f?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>d(!f),style:{lineHeight:0},children:f?(0,Ht.jsx)(ct.FaChevronDown,{size:22}):(0,Ht.jsx)(ct.FaChevronUp,{size:22})})]})]}),!N&&(0,Ht.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)("p",{className:"max-Ht-[600px] text-white/80",children:t}),(0,Ht.jsxs)("div",{className:"flex flex-wrap gap-3",children:[r&&(0,Ht.jsx)(M,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:r.onClick,children:r.label}),i&&(0,Ht.jsx)(M,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:i.onClick,children:i.label})]})]}),c&&(0,Ht.jsx)("div",{className:"hidden lg:block",children:c})]})]})}function St(...e){return Ye((0,Lt.clsx)(e))}function po({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:r,compactView:i=!1,departments:a=["Design","Engineering","Marketing","Product","Sales","Operations"],className:c,availableUsers:n=[],existingDigitalColleagues:f=[],availableKnowledgeDocuments:d=[]}){let[N,g]=(0,se.useState)(e||[]),[v,$]=(0,se.useState)(""),[E,k]=(0,se.useState)("all"),[p,T]=(0,se.useState)("all"),[H,X]=(0,se.useState)("all"),[V,ee]=(0,se.useState)(null),[ve,le]=(0,se.useState)(null);(0,se.useEffect)(()=>{g(e||[])},[e]);let b=Array.isArray(n)?n:[],O=Array.isArray(f)?f:[],[W,L]=(0,se.useState)("main"),A=N.filter(l=>!l||!l.name?!1:l.name.toLowerCase().includes(v.toLowerCase())||l.type==="human"&&l.email?.toLowerCase().includes(v.toLowerCase())||l.type==="digital"&&l.jobDescription?.toLowerCase().includes(v.toLowerCase())),Se=A.filter(l=>l.type==="human"),_=A.filter(l=>l.type==="digital"),be=()=>{L("typeSelection")},he=l=>{l.type==="digital"&&(ee(l),L("form")),console.log("Editing colleague:",l),o?.(l)},Ee=l=>{l.type==="digital"&&(le(l),L("view"))},We=l=>{let Q={id:`human-${Date.now()}`,type:"human",name:l.name,email:l.email,updatedAt:l.updatedAt,createdAt:l.createdAt,accounts:l.accounts};g(ze=>[...ze,Q]),t?.(Q),L("main")},Pe=l=>{if(!l||!l.id){console.error("Invalid cloned colleague provided to handleDigitalColleagueClone:",l);return}g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"}),L("main")},Ze=()=>{ee(null),L("form")},te=l=>{if(!l||!l.id){console.error("Invalid colleague provided to handleSaveColleague:",l);return}V?(g(Q=>Q.map(ze=>ze.id===l.id?{...l,type:"digital"}:ze)),o?.({...l,type:"digital"})):(g(Q=>[...Q,{...l,type:"digital"}]),t?.({...l,type:"digital"})),L("main"),ee(null)},uo=()=>{L("main"),ee(null),le(null)},fo=()=>{L("main"),le(null)},gr=()=>{ve&&(ee(ve),le(null),L("form"))},pt=l=>{console.log("deleting",l,N),r?.(l,N.find(Q=>Q.id.toString()===l.toString())?.type),g(Q=>Q.filter(ze=>ze.id!==l))},go=()=>{$(""),k("all"),T("all")};return W==="typeSelection"?(0,Ht.jsx)(io,{onSelectHuman:()=>L("userSelection"),onSelectDigital:()=>L("digitalOptions"),onCancel:()=>L("main")}):W==="userSelection"?(0,Ht.jsx)(ro,{users:b,onUserSelect:We,onCancel:()=>L("typeSelection")}):W==="digitalOptions"?(0,Ht.jsx)(no,{onCloneExisting:()=>L("digitalClone"),onCreateNew:Ze,onCancel:()=>L("typeSelection")}):W==="digitalClone"?(0,Ht.jsx)(ao,{digitalColleagues:O,onColleagueClone:Pe,onCancel:()=>L("digitalOptions")}):W==="form"?(0,Ht.jsx)(Nt,{colleague:V||void 0,onSave:te,onCancel:uo,availableKnowledgeDocuments:d}):W==="view"?(0,Ht.jsx)(Nt,{colleague:ve||void 0,onSave:te,onCancel:fo,readOnly:!0,availableKnowledgeDocuments:d}):(0,Ht.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ht-8",children:(0,Ht.jsx)(ht.AnimatePresence,{mode:"wait",children:(0,Ht.jsx)(ht.motion.div,{initial:{opacity:0,Ht:10},animate:{opacity:1,Ht:0},exit:{opacity:0,Ht:-10},transition:{duration:.2},children:(0,Ht.jsxs)("div",{className:`space-Ht-6 ${c||""}`,children:[(0,Ht.jsx)(co,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-to-r from-green-600 via-emerald-600 to-teal-600",primaryAction:{label:"Add colleague",onClick:be}}),(0,Ht.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ht.jsx)(Y.Users,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Human Members"}),(0,Ht.jsx)(Y.User,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="human").length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,Ht.jsxs)(I,{children:[(0,Ht.jsxs)(K,{className:"flex flex-row items-center justify-between space-Ht-0 pb-2",children:[(0,Ht.jsx)(G,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ht.jsx)(Y.Bot,{className:"Ht-4 Ht-4 text-muted-foreground"})]}),(0,Ht.jsxs)(B,{children:[(0,Ht.jsx)("div",{className:"text-2xl font-bold",children:N.filter(l=>l.type==="digital").length}),(0,Ht.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ht.jsx)("div",{className:"flex-1",children:(0,Ht.jsxs)("div",{className:"relative",children:[(0,Ht.jsx)(Y.Search,{className:"absolute left-3 top-3 Ht-4 Ht-4 text-muted-foreground"}),(0,Ht.jsx)(oe,{placeholder:"Search colleagues...",value:v,onChange:l=>$(l.target.value),className:"pl-9"})]})}),(0,Ht.jsxs)(vt,{value:E,onValueChange:k,children:[(0,Ht.jsx)(et,{className:"Ht-full md:Ht-[180px]",children:(0,Ht.jsx)(bt,{placeholder:"Department"})}),(0,Ht.jsxs)(tt,{children:[(0,Ht.jsx)(Te,{value:"all",children:"All Departments"}),a.map(l=>(0,Ht.jsx)(Te,{value:l,children:l},l))]})]}),(0,Ht.jsxs)(vt,{value:p,onValueChange:T,children:[(0,Ht.jsx)(et,{className:"Ht-full md:Ht-[140px]",children:(0,Ht.jsx)(bt,{placeholder:"Status"})}),(0,Ht.jsxs)(tt,{children:[(0,Ht.jsx)(Te,{value:"all",children:"All Status"}),(0,Ht.jsx)(Te,{value:"active",children:"Active"}),(0,Ht.jsx)(Te,{value:"inactive",children:"Inactive"})]})]}),(v||E!=="all"||p!=="all")&&(0,Ht.jsxs)(M,{variant:"outline",onClick:go,className:"gap-2",children:[(0,Ht.jsx)(Y.Filter,{className:"Ht-4 Ht-4"}),"Clear"]})]})})}),(0,Ht.jsxs)("div",{className:"space-Ht-4",children:[(0,Ht.jsx)(Ot,{activeTab:H,onTabChange:X,tabOptions:[{value:"all",label:`All (${A.length})`},{value:"human",label:`Human (${Se.length})`},{value:"digital",label:`Digital (${_.length})`}],maxWidth:"400px",gridCols:3}),H==="all"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:A.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i,className:St([l.type==="digital"&&"border-teal-400"])},`${l}-${l.id}`))}),H==="human"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Se.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i},l.id))}),H==="digital"&&(0,Ht.jsx)("div",{className:`grid gap-4 ${i?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:_.map(l=>(0,Ht.jsx)(st,{colleague:l,onEdit:he,onDelete:pt,onViewDetails:Ee,compact:i,className:St([l.type==="digital"&&"border-teal-400"])},l.id))})]}),A.length===0&&(0,Ht.jsx)(I,{children:(0,Ht.jsx)(B,{className:"pt-6",children:(0,Ht.jsxs)("div",{className:"text-center py-8",children:[(0,Ht.jsx)(Y.Users,{className:"Ht-12 Ht-12 text-muted-foreground mx-auto mb-4"}),(0,Ht.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ht.jsx)("p",{className:"text-muted-foreground mb-4",children:v||E!=="all"||p!=="all"?"Try adjusting your filters to see more results.":"Get started by adding your first colleague."}),(0,Ht.jsxs)(M,{onClick:be,className:"gap-2",children:[(0,Ht.jsx)(Y.Plus,{className:"Ht-4 Ht-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
5
+ "use strict";"use client";var ho=Object.create;var it=Object.defineProperty;var yo=Object.getOwnPropertyDescriptor;var wo=Object.getOwnPropertyNames;var xo=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var No=(e,t)=>{for(var o in t)it(e,o,{get:t[o],enumerable:!0})},kt=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of wo(t))!Co.call(e,n)&&n!==o&&it(e,n,{get:()=>t[n],enumerable:!(a=yo(t,n))||a.enumerable});return e};var Z=(e,t,o)=>(o=e!=null?ho(xo(e)):{},kt(t||!e||!e.__esModule?it(o,"default",{value:e,enumerable:!0}):o,e)),So=e=>kt(it({},"__esModule",{value:!0}),e);var va={};No(va,{default:()=>vo});module.exports=So(va);var me=require("react"),ae=require("lucide-react");var Ht=require("clsx");var xt="-",Po=e=>{let t=Do(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:p=>{let l=p.split(xt);return l[0]===""&&l.length!==1&&l.shift(),It(l,t)||Ro(p)},getConflictingClassGroupIds:(p,l)=>{let N=o[p]||[];return l&&a[p]?[...N,...a[p]]:N}}},It=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),n=a?It(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let i=e.join(xt);return t.validators.find(({validator:p})=>p(i))?.classGroupId},Mt=/^\[(.+)\]$/,Ro=e=>{if(Mt.test(e)){let t=Mt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},Do=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return ko(Object.entries(e.classGroups),o).forEach(([i,p])=>{wt(p,a,i,t)}),a},wt=(e,t,o,a)=>{e.forEach(n=>{if(typeof n=="string"){let i=n===""?t:At(t,n);i.classGroupId=o;return}if(typeof n=="function"){if(To(n)){wt(n(a),t,o,a);return}t.validators.push({validator:n,classGroupId:o});return}Object.entries(n).forEach(([i,p])=>{wt(p,At(t,i),o,a)})})},At=(e,t)=>{let o=e;return t.split(xt).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},To=e=>e.isThemeGetter,ko=(e,t)=>t?e.map(([o,a])=>{let n=a.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([p,l])=>[t+p,l])):i);return[o,n]}):e,Mo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,n=(i,p)=>{o.set(i,p),t++,t>e&&(t=0,a=o,o=new Map)};return{get(i){let p=o.get(i);if(p!==void 0)return p;if((p=a.get(i))!==void 0)return n(i,p),p},set(i,p){o.has(i)?o.set(i,p):n(i,p)}}},Lt="!",Ao=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,n=t[0],i=t.length,p=l=>{let N=[],b=0,I=0,r;for(let g=0;g<l.length;g++){let S=l[g];if(b===0){if(S===n&&(a||l.slice(g,g+i)===t)){N.push(l.slice(I,g)),I=g+i;continue}if(S==="/"){r=g;continue}}S==="["?b++:S==="]"&&b--}let f=N.length===0?l:l.substring(I),K=f.startsWith(Lt),H=K?f.substring(1):f,V=r&&r>I?r-I:void 0;return{modifiers:N,hasImportantModifier:K,baseClassName:H,maybePostfixModifierPosition:V}};return o?l=>o({className:l,parseClassName:p}):p},Io=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},Lo=e=>({cache:Mo(e.cacheSize),parseClassName:Ao(e),...Po(e)}),Bo=/\s+/,Eo=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:n}=t,i=[],p=e.trim().split(Bo),l="";for(let N=p.length-1;N>=0;N-=1){let b=p[N],{modifiers:I,hasImportantModifier:r,baseClassName:f,maybePostfixModifierPosition:K}=o(b),H=!!K,V=a(H?f.substring(0,K):f);if(!V){if(!H){l=b+(l.length>0?" "+l:l);continue}if(V=a(f),!V){l=b+(l.length>0?" "+l:l);continue}H=!1}let g=Io(I).join(":"),S=r?g+Lt:g,W=S+V;if(i.includes(W))continue;i.push(W);let L=n(V,H);for(let G=0;G<L.length;++G){let Y=L[G];i.push(S+Y)}l=b+(l.length>0?" "+l:l)}return l};function zo(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Bt(t))&&(a&&(a+=" "),a+=o);return a}var Bt=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Bt(e[a]))&&(o&&(o+=" "),o+=t);return o};function Ho(e,...t){let o,a,n,i=p;function p(N){let b=t.reduce((I,r)=>r(I),e());return o=Lo(b),a=o.cache.get,n=o.cache.set,i=l,l(N)}function l(N){let b=a(N);if(b)return b;let I=Eo(N,o);return n(N,I),I}return function(){return i(zo.apply(null,arguments))}}var $=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},Et=/^\[(?:([a-z-]+):)?(.+)\]$/i,jo=/^\Ut+\/\Ut+$/,$o=new Set(["px","full","screen"]),Vo=/^(\Ut+(\.\Ut+)?)?(xs|sm|md|lg|xl)$/,Uo=/\Ut+(%|px|r?em|[sdl]?Ut([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(Ut|Ut|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ko=/^(inset_)?-?((\Ut+)?\.?(\Ut+)[a-z]+|0)_-?((\Ut+)?\.?(\Ut+)[a-z]+|0)/,Wo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,be=e=>We(e)||$o.has(e)||jo.test(e),Ne=e=>Ge(e,"length",Qo),We=e=>!!e&&!Number.isNaN(Number(e)),yt=e=>Ge(e,"number",We),Qe=e=>!!e&&Number.isInteger(Number(e)),Go=e=>e.endsWith("%")&&We(e.slice(0,-1)),C=e=>Et.test(e),Se=e=>Vo.test(e),_o=new Set(["length","size","percentage"]),Oo=e=>Ge(e,_o,zt),qo=e=>Ge(e,"position",zt),Jo=new Set(["image","url"]),Xo=e=>Ge(e,Jo,ea),Zo=e=>Ge(e,"",Yo),Ye=()=>!0,Ge=(e,t,o)=>{let a=Et.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},Qo=e=>Uo.test(e)&&!Fo.test(e),zt=()=>!1,Yo=e=>Ko.test(e),ea=e=>Wo.test(e);var ta=()=>{let e=$("colors"),t=$("spacing"),o=$("blur"),a=$("brightness"),n=$("borderColor"),i=$("borderRadius"),p=$("borderSpacing"),l=$("borderWidth"),N=$("contrast"),b=$("grayscale"),I=$("hueRotate"),r=$("invert"),f=$("gap"),K=$("gradientColorStops"),H=$("gradientColorStopPositions"),V=$("inset"),g=$("margin"),S=$("opacity"),W=$("padding"),L=$("saturate"),G=$("scale"),Y=$("sepia"),Te=$("skew"),pe=$("space"),ge=$("translate"),ue=()=>["auto","contain","none"],ke=()=>["auto","hidden","clip","visible","scroll"],Me=()=>["auto",C,t],A=()=>[C,t],U=()=>["",be,Ne],se=()=>["auto",We,C],Ae=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ve=()=>["solid","dashed","dotted","double","none"],s=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",C],j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[We,C];return{cacheSize:500,separator:":",theme:{colors:[Ye],spacing:[be,Ne],blur:["none","",Se,C],brightness:B(),borderColor:[e],borderRadius:["none","","full",Se,C],borderSpacing:A(),borderWidth:U(),contrast:B(),grayscale:M(),hueRotate:B(),invert:M(),gap:A(),gradientColorStops:[e],gradientColorStopPositions:[Go,Ne],inset:Me(),margin:Me(),opacity:B(),padding:A(),saturate:B(),scale:B(),sepia:M(),skew:B(),space:A(),translate:A()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[Se]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:[...Ae(),C]}],overflow:[{overflow:ke()}],"overflow-Ut":[{"overflow-Ut":ke()}],"overflow-Ut":[{"overflow-Ut":ke()}],overscroll:[{overscroll:ue()}],"overscroll-Ut":[{"overscroll-Ut":ue()}],"overscroll-Ut":[{"overscroll-Ut":ue()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[V]}],"inset-Ut":[{"inset-Ut":[V]}],"inset-Ut":[{"inset-Ut":[V]}],start:[{start:[V]}],end:[{end:[V]}],top:[{top:[V]}],right:[{right:[V]}],bottom:[{bottom:[V]}],left:[{left:[V]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qe,C]}],basis:[{basis:Me()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Qe,C]}],"grid-cols":[{"grid-cols":[Ye]}],"col-start-end":[{col:["auto",{span:["full",Qe,C]},C]}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":[Ye]}],"row-start-end":[{row:["auto",{span:[Qe,C]},C]}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[f]}],"gap-Ut":[{"gap-Ut":[f]}],"gap-Ut":[{"gap-Ut":[f]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],Ut:[{Ut:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],Ut:[{Ut:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-Ut":[{"space-Ut":[pe]}],"space-Ut-reverse":["space-Ut-reverse"],"space-Ut":[{"space-Ut":[pe]}],"space-Ut-reverse":["space-Ut-reverse"],Ut:[{Ut:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-Ut":[{"min-Ut":[C,t,"min","max","fit"]}],"max-Ut":[{"max-Ut":[C,t,"none","full","min","max","fit","prose",{screen:[Se]},Se]}],Ut:[{Ut:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-Ut":[{"min-Ut":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-Ut":[{"max-Ut":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Se,Ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yt]}],"font-family":[{font:[Ye]}],"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",C]}],"line-clamp":[{"line-clamp":["none",We,yt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",be,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[S]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[S]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",be,Ne]}],"underline-offset":[{"underline-offset":["auto",be,C]}],"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:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],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",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[S]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Ae(),qo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","Ut","Ut","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Oo]}],"bg-image":[{bg:["none",{"gradient-$t":["t","tr","r","br","b","bl","l","tl"]},Xo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[H]}],"gradient-via-pos":[{via:[H]}],"gradient-$t-pos":[{$t:[H]}],"gradient-from":[{from:[K]}],"gradient-via":[{via:[K]}],"gradient-$t":[{$t:[K]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ae":[{"rounded-ae":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-Ut":[{border:[l]}],"border-Ut-Ut":[{"border-Ut":[l]}],"border-Ut-Ut":[{"border-Ut":[l]}],"border-Ut-s":[{"border-s":[l]}],"border-Ut-e":[{"border-e":[l]}],"border-Ut-t":[{"border-t":[l]}],"border-Ut-r":[{"border-r":[l]}],"border-Ut-b":[{"border-b":[l]}],"border-Ut-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[S]}],"border-style":[{border:[...ve(),"hidden"]}],"divide-Ut":[{"divide-Ut":[l]}],"divide-Ut-reverse":["divide-Ut-reverse"],"divide-Ut":[{"divide-Ut":[l]}],"divide-Ut-reverse":["divide-Ut-reverse"],"divide-opacity":[{"divide-opacity":[S]}],"divide-style":[{divide:ve()}],"border-color":[{border:[n]}],"border-color-Ut":[{"border-Ut":[n]}],"border-color-Ut":[{"border-Ut":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ve()]}],"outline-offset":[{"outline-offset":[be,C]}],"outline-Ut":[{outline:[be,Ne]}],"outline-color":[{outline:[e]}],"ring-Ut":[{ring:U()}],"ring-Ut-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[S]}],"ring-offset-Ut":[{"ring-offset":[be,Ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Se,Zo]}],"shadow-color":[{shadow:[Ye]}],opacity:[{opacity:[S]}],"mix-blend":[{"mix-blend":[...s(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":s()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[N]}],"drop-shadow":[{"drop-shadow":["","none",Se,C]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[I]}],invert:[{invert:[r]}],saturate:[{saturate:[L]}],sepia:[{sepia:[Y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[N]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I]}],"backdrop-invert":[{"backdrop-invert":[r]}],"backdrop-opacity":[{"backdrop-opacity":[S]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[p]}],"border-spacing-Ut":[{"border-spacing-Ut":[p]}],"border-spacing-Ut":[{"border-spacing-Ut":[p]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-Ut":[{"scale-Ut":[G]}],"scale-Ut":[{"scale-Ut":[G]}],rotate:[{rotate:[Qe,C]}],"translate-Ut":[{"translate-Ut":[ge]}],"translate-Ut":[{"translate-Ut":[ge]}],"skew-Ut":[{"skew-Ut":[Te]}],"skew-Ut":[{"skew-Ut":[Te]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],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","Ut-resize","ae-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","Ut","Ut",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-Ut":[{"scroll-Ut":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-Ut":[{"scroll-Ut":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","Ut","Ut","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-Ut":[{"touch-pan":["Ut","left","right"]}],"touch-Ut":[{"touch-pan":["Ut","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-Ut":[{stroke:[be,Ne,yt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-Ut","overflow-Ut"],overscroll:["overscroll-Ut","overscroll-Ut"],inset:["inset-Ut","inset-Ut","start","end","top","right","bottom","left"],"inset-Ut":["right","left"],"inset-Ut":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-Ut","gap-Ut"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],Ut:["mx","my","ms","me","Ut","mr","mb","ml"],mx:["mr","ml"],my:["Ut","mb"],size:["Ut","Ut"],"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-ae","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ae"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-Ut","border-spacing-Ut"],"border-Ut":["border-Ut-s","border-Ut-e","border-Ut-t","border-Ut-r","border-Ut-b","border-Ut-l"],"border-Ut-Ut":["border-Ut-r","border-Ut-l"],"border-Ut-Ut":["border-Ut-t","border-Ut-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-Ut":["border-color-r","border-color-l"],"border-color-Ut":["border-color-t","border-color-b"],"scroll-Ut":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-Ut","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-Ut","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-Ut","touch-Ut","touch-pz"],"touch-Ut":["touch"],"touch-Ut":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var nt=Ho(ta);function u(...e){return nt((0,Ht.clsx)(e))}var jt=require("@radix-ui/react-slot"),$t=require("class-variance-authority"),Vt=Z(require("react")),Ut=require("react/jsx-runtime"),oa=(0,$t.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:"Ut-10 px-4 py-2",icon:"Ut-10 Ut-10",lg:"Ut-11 rounded px-8",sm:"Ut-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"}}}),P=Vt.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...n},i)=>(0,Ut.jsx)(e?jt.Slot:"button",{className:u(oa({className:t,size:o,variant:a})),ref:i,...n}));P.displayName="Button";var Ie=Z(require("react"));var E=Ie.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:u("rounded-xl border bg-card text-card-foreground shadow",e),...t}));E.displayName="Card";var O=Ie.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:u("flex flex-col space-Ut-1.5 p-6",e),...t}));O.displayName="CardHeader";var X=Ie.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:u("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var aa=Ie.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:u("text-sm text-muted-foreground",e),...t}));aa.displayName="CardDescription";var z=Ie.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:u("p-6 pt-0",e),...t}));z.displayName="CardContent";var ra=Ie.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("div",{ref:o,className:u("flex items-center p-6 pt-0",e),...t}));ra.displayName="CardFooter";var Ft=Z(require("react"));var re=Ft.forwardRef(({className:e,type:t,...o},a)=>(0,Ut.jsx)("input",{type:t,className:u("flex Ut-9 Ut-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:a,...o}));re.displayName="Input";var R=Z(require("@radix-ui/react-select")),Pe=Z(require("react")),_e=R.Root;var Oe=R.Value,Ee=Pe.forwardRef(({children:e,className:t,...o},a)=>(0,Ut.jsxs)(R.Trigger,{className:u("flex Ut-10 Ut-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:a,...o,children:[e,(0,Ut.jsx)(R.Icon,{asChild:!0,children:(0,Ut.jsx)(ae.ChevronDown,{className:"Ut-4 Ut-4 opacity-50"})})]}));Ee.displayName=R.Trigger.displayName;var Wt=Pe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(R.ScrollUpButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(ae.ChevronUp,{className:"Ut-4 Ut-4"})}));Wt.displayName=R.ScrollUpButton.displayName;var Gt=Pe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(R.ScrollDownButton,{className:u("flex cursor-default items-center justify-center py-1",e),ref:o,...t,children:(0,Ut.jsx)(ae.ChevronDown,{className:"Ut-4 Ut-4"})}));Gt.displayName=R.ScrollDownButton.displayName;var ze=Pe.forwardRef(({children:e,className:t,position:o="popper",...a},n)=>(0,Ut.jsx)(R.Portal,{children:(0,Ut.jsxs)(R.Content,{className:u("relative z-50 max-Ut-96 min-Ut-[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",o==="popper"&&"data-[side=bottom]:translate-Ut-1 data-[side=left]:-translate-Ut-1 data-[side=right]:translate-Ut-1 data-[side=top]:-translate-Ut-1",t),position:o,ref:n,...a,children:[(0,Ut.jsx)(Wt,{}),(0,Ut.jsx)(R.Viewport,{className:u("p-1",o==="popper"&&"Ut-[var(--radix-select-trigger-height)] Ut-full min-Ut-[var(--radix-select-trigger-width)]"),children:e}),(0,Ut.jsx)(Gt,{})]})}));ze.displayName=R.Content.displayName;var ia=Pe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(R.Label,{className:u("py-1.5 pl-8 pr-2 text-sm font-semibold",e),ref:o,...t}));ia.displayName=R.Label.displayName;var le=Pe.forwardRef(({children:e,className:t,...o},a)=>(0,Ut.jsxs)(R.Item,{className:u("relative flex Ut-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:a,...o,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex Ut-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(R.ItemIndicator,{children:(0,Ut.jsx)(ae.Check,{className:"Ut-4 Ut-4"})})}),(0,Ut.jsx)(R.ItemText,{children:e})]}));le.displayName=R.Item.displayName;var na=Pe.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(R.Separator,{className:u("-mx-1 my-1 Ut-px bg-muted",e),ref:o,...t}));na.displayName=R.Separator.displayName;var Ct=require("motion/react");var He=Z(require("@radix-ui/react-tabs"));function _t({className:e,...t}){return(0,Ut.jsx)(He.Root,{"data-slot":"tabs",className:u("flex flex-col gap-2",e),...t})}function Ot({className:e,...t}){return(0,Ut.jsx)(He.List,{"data-slot":"tabs-list",className:u("bg-muted text-muted-foreground inline-flex Ut-9 Ut-fit items-center justify-center rounded-lg p-[3px]",e),...t})}function qt({className:e,...t}){return(0,Ut.jsx)(He.Trigger,{"data-slot":"tabs-trigger",className:u("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 Ut-[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})}var he=Z(require("react")),D=Z(require("@radix-ui/react-dropdown-menu")),qe=require("@radix-ui/react-icons");var lt=D.Root,dt=D.Trigger;var sa=he.forwardRef(({className:e,inset:t,children:o,...a},n)=>(0,Ut.jsxs)(D.SubTrigger,{ref:n,className:u("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),...a,children:[o,(0,Ut.jsx)(qe.ChevronRightIcon,{className:"ml-auto"})]}));sa.displayName=D.SubTrigger.displayName;var la=he.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(D.SubContent,{ref:o,className:u("z-50 min-Ut-[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}));la.displayName=D.SubContent.displayName;var et=he.forwardRef(({className:e,sideOffset:t=4,...o},a)=>(0,Ut.jsx)(D.Portal,{children:(0,Ut.jsx)(D.Content,{ref:a,sideOffset:t,className:u("z-50 min-Ut-[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),...o})}));et.displayName=D.Content.displayName;var je=he.forwardRef(({className:e,inset:t,...o},a)=>(0,Ut.jsx)(D.Item,{ref:a,className:u("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),...o}));je.displayName=D.Item.displayName;var da=he.forwardRef(({className:e,children:t,checked:o,...a},n)=>(0,Ut.jsxs)(D.CheckboxItem,{ref:n,className:u("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:o,...a,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex Ut-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(D.ItemIndicator,{children:(0,Ut.jsx)(qe.CheckIcon,{className:"Ut-4 Ut-4"})})}),t]}));da.displayName=D.CheckboxItem.displayName;var ca=he.forwardRef(({className:e,children:t,...o},a)=>(0,Ut.jsxs)(D.RadioItem,{ref:a,className:u("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),...o,children:[(0,Ut.jsx)("span",{className:"absolute left-2 flex Ut-3.5 Ut-3.5 items-center justify-center",children:(0,Ut.jsx)(D.ItemIndicator,{children:(0,Ut.jsx)(qe.DotFilledIcon,{className:"Ut-4 Ut-4 fill-current"})})}),t]}));ca.displayName=D.RadioItem.displayName;var ma=he.forwardRef(({className:e,inset:t,...o},a)=>(0,Ut.jsx)(D.Label,{ref:a,className:u("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...o}));ma.displayName=D.Label.displayName;var pa=he.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(D.Separator,{ref:o,className:u("-mx-1 my-1 Ut-px bg-muted",e),...t}));pa.displayName=D.Separator.displayName;var ua=({className:e,...t})=>(0,Ut.jsx)("span",{className:u("ml-auto text-xs tracking-widest opacity-60",e),...t});ua.displayName="DropdownMenuShortcut";function Xt({activeTab:e,onTabChange:t,tabOptions:o,className:a="",maxWidth:n="700px",gridCols:i=6}){let p=o.find(l=>l.value===e);return(0,Ut.jsxs)(Ct.motion.div,{className:`flex-1 flex justify-center ${a}`,initial:{opacity:0,Ut:-20},animate:{opacity:1,Ut:0},transition:{duration:.3,ease:"easeOut"},children:[(0,Ut.jsx)("div",{className:"hidden lg:block",children:(0,Ut.jsx)(_t,{value:e,onValueChange:t,children:(0,Ut.jsx)(Ot,{className:"grid Ut-full rounded-2xl p-0 Ut-10",style:{maxWidth:n,gridTemplateColumns:`repeat(${Math.min(i,o.length)}, minmax(0, 1fr))`},children:o.map(l=>(0,Ut.jsx)(Ct.motion.div,{whileHover:{scale:1.1},whileTap:{scale:.98},transition:{type:"spring",stiffness:400,damping:17},className:"flex-1 px-2",children:(0,Ut.jsx)(qt,{value:l.value,onClick:()=>t?.(l.value),className:"Ut-full Ut-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:l.label})},l.value))})})}),(0,Ut.jsx)("div",{className:"lg:hidden",children:(0,Ut.jsxs)(lt,{children:[(0,Ut.jsx)(dt,{asChild:!0,children:(0,Ut.jsxs)(P,{variant:"outline",className:"rounded-2xl min-Ut-[140px] justify-between",children:[p?.label||"Select",(0,Ut.jsx)(ae.ChevronDown,{className:"Ut-4 Ut-4 ml-2"})]})}),(0,Ut.jsx)(et,{align:"center",className:"Ut-[180px]",children:o.map(l=>(0,Ut.jsx)(je,{onClick:()=>t?.(l.value),className:`cursor-pointer ${e===l.value?"bg-accent":""}`,children:l.label},l.value))})]})})]})}var ct=Z(require("react")),ye=Z(require("@radix-ui/react-avatar"));var $e=ct.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(ye.Root,{ref:o,className:u("relative flex Ut-10 Ut-10 shrink-0 overflow-hidden rounded-full",e),...t}));$e.displayName=ye.Root.displayName;var Nt=ct.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(ye.Image,{ref:o,className:u("aspect-square Ut-full Ut-full",e),...t}));Nt.displayName=ye.Image.displayName;var Ve=ct.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(ye.Fallback,{ref:o,className:u("flex Ut-full Ut-full items-center justify-center rounded-full bg-muted",e),...t}));Ve.displayName=ye.Fallback.displayName;var fa=(0,$t.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 oe({className:e,variant:t,...o}){return(0,Ut.jsx)("div",{className:u(fa({variant:t}),e),...o})}function pt({colleague:e,onEdit:t,onDelete:o,onViewDetails:a,showActions:n=!0,compact:i=!1,className:p}){let[l,N]=(0,me.useState)(!1),b=f=>{switch(f){case"active":return"bg-green-500";case"inactive":return"bg-gray-500";default:return"bg-gray-500"}},I=f=>{switch(f){case"active":return"Active";case"inactive":return"Inactive";default:return"Unknown"}},r=f=>{if(!f)return"Never";let H=Math.floor((new Date().getTime()-f.getTime())/(1e3*60));return H<1?"Just now":H<60?`${H}Ut ago`:H<1440?`${Math.floor(H/60)}Ut ago`:`${Math.floor(H/1440)}Ut ago`};return(0,Ut.jsxs)(E,{className:u("hover:shadow-md transition-shadow",i&&"p-2",p),children:[(0,Ut.jsx)(O,{className:u("pb-3",i&&"pb-2"),children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)("div",{className:"relative",children:(0,Ut.jsxs)($e,{className:u("Ut-12 Ut-12",i&&"Ut-8 Ut-8"),children:[(0,Ut.jsx)(Nt,{src:"/placeholder.svg",alt:e.name||"name"}),(0,Ut.jsx)(Ve,{children:e.name?.split(" ").map(f=>f[0]).join("")})]})}),(0,Ut.jsxs)("div",{className:"flex-1 min-Ut-0",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ut.jsx)("h3",{className:u("font-semibold text-sm truncate",i&&"text-xs"),children:e.name}),e.type==="digital"?(0,Ut.jsx)(ae.Bot,{className:u("Ut-4 Ut-4 text-blue-500",i&&"Ut-3 Ut-3")}):(0,Ut.jsx)(ae.User,{className:u("Ut-4 Ut-4 text-green-500",i&&"Ut-3 Ut-3")})]}),(0,Ut.jsx)("p",{className:u("text-sm text-muted-foreground truncate",i&&"text-xs")}),!i&&(0,Ut.jsx)("div",{className:"flex items-center gap-2 Ut-1"})]})]}),n&&(0,Ut.jsxs)(lt,{children:[(0,Ut.jsx)(dt,{asChild:!0,children:(0,Ut.jsx)(P,{variant:"ghost",size:"icon",className:u("Ut-8 Ut-8",i&&"Ut-6 Ut-6"),children:(0,Ut.jsx)(ae.MoreHorizontal,{className:u("Ut-4 Ut-4",i&&"Ut-3 Ut-3")})})}),(0,Ut.jsxs)(et,{align:"end",children:[e.type==="digital"&&(0,Ut.jsxs)(Ut.Fragment,{children:[(0,Ut.jsxs)(je,{onClick:()=>a?.(e),children:[(0,Ut.jsx)(ae.Settings,{className:"Ut-4 Ut-4 mr-2"}),"View Details"]}),(0,Ut.jsxs)(je,{onClick:()=>t?.(e),children:[(0,Ut.jsx)(ae.Edit,{className:"Ut-4 Ut-4 mr-2"}),"Edit"]})]}),(0,Ut.jsxs)(je,{onClick:()=>o?.(e.id.toString()),className:"text-destructive focus:text-destructive",children:[(0,Ut.jsx)(ae.Trash2,{className:"Ut-4 Ut-4 mr-2"}),e.type==="digital"?"Delete":"Remove from team"]})]})]})]})}),!i&&(0,Ut.jsxs)(z,{className:"pt-0",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[e.type==="human"&&(0,Ut.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,Ut.jsx)(ae.Mail,{className:"Ut-3 Ut-3"}),(0,Ut.jsx)("span",{className:"truncate",children:e.email})]}),e.type==="digital"&&(0,Ut.jsx)("div",{className:"flex items-center gap-2 text-muted-foreground",children:(0,Ut.jsx)("span",{children:e.description})})]}),e.type==="digital"&&(0,Ut.jsx)("div",{className:"Ut-3",children:(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e.capabilities?.slice(0,l?e.capabilities.length:2).map(f=>(0,Ut.jsx)(oe,{variant:"outline",className:"text-xs",children:typeof f?.value=="number"?f?.value||"":f?.value?.name||""},typeof f?.value=="number"?f?.value||"":f?.value?.name||"")),(e.capabilities?.length||0)>2&&(0,Ut.jsx)(P,{variant:"ghost",size:"sm",className:"Ut-5 px-2 text-xs",onClick:()=>N(!l),children:l?"Show less":`+${(e.capabilities?.length||0)-2} more`})]})})]})]})}var eo=Z(require("react")),St=Z(require("@radix-ui/react-label"));var ga=(0,$t.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),de=eo.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)(St.Root,{ref:o,className:u(ga(),e),...t}));de.displayName=St.Root.displayName;var ao=Z(require("react")),tt=ao.forwardRef(({className:e,...t},o)=>(0,Ut.jsx)("textarea",{className:u("flex min-Ut-[80px] Ut-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:o,...t}));tt.displayName="Textarea";var Pt=Z(require("react")),ie=Z(require("@radix-ui/react-scroll-area"));var Rt=Pt.forwardRef(({className:e,children:t,...o},a)=>(0,Ut.jsxs)(ie.Root,{ref:a,className:u("relative overflow-hidden",e),...o,children:[(0,Ut.jsx)(ie.Viewport,{className:"Ut-full Ut-full rounded-[inherit]",children:t}),(0,Ut.jsx)(io,{}),(0,Ut.jsx)(ie.Corner,{})]}));Rt.displayName=ie.Root.displayName;var io=Pt.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,Ut.jsx)(ie.ScrollAreaScrollbar,{ref:a,orientation:t,className:u("flex touch-none select-none transition-colors",t==="vertical"&&"Ut-full Ut-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"Ut-2.5 flex-col border-t border-t-transparent p-[1px]",e),...o,children:(0,Ut.jsx)(ie.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));io.displayName=ie.ScrollAreaScrollbar.displayName;function no({selectedDocuments:e,onDocumentsChange:t,availableDocuments:o,label:a,placeholder:n="Search knowledge documents...",maxSelections:i,disabled:p=!1}){let[l,N]=(0,me.useState)(""),[b,I]=(0,me.useState)([]),[r,f]=(0,me.useState)(!1);(0,me.useEffect)(()=>{if(!l.trim()){I([]),f(!1);return}let g=o.filter(S=>{if(e.map(G=>G.id).includes(S.id))return!1;let L=l.toLowerCase();return S.title.toLowerCase().includes(L)||S.description?.toLowerCase().includes(L)||S.tags?.some(G=>G.toLowerCase().includes(L))||Object.values(S.metadata||{}).some(G=>String(G).toLowerCase().includes(L))});I(g),f(!0)},[l,e,o]);let K=g=>{i&&e.length>=i&&e.pop(),t([...e,g]),N(""),f(!1)},H=g=>{t(e.filter(S=>S.id!==g))},V=!i||e.length<i;return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{children:a}),(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(ae.Search,{className:"absolute left-3 top-3 Ut-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{value:l,onChange:g=>N(g.target.value),placeholder:V?n:`Maximum ${i} documents selected`,className:"pl-9",disabled:p||!V,onFocus:()=>l&&f(!0)})]}),r&&b.length>0&&(0,Ut.jsx)(E,{className:"absolute top-full left-0 right-0 z-10 Ut-1 max-Ut-60 overflow-Ut-scroll no-scrollbar",children:(0,Ut.jsx)(Rt,{className:"Ut-full",children:(0,Ut.jsx)(z,{className:"p-2",children:b.map(g=>(0,Ut.jsx)(P,{variant:"ghost",className:"Ut-full justify-start Ut-auto p-3 mb-1",onClick:()=>K(g),disabled:p,children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3 Ut-full",children:[(0,Ut.jsx)(ae.FileText,{className:"Ut-4 Ut-4 Ut-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"text-left flex-1 min-Ut-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm truncate",children:g.title}),g.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground Ut-1 line-clamp-2",children:g.description}),g.tags&&g.tags.length>0&&(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-1 Ut-2",children:[g.tags.slice(0,3).map(S=>(0,Ut.jsx)(oe,{variant:"outline",className:"text-xs",children:S},S)),g.tags.length>3&&(0,Ut.jsxs)(oe,{variant:"outline",className:"text-xs",children:["+",g.tags.length-3," more"]})]})]})]})},g.id))})})}),r&&l&&b.length===0&&(0,Ut.jsx)(E,{className:"absolute top-full left-0 right-0 z-10 Ut-1",children:(0,Ut.jsxs)(z,{className:"p-4 text-center text-sm text-muted-foreground",children:['No knowledge documents found for "',l,'"']})})]}),e.length>0&&(0,Ut.jsx)("div",{className:"space-Ut-2",children:(0,Ut.jsx)("div",{className:"space-Ut-2",children:e.map(g=>(0,Ut.jsx)(E,{className:"p-3",children:(0,Ut.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Ut.jsx)(ae.FileText,{className:"Ut-4 Ut-4 Ut-0.5 text-muted-foreground flex-shrink-0"}),(0,Ut.jsxs)("div",{className:"flex-1 min-Ut-0",children:[(0,Ut.jsx)("div",{className:"font-medium text-sm",children:g.title}),g.description&&(0,Ut.jsx)("div",{className:"text-xs text-muted-foreground Ut-1",children:g.description}),g.tags&&g.tags.length>0&&(0,Ut.jsx)("div",{className:"flex flex-wrap gap-1 Ut-2",children:g.tags.map(S=>(0,Ut.jsxs)(oe,{variant:"outline",className:"text-xs",children:[(0,Ut.jsx)(ae.Tag,{className:"Ut-3 Ut-3 mr-1"}),S]},S))})]}),(0,Ut.jsx)(P,{type:"button",variant:"ghost",size:"icon",className:"Ut-6 Ut-6 flex-shrink-0",onClick:()=>H(g.id),disabled:p,children:(0,Ut.jsx)(ae.X,{className:"Ut-3 Ut-3"})})]})},g.id))})}),r&&(0,Ut.jsx)("div",{className:"fixed inset-0 z-0",onClick:()=>f(!1)})]})}function Dt({colleague:e,onSave:t,onCancel:o,isLoading:a=!1,title:n,submitLabel:i,cancelLabel:p="Cancel",readOnly:l=!1,availableKnowledgeDocuments:N=[],availableCapabilities:b=[],availableModels:I=[]}){let[r,f]=(0,me.useState)(()=>{let s=e?.model||e?.metadata?.model||null;return{type:"digital",name:"",description:"",jobDescription:"",workInstructions:"",capabilities:[],capabilityLevel:0,coreKnowledge:null,...e,model:s}}),[K,H]=(0,me.useState)(""),[V,g]=(0,me.useState)(""),[S,W]=(0,me.useState)(""),[L,G]=(0,me.useState)(!l),Y=r.model,Te=Y?typeof Y=="number"?`${Y}`:typeof Y=="object"&&Y!==null&&"id"in Y?`${Y.id}`:"":"";(0,me.useEffect)(()=>{if(e){let s=e?.model||e?.metadata?.model||null;f({...e,model:s})}},[e]);let pe=s=>{s.preventDefault();let k={id:r.id||parseInt(Date.now().toString()),name:r?.name,type:"digital",description:r.description,jobDescription:r.jobDescription||"",workInstructions:r.workInstructions||"",capabilities:r.capabilities||[],capabilityLevel:r.capabilityLevel||0,coreKnowledge:r.coreKnowledge||null,model:r.model||null,metadata:r.metadata||{}};t(k)},ge=(s,k,M)=>{if(!k.trim())return;let j=r[s]||[];f({...r,[s]:[...j,k.trim()]}),M("")},ue=(s,k)=>{let M=r[s]||[];f({...r,[s]:M.filter((j,B)=>B!==k)})},ke=()=>{if(!S)return;let[s,k]=S.split(":");if(!s)return;let M=b.find(_=>`${_.relationTo}:${typeof _.value=="number"?_.value:_.value.id}`===S);if(!M)return;let j=r.capabilities||[],B={relationTo:s,value:M.value};j.some(_=>{let Fe=typeof _.value=="object"?_.value.id:_.value,bt=typeof B.value=="object"?B.value.id:B.value;return _.relationTo===B.relationTo&&Fe===bt})||(f({...r,capabilities:[...j,B]}),W(""))},Me=s=>{let k=r.capabilities||[];f({...r,capabilities:k.filter((M,j)=>j!==s)})},A=s=>{if(!s||s==="__none__"){f({...r,model:null});return}let k=I.find(M=>`${M.id}`===s);if(k){let M=typeof k.id=="string"?parseInt(k.id,10):k.id;f({...r,model:isNaN(M)?null:M})}},U=s=>{s.preventDefault(),G(!L)},se=(s,k,M,j,B)=>{let Ue=r[s]||[];return(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{children:k}),L&&(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsx)(re,{value:M,onChange:_=>j(_.target.value),placeholder:B,onKeyPress:_=>{_.key==="Enter"&&(_.preventDefault(),ge(s,M,j))},disabled:a}),(0,Ut.jsx)(P,{type:"button",variant:"outline",size:"icon",onClick:()=>ge(s,M,j),disabled:a,children:(0,Ut.jsx)(ae.Plus,{className:"Ut-4 Ut-4"})})]}),(0,Ut.jsx)("div",{className:"flex flex-wrap gap-2",children:Ue.map((_,Fe)=>(0,Ut.jsxs)(oe,{className:"gap-1",children:[_,L&&(0,Ut.jsx)(P,{type:"button",variant:"ghost",size:"icon",className:"Ut-4 Ut-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>ue(s,Fe),disabled:a,children:(0,Ut.jsx)(ae.X,{className:"Ut-3 Ut-3"})})]},`${s}-${Fe}-${_}`))})]})},Ae=n||(L?e?"Edit Colleague":"Add New Colleague":"View Colleague"),ve=i||(e?"Update Colleague":"Add Colleague");return(0,Ut.jsxs)(E,{className:"Ut-8 Ut-full max-Ut-4xl mx-auto overflow-Ut-scroll no-scrollbar",children:[(0,Ut.jsx)(O,{children:(0,Ut.jsxs)(X,{className:"flex items-center gap-2",children:[(0,Ut.jsx)(ae.Bot,{className:"Ut-5 Ut-5"}),Ae]})}),(0,Ut.jsx)(z,{className:"overflow-Ut-scroll no-scrollbar",children:(0,Ut.jsxs)("form",{onSubmit:pe,className:"space-Ut-6",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{htmlFor:"name",children:"Name *"}),(0,Ut.jsx)(re,{id:"name",value:r?.name||"",onChange:s=>f({...r,name:s.target.value}),required:!0,disabled:a||!L})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{htmlFor:"description",children:"Description"}),(0,Ut.jsx)(tt,{id:"description",value:r.description||"",onChange:s=>f({...r,description:s.target.value}),rows:3,placeholder:"Brief description of this digital colleague...",disabled:a||!L})]})]}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("h3",{className:"text-lg font-semibold",children:"Digital Colleague Details"}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{htmlFor:"jobDescription",children:"Job Description *"}),(0,Ut.jsx)(tt,{id:"jobDescription",value:r.jobDescription||"",onChange:s=>f({...r,jobDescription:s.target.value}),rows:4,required:r.type==="digital",disabled:a||!L})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{htmlFor:"workInstructions",children:"Work Instructions"}),(0,Ut.jsx)(tt,{id:"workInstructions",value:r.workInstructions||"",onChange:s=>f({...r,workInstructions:s.target.value}),rows:4,placeholder:"Enter detailed work instructions for this digital colleague...",disabled:a||!L})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{children:"Capabilities"}),L&&b.length>0&&(0,Ut.jsxs)("div",{className:"flex gap-2",children:[(0,Ut.jsxs)(_e,{value:S,onValueChange:W,disabled:a,children:[(0,Ut.jsx)(Ee,{className:"flex-1",children:(0,Ut.jsx)(Oe,{placeholder:"Select a capability"})}),(0,Ut.jsx)(ze,{children:b.filter(s=>{let k=r.capabilities||[],M=typeof s.value=="object"?s.value.id:s.value;return!k.some(j=>{let B=typeof j.value=="object"?j.value.id:j.value;return j.relationTo===s.relationTo&&B===M})}).map((s,k)=>{let M=typeof s.value=="object"?s.value.id:s.value,j=typeof s.value=="object"?s.value.name:void 0,B=`${s.relationTo}:${M}`,Ue=j?`${s.relationTo}: ${j}`:`${s.relationTo} (ID: ${M})`;return(0,Ut.jsx)(le,{value:B,children:Ue},B)})})]}),(0,Ut.jsx)(P,{type:"button",variant:"outline",size:"icon",onClick:ke,disabled:a||!S,children:(0,Ut.jsx)(ae.Plus,{className:"Ut-4 Ut-4"})})]}),L&&b.length===0&&(0,Ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"No capabilities available. Please provide availableCapabilities prop."}),(0,Ut.jsx)("div",{className:"flex flex-wrap gap-2",children:r.capabilities?.map((s,k)=>{let M;if(typeof s=="string")M=s;else{let j=typeof s.value=="object"?s.value.id:s.value,B=typeof s.value=="object"?s.value.name:void 0;M=B?`${s.relationTo}: ${B}`:`${s.relationTo} (ID: ${j})`}return(0,Ut.jsxs)(oe,{className:"gap-1",children:[M,L&&(0,Ut.jsx)(P,{type:"button",variant:"ghost",size:"icon",className:"Ut-4 Ut-4 p-0 hover:bg-accent hover:text-accent-foreground",onClick:()=>Me(k),disabled:a,children:(0,Ut.jsx)(ae.X,{className:"Ut-3 Ut-3"})})]},`capability-${k}`)})})]}),(0,Ut.jsxs)("div",{className:"space-Ut-2",children:[(0,Ut.jsx)(de,{children:"Model"}),L&&I.length>0?(0,Ut.jsxs)(_e,{value:Te||"__none__",onValueChange:A,disabled:a,children:[(0,Ut.jsx)(Ee,{children:(0,Ut.jsx)(Oe,{placeholder:"Select a model"})}),(0,Ut.jsxs)(ze,{children:[(0,Ut.jsx)(le,{value:"__none__",children:"None"}),I.map(s=>{let k=`${s.id}`;return(0,Ut.jsx)(le,{value:k,children:s.name},k)})]})]}):L&&I.length===0?(0,Ut.jsx)("div",{className:"text-sm text-muted-foreground",children:"No models available. Please provide availableModels prop."}):(0,Ut.jsx)("div",{className:"text-sm",children:r.model?typeof r.model=="number"?`Model ${r.model}`:typeof r.model=="object"&&r.model!==null&&"name"in r.model?r.model.name||`Model ${r.model.id}`:`Model ${r.model}`:"No model selected"})]}),(0,Ut.jsx)(no,{selectedDocuments:r.coreKnowledge?[{id:r.coreKnowledge?.id?.toString(),title:r.coreKnowledge?.name,format:"markdown",content:r.coreKnowledge?.content||"",createdAt:new Date(r.coreKnowledge?.createdAt),description:r.coreKnowledge?.description||"",metadata:r.coreKnowledge?.metadata||{},updatedAt:new Date(r.coreKnowledge?.updatedAt)}]:[],onDocumentsChange:s=>{let k={createdAt:s[0]?.createdAt.toISOString(),id:parseInt(s[0]?.id),name:s[0]?.title,source:"payload",updatedAt:(s[0]?.updatedAt||new Date).toISOString()};f({...r,coreKnowledge:s&&s.length>0?k:void 0})},label:"Core Knowledge",placeholder:"Search for core knowledge documents...",maxSelections:1,disabled:a||!L,availableDocuments:N.map(s=>({id:s.id.toString(),title:s?.name,name:s?.name,format:"markdown",content:s.content||"",createdAt:new Date(s.createdAt),source:s.source,description:s.description||"",metadata:s.metadata||{},updatedAt:new Date(s.updatedAt)}))})]}),(0,Ut.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,Ut.jsx)(P,{type:"button",variant:"outline",onClick:o,disabled:a,children:L?p:"Close"}),L?(0,Ut.jsx)(P,{type:"submit",disabled:a,children:a?"Saving...":ve}):(0,Ut.jsxs)(P,{type:"button",onClick:U,disabled:a,className:"gap-2",children:[(0,Ut.jsx)(ae.Edit,{className:"Ut-4 Ut-4"}),"Edit"]})]})]})})]})}function so({users:e,onUserSelect:t,onCancel:o,selectedUserId:a}){let[n,i]=(0,me.useState)(""),p=Array.isArray(e)?e:[],l=(0,me.useMemo)(()=>p.filter(b=>b!=null&&b!==void 0).filter(b=>b?.name?.toLowerCase().includes(n.toLowerCase())||b?.email?.toLowerCase().includes(n.toLowerCase())),[p,n]),N=b=>{t(b)};return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(Ct.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(Ct.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(P,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(ae.ChevronLeft,{className:"Ut-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Select User"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose a user $t add as a colleague"})]})]}),(0,Ut.jsx)(E,{className:"container",children:(0,Ut.jsx)(z,{className:"pt-6",children:(0,Ut.jsx)("div",{className:"flex flex-col md:flex-row gap-4",children:(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(ae.Search,{className:"absolute left-3 top-3 Ut-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search users by name, email, role, or skills...",value:n,onChange:b=>i(b.target.value),className:"pl-9"})]})})})})}),(0,Ut.jsx)("div",{className:"container grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:l.map(b=>!b||!b.id?null:(0,Ut.jsx)(Ct.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(E,{className:`cursor-pointer transition-all hover:shadow-lg ${a===b.id?"ring-2 ring-primary":""}`,onClick:()=>N(b),children:[(0,Ut.jsx)(O,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)($e,{children:(0,Ut.jsx)(Ve,{children:(0,Ut.jsx)(ae.User,{className:"Ut-4 Ut-4"})})}),(0,Ut.jsx)("div",{children:(0,Ut.jsx)(X,{className:"text-lg",children:b?.name||"Unknown User"})})]}),a===b.id&&(0,Ut.jsx)(ae.Check,{className:"Ut-5 Ut-5 text-primary"})]})}),(0,Ut.jsx)(z,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Email"}),(0,Ut.jsx)("p",{className:"text-sm font-medium",children:b?.email||"No email"})]}),(0,Ut.jsx)("div",{children:(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Department"})})]})})]})},b.id))}),l.length===0&&(0,Ut.jsx)(E,{className:"container Ut-4",children:(0,Ut.jsx)(z,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(ae.User,{className:"Ut-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No users found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"user-selection")})})}function lo({digitalColleagues:e,onColleagueClone:t,onCancel:o,selectedColleagueId:a}){let[n,i]=(0,me.useState)(""),[p,l]=(0,me.useState)("all"),N=(0,me.useMemo)(()=>e.filter(r=>r?.name.toLowerCase().includes(n.toLowerCase())||r.jobDescription?.toLowerCase().includes(n.toLowerCase())||r.workInstructions?.toLowerCase().includes(n.toLowerCase())),[e,n,p]),b=r=>{let f={...r,name:`${r?.name} (Copy)`};t(f)},I=r=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(r);return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(Ct.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(Ct.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(P,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(ae.ChevronLeft,{className:"Ut-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Clone Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Select a digital colleague $t clone"})]})]}),(0,Ut.jsx)(E,{children:(0,Ut.jsx)(z,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(ae.Search,{className:"absolute left-3 top-3 Ut-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search by name, job description, or capabilities...",value:n,onChange:r=>i(r.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)("select",{value:p,onChange:r=>l(r.target.value),className:"Ut-10 px-3 rounded-md border border-input bg-background text-sm ring-offset-background",children:[(0,Ut.jsx)("option",{value:"all",children:"All Status"}),(0,Ut.jsx)("option",{value:"active",children:"Active"}),(0,Ut.jsx)("option",{value:"inactive",children:"Inactive"})]})]})})}),(0,Ut.jsx)("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:N.map(r=>(0,Ut.jsx)(Ct.motion.div,{layout:!0,initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.2},children:(0,Ut.jsxs)(E,{className:`cursor-pointer transition-all hover:shadow-lg ${a?.toString()===r.id.toString()?"ring-2 ring-primary":""}`,onClick:()=>b(r),children:[(0,Ut.jsx)(O,{className:"pb-3",children:(0,Ut.jsxs)("div",{className:"flex items-start justify-between",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Ut.jsx)($e,{children:(0,Ut.jsx)(Ve,{className:"bg-blue-100",children:(0,Ut.jsx)(ae.Bot,{className:"Ut-4 Ut-4 text-blue-600"})})}),(0,Ut.jsx)("div",{children:(0,Ut.jsx)(X,{className:"text-lg flex items-center gap-2",children:r?.name})})]}),(0,Ut.jsxs)(P,{size:"sm",variant:"outline",className:"gap-2 Ut-8",onClick:f=>{f.stopPropagation(),b(r)},children:[(0,Ut.jsx)(ae.Copy,{className:"Ut-3 Ut-3"}),"Clone"]})]})}),(0,Ut.jsx)(z,{className:"pt-0",children:(0,Ut.jsxs)("div",{className:"space-Ut-3",children:[(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Job Description"}),(0,Ut.jsx)("p",{className:"text-sm line-clamp-2",children:r.jobDescription})]}),r.capabilities&&r.capabilities.length>0&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground mb-2",children:"Capabilities"}),(0,Ut.jsx)("div",{className:"flex flex-wrap gap-1",children:r.capabilities.length>3&&(0,Ut.jsxs)(oe,{variant:"outline",className:"text-xs",children:["+",r.capabilities.length-3]})})]}),(0,Ut.jsx)("div",{className:"flex items-center justify-between text-xs text-muted-foreground"}),r.workInstructions&&(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("p",{className:"text-sm text-muted-foreground",children:"Instructions"}),(0,Ut.jsx)("p",{className:"text-xs line-clamp-2",children:r.workInstructions})]})]})})]})},r.id))}),N.length===0&&(0,Ut.jsx)(E,{children:(0,Ut.jsx)(z,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(ae.Bot,{className:"Ut-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No digital colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Try adjusting your search terms or filters."})]})})})]},"colleague-clone")})})}function co({onSelectHuman:e,onSelectDigital:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(Ct.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(Ct.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(P,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(ae.ChevronLeft,{className:"Ut-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose the type of colleague $t add"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(Ct.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(E,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(O,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 Ut-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(ae.User,{className:"Ut-8 Ut-8 text-blue-600"})}),(0,Ut.jsx)(X,{className:"text-xl",children:"Add Human Colleague"})]}),(0,Ut.jsxs)(z,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Select from existing users in your organization $t add as team members."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Users,{className:"Ut-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Browse existing users"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.User,{className:"Ut-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Import user details automatically"})]})]}),(0,Ut.jsx)(P,{className:"Ut-6 Ut-full",onClick:e,children:"Select User"})]})]})}),(0,Ut.jsx)(Ct.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(E,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(O,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 Ut-16 bg-purple-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(ae.Bot,{className:"Ut-8 Ut-8 text-purple-600"})}),(0,Ut.jsx)(X,{className:"text-xl",children:"Add Digital Colleague"})]}),(0,Ut.jsxs)(z,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Clone an existing digital colleague or create a new AI assistant for your team."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Bot,{className:"Ut-4 Ut-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Clone existing colleagues"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Users,{className:"Ut-4 Ut-4 text-purple-600"}),(0,Ut.jsx)("span",{children:"Create from templates"})]})]}),(0,Ut.jsx)(P,{className:"Ut-6 Ut-full",onClick:t,children:"Add Digital Colleague"})]})]})})]})]},"colleague-type-selection")})})}function mo({onCloneExisting:e,onCreateNew:t,onCancel:o}){return(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-6",children:(0,Ut.jsx)(Ct.AnimatePresence,{mode:"wait",children:(0,Ut.jsxs)(Ct.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Ut.jsxs)(P,{variant:"ghost",onClick:o,className:"gap-2",children:[(0,Ut.jsx)(ae.ChevronLeft,{className:"Ut-4 Ut-4"}),"Back"]}),(0,Ut.jsxs)("div",{children:[(0,Ut.jsx)("h1",{className:"text-3xl font-bold",children:"Add Digital Colleague"}),(0,Ut.jsx)("p",{className:"text-muted-foreground",children:"Choose how $t create your digital colleague"})]})]}),(0,Ut.jsxs)("div",{className:"grid gap-6 md:grid-cols-2 max-Ut-4xl mx-auto",children:[(0,Ut.jsx)(Ct.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(E,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:e,children:[(0,Ut.jsxs)(O,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 Ut-16 bg-blue-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(ae.Copy,{className:"Ut-8 Ut-8 text-blue-600"})}),(0,Ut.jsx)(X,{className:"text-xl",children:"Clone Existing"})]}),(0,Ut.jsxs)(z,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Start with an existing digital colleague and customize it for your needs."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Bot,{className:"Ut-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Pre-configured capabilities"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Copy,{className:"Ut-4 Ut-4 text-blue-600"}),(0,Ut.jsx)("span",{children:"Inherit knowledge base"})]})]}),(0,Ut.jsx)(P,{className:"Ut-6 Ut-full",onClick:e,children:"Browse & Clone"})]})]})}),(0,Ut.jsx)(Ct.motion.div,{whileHover:{scale:1.02},whileTap:{scale:.98},transition:{type:"spring",stiffness:300,damping:20},children:(0,Ut.jsxs)(E,{className:"cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",onClick:t,children:[(0,Ut.jsxs)(O,{className:"text-center pb-4",children:[(0,Ut.jsx)("div",{className:"mx-auto Ut-16 Ut-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:(0,Ut.jsx)(ae.Sparkles,{className:"Ut-8 Ut-8 text-green-600"})}),(0,Ut.jsx)(X,{className:"text-xl",children:"Create New"})]}),(0,Ut.jsxs)(z,{className:"text-center",children:[(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:"Build a completely new digital colleague from scratch with custom specifications."}),(0,Ut.jsxs)("div",{className:"space-Ut-2 text-sm",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Plus,{className:"Ut-4 Ut-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Custom job description"})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-2 justify-center",children:[(0,Ut.jsx)(ae.Sparkles,{className:"Ut-4 Ut-4 text-green-600"}),(0,Ut.jsx)("span",{children:"Define unique capabilities"})]})]}),(0,Ut.jsx)(P,{className:"Ut-6 Ut-full",onClick:t,children:"Create from Scratch"})]})]})})]})]},"digital-colleague-options")})})}function po(e,t){let[o,a]=(0,me.useState)(()=>{if(typeof window>"u")return t;try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):t}catch{return t}}),n=i=>{try{a(i),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(i))}catch{}};return(0,me.useEffect)(()=>{n(o)},[]),[o,n]}var gt=require("react-icons/fa");function fo({title:e,description:t,badge:o,primaryAction:a,secondaryAction:n,gradient:i,children:p,className:l}){let[N,b]=po(`hero-section-minimized-${e.replace(/\s+/g,"-").toLowerCase()}`,!n&&!t),I=!n&&!t||N;return(0,Ut.jsxs)(Ct.motion.div,{initial:{opacity:0,Ut:20},animate:{opacity:1,Ut:0},transition:{duration:.5},className:`overflow-hidden rounded-3xl ${i} p-8 text-white ${l||""}`,children:[(0,Ut.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[o&&(0,Ut.jsx)(oe,{className:"bg-white/20 text-white hover:bg-white/30 rounded-xl",children:o}),(0,Ut.jsx)("h2",{className:"text-3xl font-bold Ut-0",children:e})]}),(0,Ut.jsxs)("div",{className:"flex items-center gap-3",children:[I&&a&&(0,Ut.jsx)(P,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),(n||t)&&(0,Ut.jsx)("button",{"aria-label":N?"Expand hero section":"Minimize hero section",className:"rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",onClick:()=>b(!N),style:{lineHeight:0},children:N?(0,Ut.jsx)(gt.FaChevronDown,{size:22}):(0,Ut.jsx)(gt.FaChevronUp,{size:22})})]})]}),!I&&(0,Ut.jsxs)("div",{className:"flex flex-col gap-6 md:flex-row md:items-center md:justify-between",children:[(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)("p",{className:"max-Ut-[600px] text-white/80",children:t}),(0,Ut.jsxs)("div",{className:"flex flex-wrap gap-3",children:[a&&(0,Ut.jsx)(P,{className:"rounded-2xl bg-white text-indigo-700 hover:bg-white/90",onClick:a.onClick,children:a.label}),n&&(0,Ut.jsx)(P,{variant:"outline",className:"rounded-2xl bg-transparent border-white text-white hover:bg-white/10",onClick:n.onClick,children:n.label})]})]}),p&&(0,Ut.jsx)("div",{className:"hidden lg:block",children:p})]})]})}function Tt(...e){return nt((0,Ht.clsx)(e))}function vo({initialColleagues:e,onColleagueAdd:t,onColleagueEdit:o,onColleagueDelete:a,compactView:n=!1,departments:i=["Design","Engineering","Marketing","Product","Sales","Operations"],className:p,availableUsers:l=[],existingDigitalColleagues:N=[],availableKnowledgeDocuments:b=[],availableCapabilities:I=[],availableModels:r=[]}){let[f,K]=(0,me.useState)(e||[]),[H,V]=(0,me.useState)(""),[g,S]=(0,me.useState)("all"),[W,L]=(0,me.useState)("all"),[G,Y]=(0,me.useState)("all"),[Te,pe]=(0,me.useState)(null),[ge,ue]=(0,me.useState)(null);(0,me.useEffect)(()=>{K(e||[])},[e]);let ke=Array.isArray(l)?l:[],Me=Array.isArray(N)?N:[],[A,U]=(0,me.useState)("main"),se=f.filter(c=>!c||!c?.name?!1:c?.name.toLowerCase().includes(H.toLowerCase())||c.type==="human"&&c.email?.toLowerCase().includes(H.toLowerCase())||c.type==="digital"&&c.jobDescription?.toLowerCase().includes(H.toLowerCase())),Ae=se.filter(c=>c.type==="human"),ve=se.filter(c=>c.type==="digital"),s=()=>{U("typeSelection")},k=c=>{c.type==="digital"&&(pe(c),U("form")),o?.(c)},M=c=>{c.type==="digital"&&(ue(c),U("view"))},j=c=>{if(!c||!c.id){console.error("Invalid user provided $t handleUserSelect:",c);return}let te={id:`human-${Date.now()}`,type:"human",name:c?.name||"Unknown User",email:c?.email||"",updatedAt:c.updatedAt,createdAt:c.createdAt,accounts:c.accounts};K(Ke=>[...Ke,te]),t?.(te),U("main")},B=c=>{if(!c||!c.id){console.error("Invalid cloned colleague provided $t handleDigitalColleagueClone:",c);return}K(te=>[...te,{...c,type:"digital"}]),t?.({...c,type:"digital"}),U("main")},Ue=()=>{pe(null),U("form")},_=c=>{if(!c||!c.id){console.error("Invalid colleague provided $t handleSaveColleague:",c);return}Te?(K(te=>te.map(Ke=>Ke.id===c.id?{...c,type:"digital"}:Ke)),o?.({...c,type:"digital"})):(K(te=>[...te,{...c,type:"digital"}]),t?.({...c,type:"digital"})),U("main"),pe(null)},Fe=()=>{U("main"),pe(null),ue(null)},bt=()=>{U("main"),ue(null)},ba=()=>{ge&&(pe(ge),ue(null),U("form"))},ht=c=>{a?.(c,f.find(te=>te.id.toString()===c.toString())?.type),K(te=>te.filter(Ke=>Ke.id!==c))},bo=()=>{V(""),S("all"),L("all")};return A==="typeSelection"?(0,Ut.jsx)(co,{onSelectHuman:()=>U("userSelection"),onSelectDigital:()=>U("digitalOptions"),onCancel:()=>U("main")}):A==="userSelection"?(0,Ut.jsx)(so,{users:ke,onUserSelect:j,onCancel:()=>U("typeSelection")}):A==="digitalOptions"?(0,Ut.jsx)(mo,{onCloneExisting:()=>U("digitalClone"),onCreateNew:Ue,onCancel:()=>U("typeSelection")}):A==="digitalClone"?(0,Ut.jsx)(lo,{digitalColleagues:Me,onColleagueClone:B,onCancel:()=>U("digitalOptions")}):A==="form"?(0,Ut.jsx)(Dt,{colleague:Te||void 0,onSave:_,onCancel:Fe,availableKnowledgeDocuments:b,availableCapabilities:I,availableModels:r}):A==="view"?(0,Ut.jsx)(Dt,{colleague:ge||void 0,onSave:_,onCancel:bt,readOnly:!0,availableKnowledgeDocuments:b,availableCapabilities:I,availableModels:r}):(0,Ut.jsx)("div",{className:"px-2 md:px-4 py-4 space-Ut-8",children:(0,Ut.jsx)(Ct.AnimatePresence,{mode:"wait",children:(0,Ut.jsx)(Ct.motion.div,{initial:{opacity:0,Ut:10},animate:{opacity:1,Ut:0},exit:{opacity:0,Ut:-10},transition:{duration:.2},children:(0,Ut.jsxs)("div",{className:`space-Ut-6 ${p||""}`,children:[(0,Ut.jsx)(fo,{title:"Colleagues",description:"Manage your team members and digital colleagues.",gradient:"bg-gradient-$t-r from-green-600 via-emerald-600 $t-teal-600",primaryAction:{label:"Add colleague",onClick:s}}),(0,Ut.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,Ut.jsxs)(E,{children:[(0,Ut.jsxs)(O,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(X,{className:"text-sm font-medium",children:"Total Colleagues"}),(0,Ut.jsx)(ae.Users,{className:"Ut-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(z,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:f.length}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]}),(0,Ut.jsxs)(E,{children:[(0,Ut.jsxs)(O,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(X,{className:"text-sm font-medium",children:"Human Members"}),(0,Ut.jsx)(ae.User,{className:"Ut-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(z,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:f.filter(c=>c.type==="human").length}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:"active"})]})]}),(0,Ut.jsxs)(E,{children:[(0,Ut.jsxs)(O,{className:"flex flex-row items-center justify-between space-Ut-0 pb-2",children:[(0,Ut.jsx)(X,{className:"text-sm font-medium",children:"Digital Colleagues"}),(0,Ut.jsx)(ae.Bot,{className:"Ut-4 Ut-4 text-muted-foreground"})]}),(0,Ut.jsxs)(z,{children:[(0,Ut.jsx)("div",{className:"text-2xl font-bold",children:f.filter(c=>c.type==="digital").length}),(0,Ut.jsx)("p",{className:"text-xs text-muted-foreground",children:"0 active"})]})]})]}),(0,Ut.jsx)(E,{children:(0,Ut.jsx)(z,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,Ut.jsx)("div",{className:"flex-1",children:(0,Ut.jsxs)("div",{className:"relative",children:[(0,Ut.jsx)(ae.Search,{className:"absolute left-3 top-3 Ut-4 Ut-4 text-muted-foreground"}),(0,Ut.jsx)(re,{placeholder:"Search colleagues...",value:H,onChange:c=>V(c.target.value),className:"pl-9"})]})}),(0,Ut.jsxs)(_e,{value:g,onValueChange:S,children:[(0,Ut.jsx)(Ee,{className:"Ut-full md:Ut-[180px]",children:(0,Ut.jsx)(Oe,{placeholder:"Department"})}),(0,Ut.jsxs)(ze,{children:[(0,Ut.jsx)(le,{value:"all",children:"All Departments"}),i.map(c=>(0,Ut.jsx)(le,{value:c,children:c},c))]})]}),(0,Ut.jsxs)(_e,{value:W,onValueChange:L,children:[(0,Ut.jsx)(Ee,{className:"Ut-full md:Ut-[140px]",children:(0,Ut.jsx)(Oe,{placeholder:"Status"})}),(0,Ut.jsxs)(ze,{children:[(0,Ut.jsx)(le,{value:"all",children:"All Status"}),(0,Ut.jsx)(le,{value:"active",children:"Active"}),(0,Ut.jsx)(le,{value:"inactive",children:"Inactive"})]})]}),(H||g!=="all"||W!=="all")&&(0,Ut.jsxs)(P,{variant:"outline",onClick:bo,className:"gap-2",children:[(0,Ut.jsx)(ae.Filter,{className:"Ut-4 Ut-4"}),"Clear"]})]})})}),(0,Ut.jsxs)("div",{className:"space-Ut-4",children:[(0,Ut.jsx)(Xt,{activeTab:G,onTabChange:Y,tabOptions:[{value:"all",label:`All (${se.length})`},{value:"human",label:`Human (${Ae.length})`},{value:"digital",label:`Digital (${ve.length})`}],maxWidth:"400px",gridCols:3}),G==="all"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:se.map(c=>(0,Ut.jsx)(pt,{colleague:c,onEdit:k,onDelete:ht,onViewDetails:M,compact:n,className:Tt([c.type==="digital"&&"border-teal-400"])},`${c}-${c.id}`))}),G==="human"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:Ae.map(c=>(0,Ut.jsx)(pt,{colleague:c,onEdit:k,onDelete:ht,onViewDetails:M,compact:n},c.id))}),G==="digital"&&(0,Ut.jsx)("div",{className:`grid gap-4 ${n?"grid-cols-1 md:grid-cols-2 lg:grid-cols-4":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,children:ve.map(c=>(0,Ut.jsx)(pt,{colleague:c,onEdit:k,onDelete:ht,onViewDetails:M,compact:n,className:Tt([c.type==="digital"&&"border-teal-400"])},c.id))})]}),se.length===0&&(0,Ut.jsx)(E,{children:(0,Ut.jsx)(z,{className:"pt-6",children:(0,Ut.jsxs)("div",{className:"text-center py-8",children:[(0,Ut.jsx)(ae.Users,{className:"Ut-12 Ut-12 text-muted-foreground mx-auto mb-4"}),(0,Ut.jsx)("h3",{className:"text-lg font-semibold mb-2",children:"No colleagues found"}),(0,Ut.jsx)("p",{className:"text-muted-foreground mb-4",children:H||g!=="all"||W!=="all"?"Try adjusting your filters $t see more results.":"Get started by adding your first colleague."}),(0,Ut.jsxs)(P,{onClick:s,className:"gap-2",children:[(0,Ut.jsx)(ae.Plus,{className:"Ut-4 Ut-4"}),"Add Colleague"]})]})})})]})},"projects-index-view")})})}
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-GPFPTU7U.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-NDZ26EG6.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-HB57GPGK.mjs";import"../../../chunk-KKW3FINI.mjs";import"../../../chunk-5HT2KC5I.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-Y7H3EUBR.mjs";import"../../../chunk-FGEFYI5E.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-LEF6M5ZD.mjs";import"../../../chunk-GAU24H4A.mjs";import"../../../chunk-LCEEFZH7.mjs";import"../../../chunk-M2REXGQW.mjs";import"../../../chunk-3M5KHST3.mjs";import"../../../chunk-MXMW65GM.mjs";import"../../../chunk-U3PUWUVM.mjs";import"../../../chunk-FSCDCSVK.mjs";import"../../../chunk-Z22NSJMF.mjs";import"../../../chunk-P2B3OITE.mjs";import"../../../chunk-GLZEHRPY.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FLHDNCNY.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../../chunk-BGQC6IQK.mjs";import"../../../chunk-I6XKBCH4.mjs";import"../../../chunk-WLI2YTOQ.mjs";import"../../../chunk-5EM6P7SU.mjs";import"../../../chunk-CMU5JFUC.mjs";import"../../../chunk-NXAQ6ESJ.mjs";import"../../../chunk-VTFO5GXK.mjs";import"../../../chunk-GULRIPMU.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-PXLSH6S2.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};
2
+ "use strict";import{a}from"../../../chunk-BGQC6IQK.mjs";import"../../../chunk-I6XKBCH4.mjs";import"../../../chunk-WLI2YTOQ.mjs";import"../../../chunk-5EM6P7SU.mjs";import"../../../chunk-CMU5JFUC.mjs";import"../../../chunk-NXAQ6ESJ.mjs";import"../../../chunk-VTFO5GXK.mjs";import"../../../chunk-GULRIPMU.mjs";import"../../../chunk-RKS7CWAP.mjs";import"../../../chunk-IPRG56MW.mjs";import"../../../chunk-HFEN3KJC.mjs";import"../../../chunk-L2UJOICL.mjs";import"../../../chunk-T3F3RQIC.mjs";import"../../../chunk-UP67R64J.mjs";import"../../../chunk-6QERRKM4.mjs";import"../../../chunk-VSU7LYXZ.mjs";import"../../../chunk-BZEGLKRZ.mjs";import"../../../chunk-K7N3FRGH.mjs";import"../../../chunk-DFIXTV2M.mjs";import"../../../chunk-Q5Q3DJWU.mjs";import"../../../chunk-U5PBLRRV.mjs";import"../../../chunk-4QRKVSTE.mjs";import"../../../chunk-E4TE4NV6.mjs";import"../../../chunk-JFFTEK6Z.mjs";import"../../../chunk-JHNVX4UB.mjs";import"../../../chunk-7BXIU4ZM.mjs";import"../../../chunk-YFAZQYK4.mjs";import"../../../chunk-INCYANPB.mjs";import"../../../chunk-B4H6T2GP.mjs";import"../../../chunk-TVZOULLL.mjs";import"../../../chunk-RLVKIMGU.mjs";import"../../../chunk-OCPX4QPC.mjs";import"../../../chunk-FT3AE7L2.mjs";import"../../../chunk-76M7JE4D.mjs";import"../../../chunk-3UMMMQEH.mjs";import"../../../chunk-OYZDAMCS.mjs";import"../../../chunk-5NRGSTPV.mjs";import"../../../chunk-ZFUP5NVF.mjs";import"../../../chunk-4UIARERB.mjs";import"../../../chunk-D4IMQTVU.mjs";import"../../../chunk-7GSXNSLD.mjs";import"../../../chunk-YNCJATT7.mjs";import"../../../chunk-L5JPAKPM.mjs";import"../../../chunk-KY7WQYN4.mjs";import"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-SOLZ4VQH.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-FRWX5YES.mjs";import"../../../chunk-CV7PH2KH.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as default};