cortex-react-components 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (393) hide show
  1. package/dist/{chunk-XSS7QSWX.mjs → chunk-2D3EN2AX.mjs} +2 -2
  2. package/dist/{chunk-PRMR24PY.mjs → chunk-36W3BORX.mjs} +3 -3
  3. package/dist/{chunk-PTDP7PZK.mjs → chunk-3G7VLQG5.mjs} +1 -1
  4. package/dist/{chunk-6R3QP53O.mjs → chunk-4JHX6BW6.mjs} +2 -2
  5. package/dist/{chunk-XDV7AVPQ.mjs → chunk-4JSM5VYZ.mjs} +2 -2
  6. package/dist/{chunk-K6N5K2A7.mjs → chunk-4P5Q6UXF.mjs} +4 -4
  7. package/dist/{chunk-XRMQLXAB.mjs → chunk-6NRBLKM4.mjs} +2 -2
  8. package/dist/{chunk-RBVQ7KFJ.mjs → chunk-7ZCW4XMR.mjs} +1 -1
  9. package/dist/{chunk-V4I6U2SE.mjs → chunk-AVNBD2X5.mjs} +1 -1
  10. package/dist/{chunk-YOKF4FEM.mjs → chunk-BMZG77IE.mjs} +1 -1
  11. package/dist/chunk-BXEALHGJ.mjs +142 -0
  12. package/dist/{chunk-5PMD42EE.mjs → chunk-C444TUVA.mjs} +1 -1
  13. package/dist/{chunk-JD7SR5V3.mjs → chunk-CONYNX7Y.mjs} +63 -7
  14. package/dist/{chunk-2VF2D4DL.mjs → chunk-DGDELNS3.mjs} +1 -1
  15. package/dist/{chunk-RJZMTP7J.mjs → chunk-DHB2L7O2.mjs} +1 -1
  16. package/dist/{chunk-ZED4UNH7.mjs → chunk-DPTILX6A.mjs} +2 -2
  17. package/dist/{chunk-XEZJ5VES.mjs → chunk-EC5I4CIO.mjs} +2 -2
  18. package/dist/{chunk-TAOPX5YM.mjs → chunk-EDYFH3EJ.mjs} +4 -4
  19. package/dist/{chunk-EQYJUXKZ.mjs → chunk-EGCBZZGV.mjs} +1 -1
  20. package/dist/{chunk-PAXCURFR.mjs → chunk-EGZL4DVZ.mjs} +1 -1
  21. package/dist/{chunk-G46GZ57S.mjs → chunk-EJJITIA3.mjs} +2 -2
  22. package/dist/{chunk-CZXUTAYA.mjs → chunk-ETG5N2OG.mjs} +1 -1
  23. package/dist/{chunk-25EF7VEC.mjs → chunk-F7JPOQIC.mjs} +1 -1
  24. package/dist/{chunk-U5I5GOVN.mjs → chunk-FABRRO2B.mjs} +1 -1
  25. package/dist/{chunk-JQNNFILH.mjs → chunk-FWRVXOCU.mjs} +1 -1
  26. package/dist/{chunk-725ZPBX4.mjs → chunk-FZMTC5ID.mjs} +1 -1
  27. package/dist/{chunk-4YSV633W.mjs → chunk-GAWBCR4S.mjs} +1 -1
  28. package/dist/{chunk-VMDVXNP5.mjs → chunk-GGOGMLBY.mjs} +14 -14
  29. package/dist/chunk-GXN5ZNBZ.mjs +135 -0
  30. package/dist/{chunk-3R2LCGLI.mjs → chunk-HLEMFDTD.mjs} +1 -1
  31. package/dist/{chunk-JGAZRR37.mjs → chunk-HMVIQFLN.mjs} +1 -1
  32. package/dist/{chunk-CIFGBEFV.mjs → chunk-HNBHBFLY.mjs} +1 -1
  33. package/dist/{chunk-IMJJ6BBI.mjs → chunk-HUZCVQP7.mjs} +1 -1
  34. package/dist/{chunk-MPFWWJYT.mjs → chunk-IDMTHUC4.mjs} +2 -2
  35. package/dist/{chunk-2L6AWG6R.mjs → chunk-IJ3E6ZXF.mjs} +2 -2
  36. package/dist/{chunk-G5N5MCLS.mjs → chunk-IVOPNDSN.mjs} +5 -5
  37. package/dist/{chunk-GJSDP33S.mjs → chunk-JFXWP3RQ.mjs} +1 -1
  38. package/dist/{chunk-UYUP2DAL.mjs → chunk-KHFPDDTO.mjs} +1 -1
  39. package/dist/{chunk-6GO5N6ZP.mjs → chunk-KIZUBPPQ.mjs} +1 -1
  40. package/dist/{chunk-QE3XE3LW.mjs → chunk-KOK3VCJZ.mjs} +1 -1
  41. package/dist/{chunk-N2EWVQF5.mjs → chunk-L4SNPNYU.mjs} +2 -2
  42. package/dist/{chunk-KTMTK6GC.mjs → chunk-LGGOEYDB.mjs} +14 -14
  43. package/dist/{chunk-WSL27JV6.mjs → chunk-LM4J7254.mjs} +7 -7
  44. package/dist/{chunk-FECAR2TE.mjs → chunk-LPK5R32M.mjs} +1 -1
  45. package/dist/{chunk-UHOCECJY.mjs → chunk-LQQ6C7FN.mjs} +4 -4
  46. package/dist/{chunk-22E2TZBE.mjs → chunk-LTDXFLCW.mjs} +1 -1
  47. package/dist/{chunk-37CGHX4F.mjs → chunk-MZVEK6A5.mjs} +8 -8
  48. package/dist/{chunk-HDLJDXNS.mjs → chunk-NHDPHK6D.mjs} +1 -1
  49. package/dist/{chunk-3W5H36HK.mjs → chunk-NNH7EC5Z.mjs} +1 -1
  50. package/dist/{chunk-P4P6J2SW.mjs → chunk-NQMJXY3N.mjs} +2 -2
  51. package/dist/{chunk-ZWV2O6CK.mjs → chunk-NVSA5BFC.mjs} +3 -3
  52. package/dist/{chunk-MVUW4LWE.mjs → chunk-OCVHSV6Z.mjs} +2 -2
  53. package/dist/{chunk-673GELPP.mjs → chunk-OXP3LJ53.mjs} +1 -1
  54. package/dist/{chunk-5OGDBGXG.mjs → chunk-PJZ5PWKP.mjs} +1 -1
  55. package/dist/{chunk-V2BZ7RE7.mjs → chunk-PLFX66EX.mjs} +1 -1
  56. package/dist/{chunk-E6M7XAYT.mjs → chunk-Q45EN2QB.mjs} +1 -1
  57. package/dist/{chunk-2ZZEXOZG.mjs → chunk-Q6CUUDUR.mjs} +2 -2
  58. package/dist/{chunk-35YW43JE.mjs → chunk-QETXXFRW.mjs} +1 -1
  59. package/dist/{chunk-ZF2DELZ5.mjs → chunk-QXOHY4AT.mjs} +39 -3
  60. package/dist/{chunk-NF4JWFAZ.mjs → chunk-RFMER577.mjs} +1 -1
  61. package/dist/{chunk-ARRPLAEY.mjs → chunk-RFQKQLNT.mjs} +3 -3
  62. package/dist/{chunk-QUGB53Z3.mjs → chunk-RV4VRLGN.mjs} +1 -1
  63. package/dist/{chunk-5QACTYFC.mjs → chunk-SM57JU3T.mjs} +5 -5
  64. package/dist/{chunk-B63AROCU.mjs → chunk-SMX6BH2N.mjs} +1 -1
  65. package/dist/{chunk-L3SZS7PC.mjs → chunk-SNUES6JA.mjs} +1 -1
  66. package/dist/{chunk-Z6F4XM6Y.mjs → chunk-SSDRUPMS.mjs} +58 -12
  67. package/dist/{chunk-GDMWNNYC.mjs → chunk-SSE3MQDP.mjs} +1 -1
  68. package/dist/{chunk-VEDUPADV.mjs → chunk-TDOOQIMQ.mjs} +3 -3
  69. package/dist/{chunk-EJJNYV7C.mjs → chunk-U6ZFUE5O.mjs} +2 -2
  70. package/dist/{chunk-LW7QTKQV.mjs → chunk-URC56DLC.mjs} +1 -1
  71. package/dist/{chunk-HI6QOZHR.mjs → chunk-V6VAVPKH.mjs} +1 -1
  72. package/dist/{chunk-4PFDNMLD.mjs → chunk-WEIPDZOJ.mjs} +1 -1
  73. package/dist/{chunk-VMHVOVOE.mjs → chunk-WJTVZ6CB.mjs} +1 -1
  74. package/dist/{chunk-6CSQANDH.mjs → chunk-WX5QYPGU.mjs} +1 -1
  75. package/dist/{chunk-ODPPMZG7.mjs → chunk-XFJPL6FS.mjs} +1 -1
  76. package/dist/{chunk-IPVCU3YW.mjs → chunk-XZFMQXYJ.mjs} +1 -1
  77. package/dist/{chunk-PIWSN2AS.mjs → chunk-YD7Q7IZX.mjs} +1 -1
  78. package/dist/{chunk-AOSO2JVA.mjs → chunk-YUZYLKBD.mjs} +1 -1
  79. package/dist/{chunk-GGYG3YCH.mjs → chunk-YY4VLYYH.mjs} +9 -9
  80. package/dist/{chunk-HK2DQNBU.mjs → chunk-Z54HOXSV.mjs} +4 -4
  81. package/dist/{chunk-TP5AUT7W.mjs → chunk-ZJB7AFL5.mjs} +2 -2
  82. package/dist/components/AdvancedComponents/user-selection.d.ts +1 -1
  83. package/dist/components/AdvancedComponents/user-selection.js +1 -1
  84. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  85. package/dist/components/Blocks/Banner.mjs +10 -10
  86. package/dist/components/Blocks/CallToAction.mjs +10 -10
  87. package/dist/components/Blocks/CollapsibleArea.mjs +11 -11
  88. package/dist/components/Blocks/Content.mjs +11 -11
  89. package/dist/components/Blocks/FeaturesBlock.mjs +10 -10
  90. package/dist/components/Blocks/ImageBlock.mjs +3 -3
  91. package/dist/components/Blocks/MediaBlock.mjs +3 -3
  92. package/dist/components/Blocks/RelatedPosts.mjs +12 -12
  93. package/dist/components/Blocks/RenderBlocks.mjs +13 -13
  94. package/dist/components/Blocks/ReusableContentBlock.mjs +13 -13
  95. package/dist/components/Blocks/index.mjs +15 -15
  96. package/dist/components/Cards/ContentCard.mjs +10 -10
  97. package/dist/components/Cards/FeatureCard.mjs +10 -10
  98. package/dist/components/Cards/index.mjs +16 -16
  99. package/dist/components/Chat/ChatInterface.mjs +11 -11
  100. package/dist/components/Chat/CopilotInterface.mjs +12 -12
  101. package/dist/components/Chat/PartTypes/MessageHandler.mjs +9 -9
  102. package/dist/components/Chat/PartTypes/index.mjs +11 -11
  103. package/dist/components/Chat/demo-long-messages.mjs +12 -12
  104. package/dist/components/Chat/demo-tests.mjs +12 -12
  105. package/dist/components/Chat/demo.mjs +12 -12
  106. package/dist/components/Chat/example-usage.mjs +12 -12
  107. package/dist/components/Chat/example-with-vercel-ai.mjs +12 -12
  108. package/dist/components/Chat/index.mjs +17 -17
  109. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +2 -2
  110. package/dist/components/DeliveryLead/index.mjs +4 -4
  111. package/dist/components/DigitalColleagues/MainPage.mjs +6 -6
  112. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +18 -18
  113. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +15 -15
  114. package/dist/components/DigitalColleagues/Views/ColleaguesView.d.ts +1 -1
  115. package/dist/components/DigitalColleagues/Views/ColleaguesView.js +1 -1
  116. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +3 -3
  117. package/dist/components/DigitalColleagues/Views/index.js +21 -21
  118. package/dist/components/DigitalColleagues/Views/index.mjs +34 -34
  119. package/dist/components/DigitalColleagues/digital-colleague-clone.d.ts +1 -1
  120. package/dist/components/DigitalColleagues/index.js +20 -20
  121. package/dist/components/DigitalColleagues/index.mjs +54 -54
  122. package/dist/components/{Foundary → Foundry}/AppSidebarLeft.js +3 -3
  123. package/dist/components/{Foundary → Foundry}/AppSidebarLeft.mjs +1 -1
  124. package/dist/components/{Foundary → Foundry}/DashboardHeader.js +2 -2
  125. package/dist/components/{Foundary → Foundry}/DashboardHeader.mjs +1 -1
  126. package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.js +2 -2
  127. package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.mjs +1 -1
  128. package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.js +3 -3
  129. package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.mjs +1 -1
  130. package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.js +2 -2
  131. package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.mjs +1 -1
  132. package/dist/components/{Foundary → Foundry}/LandingMenu.js +2 -2
  133. package/dist/components/{Foundary → Foundry}/LandingMenu.mjs +1 -1
  134. package/dist/components/{Foundary → Foundry}/Login.js +2 -2
  135. package/dist/components/{Foundary → Foundry}/Login.mjs +1 -1
  136. package/dist/components/{Foundary → Foundry}/MainPage.js +4 -4
  137. package/dist/components/{Foundary → Foundry}/MainPage.mjs +7 -7
  138. package/dist/components/{Foundary → Foundry}/ManagementSidebar.js +1 -1
  139. package/dist/components/{Foundary → Foundry}/ManagementSidebar.mjs +1 -1
  140. package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.js +912 -598
  141. package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.mjs +33 -31
  142. package/dist/components/{Foundary → Foundry}/README-document-edit.js +1 -1
  143. package/dist/components/{Foundary → Foundry}/README-document-edit.mjs +1 -1
  144. package/dist/components/{Foundary → Foundry}/README-document-preview.js +1 -1
  145. package/dist/components/{Foundary → Foundry}/README-document-preview.mjs +1 -1
  146. package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.js +1 -1
  147. package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.mjs +1 -1
  148. package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.js +1 -1
  149. package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.mjs +1 -1
  150. package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.js +1 -1
  151. package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.mjs +1 -1
  152. package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.js +1 -1
  153. package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.mjs +1 -1
  154. package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.js +1 -1
  155. package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.mjs +1 -1
  156. package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.js +1 -1
  157. package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.mjs +1 -1
  158. package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.js +1 -1
  159. package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.mjs +1 -1
  160. package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.js +2 -2
  161. package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.mjs +1 -1
  162. package/dist/components/{Foundary → Foundry}/RichText/index.js +18 -18
  163. package/dist/components/{Foundary → Foundry}/RichText/index.mjs +12 -12
  164. package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.js +4 -4
  165. package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.mjs +2 -2
  166. package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.js +7 -7
  167. package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.mjs +3 -3
  168. package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.js +16 -16
  169. package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.mjs +11 -11
  170. package/dist/components/{Foundary → Foundry}/SearchableSelect.js +2 -2
  171. package/dist/components/{Foundary → Foundry}/SearchableSelect.mjs +1 -1
  172. package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.d.ts +4 -2
  173. package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.js +521 -207
  174. package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.mjs +10 -8
  175. package/dist/components/Foundry/Views/KnowledgeView.docs.js +2 -0
  176. package/dist/components/Foundry/Views/KnowledgeView.docs.mjs +7 -0
  177. package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.js +29 -29
  178. package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.mjs +18 -18
  179. package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.js +4 -4
  180. package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.mjs +2 -2
  181. package/dist/components/{Foundary → Foundry}/Views/index.js +2169 -1855
  182. package/dist/components/{Foundary → Foundry}/Views/index.mjs +48 -46
  183. package/dist/components/Foundry/add-colleague-to-team-form.d.ts +10 -0
  184. package/dist/components/Foundry/add-colleague-to-team-form.js +2762 -0
  185. package/dist/components/Foundry/add-colleague-to-team-form.mjs +18 -0
  186. package/dist/components/{Foundary → Foundry}/colleague-card.js +2 -2
  187. package/dist/components/{Foundary → Foundry}/colleague-card.mjs +1 -1
  188. package/dist/components/{Foundary → Foundry}/colleague-form.js +4 -4
  189. package/dist/components/{Foundary → Foundry}/colleague-form.mjs +2 -2
  190. package/dist/components/{Foundary → Foundry}/colleague-type-selection.js +2 -2
  191. package/dist/components/{Foundary → Foundry}/colleague-type-selection.mjs +1 -1
  192. package/dist/components/Foundry/digital-colleague-selection.d.ts +9 -0
  193. package/dist/components/Foundry/digital-colleague-selection.js +2787 -0
  194. package/dist/components/Foundry/digital-colleague-selection.mjs +19 -0
  195. package/dist/components/{Foundary → Foundry}/document-edit.js +20 -20
  196. package/dist/components/{Foundary → Foundry}/document-edit.mjs +13 -13
  197. package/dist/components/{Foundary → Foundry}/document-preview-examples.js +24 -24
  198. package/dist/components/{Foundary → Foundry}/document-preview-examples.mjs +15 -15
  199. package/dist/components/{Foundary → Foundry}/document-preview.js +22 -22
  200. package/dist/components/{Foundary → Foundry}/document-preview.mjs +14 -14
  201. package/dist/components/{Foundary → Foundry}/file-edit.js +20 -20
  202. package/dist/components/{Foundary → Foundry}/file-edit.mjs +13 -13
  203. package/dist/components/{Foundary → Foundry}/foundary-clone.js +3 -3
  204. package/dist/components/{Foundary → Foundry}/foundary-clone.mjs +1 -1
  205. package/dist/components/{Foundary → Foundry}/foundary-layout.d.ts +3 -3
  206. package/dist/components/{Foundary → Foundry}/foundary-layout.js +5 -5
  207. package/dist/components/{Foundary → Foundry}/foundary-layout.mjs +3 -3
  208. package/dist/components/{Foundary → Foundry}/foundary-options.d.ts +2 -1
  209. package/dist/components/{Foundary → Foundry}/foundary-options.js +39 -3
  210. package/dist/components/{Foundary → Foundry}/foundary-options.mjs +1 -1
  211. package/dist/components/{Foundary → Foundry}/index.d.ts +3 -1
  212. package/dist/components/{Foundary → Foundry}/index.js +2248 -1930
  213. package/dist/components/{Foundary → Foundry}/index.mjs +76 -68
  214. package/dist/components/{Foundary → Foundry}/knowledge-browser.js +24 -24
  215. package/dist/components/{Foundary → Foundry}/knowledge-browser.mjs +15 -15
  216. package/dist/components/Foundry/knowledge-search.css +917 -0
  217. package/dist/components/{Foundary → Foundry}/knowledge-search.js +2 -2
  218. package/dist/components/{Foundary → Foundry}/knowledge-search.mjs +1 -1
  219. package/dist/components/Foundry/team-form.css +917 -0
  220. package/dist/components/{Foundary → Foundry}/team-form.js +2 -2
  221. package/dist/components/{Foundary → Foundry}/team-form.mjs +1 -1
  222. package/dist/components/{Foundary → Foundry}/test-data.js +1 -1
  223. package/dist/components/{Foundary → Foundry}/test-data.mjs +1 -1
  224. package/dist/components/{Foundary → Foundry}/types.js +1 -1
  225. package/dist/components/HeaderFooter/Header.mjs +3 -3
  226. package/dist/components/HeaderFooter/HeaderDesktop.mjs +2 -2
  227. package/dist/components/HeaderFooter/SectionHeading.mjs +11 -11
  228. package/dist/components/HeaderFooter/index.mjs +7 -7
  229. package/dist/components/Heros/HighImpact/index.mjs +11 -11
  230. package/dist/components/Heros/LowImpact/index.mjs +11 -11
  231. package/dist/components/Heros/MediumImpact/index.mjs +11 -11
  232. package/dist/components/Heros/RenderHero.mjs +14 -14
  233. package/dist/components/Heros/index.mjs +16 -16
  234. package/dist/components/Layouts/OutputHeaderFooter.mjs +14 -14
  235. package/dist/components/Layouts/Print.mjs +18 -18
  236. package/dist/components/Layouts/SlideShow.mjs +19 -19
  237. package/dist/components/Layouts/index.mjs +20 -20
  238. package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
  239. package/dist/components/Payload/Media/index.mjs +2 -2
  240. package/dist/components/Payload/PayloadCard/index.mjs +3 -3
  241. package/dist/components/Payload/RichText/index.mjs +10 -10
  242. package/dist/components/Payload/RichText/serialize.mjs +10 -10
  243. package/dist/components/Payload/index.mjs +15 -15
  244. package/dist/components/Projects/AddEpicModal.d.ts +1 -1
  245. package/dist/components/Projects/AddSprintModal.d.ts +1 -1
  246. package/dist/components/Projects/AddTaskModal.d.ts +1 -1
  247. package/dist/components/Projects/EpicsView.d.ts +1 -1
  248. package/dist/components/Projects/EpicsView.mjs +2 -2
  249. package/dist/components/Projects/FileView.d.ts +1 -1
  250. package/dist/components/Projects/FileView.js +19 -19
  251. package/dist/components/Projects/FileView.mjs +15 -15
  252. package/dist/components/Projects/KanbanBoardView.d.ts +1 -1
  253. package/dist/components/Projects/KanbanBoardView.js +20 -20
  254. package/dist/components/Projects/KanbanBoardView.mjs +20 -20
  255. package/dist/components/Projects/PlanningView.d.ts +1 -1
  256. package/dist/components/Projects/ProjectPage.d.ts +1 -1
  257. package/dist/components/Projects/ProjectPage.js +19 -19
  258. package/dist/components/Projects/ProjectPage.mjs +25 -25
  259. package/dist/components/Projects/ProjectView.d.ts +1 -1
  260. package/dist/components/Projects/ProjectView.js +20 -20
  261. package/dist/components/Projects/ProjectView.mjs +25 -25
  262. package/dist/components/Projects/ProjectsIndexView.d.ts +1 -1
  263. package/dist/components/Projects/ProjectsIndexView.mjs +2 -2
  264. package/dist/components/Projects/SprintBoardView.d.ts +1 -1
  265. package/dist/components/Projects/SprintBoardView.js +71 -25
  266. package/dist/components/Projects/SprintBoardView.mjs +20 -20
  267. package/dist/components/Projects/TaskCard.d.ts +1 -1
  268. package/dist/components/Projects/TaskDetailsModal.d.ts +1 -1
  269. package/dist/components/Projects/TaskDetailsModal.js +20 -20
  270. package/dist/components/Projects/TaskDetailsModal.mjs +17 -17
  271. package/dist/components/Projects/TaskSidebar.d.ts +1 -1
  272. package/dist/components/Projects/TaskSidebar.js +2 -2
  273. package/dist/components/Projects/TaskSidebar.mjs +2 -2
  274. package/dist/components/Projects/TasksView.d.ts +1 -1
  275. package/dist/components/Projects/file-list.d.ts +1 -1
  276. package/dist/components/Projects/file-list.js +19 -19
  277. package/dist/components/Projects/file-list.mjs +14 -14
  278. package/dist/components/Projects/index.js +71 -25
  279. package/dist/components/Projects/index.mjs +27 -27
  280. package/dist/components/dc-temp/index.js +19 -19
  281. package/dist/components/dc-temp/index.mjs +16 -16
  282. package/dist/components/dc-temp/mock-data.d.ts +1 -1
  283. package/dist/components/index.d.ts +1 -1
  284. package/dist/components/index.js +2325 -1961
  285. package/dist/components/index.mjs +160 -152
  286. package/dist/decorators/Intranet.css +14 -0
  287. package/dist/decorators/Intranet.mjs +105 -103
  288. package/dist/globals.css +14 -0
  289. package/dist/index.js +2550 -2186
  290. package/dist/index.mjs +173 -165
  291. package/dist/metafile-cjs.json +1 -1
  292. package/dist/metafile-esm.json +1 -1
  293. package/dist/pages/Blog.mjs +17 -17
  294. package/dist/pages/Documentation.mjs +5 -5
  295. package/dist/pages/IndexPage.mjs +20 -20
  296. package/dist/pages/LandingPage.mjs +113 -111
  297. package/dist/pages/Page.mjs +20 -20
  298. package/dist/pages/Publish.mjs +104 -102
  299. package/dist/pages/Website.mjs +22 -22
  300. package/dist/sections/AboutSection.mjs +12 -12
  301. package/dist/sections/BlogDetail.mjs +11 -11
  302. package/dist/sections/BlogList.mjs +12 -12
  303. package/dist/sections/BlogListSection.mjs +1 -1
  304. package/dist/sections/ContactSection.mjs +12 -12
  305. package/dist/sections/PageSections.mjs +113 -111
  306. package/dist/sections/PricingSection.mjs +12 -12
  307. package/dist/sections/ServiceDetail.mjs +11 -11
  308. package/dist/sections/ServiceDetailSection.mjs +11 -11
  309. package/dist/sections/ServiceSection.mjs +104 -102
  310. package/dist/sections/form/index.mjs +2 -2
  311. package/dist/sections/index.mjs +115 -113
  312. package/package.json +1 -1
  313. package/dist/components/Foundary/Views/KnowledgeView.docs.js +0 -2
  314. package/dist/components/Foundary/Views/KnowledgeView.docs.mjs +0 -7
  315. package/dist/{chunk-NKRBXAPF.mjs → chunk-2YHN7ZCJ.mjs} +3 -3
  316. package/dist/{chunk-7R2ZQ63M.mjs → chunk-APXXTGT4.mjs} +3 -3
  317. package/dist/{chunk-AGZGZHXC.mjs → chunk-FHZHQDXV.mjs} +3 -3
  318. package/dist/{chunk-OT2SSFKS.mjs → chunk-GSG52WU5.mjs} +3 -3
  319. package/dist/{chunk-L666B5DN.mjs → chunk-GZGWWPCP.mjs} +12 -12
  320. package/dist/{chunk-6M4Y3B66.mjs → chunk-OPJMXB4K.mjs} +3 -3
  321. package/dist/{chunk-FTVOJKVA.mjs → chunk-SNG6OKEL.mjs} +3 -3
  322. /package/dist/components/{Foundary → Foundry}/AppSidebarLeft.css +0 -0
  323. /package/dist/components/{Foundary → Foundry}/AppSidebarLeft.d.ts +0 -0
  324. /package/dist/components/{Foundary → Foundry}/DashboardHeader.css +0 -0
  325. /package/dist/components/{Foundary → Foundry}/DashboardHeader.d.ts +0 -0
  326. /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.css +0 -0
  327. /package/dist/components/{Foundary → Foundry}/Knowledge/add-knowledge-modal.d.ts +0 -0
  328. /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.css +0 -0
  329. /package/dist/components/{Foundary → Foundry}/Knowledge/add-team-context.d.ts +0 -0
  330. /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.css +0 -0
  331. /package/dist/components/{Foundary → Foundry}/Knowledge/manage-team-context.d.ts +0 -0
  332. /package/dist/components/{Foundary → Foundry}/LandingMenu.css +0 -0
  333. /package/dist/components/{Foundary → Foundry}/LandingMenu.d.ts +0 -0
  334. /package/dist/components/{Foundary → Foundry}/Login.css +0 -0
  335. /package/dist/components/{Foundary → Foundry}/Login.d.ts +0 -0
  336. /package/dist/components/{Foundary → Foundry}/MainPage.css +0 -0
  337. /package/dist/components/{Foundary → Foundry}/MainPage.d.ts +0 -0
  338. /package/dist/components/{Foundary → Foundry}/ManagementSidebar.d.ts +0 -0
  339. /package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.css +0 -0
  340. /package/dist/components/{Foundary → Foundry}/Pages/dashboardpage.d.ts +0 -0
  341. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Bold.d.ts +0 -0
  342. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Headings.d.ts +0 -0
  343. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Italic.d.ts +0 -0
  344. /package/dist/components/{Foundary → Foundry}/RichText/Icons/StrikeThrough.d.ts +0 -0
  345. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Subscript.d.ts +0 -0
  346. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Superscript.d.ts +0 -0
  347. /package/dist/components/{Foundary → Foundry}/RichText/Icons/Underline.d.ts +0 -0
  348. /package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.css +0 -0
  349. /package/dist/components/{Foundary → Foundry}/RichText/components/RawUploadComponent/index.d.ts +0 -0
  350. /package/dist/components/{Foundary → Foundry}/RichText/index.css +0 -0
  351. /package/dist/components/{Foundary → Foundry}/RichText/index.d.ts +0 -0
  352. /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.css +0 -0
  353. /package/dist/components/{Foundary → Foundry}/RichText/nodes/image-node.d.ts +0 -0
  354. /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.css +0 -0
  355. /package/dist/components/{Foundary → Foundry}/RichText/plugins/image-plugin.d.ts +0 -0
  356. /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.css +0 -0
  357. /package/dist/components/{Foundary → Foundry}/RichText/plugins/toolbar-plugin.d.ts +0 -0
  358. /package/dist/components/{Foundary → Foundry}/SearchableSelect.css +0 -0
  359. /package/dist/components/{Foundary → Foundry}/SearchableSelect.d.ts +0 -0
  360. /package/dist/components/{Foundary → Foundry}/Views/ColleaguesView.css +0 -0
  361. /package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.css +0 -0
  362. /package/dist/components/{Foundary → Foundry}/Views/KnowledgeView.d.ts +0 -0
  363. /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.css +0 -0
  364. /package/dist/components/{Foundary → Foundry}/Views/TeamsIndexView.d.ts +0 -0
  365. /package/dist/components/{Foundary → Foundry}/Views/index.css +0 -0
  366. /package/dist/components/{Foundary → Foundry}/Views/index.d.ts +0 -0
  367. /package/dist/components/{Foundary/colleague-card.css → Foundry/add-colleague-to-team-form.css} +0 -0
  368. /package/dist/components/{Foundary/colleague-form.css → Foundry/colleague-card.css} +0 -0
  369. /package/dist/components/{Foundary → Foundry}/colleague-card.d.ts +0 -0
  370. /package/dist/components/{Foundary/colleague-type-selection.css → Foundry/colleague-form.css} +0 -0
  371. /package/dist/components/{Foundary → Foundry}/colleague-form.d.ts +0 -0
  372. /package/dist/components/{Foundary/document-edit.css → Foundry/colleague-type-selection.css} +0 -0
  373. /package/dist/components/{Foundary → Foundry}/colleague-type-selection.d.ts +0 -0
  374. /package/dist/components/{Foundary/document-preview-examples.css → Foundry/digital-colleague-selection.css} +0 -0
  375. /package/dist/components/{Foundary/document-preview.css → Foundry/document-edit.css} +0 -0
  376. /package/dist/components/{Foundary → Foundry}/document-edit.d.ts +0 -0
  377. /package/dist/components/{Foundary/file-edit.css → Foundry/document-preview-examples.css} +0 -0
  378. /package/dist/components/{Foundary → Foundry}/document-preview-examples.d.ts +0 -0
  379. /package/dist/components/{Foundary/foundary-clone.css → Foundry/document-preview.css} +0 -0
  380. /package/dist/components/{Foundary → Foundry}/document-preview.d.ts +0 -0
  381. /package/dist/components/{Foundary/foundary-layout.css → Foundry/file-edit.css} +0 -0
  382. /package/dist/components/{Foundary → Foundry}/file-edit.d.ts +0 -0
  383. /package/dist/components/{Foundary/foundary-options.css → Foundry/foundary-clone.css} +0 -0
  384. /package/dist/components/{Foundary → Foundry}/foundary-clone.d.ts +0 -0
  385. /package/dist/components/{Foundary/index.css → Foundry/foundary-layout.css} +0 -0
  386. /package/dist/components/{Foundary/knowledge-browser.css → Foundry/foundary-options.css} +0 -0
  387. /package/dist/components/{Foundary/knowledge-search.css → Foundry/index.css} +0 -0
  388. /package/dist/components/{Foundary/team-form.css → Foundry/knowledge-browser.css} +0 -0
  389. /package/dist/components/{Foundary → Foundry}/knowledge-browser.d.ts +0 -0
  390. /package/dist/components/{Foundary → Foundry}/knowledge-search.d.ts +0 -0
  391. /package/dist/components/{Foundary → Foundry}/team-form.d.ts +0 -0
  392. /package/dist/components/{Foundary → Foundry}/test-data.d.ts +0 -0
  393. /package/dist/components/{Foundary → Foundry}/types.d.ts +0 -0
@@ -32,14 +32,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
32
32
  ));
33
33
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
34
 
35
- // src/components/Foundary/Views/ColleaguesView.tsx
35
+ // src/components/Foundry/Views/ColleaguesView.tsx
36
36
  var ColleaguesView_exports = {};
37
37
  __export(ColleaguesView_exports, {
38
38
  default: () => ColleaguesView
39
39
  });
40
40
  module.exports = __toCommonJS(ColleaguesView_exports);
41
- var import_react14 = require("react");
42
- var import_lucide_react11 = require("lucide-react");
41
+ var import_react17 = require("react");
42
+ var import_lucide_react13 = require("lucide-react");
43
43
 
44
44
  // src/utils/cn.ts
45
45
  var import_clsx = require("clsx");
@@ -2960,7 +2960,7 @@ function NavigationTabs({
2960
2960
  );
2961
2961
  }
2962
2962
 
2963
- // src/components/Foundary/colleague-card.tsx
2963
+ // src/components/Foundry/colleague-card.tsx
2964
2964
  var import_react2 = require("react");
2965
2965
  var import_lucide_react3 = require("lucide-react");
2966
2966
 
@@ -3022,7 +3022,7 @@ function Badge({ className, variant, ...props }) {
3022
3022
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: cn(badgeVariants({ variant }), className), ...props });
3023
3023
  }
3024
3024
 
3025
- // src/components/Foundary/colleague-card.tsx
3025
+ // src/components/Foundry/colleague-card.tsx
3026
3026
  var import_jsx_runtime10 = require("react/jsx-runtime");
3027
3027
  function ColleagueCard({
3028
3028
  colleague,
@@ -3139,7 +3139,7 @@ function ColleagueCard({
3139
3139
  ] });
3140
3140
  }
3141
3141
 
3142
- // src/components/Foundary/colleague-form.tsx
3142
+ // src/components/Foundry/colleague-form.tsx
3143
3143
  var import_react4 = require("react");
3144
3144
  var import_lucide_react5 = require("lucide-react");
3145
3145
 
@@ -3174,7 +3174,7 @@ var Textarea = React8.forwardRef(
3174
3174
  );
3175
3175
  Textarea.displayName = "Textarea";
3176
3176
 
3177
- // src/components/Foundary/knowledge-search.tsx
3177
+ // src/components/Foundry/knowledge-search.tsx
3178
3178
  var import_react3 = require("react");
3179
3179
  var import_lucide_react4 = require("lucide-react");
3180
3180
 
@@ -3213,7 +3213,7 @@ var ScrollBar = React9.forwardRef(({ className, orientation = "vertical", ...pro
3213
3213
  ));
3214
3214
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
3215
3215
 
3216
- // src/components/Foundary/knowledge-search.tsx
3216
+ // src/components/Foundry/knowledge-search.tsx
3217
3217
  var import_jsx_runtime14 = require("react/jsx-runtime");
3218
3218
  function KnowledgeSearch({
3219
3219
  selectedDocuments,
@@ -3331,7 +3331,7 @@ function KnowledgeSearch({
3331
3331
  ] });
3332
3332
  }
3333
3333
 
3334
- // src/components/Foundary/colleague-form.tsx
3334
+ // src/components/Foundry/colleague-form.tsx
3335
3335
  var import_jsx_runtime15 = require("react/jsx-runtime");
3336
3336
  function ColleagueForm({
3337
3337
  colleague,
@@ -3796,7 +3796,7 @@ function UserSelection({
3796
3796
  }
3797
3797
  )
3798
3798
  ] }) }) }) }) }),
3799
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "container grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredUsers.map((user) => {
3799
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "container grid gap-4 md:grid-cols-2 lg:grid-cols-3 mt-4", children: filteredUsers.map((user) => {
3800
3800
  if (!user || !user.id) return null;
3801
3801
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3802
3802
  import_react6.motion.div,
@@ -3843,7 +3843,7 @@ function UserSelection({
3843
3843
  ) }) });
3844
3844
  }
3845
3845
 
3846
- // src/components/Foundary/foundary-clone.tsx
3846
+ // src/components/Foundry/foundary-clone.tsx
3847
3847
  var import_react7 = require("react");
3848
3848
  var import_lucide_react7 = require("lucide-react");
3849
3849
  var import_react8 = require("motion/react");
@@ -3927,7 +3927,7 @@ function DigitalColleagueClone({
3927
3927
  }
3928
3928
  )
3929
3929
  ] }) }) }),
3930
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3930
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3 mt-4", children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3931
3931
  import_react8.motion.div,
3932
3932
  {
3933
3933
  layout: true,
@@ -3997,17 +3997,37 @@ function DigitalColleagueClone({
3997
3997
  ) }) });
3998
3998
  }
3999
3999
 
4000
- // src/components/Foundary/colleague-type-selection.tsx
4000
+ // src/components/Foundry/digital-colleague-selection.tsx
4001
+ var import_react9 = require("react");
4001
4002
  var import_lucide_react8 = require("lucide-react");
4002
- var import_react9 = require("motion/react");
4003
+ var import_react10 = require("motion/react");
4003
4004
  var import_jsx_runtime18 = require("react/jsx-runtime");
4004
- function ColleagueTypeSelection({
4005
- onSelectHuman,
4006
- onSelectDigital,
4007
- onCancel
4005
+ function DigitalColleagueSelection({
4006
+ digitalColleagues,
4007
+ onColleagueSelect,
4008
+ onCancel,
4009
+ selectedColleagueId
4008
4010
  }) {
4009
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react9.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4010
- import_react9.motion.div,
4011
+ const [searchTerm, setSearchTerm] = (0, import_react9.useState)("");
4012
+ const [statusFilter, setStatusFilter] = (0, import_react9.useState)("all");
4013
+ const filteredColleagues = (0, import_react9.useMemo)(() => {
4014
+ return digitalColleagues.filter((colleague) => {
4015
+ const matchesSearch = colleague?.name.toLowerCase().includes(searchTerm.toLowerCase()) || colleague.jobDescription?.toLowerCase().includes(searchTerm.toLowerCase()) || colleague.workInstructions?.toLowerCase().includes(searchTerm.toLowerCase());
4016
+ return matchesSearch;
4017
+ });
4018
+ }, [digitalColleagues, searchTerm, statusFilter]);
4019
+ const handleColleagueSelect = (colleague) => {
4020
+ onColleagueSelect(colleague);
4021
+ };
4022
+ const formatDate = (date) => {
4023
+ return new Intl.DateTimeFormat("en-US", {
4024
+ month: "short",
4025
+ day: "numeric",
4026
+ year: "numeric"
4027
+ }).format(date);
4028
+ };
4029
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react10.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4030
+ import_react10.motion.div,
4011
4031
  {
4012
4032
  initial: { opacity: 0, y: 10 },
4013
4033
  animate: { opacity: 1, y: 0 },
@@ -4020,75 +4040,283 @@ function ColleagueTypeSelection({
4020
4040
  "Back"
4021
4041
  ] }),
4022
4042
  /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { children: [
4023
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h1", { className: "text-3xl font-bold", children: "Add Colleague" }),
4024
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground", children: "Choose the type of colleague to add" })
4043
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h1", { className: "text-3xl font-bold", children: "Add Existing Digital Colleague" }),
4044
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground", children: "Select a digital colleague to add to your team" })
4025
4045
  ] })
4026
4046
  ] }),
4027
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "grid gap-6 md:grid-cols-2 max-w-4xl mx-auto", children: [
4047
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col md:flex-row gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "relative", children: [
4048
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
4028
4049
  /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4029
- import_react9.motion.div,
4050
+ Input,
4051
+ {
4052
+ placeholder: "Search by name, job description, or capabilities...",
4053
+ value: searchTerm,
4054
+ onChange: (e) => setSearchTerm(e.target.value),
4055
+ className: "pl-9"
4056
+ }
4057
+ )
4058
+ ] }) }) }) }) }),
4059
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4 mt-4", children: filteredColleagues.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardContent, { className: "pt-6 text-center", children: [
4060
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-12 w-12 mx-auto mb-4 text-muted-foreground" }),
4061
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-lg font-medium mb-2", children: "No digital colleagues found" }),
4062
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground", children: searchTerm ? "Try adjusting your search criteria" : "No digital colleagues available to add" })
4063
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4064
+ import_react10.motion.div,
4065
+ {
4066
+ initial: { opacity: 0, y: 20 },
4067
+ animate: { opacity: 1, y: 0 },
4068
+ exit: { opacity: 0, y: -20 },
4069
+ transition: { duration: 0.2 },
4070
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4071
+ Card,
4072
+ {
4073
+ className: "cursor-pointer transition-all hover:shadow-lg hover:border-primary/50",
4074
+ onClick: () => handleColleagueSelect(colleague),
4075
+ children: [
4076
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardHeader, { className: "pb-3", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex items-start justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
4077
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar, { className: "h-12 w-12 flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AvatarFallback, { className: "bg-purple-100", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-6 w-6 text-purple-600" }) }) }),
4078
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex-1 min-w-0 overflow-hidden", children: [
4079
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardTitle, { className: "text-base truncate", children: colleague?.name }),
4080
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-sm text-muted-foreground truncate", children: colleague.jobDescription || "Digital Colleague" })
4081
+ ] })
4082
+ ] }) }) }),
4083
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardContent, { className: "space-y-3", children: [
4084
+ colleague.model && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
4085
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-4 w-4 text-muted-foreground" }),
4086
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-muted-foreground truncate", children: typeof colleague.model === "object" ? colleague.model.name : colleague.model })
4087
+ ] }),
4088
+ colleague.capabilities && colleague.capabilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-wrap gap-1", children: [
4089
+ colleague.capabilities.slice(0, 3).map((cap, index) => {
4090
+ const capName = typeof cap === "object" && cap.value && typeof cap.value === "object" && "name" in cap.value ? String(cap.value.name) : "Capability";
4091
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge, { variant: "secondary", className: "text-xs", children: capName }, index);
4092
+ }),
4093
+ colleague.capabilities.length > 3 && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Badge, { variant: "outline", className: "text-xs", children: [
4094
+ "+",
4095
+ colleague.capabilities.length - 3
4096
+ ] })
4097
+ ] }),
4098
+ colleague.workInstructions && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-sm text-muted-foreground line-clamp-2", children: colleague.workInstructions }),
4099
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Button, { className: "w-full", variant: "outline", size: "sm", children: [
4100
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.UserPlus, { className: "h-4 w-4 mr-2" }),
4101
+ "Add to Team"
4102
+ ] }) })
4103
+ ] })
4104
+ ]
4105
+ }
4106
+ )
4107
+ },
4108
+ colleague.id
4109
+ )) }) })
4110
+ ]
4111
+ },
4112
+ "colleague-selection"
4113
+ ) }) });
4114
+ }
4115
+
4116
+ // src/components/Foundry/add-colleague-to-team-form.tsx
4117
+ var import_lucide_react9 = require("lucide-react");
4118
+ var import_react11 = require("motion/react");
4119
+ var import_jsx_runtime19 = require("react/jsx-runtime");
4120
+ function AddColleagueToTeamForm({
4121
+ colleague,
4122
+ team,
4123
+ onSave,
4124
+ onCancel,
4125
+ isLoading = false
4126
+ }) {
4127
+ const handleSubmit = (e) => {
4128
+ e.preventDefault();
4129
+ onSave(colleague, team.id);
4130
+ };
4131
+ const isColleagueAlreadyMember = () => {
4132
+ if (!team.members) return false;
4133
+ return team.members.some(
4134
+ (member) => member.relationTo === "digital-colleagues" && (typeof member.value === "number" && member.value === colleague.id || typeof member.value === "object" && member.value.id === colleague.id)
4135
+ );
4136
+ };
4137
+ const alreadyMember = isColleagueAlreadyMember();
4138
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react11.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4139
+ import_react11.motion.div,
4140
+ {
4141
+ initial: { opacity: 0, y: 10 },
4142
+ animate: { opacity: 1, y: 0 },
4143
+ exit: { opacity: 0, y: -10 },
4144
+ transition: { duration: 0.2 },
4145
+ children: [
4146
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
4147
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
4148
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.ChevronLeft, { className: "h-4 w-4" }),
4149
+ "Back"
4150
+ ] }),
4151
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
4152
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h1", { className: "text-3xl font-bold", children: "Add to Team" }),
4153
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-muted-foreground", children: "Confirm adding this digital colleague to your team" })
4154
+ ] })
4155
+ ] }),
4156
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("form", { onSubmit: handleSubmit, className: "space-y-6", children: [
4157
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Card, { children: [
4158
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardHeader, {}),
4159
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-start gap-4", children: [
4160
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Avatar, { className: "h-16 w-16", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(AvatarFallback, { className: "bg-purple-100", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Bot, { className: "h-8 w-8 text-purple-600" }) }) }),
4161
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex-1 space-y-2", children: [
4162
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { className: "text-xl font-semibold", children: colleague.name }),
4163
+ colleague.jobDescription && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-sm text-muted-foreground", children: colleague.jobDescription }),
4164
+ colleague.model && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 text-sm", children: [
4165
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Bot, { className: "h-4 w-4 text-muted-foreground" }),
4166
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "text-muted-foreground", children: typeof colleague.model === "object" ? colleague.model.name : colleague.model })
4167
+ ] }),
4168
+ colleague.capabilities && colleague.capabilities.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-wrap gap-1 mt-2", children: [
4169
+ colleague.capabilities.slice(0, 5).map((cap, index) => {
4170
+ const capName = typeof cap === "object" && cap.value && typeof cap.value === "object" && "name" in cap.value ? String(cap.value.name) : "Capability";
4171
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Badge, { variant: "secondary", className: "text-xs", children: capName }, index);
4172
+ }),
4173
+ colleague.capabilities.length > 5 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Badge, { variant: "outline", className: "text-xs", children: [
4174
+ "+",
4175
+ colleague.capabilities.length - 5,
4176
+ " more"
4177
+ ] })
4178
+ ] })
4179
+ ] })
4180
+ ] }) })
4181
+ ] }),
4182
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Card, { children: [
4183
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(CardHeader, { children: [
4184
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardTitle, { className: "text-lg", children: "Team" }),
4185
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-sm text-muted-foreground", children: "This colleague will be added to the following team" })
4186
+ ] }),
4187
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "p-4 border rounded-lg bg-primary/5 border-primary", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-start gap-3", children: [
4188
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex-shrink-0 mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Users, { className: "h-5 w-5 text-blue-600" }) }) }),
4189
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex-1", children: [
4190
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2", children: [
4191
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h3", { className: "text-base font-semibold", children: team.name }),
4192
+ alreadyMember && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Badge, { variant: "secondary", className: "text-xs", children: [
4193
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Check, { className: "h-3 w-3 mr-1" }),
4194
+ "Already a member"
4195
+ ] })
4196
+ ] }),
4197
+ team.description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-sm text-muted-foreground mt-1", children: team.description }),
4198
+ team.members && team.members.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("p", { className: "text-xs text-muted-foreground mt-2", children: [
4199
+ team.members.length,
4200
+ " current member",
4201
+ team.members.length !== 1 ? "s" : ""
4202
+ ] })
4203
+ ] })
4204
+ ] }) }) })
4205
+ ] }),
4206
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center justify-end gap-3", children: [
4207
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { type: "button", variant: "outline", onClick: onCancel, disabled: isLoading, children: "Cancel" }),
4208
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4209
+ Button,
4210
+ {
4211
+ type: "submit",
4212
+ disabled: isLoading || alreadyMember,
4213
+ className: "gap-2",
4214
+ children: [
4215
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Users, { className: "h-4 w-4" }),
4216
+ alreadyMember ? "Already in Team" : "Add to Team"
4217
+ ]
4218
+ }
4219
+ )
4220
+ ] })
4221
+ ] })
4222
+ ]
4223
+ },
4224
+ "add-colleague-to-team"
4225
+ ) }) });
4226
+ }
4227
+
4228
+ // src/components/Foundry/colleague-type-selection.tsx
4229
+ var import_lucide_react10 = require("lucide-react");
4230
+ var import_react12 = require("motion/react");
4231
+ var import_jsx_runtime20 = require("react/jsx-runtime");
4232
+ function ColleagueTypeSelection({
4233
+ onSelectHuman,
4234
+ onSelectDigital,
4235
+ onCancel
4236
+ }) {
4237
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react12.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4238
+ import_react12.motion.div,
4239
+ {
4240
+ initial: { opacity: 0, y: 10 },
4241
+ animate: { opacity: 1, y: 0 },
4242
+ exit: { opacity: 0, y: -10 },
4243
+ transition: { duration: 0.2 },
4244
+ children: [
4245
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
4246
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
4247
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.ChevronLeft, { className: "h-4 w-4" }),
4248
+ "Back"
4249
+ ] }),
4250
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { children: [
4251
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h1", { className: "text-3xl font-bold", children: "Add Colleague" }),
4252
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-muted-foreground", children: "Choose the type of colleague to add" })
4253
+ ] })
4254
+ ] }),
4255
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "grid gap-6 md:grid-cols-2 max-w-4xl mx-auto", children: [
4256
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4257
+ import_react12.motion.div,
4030
4258
  {
4031
4259
  whileHover: { scale: 1.02 },
4032
4260
  whileTap: { scale: 0.98 },
4033
4261
  transition: { type: "spring", stiffness: 300, damping: 20 },
4034
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4262
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4035
4263
  Card,
4036
4264
  {
4037
4265
  className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
4038
4266
  onClick: onSelectHuman,
4039
4267
  children: [
4040
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4041
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.User, { className: "h-8 w-8 text-blue-600" }) }),
4042
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardTitle, { className: "text-xl", children: "Add Human Colleague" })
4268
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4269
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.User, { className: "h-8 w-8 text-blue-600" }) }),
4270
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CardTitle, { className: "text-xl", children: "Add Human Colleague" })
4043
4271
  ] }),
4044
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardContent, { className: "text-center", children: [
4045
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground mb-4", children: "Select from existing users in your organization to add as team members." }),
4046
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-2 text-sm", children: [
4047
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4048
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Users, { className: "h-4 w-4 text-blue-600" }),
4049
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Browse existing users" })
4272
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardContent, { className: "text-center", children: [
4273
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-muted-foreground mb-4", children: "Select from existing users in your organization to add as team members." }),
4274
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-2 text-sm", children: [
4275
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4276
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Users, { className: "h-4 w-4 text-blue-600" }),
4277
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Browse existing users" })
4050
4278
  ] }),
4051
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4052
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.User, { className: "h-4 w-4 text-blue-600" }),
4053
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Import user details automatically" })
4279
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4280
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.User, { className: "h-4 w-4 text-blue-600" }),
4281
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Import user details automatically" })
4054
4282
  ] })
4055
4283
  ] }),
4056
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, { className: "mt-6 w-full", onClick: onSelectHuman, children: "Select User" })
4284
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "mt-6 w-full", onClick: onSelectHuman, children: "Select User" })
4057
4285
  ] })
4058
4286
  ]
4059
4287
  }
4060
4288
  )
4061
4289
  }
4062
4290
  ),
4063
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
4064
- import_react9.motion.div,
4291
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4292
+ import_react12.motion.div,
4065
4293
  {
4066
4294
  whileHover: { scale: 1.02 },
4067
4295
  whileTap: { scale: 0.98 },
4068
4296
  transition: { type: "spring", stiffness: 300, damping: 20 },
4069
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
4297
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4070
4298
  Card,
4071
4299
  {
4072
4300
  className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
4073
4301
  onClick: onSelectDigital,
4074
4302
  children: [
4075
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4076
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-8 w-8 text-purple-600" }) }),
4077
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(CardTitle, { className: "text-xl", children: "Add Digital Colleague" })
4303
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4304
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Bot, { className: "h-8 w-8 text-purple-600" }) }),
4305
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(CardTitle, { className: "text-xl", children: "Add Digital Colleague" })
4078
4306
  ] }),
4079
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(CardContent, { className: "text-center", children: [
4080
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-muted-foreground mb-4", children: "Clone an existing digital colleague or create a new AI assistant for your team." }),
4081
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-2 text-sm", children: [
4082
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4083
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-4 w-4 text-purple-600" }),
4084
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Clone existing colleagues" })
4307
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(CardContent, { className: "text-center", children: [
4308
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-muted-foreground mb-4", children: "Clone an existing digital colleague or create a new AI assistant for your team." }),
4309
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-2 text-sm", children: [
4310
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4311
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Bot, { className: "h-4 w-4 text-purple-600" }),
4312
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Clone existing colleagues" })
4085
4313
  ] }),
4086
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4087
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Users, { className: "h-4 w-4 text-purple-600" }),
4088
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: "Create from templates" })
4314
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4315
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.Users, { className: "h-4 w-4 text-purple-600" }),
4316
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { children: "Create from templates" })
4089
4317
  ] })
4090
4318
  ] }),
4091
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button, { className: "mt-6 w-full", onClick: onSelectDigital, children: "Add Digital Colleague" })
4319
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { className: "mt-6 w-full", onClick: onSelectDigital, children: "Add Digital Colleague" })
4092
4320
  ] })
4093
4321
  ]
4094
4322
  }
@@ -4102,98 +4330,134 @@ function ColleagueTypeSelection({
4102
4330
  ) }) });
4103
4331
  }
4104
4332
 
4105
- // src/components/Foundary/foundary-options.tsx
4106
- var import_lucide_react9 = require("lucide-react");
4107
- var import_react10 = require("motion/react");
4108
- var import_jsx_runtime19 = require("react/jsx-runtime");
4333
+ // src/components/Foundry/foundary-options.tsx
4334
+ var import_lucide_react11 = require("lucide-react");
4335
+ var import_react13 = require("motion/react");
4336
+ var import_jsx_runtime21 = require("react/jsx-runtime");
4109
4337
  function DigitalColleagueOptions({
4110
4338
  onCloneExisting,
4339
+ onAddExisting,
4111
4340
  onCreateNew,
4112
4341
  onCancel
4113
4342
  }) {
4114
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_react10.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4115
- import_react10.motion.div,
4343
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-6", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react13.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4344
+ import_react13.motion.div,
4116
4345
  {
4117
4346
  initial: { opacity: 0, y: 10 },
4118
4347
  animate: { opacity: 1, y: 0 },
4119
4348
  exit: { opacity: 0, y: -10 },
4120
4349
  transition: { duration: 0.2 },
4121
4350
  children: [
4122
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
4123
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
4124
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.ChevronLeft, { className: "h-4 w-4" }),
4351
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-4 mb-6", children: [
4352
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Button, { variant: "ghost", onClick: onCancel, className: "gap-2", children: [
4353
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" }),
4125
4354
  "Back"
4126
4355
  ] }),
4127
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { children: [
4128
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h1", { className: "text-3xl font-bold", children: "Add Digital Colleague" }),
4129
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-muted-foreground", children: "Choose how to create your digital colleague" })
4356
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
4357
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h1", { className: "text-3xl font-bold", children: "Add Digital Colleague" }),
4358
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground", children: "Choose how to create your digital colleague" })
4130
4359
  ] })
4131
4360
  ] }),
4132
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "grid gap-6 md:grid-cols-2 max-w-4xl mx-auto", children: [
4133
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4134
- import_react10.motion.div,
4361
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "grid gap-6 md:grid-cols-3 max-w-6xl mx-auto", children: [
4362
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4363
+ import_react13.motion.div,
4364
+ {
4365
+ whileHover: { scale: 1.02 },
4366
+ whileTap: { scale: 0.98 },
4367
+ transition: { type: "spring", stiffness: 300, damping: 20 },
4368
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4369
+ Card,
4370
+ {
4371
+ className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
4372
+ onClick: onAddExisting,
4373
+ children: [
4374
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4375
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-auto w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.UserPlus, { className: "h-8 w-8 text-purple-600" }) }),
4376
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-xl", children: "Add Existing" })
4377
+ ] }),
4378
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { className: "text-center", children: [
4379
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: "Add an already configured digital colleague directly to your team." }),
4380
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-2 text-sm", children: [
4381
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4382
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Bot, { className: "h-4 w-4 text-purple-600" }),
4383
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Fully configured" })
4384
+ ] }),
4385
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4386
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.UserPlus, { className: "h-4 w-4 text-purple-600" }),
4387
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Ready to use" })
4388
+ ] })
4389
+ ] }),
4390
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { className: "mt-6 w-full", onClick: onAddExisting, children: "Browse & Add" })
4391
+ ] })
4392
+ ]
4393
+ }
4394
+ )
4395
+ }
4396
+ ),
4397
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4398
+ import_react13.motion.div,
4135
4399
  {
4136
4400
  whileHover: { scale: 1.02 },
4137
4401
  whileTap: { scale: 0.98 },
4138
4402
  transition: { type: "spring", stiffness: 300, damping: 20 },
4139
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4403
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4140
4404
  Card,
4141
4405
  {
4142
4406
  className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
4143
4407
  onClick: onCloneExisting,
4144
4408
  children: [
4145
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4146
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Copy, { className: "h-8 w-8 text-blue-600" }) }),
4147
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardTitle, { className: "text-xl", children: "Clone Existing" })
4409
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4410
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-auto w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Copy, { className: "h-8 w-8 text-blue-600" }) }),
4411
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-xl", children: "Clone Existing" })
4148
4412
  ] }),
4149
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(CardContent, { className: "text-center", children: [
4150
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-muted-foreground mb-4", children: "Start with an existing digital colleague and customize it for your needs." }),
4151
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "space-y-2 text-sm", children: [
4152
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4153
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Bot, { className: "h-4 w-4 text-blue-600" }),
4154
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Pre-configured capabilities" })
4413
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { className: "text-center", children: [
4414
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: "Start with an existing digital colleague and customize it for your needs." }),
4415
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-2 text-sm", children: [
4416
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4417
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Bot, { className: "h-4 w-4 text-blue-600" }),
4418
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Pre-configured capabilities" })
4155
4419
  ] }),
4156
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4157
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Copy, { className: "h-4 w-4 text-blue-600" }),
4158
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Inherit knowledge base" })
4420
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4421
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Copy, { className: "h-4 w-4 text-blue-600" }),
4422
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Inherit knowledge base" })
4159
4423
  ] })
4160
4424
  ] }),
4161
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { className: "mt-6 w-full", onClick: onCloneExisting, children: "Browse & Clone" })
4425
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { className: "mt-6 w-full", onClick: onCloneExisting, children: "Browse & Clone" })
4162
4426
  ] })
4163
4427
  ]
4164
4428
  }
4165
4429
  )
4166
4430
  }
4167
4431
  ),
4168
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
4169
- import_react10.motion.div,
4432
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4433
+ import_react13.motion.div,
4170
4434
  {
4171
4435
  whileHover: { scale: 1.02 },
4172
4436
  whileTap: { scale: 0.98 },
4173
4437
  transition: { type: "spring", stiffness: 300, damping: 20 },
4174
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
4438
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
4175
4439
  Card,
4176
4440
  {
4177
4441
  className: "cursor-pointer transition-all hover:shadow-lg border-2 hover:border-primary/50",
4178
4442
  onClick: onCreateNew,
4179
4443
  children: [
4180
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4181
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Sparkles, { className: "h-8 w-8 text-green-600" }) }),
4182
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardTitle, { className: "text-xl", children: "Create New" })
4444
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "text-center pb-4", children: [
4445
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-auto w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Sparkles, { className: "h-8 w-8 text-green-600" }) }),
4446
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-xl", children: "Create New" })
4183
4447
  ] }),
4184
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(CardContent, { className: "text-center", children: [
4185
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-muted-foreground mb-4", children: "Build a completely new digital colleague from scratch with custom specifications." }),
4186
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "space-y-2 text-sm", children: [
4187
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4188
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Plus, { className: "h-4 w-4 text-green-600" }),
4189
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Custom job description" })
4448
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { className: "text-center", children: [
4449
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: "Build a completely new digital colleague from scratch with custom specifications." }),
4450
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-2 text-sm", children: [
4451
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4452
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Plus, { className: "h-4 w-4 text-green-600" }),
4453
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Custom job description" })
4190
4454
  ] }),
4191
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4192
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react9.Sparkles, { className: "h-4 w-4 text-green-600" }),
4193
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: "Define unique capabilities" })
4455
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex items-center gap-2 justify-center", children: [
4456
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Sparkles, { className: "h-4 w-4 text-green-600" }),
4457
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: "Define unique capabilities" })
4194
4458
  ] })
4195
4459
  ] }),
4196
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Button, { className: "mt-6 w-full", onClick: onCreateNew, children: "Create from Scratch" })
4460
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Button, { className: "mt-6 w-full", onClick: onCreateNew, children: "Create from Scratch" })
4197
4461
  ] })
4198
4462
  ]
4199
4463
  }
@@ -4207,17 +4471,17 @@ function DigitalColleagueOptions({
4207
4471
  ) }) });
4208
4472
  }
4209
4473
 
4210
- // src/components/Foundary/Views/ColleaguesView.tsx
4211
- var import_react15 = require("motion/react");
4474
+ // src/components/Foundry/Views/ColleaguesView.tsx
4475
+ var import_react18 = require("motion/react");
4212
4476
 
4213
4477
  // src/components/Heros/DashboardHero/DashboardHero.tsx
4214
- var import_react12 = require("react");
4215
- var import_react13 = require("motion/react");
4478
+ var import_react15 = require("react");
4479
+ var import_react16 = require("motion/react");
4216
4480
 
4217
4481
  // src/hooks/use-local-storage.ts
4218
- var import_react11 = require("react");
4482
+ var import_react14 = require("react");
4219
4483
  function useLocalStorage(key, initialValue) {
4220
- const [storedValue, setStoredValue] = (0, import_react11.useState)(() => {
4484
+ const [storedValue, setStoredValue] = (0, import_react14.useState)(() => {
4221
4485
  if (typeof window === "undefined") return initialValue;
4222
4486
  try {
4223
4487
  const item = window.localStorage.getItem(key);
@@ -4235,7 +4499,7 @@ function useLocalStorage(key, initialValue) {
4235
4499
  } catch (error) {
4236
4500
  }
4237
4501
  };
4238
- (0, import_react11.useEffect)(() => {
4502
+ (0, import_react14.useEffect)(() => {
4239
4503
  setValue(storedValue);
4240
4504
  }, []);
4241
4505
  return [storedValue, setValue];
@@ -4243,8 +4507,8 @@ function useLocalStorage(key, initialValue) {
4243
4507
 
4244
4508
  // src/components/Heros/DashboardHero/DashboardHero.tsx
4245
4509
  var import_fa = require("react-icons/fa");
4246
- var import_lucide_react10 = require("lucide-react");
4247
- var import_jsx_runtime20 = require("react/jsx-runtime");
4510
+ var import_lucide_react12 = require("lucide-react");
4511
+ var import_jsx_runtime22 = require("react/jsx-runtime");
4248
4512
  function DashboardHero({
4249
4513
  title,
4250
4514
  description,
@@ -4260,23 +4524,23 @@ function DashboardHero({
4260
4524
  `hero-section-minimized-${title.replace(/\s+/g, "-").toLowerCase()}`,
4261
4525
  !secondaryAction && !description ? true : false
4262
4526
  );
4263
- const [actionsMenuOpen, setActionsMenuOpen] = (0, import_react12.useState)(false);
4527
+ const [actionsMenuOpen, setActionsMenuOpen] = (0, import_react15.useState)(false);
4264
4528
  const shouldBeMinimized = !secondaryAction && !description || minimized;
4265
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
4266
- import_react13.motion.div,
4529
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
4530
+ import_react16.motion.div,
4267
4531
  {
4268
4532
  initial: { opacity: 0, y: 20 },
4269
4533
  animate: { opacity: 1, y: 0 },
4270
4534
  transition: { duration: 0.5 },
4271
4535
  className: `overflow-hidden rounded-3xl ${gradient} p-8 text-white ${className || ""}`,
4272
4536
  children: [
4273
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [
4274
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-3", children: [
4275
- badge && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Badge, { className: "bg-white/20 text-white hover:bg-white/30 rounded-xl", children: badge }),
4276
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("h2", { className: "text-3xl font-bold m-0", children: title })
4537
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [
4538
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-3", children: [
4539
+ badge && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Badge, { className: "bg-white/20 text-white hover:bg-white/30 rounded-xl", children: badge }),
4540
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "text-3xl font-bold m-0", children: title })
4277
4541
  ] }),
4278
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex items-center gap-3", children: [
4279
- shouldBeMinimized && primaryAction && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4542
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-3", children: [
4543
+ shouldBeMinimized && primaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4280
4544
  Button,
4281
4545
  {
4282
4546
  className: "rounded-2xl bg-white text-indigo-700 hover:bg-white/90",
@@ -4284,39 +4548,39 @@ function DashboardHero({
4284
4548
  children: primaryAction.label
4285
4549
  }
4286
4550
  ),
4287
- shouldBeMinimized && (secondaryAction || tertiaryAction) && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(DropdownMenu, { open: actionsMenuOpen, onOpenChange: setActionsMenuOpen, children: [
4288
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4551
+ shouldBeMinimized && (secondaryAction || tertiaryAction) && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DropdownMenu, { open: actionsMenuOpen, onOpenChange: setActionsMenuOpen, children: [
4552
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4289
4553
  Button,
4290
4554
  {
4291
4555
  variant: "ghost",
4292
4556
  size: "sm",
4293
4557
  className: "rounded-2xl bg-white/20 text-white hover:bg-white/30 p-2",
4294
4558
  "aria-label": "More actions",
4295
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react10.EllipsisVertical, { size: 20 })
4559
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react12.EllipsisVertical, { size: 20 })
4296
4560
  }
4297
4561
  ) }),
4298
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(DropdownMenuContent, { align: "end", className: "w-48", children: [
4299
- secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropdownMenuItem, { onClick: secondaryAction.onClick, children: secondaryAction.label }),
4300
- tertiaryAction && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropdownMenuItem, { onClick: tertiaryAction.onClick, children: tertiaryAction.label })
4562
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(DropdownMenuContent, { align: "end", className: "w-48", children: [
4563
+ secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuItem, { onClick: secondaryAction.onClick, children: secondaryAction.label }),
4564
+ tertiaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DropdownMenuItem, { onClick: tertiaryAction.onClick, children: tertiaryAction.label })
4301
4565
  ] })
4302
4566
  ] }),
4303
- (secondaryAction || description) && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4567
+ (secondaryAction || description) && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4304
4568
  "button",
4305
4569
  {
4306
4570
  "aria-label": minimized ? "Expand hero section" : "Minimize hero section",
4307
4571
  className: "rounded-full bg-white/20 hover:bg-white/30 p-1 text-white transition-colors",
4308
4572
  onClick: () => setMinimized(!minimized),
4309
4573
  style: { lineHeight: 0 },
4310
- children: minimized ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa.FaChevronDown, { size: 22 }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_fa.FaChevronUp, { size: 22 })
4574
+ children: minimized ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fa.FaChevronDown, { size: 22 }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_fa.FaChevronUp, { size: 22 })
4311
4575
  }
4312
4576
  )
4313
4577
  ] })
4314
4578
  ] }),
4315
- !shouldBeMinimized && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-6 md:flex-row md:items-center md:justify-between", children: [
4316
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "space-y-4", children: [
4317
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "max-w-[600px] text-white/80", children: description }),
4318
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-wrap gap-3", children: [
4319
- primaryAction && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4579
+ !shouldBeMinimized && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-6 md:flex-row md:items-center md:justify-between", children: [
4580
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "space-y-4", children: [
4581
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "max-w-[600px] text-white/80", children: description }),
4582
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-wrap gap-3", children: [
4583
+ primaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4320
4584
  Button,
4321
4585
  {
4322
4586
  className: "rounded-2xl bg-white text-indigo-700 hover:bg-white/90",
@@ -4324,7 +4588,7 @@ function DashboardHero({
4324
4588
  children: primaryAction.label
4325
4589
  }
4326
4590
  ),
4327
- secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4591
+ secondaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4328
4592
  Button,
4329
4593
  {
4330
4594
  variant: "outline",
@@ -4333,7 +4597,7 @@ function DashboardHero({
4333
4597
  children: secondaryAction.label
4334
4598
  }
4335
4599
  ),
4336
- tertiaryAction && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
4600
+ tertiaryAction && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4337
4601
  Button,
4338
4602
  {
4339
4603
  variant: "outline",
@@ -4344,7 +4608,7 @@ function DashboardHero({
4344
4608
  )
4345
4609
  ] })
4346
4610
  ] }),
4347
- children && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "hidden lg:block", children })
4611
+ children && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "hidden lg:block", children })
4348
4612
  ] })
4349
4613
  ]
4350
4614
  }
@@ -4357,35 +4621,38 @@ function cn2(...inputs) {
4357
4621
  return twMerge((0, import_clsx2.clsx)(inputs));
4358
4622
  }
4359
4623
 
4360
- // src/components/Foundary/Views/ColleaguesView.tsx
4361
- var import_jsx_runtime21 = require("react/jsx-runtime");
4624
+ // src/components/Foundry/Views/ColleaguesView.tsx
4625
+ var import_jsx_runtime23 = require("react/jsx-runtime");
4362
4626
  function ColleaguesView({
4363
4627
  initialColleagues,
4364
4628
  onColleagueAdd,
4365
4629
  onColleagueEdit,
4366
4630
  onColleagueDelete,
4631
+ onColleagueAddToTeam,
4367
4632
  compactView = false,
4368
4633
  departments = ["Design", "Engineering", "Marketing", "Product", "Sales", "Operations"],
4369
4634
  className,
4370
4635
  availableUsers = [],
4371
4636
  existingDigitalColleagues = [],
4637
+ currentTeam,
4372
4638
  availableKnowledgeDocuments = [],
4373
4639
  availableCapabilities = [],
4374
4640
  availableModels = []
4375
4641
  }) {
4376
- const [colleagues, setColleagues] = (0, import_react14.useState)(initialColleagues || []);
4377
- const [searchTerm, setSearchTerm] = (0, import_react14.useState)("");
4378
- const [departmentFilter, setDepartmentFilter] = (0, import_react14.useState)("all");
4379
- const [statusFilter, setStatusFilter] = (0, import_react14.useState)("all");
4380
- const [activeTab, setActiveTab] = (0, import_react14.useState)("all");
4381
- const [editingColleague, setEditingColleague] = (0, import_react14.useState)(null);
4382
- const [viewingColleague, setViewingColleague] = (0, import_react14.useState)(null);
4383
- (0, import_react14.useEffect)(() => {
4642
+ const [colleagues, setColleagues] = (0, import_react17.useState)(initialColleagues || []);
4643
+ const [searchTerm, setSearchTerm] = (0, import_react17.useState)("");
4644
+ const [departmentFilter, setDepartmentFilter] = (0, import_react17.useState)("all");
4645
+ const [statusFilter, setStatusFilter] = (0, import_react17.useState)("all");
4646
+ const [activeTab, setActiveTab] = (0, import_react17.useState)("all");
4647
+ const [editingColleague, setEditingColleague] = (0, import_react17.useState)(null);
4648
+ const [viewingColleague, setViewingColleague] = (0, import_react17.useState)(null);
4649
+ const [selectedColleagueForTeam, setSelectedColleagueForTeam] = (0, import_react17.useState)(null);
4650
+ (0, import_react17.useEffect)(() => {
4384
4651
  setColleagues(initialColleagues || []);
4385
4652
  }, [initialColleagues]);
4386
4653
  const safeAvailableUsers = Array.isArray(availableUsers) ? availableUsers : [];
4387
4654
  const safeExistingDigitalColleagues = Array.isArray(existingDigitalColleagues) ? existingDigitalColleagues : [];
4388
- const [currentView, setCurrentView] = (0, import_react14.useState)("main");
4655
+ const [currentView, setCurrentView] = (0, import_react17.useState)("main");
4389
4656
  const filteredColleagues = colleagues.filter((colleague) => {
4390
4657
  if (!colleague || !colleague?.name) return false;
4391
4658
  const matchesSearch = colleague?.name.toLowerCase().includes(searchTerm.toLowerCase()) || colleague.type === "human" && // (colleague.email?.toLowerCase().includes(searchTerm.toLowerCase()) ||
@@ -4451,6 +4718,27 @@ function ColleaguesView({
4451
4718
  onColleagueAdd?.({ ...clonedColleague, type: "digital" });
4452
4719
  setCurrentView("main");
4453
4720
  };
4721
+ const handleDigitalColleagueSelect = (selectedColleague) => {
4722
+ if (!selectedColleague || !selectedColleague.id) {
4723
+ console.error(
4724
+ "Invalid selected colleague provided to handleDigitalColleagueSelect:",
4725
+ selectedColleague
4726
+ );
4727
+ return;
4728
+ }
4729
+ setSelectedColleagueForTeam(selectedColleague);
4730
+ setCurrentView("addToTeam");
4731
+ };
4732
+ const handleAddColleagueToTeam = (colleague, teamId) => {
4733
+ onColleagueAddToTeam?.(colleague, teamId);
4734
+ setColleagues((prev) => [...prev, { ...colleague, type: "digital" }]);
4735
+ setSelectedColleagueForTeam(null);
4736
+ setCurrentView("main");
4737
+ };
4738
+ const handleCancelAddToTeam = () => {
4739
+ setSelectedColleagueForTeam(null);
4740
+ setCurrentView("digitalSelection");
4741
+ };
4454
4742
  const handleCreateNewDigital = () => {
4455
4743
  setEditingColleague(null);
4456
4744
  setCurrentView("form");
@@ -4501,7 +4789,7 @@ function ColleaguesView({
4501
4789
  setStatusFilter("all");
4502
4790
  };
4503
4791
  if (currentView === "typeSelection") {
4504
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4792
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4505
4793
  ColleagueTypeSelection,
4506
4794
  {
4507
4795
  onSelectHuman: () => setCurrentView("userSelection"),
@@ -4513,7 +4801,7 @@ function ColleaguesView({
4513
4801
  if (currentView === "userSelection") {
4514
4802
  return (
4515
4803
  // <h1>User selection</h1>
4516
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4804
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4517
4805
  UserSelection,
4518
4806
  {
4519
4807
  users: safeAvailableUsers,
@@ -4524,17 +4812,43 @@ function ColleaguesView({
4524
4812
  );
4525
4813
  }
4526
4814
  if (currentView === "digitalOptions") {
4527
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4815
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4528
4816
  DigitalColleagueOptions,
4529
4817
  {
4818
+ onAddExisting: () => setCurrentView("digitalSelection"),
4530
4819
  onCloneExisting: () => setCurrentView("digitalClone"),
4531
4820
  onCreateNew: handleCreateNewDigital,
4532
4821
  onCancel: () => setCurrentView("typeSelection")
4533
4822
  }
4534
4823
  );
4535
4824
  }
4825
+ if (currentView === "digitalSelection") {
4826
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4827
+ DigitalColleagueSelection,
4828
+ {
4829
+ digitalColleagues: safeExistingDigitalColleagues,
4830
+ onColleagueSelect: handleDigitalColleagueSelect,
4831
+ onCancel: () => setCurrentView("digitalOptions")
4832
+ }
4833
+ );
4834
+ }
4835
+ if (currentView === "addToTeam") {
4836
+ if (!selectedColleagueForTeam || !currentTeam) {
4837
+ setCurrentView("digitalSelection");
4838
+ return null;
4839
+ }
4840
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4841
+ AddColleagueToTeamForm,
4842
+ {
4843
+ colleague: selectedColleagueForTeam,
4844
+ team: currentTeam,
4845
+ onSave: handleAddColleagueToTeam,
4846
+ onCancel: handleCancelAddToTeam
4847
+ }
4848
+ );
4849
+ }
4536
4850
  if (currentView === "digitalClone") {
4537
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4851
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4538
4852
  DigitalColleagueClone,
4539
4853
  {
4540
4854
  digitalColleagues: safeExistingDigitalColleagues,
@@ -4544,7 +4858,7 @@ function ColleaguesView({
4544
4858
  );
4545
4859
  }
4546
4860
  if (currentView === "form") {
4547
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4861
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4548
4862
  ColleagueForm,
4549
4863
  {
4550
4864
  colleague: editingColleague || void 0,
@@ -4557,7 +4871,7 @@ function ColleaguesView({
4557
4871
  );
4558
4872
  }
4559
4873
  if (currentView === "view") {
4560
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4874
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4561
4875
  ColleagueForm,
4562
4876
  {
4563
4877
  colleague: viewingColleague || void 0,
@@ -4570,15 +4884,15 @@ function ColleaguesView({
4570
4884
  }
4571
4885
  );
4572
4886
  }
4573
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-8", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react15.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4574
- import_react15.motion.div,
4887
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "px-2 md:px-4 py-4 space-y-8", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react18.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4888
+ import_react18.motion.div,
4575
4889
  {
4576
4890
  initial: { opacity: 0, y: 10 },
4577
4891
  animate: { opacity: 1, y: 0 },
4578
4892
  exit: { opacity: 0, y: -10 },
4579
4893
  transition: { duration: 0.2 },
4580
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: `space-y-6 ${className || ""}`, children: [
4581
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4894
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: `space-y-6 ${className || ""}`, children: [
4895
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4582
4896
  DashboardHero,
4583
4897
  {
4584
4898
  title: "Colleagues",
@@ -4590,42 +4904,42 @@ function ColleaguesView({
4590
4904
  }
4591
4905
  }
4592
4906
  ),
4593
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [
4594
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Card, { children: [
4595
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4596
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-sm font-medium", children: "Total Colleagues" }),
4597
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Users, { className: "h-4 w-4 text-muted-foreground" })
4907
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-4", children: [
4908
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { children: [
4909
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4910
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardTitle, { className: "text-sm font-medium", children: "Total Colleagues" }),
4911
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Users, { className: "h-4 w-4 text-muted-foreground" })
4598
4912
  ] }),
4599
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { children: [
4600
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "text-2xl font-bold", children: colleagues.length }),
4601
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-xs text-muted-foreground", children: "0 active" })
4913
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardContent, { children: [
4914
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "text-2xl font-bold", children: colleagues.length }),
4915
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-muted-foreground", children: "0 active" })
4602
4916
  ] })
4603
4917
  ] }),
4604
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Card, { children: [
4605
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4606
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-sm font-medium", children: "Human Members" }),
4607
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.User, { className: "h-4 w-4 text-muted-foreground" })
4918
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { children: [
4919
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4920
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardTitle, { className: "text-sm font-medium", children: "Human Members" }),
4921
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.User, { className: "h-4 w-4 text-muted-foreground" })
4608
4922
  ] }),
4609
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { children: [
4610
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "text-2xl font-bold", children: colleagues.filter((c) => c.type === "human").length }),
4611
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-xs text-muted-foreground", children: "active" })
4923
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardContent, { children: [
4924
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "text-2xl font-bold", children: colleagues.filter((c) => c.type === "human").length }),
4925
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-muted-foreground", children: "active" })
4612
4926
  ] })
4613
4927
  ] }),
4614
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Card, { children: [
4615
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4616
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardTitle, { className: "text-sm font-medium", children: "Digital Colleagues" }),
4617
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Bot, { className: "h-4 w-4 text-muted-foreground" })
4928
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Card, { children: [
4929
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4930
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardTitle, { className: "text-sm font-medium", children: "Digital Colleagues" }),
4931
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Bot, { className: "h-4 w-4 text-muted-foreground" })
4618
4932
  ] }),
4619
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(CardContent, { children: [
4620
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "text-2xl font-bold", children: colleagues.filter((c) => c.type === "digital").length }),
4621
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-xs text-muted-foreground", children: "0 active" })
4933
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(CardContent, { children: [
4934
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "text-2xl font-bold", children: colleagues.filter((c) => c.type === "digital").length }),
4935
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xs text-muted-foreground", children: "0 active" })
4622
4936
  ] })
4623
4937
  ] })
4624
4938
  ] }),
4625
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-col md:flex-row gap-4", children: [
4626
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative", children: [
4627
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
4628
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4939
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-col md:flex-row gap-4", children: [
4940
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "relative", children: [
4941
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Search, { className: "absolute left-3 top-3 h-4 w-4 text-muted-foreground" }),
4942
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4629
4943
  Input,
4630
4944
  {
4631
4945
  placeholder: "Search colleagues...",
@@ -4635,28 +4949,28 @@ function ColleaguesView({
4635
4949
  }
4636
4950
  )
4637
4951
  ] }) }),
4638
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Select, { value: departmentFilter, onValueChange: setDepartmentFilter, children: [
4639
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectTrigger, { className: "w-full md:w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectValue, { placeholder: "Department" }) }),
4640
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SelectContent, { children: [
4641
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItem, { value: "all", children: "All Departments" }),
4642
- departments.map((dept) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItem, { value: dept, children: dept }, dept))
4952
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Select, { value: departmentFilter, onValueChange: setDepartmentFilter, children: [
4953
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectTrigger, { className: "w-full md:w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectValue, { placeholder: "Department" }) }),
4954
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(SelectContent, { children: [
4955
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "all", children: "All Departments" }),
4956
+ departments.map((dept) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: dept, children: dept }, dept))
4643
4957
  ] })
4644
4958
  ] }),
4645
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Select, { value: statusFilter, onValueChange: setStatusFilter, children: [
4646
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectTrigger, { className: "w-full md:w-[140px]", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectValue, { placeholder: "Status" }) }),
4647
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SelectContent, { children: [
4648
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItem, { value: "all", children: "All Status" }),
4649
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItem, { value: "active", children: "Active" }),
4650
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItem, { value: "inactive", children: "Inactive" })
4959
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Select, { value: statusFilter, onValueChange: setStatusFilter, children: [
4960
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectTrigger, { className: "w-full md:w-[140px]", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectValue, { placeholder: "Status" }) }),
4961
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(SelectContent, { children: [
4962
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "all", children: "All Status" }),
4963
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "active", children: "Active" }),
4964
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectItem, { value: "inactive", children: "Inactive" })
4651
4965
  ] })
4652
4966
  ] }),
4653
- (searchTerm || departmentFilter !== "all" || statusFilter !== "all") && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Button, { variant: "outline", onClick: clearFilters, className: "gap-2", children: [
4654
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Filter, { className: "h-4 w-4" }),
4967
+ (searchTerm || departmentFilter !== "all" || statusFilter !== "all") && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Button, { variant: "outline", onClick: clearFilters, className: "gap-2", children: [
4968
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Filter, { className: "h-4 w-4" }),
4655
4969
  "Clear"
4656
4970
  ] })
4657
4971
  ] }) }) }),
4658
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "space-y-4", children: [
4659
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4972
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "space-y-4", children: [
4973
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4660
4974
  NavigationTabs,
4661
4975
  {
4662
4976
  activeTab,
@@ -4670,11 +4984,11 @@ function ColleaguesView({
4670
4984
  gridCols: 3
4671
4985
  }
4672
4986
  ),
4673
- activeTab === "all" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4987
+ activeTab === "all" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4674
4988
  "div",
4675
4989
  {
4676
4990
  className: `grid gap-4 ${compactView ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,
4677
- children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
4991
+ children: filteredColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4678
4992
  ColleagueCard,
4679
4993
  {
4680
4994
  colleague,
@@ -4688,11 +5002,11 @@ function ColleaguesView({
4688
5002
  ))
4689
5003
  }
4690
5004
  ),
4691
- activeTab === "human" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5005
+ activeTab === "human" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4692
5006
  "div",
4693
5007
  {
4694
5008
  className: `grid gap-4 ${compactView ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,
4695
- children: humanColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5009
+ children: humanColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4696
5010
  ColleagueCard,
4697
5011
  {
4698
5012
  colleague,
@@ -4705,11 +5019,11 @@ function ColleaguesView({
4705
5019
  ))
4706
5020
  }
4707
5021
  ),
4708
- activeTab === "digital" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5022
+ activeTab === "digital" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4709
5023
  "div",
4710
5024
  {
4711
5025
  className: `grid gap-4 ${compactView ? "grid-cols-1 md:grid-cols-2 lg:grid-cols-4" : "grid-cols-1 md:grid-cols-2 lg:grid-cols-3"}`,
4712
- children: digitalColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
5026
+ children: digitalColleagues.map((colleague) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4713
5027
  ColleagueCard,
4714
5028
  {
4715
5029
  colleague,
@@ -4724,12 +5038,12 @@ function ColleaguesView({
4724
5038
  }
4725
5039
  )
4726
5040
  ] }),
4727
- filteredColleagues.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "text-center py-8", children: [
4728
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Users, { className: "h-12 w-12 text-muted-foreground mx-auto mb-4" }),
4729
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("h3", { className: "text-lg font-semibold mb-2", children: "No colleagues found" }),
4730
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-muted-foreground mb-4", children: searchTerm || departmentFilter !== "all" || statusFilter !== "all" ? "Try adjusting your filters to see more results." : "Get started by adding your first colleague." }),
4731
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Button, { onClick: handleAddColleague, className: "gap-2", children: [
4732
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react11.Plus, { className: "h-4 w-4" }),
5041
+ filteredColleagues.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(CardContent, { className: "pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "text-center py-8", children: [
5042
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Users, { className: "h-12 w-12 text-muted-foreground mx-auto mb-4" }),
5043
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("h3", { className: "text-lg font-semibold mb-2", children: "No colleagues found" }),
5044
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-muted-foreground mb-4", children: searchTerm || departmentFilter !== "all" || statusFilter !== "all" ? "Try adjusting your filters to see more results." : "Get started by adding your first colleague." }),
5045
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Button, { onClick: handleAddColleague, className: "gap-2", children: [
5046
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_lucide_react13.Plus, { className: "h-4 w-4" }),
4733
5047
  "Add Colleague"
4734
5048
  ] })
4735
5049
  ] }) }) })