cortex-react-components 2.26.5 → 2.28.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 (407) hide show
  1. package/dist/{chunk-O24GFE6Q.mjs → chunk-24R7CI5Q.mjs} +1 -1
  2. package/dist/{chunk-KBLVWXLK.mjs → chunk-27XIU7FW.mjs} +1 -1
  3. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  4. package/dist/{chunk-RR4QSUV2.mjs → chunk-2IMY4VWR.mjs} +1 -1
  5. package/dist/{chunk-HTS3KCJL.mjs → chunk-2O54GV6Q.mjs} +1 -1
  6. package/dist/{chunk-2GM2LPLB.mjs → chunk-2R3ECSWF.mjs} +1 -1
  7. package/dist/chunk-32G45Z2G.mjs +1 -0
  8. package/dist/{chunk-GAZHKHGB.mjs → chunk-43YJ2VYN.mjs} +1 -1
  9. package/dist/{chunk-GULRIPMU.mjs → chunk-4FEVXBNU.mjs} +1 -1
  10. package/dist/{chunk-FYQBRCQM.mjs → chunk-4ITG3T35.mjs} +1 -1
  11. package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
  12. package/dist/{chunk-QUMUO63J.mjs → chunk-633ESSXN.mjs} +1 -1
  13. package/dist/{chunk-HDKHF3EA.mjs → chunk-6L7VJ7IH.mjs} +1 -1
  14. package/dist/chunk-6UULUGR2.mjs +1 -0
  15. package/dist/{chunk-JCWFPKF3.mjs → chunk-6VRPQKAK.mjs} +1 -1
  16. package/dist/{chunk-FMXCT6LU.mjs → chunk-75HU5Q6A.mjs} +1 -1
  17. package/dist/{chunk-BGQC6IQK.mjs → chunk-AMAB4E2X.mjs} +1 -1
  18. package/dist/{chunk-4SRUEQTP.mjs → chunk-B63FA7LF.mjs} +1 -1
  19. package/dist/{chunk-LAQ3QAUW.mjs → chunk-CLGBBNRB.mjs} +1 -1
  20. package/dist/{chunk-F6DMXMR4.mjs → chunk-CXHPLJDO.mjs} +1 -1
  21. package/dist/{chunk-CDVRH3MC.mjs → chunk-D44OXIPN.mjs} +1 -1
  22. package/dist/{chunk-P6OSMPUQ.mjs → chunk-D76LTQRD.mjs} +1 -1
  23. package/dist/chunk-DNMM3Q72.mjs +9 -0
  24. package/dist/{chunk-F64CA5CH.mjs → chunk-DTKZ3I6Z.mjs} +1 -1
  25. package/dist/{chunk-PNUBVBSR.mjs → chunk-FRYADWTQ.mjs} +1 -1
  26. package/dist/chunk-G3BOVXUM.mjs +4 -0
  27. package/dist/{chunk-2OOJ4ZFB.mjs → chunk-GRNOF6LY.mjs} +1 -1
  28. package/dist/{chunk-PTZT4QJW.mjs → chunk-GXVC6ETI.mjs} +1 -1
  29. package/dist/{chunk-IQQ7ZWCP.mjs → chunk-I6D5JCNY.mjs} +1 -1
  30. package/dist/{chunk-JVTCOOUV.mjs → chunk-I75OOO4H.mjs} +1 -1
  31. package/dist/{chunk-MO4HRQEL.mjs → chunk-IBC5Z55T.mjs} +1 -1
  32. package/dist/{chunk-KVLUT4U2.mjs → chunk-IFUIQ57U.mjs} +1 -1
  33. package/dist/chunk-IMRGPVFS.mjs +1 -0
  34. package/dist/{chunk-NXAQ6ESJ.mjs → chunk-JDIPWJBD.mjs} +1 -1
  35. package/dist/{chunk-R6AYIVIR.mjs → chunk-KAAHIHZK.mjs} +1 -1
  36. package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
  37. package/dist/{chunk-EHSOO47V.mjs → chunk-KEOMDWUC.mjs} +1 -1
  38. package/dist/{chunk-CKU2T3AN.mjs → chunk-LBVWIF2J.mjs} +1 -1
  39. package/dist/chunk-LEZ6G4X7.mjs +4 -0
  40. package/dist/{chunk-BQQ4V4PX.mjs → chunk-LKUK55GC.mjs} +1 -1
  41. package/dist/{chunk-WLI2YTOQ.mjs → chunk-MDIJOHFV.mjs} +1 -1
  42. package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.mjs} +1 -1
  43. package/dist/{chunk-HKMNAXLM.mjs → chunk-MX6GXHJJ.mjs} +1 -1
  44. package/dist/{chunk-FEWOSBUJ.mjs → chunk-NJ7PW5T7.mjs} +1 -1
  45. package/dist/{chunk-EFNFK7TR.mjs → chunk-O3BCESMN.mjs} +1 -1
  46. package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
  47. package/dist/{chunk-X2JWNPWT.mjs → chunk-O5QXPC23.mjs} +1 -1
  48. package/dist/{chunk-5EM6P7SU.mjs → chunk-OQBCIB4L.mjs} +1 -1
  49. package/dist/{chunk-GETYSIZV.mjs → chunk-ORODSHZN.mjs} +1 -1
  50. package/dist/{chunk-AN744MXS.mjs → chunk-OWL3KUE3.mjs} +1 -1
  51. package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
  52. package/dist/{chunk-HD6E7KI2.mjs → chunk-RCI3L3M5.mjs} +1 -1
  53. package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
  54. package/dist/{chunk-5EKGFFJD.mjs → chunk-SADWUWLZ.mjs} +1 -1
  55. package/dist/{chunk-CMU5JFUC.mjs → chunk-SWE754OC.mjs} +1 -1
  56. package/dist/{chunk-BDDEMCAH.mjs → chunk-SZXMQMZ6.mjs} +1 -1
  57. package/dist/{chunk-7TSR2LQB.mjs → chunk-TIAA3ZN3.mjs} +1 -1
  58. package/dist/{chunk-RS4WAAGI.mjs → chunk-UBZYXZ7B.mjs} +1 -1
  59. package/dist/{chunk-6PS55VJZ.mjs → chunk-VDFRWGXR.mjs} +1 -1
  60. package/dist/chunk-VFIMFZX5.mjs +1 -0
  61. package/dist/{chunk-IO5ZSALG.mjs → chunk-VKCDLKYH.mjs} +1 -1
  62. package/dist/{chunk-M527EJIX.mjs → chunk-WBDSOPDY.mjs} +1 -1
  63. package/dist/{chunk-7OMPPFGG.mjs → chunk-WDRL3N5V.mjs} +1 -1
  64. package/dist/{chunk-L3BLBPSR.mjs → chunk-WUA65ZZB.mjs} +1 -1
  65. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  66. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  67. package/dist/{chunk-VTFO5GXK.mjs → chunk-XMYXQR5W.mjs} +1 -1
  68. package/dist/{chunk-RS4VD3ML.mjs → chunk-XQ3XV5DH.mjs} +1 -1
  69. package/dist/{chunk-3ANJOET7.mjs → chunk-XSCZQEYP.mjs} +1 -1
  70. package/dist/{chunk-AQQCH7Z2.mjs → chunk-XX4GSGRP.mjs} +1 -1
  71. package/dist/{chunk-U3FYDDE2.mjs → chunk-YG7SLO6G.mjs} +1 -1
  72. package/dist/chunk-YI6EQRWN.mjs +1 -0
  73. package/dist/{chunk-LLED3RQS.mjs → chunk-YPQUYIGO.mjs} +1 -1
  74. package/dist/{chunk-WH6JZSIA.mjs → chunk-YVXFRQPA.mjs} +1 -1
  75. package/dist/{chunk-ZG5N4C4S.mjs → chunk-ZA6MGTGM.mjs} +1 -1
  76. package/dist/chunk-ZLFZBT3K.mjs +1 -0
  77. package/dist/{chunk-HSQAHQNP.mjs → chunk-ZZFYIP6H.mjs} +1 -1
  78. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  79. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  80. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  81. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  82. package/dist/components/AdvancedComponents/index.d.ts +1 -0
  83. package/dist/components/AdvancedComponents/index.js +12 -1
  84. package/dist/components/AdvancedComponents/index.mjs +1 -1
  85. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  86. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  87. package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.d.ts +7 -0
  88. package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.js +1 -0
  89. package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.mjs +1 -0
  90. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.d.ts +17 -0
  91. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.js +12 -0
  92. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +1 -0
  93. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.d.ts +3 -0
  94. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.js +9 -0
  95. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +1 -0
  96. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.d.ts +19 -0
  97. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.js +12 -0
  98. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +1 -0
  99. package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.js +233 -0
  100. package/dist/components/AdvancedComponents/org-chart-component/examples/PayloadIntegration.mjs +233 -0
  101. package/dist/components/AdvancedComponents/org-chart-component/index.d.ts +6 -0
  102. package/dist/components/AdvancedComponents/org-chart-component/index.js +12 -0
  103. package/dist/components/AdvancedComponents/org-chart-component/index.mjs +1 -0
  104. package/dist/components/AdvancedComponents/org-chart-component/mockData.d.ts +9 -0
  105. package/dist/components/AdvancedComponents/org-chart-component/mockData.js +1 -0
  106. package/dist/components/AdvancedComponents/org-chart-component/mockData.mjs +1 -0
  107. package/dist/components/AdvancedComponents/org-chart-component/types/index.d.ts +33 -0
  108. package/dist/components/AdvancedComponents/org-chart-component/types/index.js +1 -0
  109. package/dist/components/AdvancedComponents/org-chart-component/types/index.mjs +1 -0
  110. package/dist/components/AdvancedComponents/org-chart-component/types.d.ts +42 -0
  111. package/dist/components/AdvancedComponents/org-chart-component/types.js +1 -0
  112. package/dist/components/AdvancedComponents/org-chart-component/types.mjs +1 -0
  113. package/dist/components/AdvancedComponents/org-chart-component/utils.d.ts +13 -0
  114. package/dist/components/AdvancedComponents/org-chart-component/utils.js +1 -0
  115. package/dist/components/AdvancedComponents/org-chart-component/utils.mjs +1 -0
  116. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  117. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  118. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  119. package/dist/components/Blocks/Banner.mjs +1 -1
  120. package/dist/components/Blocks/CallToAction.mjs +1 -1
  121. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  122. package/dist/components/Blocks/Code.client.mjs +1 -1
  123. package/dist/components/Blocks/Code.mjs +1 -1
  124. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  125. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  126. package/dist/components/Blocks/Content.mjs +1 -1
  127. package/dist/components/Blocks/CopyButton.mjs +1 -1
  128. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  129. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  130. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  131. package/dist/components/Blocks/OrgChart.mjs +3 -1
  132. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  133. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  134. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  135. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  136. package/dist/components/Blocks/index.d.ts +0 -1
  137. package/dist/components/Blocks/index.js +1 -1
  138. package/dist/components/Blocks/index.mjs +1 -1
  139. package/dist/components/CRM/CogeBoard.mjs +1 -1
  140. package/dist/components/CRM/DealCard.mjs +1 -1
  141. package/dist/components/CRM/DealDetails.mjs +1 -1
  142. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  143. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  144. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  145. package/dist/components/CRM/NewDealForm.mjs +1 -1
  146. package/dist/components/CRM/index.mjs +1 -1
  147. package/dist/components/Cards/ContentCard.mjs +1 -1
  148. package/dist/components/Cards/CustomerCard.mjs +1 -1
  149. package/dist/components/Cards/EventCard.mjs +1 -1
  150. package/dist/components/Cards/FeatureCard.mjs +1 -1
  151. package/dist/components/Cards/HeroCard.mjs +1 -1
  152. package/dist/components/Cards/Image.mjs +1 -1
  153. package/dist/components/Cards/PricingCard.mjs +1 -1
  154. package/dist/components/Cards/ServiceCard.mjs +1 -1
  155. package/dist/components/Cards/index.mjs +1 -1
  156. package/dist/components/Chat/ChatInterface.js +10 -10
  157. package/dist/components/Chat/ChatInterface.mjs +1 -1
  158. package/dist/components/Chat/Components/ChatCardArtefact.mjs +1 -1
  159. package/dist/components/Chat/Components/ChatCardTask.mjs +1 -1
  160. package/dist/components/Chat/Components/Conversation.mjs +1 -1
  161. package/dist/components/Chat/Components/Message.js +1 -1
  162. package/dist/components/Chat/Components/Message.mjs +1 -1
  163. package/dist/components/Chat/CopilotInterface.js +6 -6
  164. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  165. package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
  166. package/dist/components/Chat/PartTypes/ColleagueHandoff.d.ts +18 -0
  167. package/dist/components/Chat/PartTypes/ColleagueHandoff.js +5 -0
  168. package/dist/components/Chat/PartTypes/ColleagueHandoff.mjs +2 -0
  169. package/dist/components/Chat/PartTypes/MessageHandler.js +6 -6
  170. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  171. package/dist/components/Chat/PartTypes/Reasoning.mjs +1 -1
  172. package/dist/components/Chat/PartTypes/Response.mjs +1 -1
  173. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  174. package/dist/components/Chat/PartTypes/index.d.ts +1 -0
  175. package/dist/components/Chat/PartTypes/index.js +8 -8
  176. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  177. package/dist/components/Chat/capability-menu.mjs +1 -1
  178. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  179. package/dist/components/Chat/demo-long-messages.js +14 -14
  180. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  181. package/dist/components/Chat/demo-tests.js +42 -42
  182. package/dist/components/Chat/demo-tests.mjs +1 -1
  183. package/dist/components/Chat/demo.js +6 -6
  184. package/dist/components/Chat/demo.mjs +1 -1
  185. package/dist/components/Chat/example-usage.js +7 -7
  186. package/dist/components/Chat/example-usage.mjs +1 -1
  187. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  188. package/dist/components/Chat/example-with-vercel-ai.js +6 -6
  189. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  190. package/dist/components/Chat/index.d.ts +0 -2
  191. package/dist/components/Chat/index.js +11 -14
  192. package/dist/components/Chat/index.mjs +1 -1
  193. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  194. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  195. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  196. package/dist/components/DeliveryLead/index.mjs +1 -1
  197. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  198. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  199. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  200. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  201. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  202. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  203. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  204. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  205. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  206. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  207. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  208. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  209. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  210. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  211. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  212. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  213. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  214. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  215. package/dist/components/DigitalColleagues/index.mjs +1 -1
  216. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  217. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  218. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  219. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  220. package/dist/components/Foundary/DashboardHeader.mjs +1 -1
  221. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  222. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  223. package/dist/components/Foundary/Knowledge/manage-team-context.mjs +1 -1
  224. package/dist/components/Foundary/LandingMenu.mjs +1 -1
  225. package/dist/components/Foundary/Login.mjs +1 -1
  226. package/dist/components/Foundary/MainPage.mjs +1 -1
  227. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  228. package/dist/components/Foundary/RichText/components/RawUploadComponent/index.mjs +1 -1
  229. package/dist/components/Foundary/RichText/index.mjs +1 -1
  230. package/dist/components/Foundary/RichText/nodes/image-node.mjs +1 -1
  231. package/dist/components/Foundary/RichText/plugins/image-plugin.mjs +1 -1
  232. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  233. package/dist/components/Foundary/SearchableSelect.mjs +1 -1
  234. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  235. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  236. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  237. package/dist/components/Foundary/Views/index.mjs +1 -1
  238. package/dist/components/Foundary/colleague-card.mjs +1 -1
  239. package/dist/components/Foundary/colleague-form.mjs +1 -1
  240. package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
  241. package/dist/components/Foundary/document-edit.mjs +1 -1
  242. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  243. package/dist/components/Foundary/document-preview.mjs +1 -1
  244. package/dist/components/Foundary/file-edit.mjs +1 -1
  245. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  246. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  247. package/dist/components/Foundary/foundary-options.mjs +1 -1
  248. package/dist/components/Foundary/index.mjs +1 -1
  249. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  250. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  251. package/dist/components/Foundary/team-form.mjs +1 -1
  252. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  253. package/dist/components/HeaderFooter/Header.mjs +1 -1
  254. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  255. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  256. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  257. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  258. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  259. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  260. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  261. package/dist/components/HeaderFooter/index.mjs +1 -1
  262. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  263. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  264. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  265. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  266. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  267. package/dist/components/Heros/PostHero/index.mjs +1 -1
  268. package/dist/components/Heros/RenderHero.mjs +1 -1
  269. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  270. package/dist/components/Heros/index.mjs +1 -1
  271. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  272. package/dist/components/Holidays/CalendarView.mjs +1 -1
  273. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  274. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  275. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  276. package/dist/components/Holidays/index.mjs +1 -1
  277. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  278. package/dist/components/Layouts/Print.mjs +1 -1
  279. package/dist/components/Layouts/SlideShow.mjs +1 -1
  280. package/dist/components/Layouts/index.mjs +1 -1
  281. package/dist/components/Menus/Categories.mjs +1 -1
  282. package/dist/components/Menus/Filter.mjs +1 -1
  283. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  284. package/dist/components/Menus/RelatedContent.mjs +1 -1
  285. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  286. package/dist/components/Menus/SidebarRight.mjs +1 -1
  287. package/dist/components/Menus/index.mjs +1 -1
  288. package/dist/components/Other/Container.mjs +1 -1
  289. package/dist/components/Other/index.mjs +1 -1
  290. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  291. package/dist/components/Payload/Link/index.mjs +1 -1
  292. package/dist/components/Payload/Media/index.mjs +1 -1
  293. package/dist/components/Payload/Pagination/index.mjs +1 -1
  294. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  295. package/dist/components/Payload/RichText/index.mjs +1 -1
  296. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  297. package/dist/components/Payload/index.mjs +1 -1
  298. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  299. package/dist/components/Projects/AddFileModal.mjs +1 -1
  300. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  301. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  302. package/dist/components/Projects/EpicFilter.mjs +1 -1
  303. package/dist/components/Projects/EpicsView.mjs +1 -1
  304. package/dist/components/Projects/FileView.mjs +1 -1
  305. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  306. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  307. package/dist/components/Projects/PlanningView.mjs +1 -1
  308. package/dist/components/Projects/ProjectPage.mjs +1 -1
  309. package/dist/components/Projects/ProjectView.mjs +1 -1
  310. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  311. package/dist/components/Projects/TaskCard.mjs +1 -1
  312. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  313. package/dist/components/Projects/TaskSelect.mjs +1 -1
  314. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  315. package/dist/components/Projects/TasksView.mjs +1 -1
  316. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  317. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  318. package/dist/components/Projects/file-list.mjs +1 -1
  319. package/dist/components/Projects/index.mjs +1 -1
  320. package/dist/components/Projects/project-card.mjs +1 -1
  321. package/dist/components/Projects/project-form.mjs +1 -1
  322. package/dist/components/Projects/team-card.mjs +1 -1
  323. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  324. package/dist/components/dc-temp/creative.mjs +1 -1
  325. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  326. package/dist/components/dc-temp/index.mjs +1 -1
  327. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  328. package/dist/components/index.js +31 -23
  329. package/dist/components/index.mjs +1 -1
  330. package/dist/components/ui/alert.mjs +1 -1
  331. package/dist/components/ui/avatar.mjs +1 -1
  332. package/dist/components/ui/badge.mjs +1 -1
  333. package/dist/components/ui/breadcrumb.mjs +1 -1
  334. package/dist/components/ui/button.mjs +1 -1
  335. package/dist/components/ui/calendar.mjs +1 -1
  336. package/dist/components/ui/card.mjs +1 -1
  337. package/dist/components/ui/checkbox.mjs +1 -1
  338. package/dist/components/ui/command.mjs +1 -1
  339. package/dist/components/ui/dialog.mjs +1 -1
  340. package/dist/components/ui/dropdown-menu.mjs +1 -1
  341. package/dist/components/ui/hover-card.mjs +1 -1
  342. package/dist/components/ui/index.mjs +1 -1
  343. package/dist/components/ui/input.mjs +1 -1
  344. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  345. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  346. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  347. package/dist/components/ui/label.mjs +1 -1
  348. package/dist/components/ui/pagination.mjs +1 -1
  349. package/dist/components/ui/popover.mjs +1 -1
  350. package/dist/components/ui/progress.mjs +1 -1
  351. package/dist/components/ui/scroll-area.mjs +1 -1
  352. package/dist/components/ui/select.mjs +1 -1
  353. package/dist/components/ui/separator.mjs +1 -1
  354. package/dist/components/ui/sheet.mjs +1 -1
  355. package/dist/components/ui/sidebar.mjs +1 -1
  356. package/dist/components/ui/skeleton.mjs +1 -1
  357. package/dist/components/ui/switch.mjs +1 -1
  358. package/dist/components/ui/tabs.mjs +1 -1
  359. package/dist/components/ui/textarea.mjs +1 -1
  360. package/dist/components/ui/toast.mjs +1 -1
  361. package/dist/components/ui/toaster.mjs +1 -1
  362. package/dist/components/ui/toggle-group.mjs +1 -1
  363. package/dist/components/ui/toggle.mjs +1 -1
  364. package/dist/components/ui/tooltip.mjs +1 -1
  365. package/dist/globals.css +1 -1
  366. package/dist/index.js +34 -26
  367. package/dist/index.mjs +1 -1
  368. package/dist/metafile-cjs.json +1 -1
  369. package/dist/metafile-esm.json +1 -1
  370. package/dist/pages/Blog.mjs +1 -1
  371. package/dist/pages/Documentation.mjs +1 -1
  372. package/dist/pages/IndexPage.mjs +1 -1
  373. package/dist/pages/Intranet.mjs +1 -1
  374. package/dist/pages/LandingPage.mjs +1 -1
  375. package/dist/pages/Page.mjs +1 -1
  376. package/dist/pages/Publish.mjs +1 -1
  377. package/dist/pages/Website.mjs +1 -1
  378. package/dist/sections/AboutSection.mjs +1 -1
  379. package/dist/sections/BlogDetail.mjs +1 -1
  380. package/dist/sections/BlogList.mjs +1 -1
  381. package/dist/sections/BlogListSection.mjs +1 -1
  382. package/dist/sections/ContactSection.mjs +1 -1
  383. package/dist/sections/ImageSection.mjs +1 -1
  384. package/dist/sections/MainPageSection.mjs +1 -1
  385. package/dist/sections/PageSections.mjs +1 -1
  386. package/dist/sections/PricingSection.mjs +1 -1
  387. package/dist/sections/ServiceDetail.mjs +1 -1
  388. package/dist/sections/ServiceDetailSection.mjs +1 -1
  389. package/dist/sections/ServiceSection.mjs +1 -1
  390. package/dist/sections/form/index.mjs +1 -1
  391. package/dist/sections/index.mjs +1 -1
  392. package/dist/styles/Colors.mjs +1 -1
  393. package/dist/utils/index.mjs +1 -1
  394. package/package.json +1 -1
  395. package/dist/chunk-53QLSQCO.mjs +0 -4
  396. package/dist/chunk-BAB3ATRB.mjs +0 -4
  397. package/dist/chunk-N7M6FTIO.mjs +0 -4
  398. package/dist/chunk-UTJZH3X5.mjs +0 -1
  399. package/dist/chunk-VATGKKXW.mjs +0 -1
  400. package/dist/components/Chat/ChatInterfaceMessages.d.ts +0 -24
  401. package/dist/components/Chat/ChatInterfaceMessages.js +0 -7
  402. package/dist/components/Chat/ChatInterfaceMessages.mjs +0 -2
  403. package/dist/components/Chat/ChatMessage.css +0 -1
  404. package/dist/components/Chat/ChatMessage.d.ts +0 -19
  405. package/dist/components/Chat/ChatMessage.js +0 -7
  406. package/dist/components/Chat/ChatMessage.mjs +0 -1
  407. /package/dist/components/Chat/{ChatInterfaceMessages.css → PartTypes/ColleagueHandoff.css} +0 -0
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- "use strict";import{a}from"../../chunk-5WV5ZFEP.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as Image};
2
+ "use strict";import{a}from"../../chunk-5WV5ZFEP.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as Image};
@@ -1 +1 @@
1
- import{a}from"../../chunk-KX2NCNCS.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as PricingCard};
1
+ import{a}from"../../chunk-KX2NCNCS.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as PricingCard};
@@ -1 +1 @@
1
- import{a}from"../../chunk-NSMXJCXE.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ServiceCard};
1
+ import{a}from"../../chunk-NSMXJCXE.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ServiceCard};
@@ -1 +1 @@
1
- import{g as a,h as i}from"../../chunk-FYQBRCQM.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-SRUG246N.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-LVK4QE5D.mjs";import{a as f}from"../../chunk-NSMXJCXE.mjs";import{a as h}from"../../chunk-LKGCU7H6.mjs";import{a as e}from"../../chunk-5WV5ZFEP.mjs";import{a as g}from"../../chunk-KX2NCNCS.mjs";import{a as d}from"../../chunk-LEC6GEWS.mjs";import"../../chunk-VNYUNZ3M.mjs";import"../../chunk-UZSBX5GO.mjs";import"../../chunk-VRE6VCHX.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as b}from"../../chunk-BG7QXNV5.mjs";import{a as c}from"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{i as ContentCard,b as CustomerCard,c as EventCard,a as FeatureCard,h as Hero,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
1
+ import{g as a,h as i}from"../../chunk-4ITG3T35.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import{a as h}from"../../chunk-LKGCU7H6.mjs";import{a as e}from"../../chunk-5WV5ZFEP.mjs";import{a as g}from"../../chunk-KX2NCNCS.mjs";import{a as d}from"../../chunk-LEC6GEWS.mjs";import{a as f}from"../../chunk-NSMXJCXE.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-SRUG246N.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as b}from"../../chunk-BG7QXNV5.mjs";import{a as c}from"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{i as ContentCard,b as CustomerCard,c as EventCard,a as FeatureCard,h as Hero,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
@@ -3,19 +3,19 @@
3
3
  "use client"
4
4
  'use client';
5
5
 
6
- "use strict";var to=Object.create;var Le=Object.defineProperty;var oo=Object.getOwnPropertyDescriptor;var ro=Object.getOwnPropertyNames;var ao=Object.getPrototypeOf,no=Object.prototype.hasOwnProperty;var so=(e,t)=>{for(var o in t)Le(e,o,{get:t[o],enumerable:!0})},lt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ro(t))!no.call(e,s)&&s!==o&&Le(e,s,{get:()=>t[s],enumerable:!(r=oo(t,s))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?to(ao(e)):{},lt(t||!e||!e.__esModule?Le(o,"default",{value:e,enumerable:!0}):o,e)),io=e=>lt(Le({},"__esModule",{value:!0}),e);var rr={};so(rr,{ChatInterface:()=>or});module.exports=io(rr);var q=require("react"),xe=j(require("motion/react-client")),D=require("lucide-react");var De=j(require("react")),X=j(require("@radix-ui/react-avatar"));var vt=require("clsx");var Ke="-",lo=e=>{let t=po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let i=n.split(Ke);return i[0]===""&&i.length!==1&&i.shift(),pt(i,t)||co(n)},getConflictingClassGroupIds:(n,i)=>{let c=o[n]||[];return i&&r[n]?[...c,...r[n]]:c}}},pt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?pt(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Ke);return t.validators.find(({validator:n})=>n(a))?.classGroupId},ct=/^\[(.+)\]$/,co=e=>{if(ct.test(e)){let t=ct.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},po=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return mo(Object.entries(e.classGroups),o).forEach(([a,n])=>{qe(n,r,a,t)}),r},qe=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:dt(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(uo(s)){qe(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,n])=>{qe(n,dt(t,a),o,r)})})},dt=(e,t)=>{let o=e;return t.split(Ke).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},uo=e=>e.isThemeGetter,mo=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,i])=>[t+n,i])):a);return[o,s]}):e,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,n)=>{o.set(a,n),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let n=o.get(a);if(n!==void 0)return n;if((n=r.get(a))!==void 0)return s(a,n),n},set(a,n){o.has(a)?o.set(a,n):s(a,n)}}},ut="!",fo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,n=i=>{let c=[],g=0,h=0,f;for(let y=0;y<i.length;y++){let C=i[y];if(g===0){if(C===s&&(r||i.slice(y,y+a)===t)){c.push(i.slice(h,y)),h=y+a;continue}if(C==="/"){f=y;continue}}C==="["?g++:C==="]"&&g--}let v=c.length===0?i:i.substring(h),A=v.startsWith(ut),P=A?v.substring(1):v,x=f&&f>h?f-h:void 0;return{modifiers:c,hasImportantModifier:A,baseClassName:P,maybePostfixModifierPosition:x}};return o?i=>o({className:i,parseClassName:n}):n},bo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},vo=e=>({cache:go(e.cacheSize),parseClassName:fo(e),...lo(e)}),ho=/\s+/,yo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],n=e.trim().split(ho),i="";for(let c=n.length-1;c>=0;c-=1){let g=n[c],{modifiers:h,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:A}=o(g),P=!!A,x=r(P?v.substring(0,A):v);if(!x){if(!P){i=g+(i.length>0?" "+i:i);continue}if(x=r(v),!x){i=g+(i.length>0?" "+i:i);continue}P=!1}let y=bo(h).join(":"),C=f?y+ut:y,B=C+x;if(a.includes(B))continue;a.push(B);let S=s(x,P);for(let M=0;M<S.length;++M){let K=S[M];a.push(C+K)}i=g+(i.length>0?" "+i:i)}return i};function xo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=mt(t))&&(r&&(r+=" "),r+=o);return r}var mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Co(e,...t){let o,r,s,a=n;function n(c){let g=t.reduce((h,f)=>f(h),e());return o=vo(g),r=o.cache.get,s=o.cache.set,a=i,i(c)}function i(c){let g=r(c);if(g)return g;let h=yo(c,o);return s(c,h),h}return function(){return a(xo.apply(null,arguments))}}var k=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},gt=/^\[(?:([a-z-]+):)?(.+)\]$/i,wo=/^\d+\/\d+$/,No=new Set(["px","full","screen"]),ko=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,To=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)D-?((\d+)?\.?(\d+)[a-z]+|0)/,Ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>be(e)||No.has(e)||wo.test(e),re=e=>ve(e,"length",zo),be=e=>!!e&&!Number.isNaN(Number(e)),_e=e=>ve(e,"number",be),ke=e=>!!e&&Number.isInteger(Number(e)),So=e=>e.endsWith("%")&&be(e.slice(0,-1)),b=e=>gt.test(e),ae=e=>ko.test(e),Mo=new Set(["length","size","percentage"]),Io=e=>ve(e,Mo,ft),Lo=e=>ve(e,"position",ft),Do=new Set(["image","url"]),Eo=e=>ve(e,Do,Oo),Bo=e=>ve(e,"",Ho),Te=()=>!0,ve=(e,t,o)=>{let r=gt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},zo=e=>To.test(e)&&!Po.test(e),ft=()=>!1,Ho=e=>Ro.test(e),Oo=e=>Ao.test(e);var Fo=()=>{let e=k("colors"),t=k("spacing"),o=k("blur"),r=k("brightness"),s=k("borderColor"),a=k("borderRadius"),n=k("borderSpacing"),i=k("borderWidth"),c=k("contrast"),g=k("grayscale"),h=k("hueRotate"),f=k("invert"),v=k("gap"),A=k("gradientColorStops"),P=k("gradientColorStopPositions"),x=k("inset"),y=k("margin"),C=k("opacity"),B=k("padding"),S=k("saturate"),M=k("scale"),K=k("sepia"),ue=k("skew"),We=k("space"),Ce=k("translate"),me=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],we=()=>["auto",b,t],w=()=>[b,t],Ae=()=>["",Q,re],ge=()=>["auto",be,b],Se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],fe=()=>["solid","dashed","dotted","double","none"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",b],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[be,b];return{cacheSize:500,separator:":",theme:{colors:[Te],spacing:[Q,re],blur:["none","",ae,b],brightness:R(),borderColor:[e],borderRadius:["none","","full",ae,b],borderSpacing:w(),borderWidth:Ae(),contrast:R(),grayscale:le(),hueRotate:R(),invert:le(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[So,re],inset:we(),margin:we(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:le(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",b]}],container:["container"],columns:[{columns:[ae]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Se(),b]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:me()}],"overscroll-x":[{"overscroll-x":me()}],"overscroll-y":[{"overscroll-y":me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ke,b]}],basis:[{basis:we()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",ke,b]}],"grid-cols":[{"grid-cols":[Te]}],"col-start-end":[{col:["auto",{span:["full",ke,b]},b]}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":[Te]}],"row-start-end":[{row:["auto",{span:[ke,b]},b]}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",b]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...Ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],ze:[{ze:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],ze:[{ze:[B]}],pt:[{pt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],ze:[{ze:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[We]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[We]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b,t]}],"min-w":[{"min-w":[b,t,"min","max","fit"]}],"max-w":[{"max-w":[b,t,"none","full","min","max","fit","prose",{screen:[ae]},ae]}],h:[{h:[b,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ae,re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_e]}],"font-family":[{font:[Te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",b]}],"line-clamp":[{"line-clamp":["none",be,_e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Q,b]}],"list-image":[{"list-image":["none",b]}],"list-style-type":[{list:["none","disc","decimal",b]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Q,re]}],"underline-offset":[{"underline-offset":["auto",Q,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Se(),Lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","ze","tl"]},Eo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-ze":[{"rounded-ze":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-ze":[{"rounded-ze":[a]}],"rounded-ze":[{"rounded-ze":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-ze":[{"border-ze":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...fe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:fe()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-ze":[{"border-ze":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...fe()]}],"outline-offset":[{"outline-offset":[Q,b]}],"outline-w":[{outline:[Q,re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[Q,re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ae,Bo]}],"shadow-color":[{shadow:[Te]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ae,b]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",b]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",b]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ke,b]}],"translate-x":[{"translate-x":[Ce]}],"translate-y":[{"translate-y":[Ce]}],"skew-x":[{"skew-x":[ue]}],"skew-y":[{"skew-y":[ue]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ze-resize","nw-resize","ze-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-ze":[{"scroll-ze":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-ze":[{"scroll-ze":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-ze":[{"scroll-ze":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Q,re,_e]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],ze:["px","py","ps","ze","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],ze:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-ze","rounded-ss","rounded-ze","rounded-ze","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ze","rounded-ze"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-ze":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-ze"],"border-w-x":["border-w-r","border-w-ze"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-ze"],"border-color-x":["border-color-r","border-color-ze"],"border-color-y":["border-color-t","border-color-b"],"scroll-ze":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-ze":["scroll-px","scroll-py","scroll-ps","scroll-ze","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var bt=Co(Fo);function d(...e){return bt((0,vt.clsx)(e))}var ze=require("react/jsx-runtime"),Ee=De.forwardRef(({className:e,...t},o)=>(0,ze.jsx)(X.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ee.displayName=X.Root.displayName;var Vo=De.forwardRef(({className:e,...t},o)=>(0,ze.jsx)(X.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));Vo.displayName=X.Image.displayName;var Be=De.forwardRef(({className:e,...t},o)=>(0,ze.jsx)(X.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Be.displayName=X.Fallback.displayName;var ht=require("@radix-ui/react-slot"),yt=require("class-variance-authority"),xt=j(require("react")),jo=(0,yt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),z=xt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,ze.jsx)(e?ht.Slot:"button",{className:d(jo({className:t,size:o,variant:r})),ref:a,...s}));z.displayName="Button";var wt=j(require("react"));var Je=wt.forwardRef(({className:e,type:t,...o},r)=>(0,ze.jsx)("input",{type:t,className:d("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Je.displayName="Input";var Qe=j(require("react")),F=j(require("@radix-ui/react-scroll-area"));var Xe=Qe.forwardRef(({className:e,children:t,...o},r)=>(0,ze.jsxs)(F.Root,{ref:r,className:d("relative overflow-hidden",e),...o,children:[(0,ze.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ze.jsx)(kt,{}),(0,ze.jsx)(F.Corner,{})]}));Xe.displayName=F.Root.displayName;var kt=Qe.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,ze.jsx)(F.ScrollAreaScrollbar,{ref:r,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-ze border-ze-transparent ze-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent ze-[1px]",e),...o,children:(0,ze.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));kt.displayName=F.ScrollAreaScrollbar.displayName;var G=require("motion/react");var Uo=(0,yt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Y({className:e,variant:t,...o}){return(0,ze.jsx)("div",{className:d(Uo({variant:t}),e),...o})}var Rt={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]};function Ye(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function At({capabilities:e,isOpen:t,onToggle:o,onActionSelect:r,onContextChange:s,colorScheme:a=Rt,className:n}){let[i,c]=(0,q.useState)([]),[g,h]=(0,q.useState)([]),f=i[i.length-1],v=f?.children||e,A=(S,M)=>{switch(S.type){case"category":return a.categories[M%a.categories.length];case"list":return a.lists[M%a.lists.length];case"item":return a.items[M%a.items.length];default:return a.primary}},P=(0,q.useMemo)(()=>({path:i,selectedItems:g,filters:{}}),[i,g]);(0,q.useEffect)(()=>{s&&s(P)},[P,s]);let x=S=>{S.type==="category"||S.type==="list"?c([...i,S]):S.type==="item"&&h([...g,S])},y=()=>{c(i.slice(0,-1))},C=S=>{c(i.slice(0,S+1))},B=()=>f?.actions?f.actions:[];return t?(0,ze.jsxs)("div",{className:d("w-full",n),children:[(0,ze.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ze.jsxs)("div",{className:"flex items-center gap-2",children:[i.length>0&&(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:y,className:d("group ze-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,ze.jsx)(D.ChevronLeft,{className:d("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,ze.jsx)("h4",{className:"font-medium text-sm",children:f?.name||"Capabilities"})]}),(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:o,className:d("group ze-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,ze.jsx)(D.X,{className:d("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),i.length>0&&(0,ze.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>c([]),className:d("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,ze.jsxs)("span",{className:"relative",children:["Capabilities",(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),i.map((S,M)=>(0,ze.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ze.jsx)(D.ChevronRight,{className:"h-2 w-2"}),(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>C(M),className:d("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,ze.jsxs)("span",{className:"relative",children:[S.name,(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},S.id))]}),(0,ze.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,ze.jsx)(G.AnimatePresence,{mode:"wait",children:(0,ze.jsx)(G.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:f?.type==="list"&&f.data?(0,ze.jsx)(Wo,{data:f.data,onItemSelect:S=>h([...g,S]),colorScheme:a}):(0,ze.jsx)(Go,{capabilities:v,onSelect:x,colorScheme:a})},f?.id||"root")})})]}):(0,ze.jsxs)(z,{onClick:o,size:"sm",variant:"outline",className:"rounded-full",children:[(0,ze.jsx)(D.Menu,{className:"h-4 w-4"}),(0,ze.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function Go({capabilities:e,onSelect:t,colorScheme:o}){return(0,ze.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((r,s)=>(0,ze.jsx)($o,{capability:r,onClick:()=>t(r),color:o.categories[s%o.categories.length]},r.id))})}function $o({capability:e,onClick:t,selected:o,color:r}){return(0,ze.jsxs)(G.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:d("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",o&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,ze.jsx)("div",{className:d("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",r)}),(0,ze.jsxs)("span",{className:"truncate relative",children:[e.name,(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,ze.jsx)(D.ChevronRight,{className:d("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,ze.jsx)(Y,{variant:"secondary",className:d("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function Wo({data:e,onItemSelect:t,colorScheme:o}){return(0,ze.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((r,s)=>(0,ze.jsxs)(G.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:d("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(r),children:[(0,ze.jsx)("div",{className:d("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o.items[s%o.items.length])}),(0,ze.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ze.jsxs)("span",{className:"truncate relative font-medium",children:[r.title,(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),r.subtitle&&(0,ze.jsx)("div",{className:d("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:r.subtitle})]}),r.value&&(0,ze.jsx)(Y,{variant:"secondary",className:d("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:r.value})]},r.id))})}var Mt=j(require("react"));var St=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:r,description:s="This endpoint requires authentication to sync functions."})=>{let[a,n]=(0,q.useState)(!1),[i,c]=(0,q.useState)(""),g=()=>{if(!t){c("No authentication URL provided");return}n(!0),c("");try{let f=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!f){c("Popup blocked. Please allow popups for this site and try again."),n(!1);return}let v=setInterval(()=>{try{f.closed&&(clearInterval(v),n(!1),r(),o())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(v),n(!1),c("Authentication timed out. Please try again."))},6e5)}catch{c("Failed to open authentication window"),n(!1)}},h=async()=>{try{await navigator.clipboard.writeText(t),c("")}catch{c("Failed to copy URL to clipboard")}};return e?(0,ze.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,ze.jsxs)("div",{className:"bg-white rounded-lg ze-6 max-w-md w-[90%] shadow-lg",children:[(0,ze.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,ze.jsx)("ze",{className:"text-sm text-gray-600 mb-4",children:s}),i&&(0,ze.jsx)("div",{className:"mb-4 ze-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:i}),(0,ze.jsxs)("div",{className:"flex gap-2",children:[(0,ze.jsx)("button",{onClick:g,disabled:a||!t,className:`
6
+ "use strict";var po=Object.create;var ze=Object.defineProperty;var uo=Object.getOwnPropertyDescriptor;var mo=Object.getOwnPropertyNames;var go=Object.getPrototypeOf,fo=Object.prototype.hasOwnProperty;var bo=(e,t)=>{for(var o in t)ze(e,o,{get:t[o],enumerable:!0})},bt=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of mo(t))!fo.call(e,s)&&s!==o&&ze(e,s,{get:()=>t[s],enumerable:!(a=uo(t,s))||a.enumerable});return e};var G=(e,t,o)=>(o=e!=null?po(go(e)):{},bt(t||!e||!e.__esModule?ze(o,"default",{value:e,enumerable:!0}):o,e)),vo=e=>bt(ze({},"__esModule",{value:!0}),e);var br={};bo(br,{ChatInterface:()=>fr});module.exports=vo(br);var J=require("react"),Te=G(require("motion/react-client")),E=require("lucide-react");var Oe=G(require("react")),Z=G(require("@radix-ui/react-avatar"));var Pt=require("clsx");var Xe="-",ho=e=>{let t=yo(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:r=>{let i=r.split(Xe);return i[0]===""&&i.length!==1&&i.shift(),xt(i,t)||xo(r)},getConflictingClassGroupIds:(r,i)=>{let d=o[r]||[];return i&&a[r]?[...d,...a[r]]:d}}},xt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],a=t.nextPart.get(o),s=a?xt(e.slice(1),a):void 0;if(s)return s;if(t.validators.length===0)return;let n=e.join(Xe);return t.validators.find(({validator:r})=>r(n))?.classGroupId},vt=/^\[(.+)\]$/,xo=e=>{if(vt.test(e)){let t=vt.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},yo=e=>{let{theme:t,prefix:o}=e,a={nextPart:new Map,validators:[]};return wo(Object.entries(e.classGroups),o).forEach(([n,r])=>{Qe(r,a,n,t)}),a},Qe=(e,t,o,a)=>{e.forEach(s=>{if(typeof s=="string"){let n=s===""?t:ht(t,s);n.classGroupId=o;return}if(typeof s=="function"){if(Co(s)){Qe(s(a),t,o,a);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([n,r])=>{Qe(r,ht(t,n),o,a)})})},ht=(e,t)=>{let o=e;return t.split(Xe).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},Co=e=>e.isThemeGetter,wo=(e,t)=>t?e.map(([o,a])=>{let s=a.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,i])=>[t+r,i])):n);return[o,s]}):e,No=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,a=new Map,s=(n,r)=>{o.set(n,r),t++,t>e&&(t=0,a=o,o=new Map)};return{get(n){let r=o.get(n);if(r!==void 0)return r;if((r=a.get(n))!==void 0)return s(n,r),r},set(n,r){o.has(n)?o.set(n,r):s(n,r)}}},yt="!",ko=e=>{let{separator:t,experimentalParseClassName:o}=e,a=t.length===1,s=t[0],n=t.length,r=i=>{let d=[],m=0,h=0,g;for(let y=0;y<i.length;y++){let C=i[y];if(m===0){if(C===s&&(a||i.slice(y,y+n)===t)){d.push(i.slice(h,y)),h=y+n;continue}if(C==="/"){g=y;continue}}C==="["?m++:C==="]"&&m--}let v=d.length===0?i:i.substring(h),w=v.startsWith(yt),N=w?v.substring(1):v,x=g&&g>h?g-h:void 0;return{modifiers:d,hasImportantModifier:w,baseClassName:N,maybePostfixModifierPosition:x}};return o?i=>o({className:i,parseClassName:r}):r},Po=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(a=>{a[0]==="["?(t.push(...o.sort(),a),o=[]):o.push(a)}),t.push(...o.sort()),t},To=e=>({cache:No(e.cacheSize),parseClassName:ko(e),...ho(e)}),Ro=/\s+/,Ao=(e,t)=>{let{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:s}=t,n=[],r=e.trim().split(Ro),i="";for(let d=r.length-1;d>=0;d-=1){let m=r[d],{modifiers:h,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:w}=o(m),N=!!w,x=a(N?v.substring(0,w):v);if(!x){if(!N){i=m+(i.length>0?" "+i:i);continue}if(x=a(v),!x){i=m+(i.length>0?" "+i:i);continue}N=!1}let y=Po(h).join(":"),C=g?y+yt:y,L=C+x;if(n.includes(L))continue;n.push(L);let S=s(x,N);for(let M=0;M<S.length;++M){let Q=S[M];n.push(C+Q)}i=m+(i.length>0?" "+i:i)}return i};function So(){let e=0,t,o,a="";for(;e<arguments.length;)(t=arguments[e++])&&(o=Ct(t))&&(a&&(a+=" "),a+=o);return a}var Ct=e=>{if(typeof e=="string")return e;let t,o="";for(let a=0;a<e.length;a++)e[a]&&(t=Ct(e[a]))&&(o&&(o+=" "),o+=t);return o};function Mo(e,...t){let o,a,s,n=r;function r(d){let m=t.reduce((h,g)=>g(h),e());return o=To(m),a=o.cache.get,s=o.cache.set,n=i,i(d)}function i(d){let m=a(d);if(m)return m;let h=Ao(d,o);return s(d,h),h}return function(){return n(So.apply(null,arguments))}}var T=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},wt=/^\[(?:([a-z-]+):)?(.+)\]$/i,Io=/^\d+\/\d+$/,Lo=new Set(["px","full","screen"]),Do=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ho=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Eo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Bo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>ye(e)||Lo.has(e)||Io.test(e),ne=e=>Ce(e,"length",Wo),ye=e=>!!e&&!Number.isNaN(Number(e)),Je=e=>Ce(e,"number",ye),Me=e=>!!e&&Number.isInteger(Number(e)),Oo=e=>e.endsWith("%")&&ye(e.slice(0,-1)),b=e=>wt.test(e),se=e=>Do.test(e),Fo=new Set(["length","size","percentage"]),Vo=e=>Ce(e,Fo,Nt),Uo=e=>Ce(e,"position",Nt),jo=new Set(["image","url"]),Go=e=>Ce(e,jo,qo),$o=e=>Ce(e,"",_o),Ie=()=>!0,Ce=(e,t,o)=>{let a=wt.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):o(a[2]):!1},Wo=e=>Ho.test(e)&&!Eo.test(e),Nt=()=>!1,_o=e=>Bo.test(e),qo=e=>zo.test(e);var Ko=()=>{let e=T("colors"),t=T("spacing"),o=T("blur"),a=T("brightness"),s=T("borderColor"),n=T("borderRadius"),r=T("borderSpacing"),i=T("borderWidth"),d=T("contrast"),m=T("grayscale"),h=T("hueRotate"),g=T("invert"),v=T("gap"),w=T("gradientColorStops"),N=T("gradientColorStopPositions"),x=T("inset"),y=T("margin"),C=T("opacity"),L=T("padding"),S=T("saturate"),M=T("scale"),Q=T("sepia"),be=T("skew"),Ke=T("space"),Re=T("translate"),ve=()=>["auto","contain","none"],de=()=>["auto","hidden","clip","visible","scroll"],Ae=()=>["auto",b,t],k=()=>[b,t],De=()=>["",Y,ne],he=()=>["auto",ye,b],He=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],xe=()=>["solid","dashed","dotted","double","none"],Ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Se=()=>["start","end","center","between","around","evenly","stretch"],pe=()=>["","0",b],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>[ye,b];return{cacheSize:500,separator:":",theme:{colors:[Ie],spacing:[Y,ne],blur:["none","",se,b],brightness:A(),borderColor:[e],borderRadius:["none","","full",se,b],borderSpacing:k(),borderWidth:De(),contrast:A(),grayscale:pe(),hueRotate:A(),invert:pe(),gap:k(),gradientColorStops:[e],gradientColorStopPositions:[Oo,ne],inset:Ae(),margin:Ae(),opacity:A(),padding:k(),saturate:A(),scale:A(),sepia:pe(),skew:A(),space:k(),translate:k()},classGroups:{aspect:[{aspect:["auto","square","video",b]}],container:["container"],columns:[{columns:[se]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...He(),b]}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:ve()}],"overscroll-x":[{"overscroll-x":ve()}],"overscroll-y":[{"overscroll-y":ve()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Me,b]}],basis:[{basis:Ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b]}],grow:[{grow:pe()}],shrink:[{shrink:pe()}],order:[{order:["first","last","none",Me,b]}],"grid-cols":[{"grid-cols":[Ie]}],"col-start-end":[{col:["auto",{span:["full",Me,b]},b]}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":[Ie]}],"row-start-end":[{row:["auto",{span:[Me,b]},b]}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",b]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...Se()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Se(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Se(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],Ue:[{Ue:[L]}],px:[{px:[L]}],py:[{py:[L]}],ps:[{ps:[L]}],pe:[{pe:[L]}],pt:[{pt:[L]}],pr:[{pr:[L]}],pb:[{pb:[L]}],pl:[{pl:[L]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[Ke]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Ke]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b,t]}],"min-w":[{"min-w":[b,t,"min","max","fit"]}],"max-w":[{"max-w":[b,t,"none","full","min","max","fit","prose",{screen:[se]},se]}],h:[{h:[b,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b,t,"auto","min","max","fit"]}],"font-size":[{text:["base",se,ne]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Je]}],"font-family":[{font:[Ie]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",b]}],"line-clamp":[{"line-clamp":["none",ye,Je]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Y,b]}],"list-image":[{"list-image":["none",b]}],"list-style-type":[{list:["none","disc","decimal",b]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Y,ne]}],"underline-offset":[{"underline-offset":["auto",Y,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...He(),Uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Vo]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","Ue","tl"]},Go]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[N]}],"gradient-via-pos":[{via:[N]}],"gradient-to-pos":[{to:[N]}],"gradient-from":[{from:[w]}],"gradient-via":[{via:[w]}],"gradient-to":[{to:[w]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-Ue":[{"rounded-Ue":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-Ue":[{"border-Ue":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...xe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:xe()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-Ue":[{"border-Ue":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...xe()]}],"outline-offset":[{"outline-offset":[Y,b]}],"outline-w":[{outline:[Y,ne]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:De()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[Y,ne]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",se,$o]}],"shadow-color":[{shadow:[Ie]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Ee(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ee()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[a]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",se,b]}],grayscale:[{grayscale:[m]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[g]}],saturate:[{saturate:[S]}],sepia:[{sepia:[Q]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[m]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[Q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-y":[{"border-spacing-y":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",b]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",b]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[Me,b]}],"translate-x":[{"translate-x":[Re]}],"translate-y":[{"translate-y":[Re]}],"skew-x":[{"skew-x":[be]}],"skew-y":[{"skew-y":[be]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-Ue":[{"scroll-Ue":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Y,ne,Je]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],Ue:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-Ue","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-Ue":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-Ue"],"border-w-x":["border-w-r","border-w-Ue"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-Ue"],"border-color-x":["border-color-r","border-color-Ue"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-Ue":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var kt=Mo(Ko);function c(...e){return kt((0,Pt.clsx)(e))}var Ue=require("react/jsx-runtime"),Fe=Oe.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)(Z.Root,{ref:o,className:c("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Fe.displayName=Z.Root.displayName;var Jo=Oe.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)(Z.Image,{ref:o,className:c("aspect-square h-full w-full",e),...t}));Jo.displayName=Z.Image.displayName;var Ve=Oe.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)(Z.Fallback,{ref:o,className:c("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Ve.displayName=Z.Fallback.displayName;var Tt=require("@radix-ui/react-slot"),Rt=require("class-variance-authority"),At=G(require("react")),Qo=(0,Rt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),z=At.forwardRef(({asChild:e=!1,className:t,size:o,variant:a,...s},n)=>(0,Ue.jsx)(e?Tt.Slot:"button",{className:c(Qo({className:t,size:o,variant:a})),ref:n,...s}));z.displayName="Button";var Mt=G(require("react"));var Ye=Mt.forwardRef(({className:e,type:t,...o},a)=>(0,Ue.jsx)("input",{type:t,className:c("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...o}));Ye.displayName="Input";var Ze=G(require("react")),U=G(require("@radix-ui/react-scroll-area"));var et=Ze.forwardRef(({className:e,children:t,...o},a)=>(0,Ue.jsxs)(U.Root,{ref:a,className:c("relative overflow-hidden",e),...o,children:[(0,Ue.jsx)(U.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,Ue.jsx)(Lt,{}),(0,Ue.jsx)(U.Corner,{})]}));et.displayName=U.Root.displayName;var Lt=Ze.forwardRef(({className:e,orientation:t="vertical",...o},a)=>(0,Ue.jsx)(U.ScrollAreaScrollbar,{ref:a,orientation:t,className:c("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-Ue border-Ue-transparent Ue-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent Ue-[1px]",e),...o,children:(0,Ue.jsx)(U.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Lt.displayName=U.ScrollAreaScrollbar.displayName;var W=require("motion/react");var Xo=(0,Rt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function ee({className:e,variant:t,...o}){return(0,Ue.jsx)("div",{className:c(Xo({variant:t}),e),...o})}var Et={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]};function tt(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function Bt({capabilities:e,isOpen:t,onToggle:o,onActionSelect:a,onContextChange:s,colorScheme:n=Et,className:r}){let[i,d]=(0,J.useState)([]),[m,h]=(0,J.useState)([]),g=i[i.length-1],v=g?.children||e,w=(S,M)=>{switch(S.type){case"category":return n.categories[M%n.categories.length];case"list":return n.lists[M%n.lists.length];case"item":return n.items[M%n.items.length];default:return n.primary}},N=(0,J.useMemo)(()=>({path:i,selectedItems:m,filters:{}}),[i,m]);(0,J.useEffect)(()=>{s&&s(N)},[N,s]);let x=S=>{S.type==="category"||S.type==="list"?d([...i,S]):S.type==="item"&&h([...m,S])},y=()=>{d(i.slice(0,-1))},C=S=>{d(i.slice(0,S+1))},L=()=>g?.actions?g.actions:[];return t?(0,Ue.jsxs)("div",{className:c("w-full",r),children:[(0,Ue.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Ue.jsxs)("div",{className:"flex items-center gap-2",children:[i.length>0&&(0,Ue.jsx)(W.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:y,className:c("group Ue-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,Ue.jsx)(E.ChevronLeft,{className:c("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,Ue.jsx)("h4",{className:"font-medium text-sm",children:g?.name||"Capabilities"})]}),(0,Ue.jsx)(W.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:o,className:c("group Ue-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,Ue.jsx)(E.X,{className:c("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),i.length>0&&(0,Ue.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,Ue.jsx)(W.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>d([]),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,Ue.jsxs)("span",{className:"relative",children:["Capabilities",(0,Ue.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),i.map((S,M)=>(0,Ue.jsxs)("div",{className:"flex items-center gap-1",children:[(0,Ue.jsx)(E.ChevronRight,{className:"h-2 w-2"}),(0,Ue.jsx)(W.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>C(M),className:c("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,Ue.jsxs)("span",{className:"relative",children:[S.name,(0,Ue.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},S.id))]}),(0,Ue.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,Ue.jsx)(W.AnimatePresence,{mode:"wait",children:(0,Ue.jsx)(W.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:g?.type==="list"&&g.data?(0,Ue.jsx)(er,{data:g.data,onItemSelect:S=>h([...m,S]),colorScheme:n}):(0,Ue.jsx)(Yo,{capabilities:v,onSelect:x,colorScheme:n})},g?.id||"root")})})]}):(0,Ue.jsxs)(z,{onClick:o,size:"sm",variant:"outline",className:"rounded-full",children:[(0,Ue.jsx)(E.Menu,{className:"h-4 w-4"}),(0,Ue.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function Yo({capabilities:e,onSelect:t,colorScheme:o}){return(0,Ue.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((a,s)=>(0,Ue.jsx)(Zo,{capability:a,onClick:()=>t(a),color:o.categories[s%o.categories.length]},a.id))})}function Zo({capability:e,onClick:t,selected:o,color:a}){return(0,Ue.jsxs)(W.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",o&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,Ue.jsx)("div",{className:c("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",a)}),(0,Ue.jsxs)("span",{className:"truncate relative",children:[e.name,(0,Ue.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,Ue.jsx)(E.ChevronRight,{className:c("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,Ue.jsx)(ee,{variant:"secondary",className:c("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function er({data:e,onItemSelect:t,colorScheme:o}){return(0,Ue.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((a,s)=>(0,Ue.jsxs)(W.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:c("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(a),children:[(0,Ue.jsx)("div",{className:c("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o.items[s%o.items.length])}),(0,Ue.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ue.jsxs)("span",{className:"truncate relative font-medium",children:[a.title,(0,Ue.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),a.subtitle&&(0,Ue.jsx)("div",{className:c("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:a.subtitle})]}),a.value&&(0,Ue.jsx)(ee,{variant:"secondary",className:c("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:a.value})]},a.id))})}var Ot=G(require("react"));var zt=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:a,description:s="This endpoint requires authentication to sync functions."})=>{let[n,r]=(0,J.useState)(!1),[i,d]=(0,J.useState)(""),m=()=>{if(!t){d("No authentication URL provided");return}r(!0),d("");try{let g=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!g){d("Popup blocked. Please allow popups for this site and try again."),r(!1);return}let v=setInterval(()=>{try{g.closed&&(clearInterval(v),r(!1),a(),o())}catch{}},1e3);setTimeout(()=>{g.closed||(g.close(),clearInterval(v),r(!1),d("Authentication timed out. Please try again."))},6e5)}catch{d("Failed to open authentication window"),r(!1)}},h=async()=>{try{await navigator.clipboard.writeText(t),d("")}catch{d("Failed to copy URL to clipboard")}};return e?(0,$.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,$.jsxs)("div",{className:"bg-white rounded-lg Ue-6 max-w-md w-[90%] shadow-lg",children:[(0,$.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,$.jsx)("Ue",{className:"text-sm text-gray-600 mb-4",children:s}),i&&(0,$.jsx)("div",{className:"mb-4 Ue-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:i}),(0,$.jsxs)("div",{className:"flex gap-2",children:[(0,$.jsx)("button",{onClick:m,disabled:n||!t,className:`
7
7
  px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
8
- ${a||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
9
- `,children:a?"Authenticating...":"Authenticate"}),(0,ze.jsx)("button",{onClick:h,disabled:!t,className:`
8
+ ${n||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
9
+ `,children:n?"Authenticating...":"Authenticate"}),(0,$.jsx)("button",{onClick:h,disabled:!t,className:`
10
10
  px-4 py-2 text-white border-none rounded text-sm
11
11
  ${t?"bg-blue-600 hover:bg-blue-700 cursor-pointer":"bg-gray-400 cursor-not-allowed"}
12
- `,children:"Copy URL"}),(0,ze.jsx)("button",{onClick:o,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var et=({toolPart:e,index:t,addToolResult:o})=>{let[r,s]=Mt.default.useState(!0),a=()=>{o(e.toolCallId,e.type,"Authentication completed"),s(!1)};switch(e.state){case"input-available":return(0,ze.jsxs)("div",{className:"mb-2",children:[(0,ze.jsx)(St,{isOpen:r,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>s(!1),onSuccess:a,description:e.output?.reason||e.input?.reason}),!r&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,ze.jsx)(ze.Fragment,{children:e.output==="Authentication completed"?(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})}):(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Authentication failed"]})})});default:return null}};var tt=j(require("react"));var Lt=({isOpen:e=!0,reason:t,onClose:o,onApprove:r,onDeny:s,title:a="Approval Required"})=>{let[n,i]=(0,q.useState)(!1),c=()=>{i(!0),r(),o()},g=()=>{i(!0),s(),o()},h=()=>{i(!0),s(),o()};return e?(0,ze.jsxs)("div",{className:"bg-white rounded-lg ze-6 max-w-md w-full shadow-lg",children:[(0,ze.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:a}),(0,ze.jsx)("ze",{className:"text-sm text-gray-600 mb-6",children:t}),(0,ze.jsxs)("div",{className:"flex gap-2",children:[(0,ze.jsx)("button",{onClick:c,disabled:n,className:`
12
+ `,children:"Copy URL"}),(0,$.jsx)("button",{onClick:o,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var rt=({toolPart:e,index:t,addToolResult:o})=>{let[a,s]=Ot.default.useState(!0),n=()=>{o(e.toolCallId,e.type,"Authentication completed"),s(!1)};switch(e.state){case"input-available":return(0,Ue.jsxs)("div",{className:"mb-2",children:[(0,Ue.jsx)(zt,{isOpen:a,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>s(!1),onSuccess:n,description:e.output?.reason||e.input?.reason}),!a&&(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,Ue.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Ue.jsx)(Ue.Fragment,{children:e.output==="Authentication completed"?(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})}):(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Authentication failed"]})})});default:return null}};var at=G(require("react"));var Vt=({isOpen:e=!0,reason:t,onClose:o,onApprove:a,onDeny:s,title:n="Approval Required"})=>{let[r,i]=(0,J.useState)(!1),d=()=>{i(!0),a(),o()},m=()=>{i(!0),s(),o()},h=()=>{i(!0),s(),o()};return e?(0,Ue.jsxs)("div",{className:"bg-white rounded-lg Ue-6 max-w-md w-full shadow-lg",children:[(0,Ue.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:n}),(0,Ue.jsx)("Ue",{className:"text-sm text-gray-600 mb-6",children:t}),(0,Ue.jsxs)("div",{className:"flex gap-2",children:[(0,Ue.jsx)("button",{onClick:d,disabled:r,className:`
13
13
  px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
14
- ${n?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
15
- `,children:n?"Processing...":"Approve"}),(0,ze.jsx)("button",{onClick:g,disabled:n,className:`
14
+ ${r?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
15
+ `,children:r?"Processing...":"Approve"}),(0,Ue.jsx)("button",{onClick:m,disabled:r,className:`
16
16
  px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
17
- ${n?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 cursor-pointer"}
18
- `,children:n?"Processing...":"Deny"}),(0,ze.jsx)("button",{onClick:h,disabled:n,className:`
17
+ ${r?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 cursor-pointer"}
18
+ `,children:r?"Processing...":"Deny"}),(0,Ue.jsx)("button",{onClick:h,disabled:r,className:`
19
19
  px-4 py-2 text-white border-none rounded text-sm
20
- ${n?"bg-gray-400 cursor-not-allowed":"bg-gray-500 hover:bg-gray-600 cursor-pointer"}
21
- `,children:"Cancel"})]})]}):null};var Dt=({toolPart:e,index:t,addToolResult:o})=>{let[r,s]=tt.default.useState(!0),[a,n]=tt.default.useState(null),i=()=>{o(e.toolCallId,e.type,"Approved"),s(!1),n("approve")},c=()=>{o(e.toolCallId,e.type,"Denied"),s(!1),n("deny")};switch(e.state){case"input-available":return(0,ze.jsxs)("div",{className:"mb-2",children:[(0,ze.jsx)(Lt,{isOpen:r,onApprove:i,onDeny:c,onClose:()=>s(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!r&&(0,ze.jsxs)(ze.Fragment,{children:[a==="approve"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),a==="deny"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,ze.jsxs)(ze.Fragment,{children:[e.output==="approve"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var ot=require("@radix-ui/react-use-controllable-state");var he=j(require("@radix-ui/react-collapsible")),He=he.Root,Oe=he.CollapsibleTrigger,Fe=he.CollapsibleContent;var Bt=require("streamdown"),Pe=(0,q.memo)(({className:e,...t})=>(0,ze.jsx)(Bt.Streamdown,{className:d("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);Pe.displayName="Response";var Ht=(0,q.createContext)(null),_o=()=>{let e=(0,q.useContext)(Ht);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},qo=1e3,Ko=1e3,rt=(0,q.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:r=!0,onOpenChange:s,duration:a,children:n,...i})=>{let[c,g]=(0,ot.useControllableState)({prop:o,defaultProp:r,onChange:s}),[h,f]=(0,ot.useControllableState)({prop:a,defaultProp:0}),[v,A]=(0,q.useState)(!1),[P,x]=(0,q.useState)(null);(0,q.useEffect)(()=>{t?P===null&&x(Date.now()):P!==null&&(f(Math.ceil((Date.now()-P)/Ko)),x(null))},[t,P,f]),(0,q.useEffect)(()=>{if(r&&!t&&c&&!v){let C=setTimeout(()=>{g(!1),A(!0)},qo);return()=>clearTimeout(C)}},[t,c,r,g,v]);let y=C=>{g(C)};return(0,ze.jsx)(Ht.Provider,{value:{isStreaming:t,isOpen:c,setIsOpen:g,duration:h},children:(0,ze.jsx)(He,{className:d("not-prose mb-4",e),onOpenChange:y,open:c,...i,children:n})})}),Jo=(e,t)=>e||t===0?(0,ze.jsx)("ze",{children:"Thinking..."}):t===void 0?(0,ze.jsx)("ze",{children:"Thought for a few seconds"}):(0,ze.jsxs)("ze",{children:["Thought for ",t," seconds"]}),at=(0,q.memo)(({className:e,children:t,...o})=>{let{isStreaming:r,isOpen:s,duration:a}=_o();return(0,ze.jsx)(Oe,{className:d("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(D.BrainIcon,{className:"size-4"}),Jo(r,a),(0,ze.jsx)(D.ChevronDownIcon,{className:d("size-4 transition-transform",s?"rotate-180":"rotate-0")})]})})}),nt=(0,q.memo)(({className:e,children:t,...o})=>(0,ze.jsx)(Fe,{className:d("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,ze.jsx)(Pe,{className:"grid gap-2",children:t})}));rt.displayName="Reasoning";at.displayName="ReasoningTrigger";nt.displayName="ReasoningContent";var st=require("react-syntax-highlighter"),Ue=require("react-syntax-highlighter/dist/esm/styles/prism"),Qo=(0,q.createContext)({code:""}),Ge=({code:e,language:t,showLineNumbers:o=!1,className:r,children:s,...a})=>(0,ze.jsx)(Qo.Provider,{value:{code:e},children:(0,ze.jsx)("div",{className:d("relative max-w-2xl overflow-hidden rounded-md border bg-background text-foreground",r),...a,children:(0,ze.jsxs)("div",{className:"relative",children:[(0,ze.jsx)(st.Prism,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:Ue.oneLight,children:e}),(0,ze.jsx)(st.Prism,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:Ue.oneDark,children:e}),s&&(0,ze.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:s})]})})});var Ft=({className:e,...t})=>(0,ze.jsx)(He,{className:d("not-prose mb-4 w-full",e),...t}),Xo=e=>{let t={"input-streaming":"Pending","input-available":"Running","output-available":"Completed","output-error":"Error"};return(0,ze.jsxs)(Y,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,ze.jsx)(D.CircleIcon,{className:"size-4"}),"input-available":(0,ze.jsx)(D.ClockIcon,{className:"size-4 animate-pulse"}),"output-available":(0,ze.jsx)(D.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,ze.jsx)(D.XCircleIcon,{className:"size-4 text-red-600"})}[e],t[e]]})},Vt=({className:e,type:t,state:o,...r})=>(0,ze.jsxs)(Oe,{className:d("flex w-full items-center justify-between gap-4 ze-3 pl-0 w-2xl",e),...r,children:[(0,ze.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ze.jsx)(D.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,ze.jsx)("span",{className:"font-medium text-sm",children:t}),Xo(o)]}),(0,ze.jsx)(D.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),jt=({className:e,...t})=>(0,ze.jsx)(Fe,{className:d("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),Ut=({className:e,input:t,...o})=>(0,ze.jsxs)("div",{className:d("space-y-2 overflow-hidden ze-4",e),...o,children:[(0,ze.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,ze.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,ze.jsx)(Ge,{code:JSON.stringify(t,null,2),language:"json"})})]}),Gt=({className:e,output:t,errorText:o,...r})=>{if(!(t||o))return null;let s=(0,ze.jsx)("div",{children:t});return typeof t=="object"?s=(0,ze.jsx)(Ge,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(s=(0,ze.jsx)(Ge,{code:t,language:"json"})),(0,ze.jsxs)("div",{className:d("space-y-2 ze-4",e),...r,children:[(0,ze.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,ze.jsxs)("div",{className:d("overflow-x-auto rounded-md text-xs [&_table]:w-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,ze.jsx)("div",{children:o}),s]})]})};var de=j(require("react"));var $=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("rounded-xl border bg-card text-card-foreground shadow",e),...t}));$.displayName="Card";var te=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("flex flex-col space-y-1.5 ze-6",e),...t}));te.displayName="CardHeader";var oe=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("font-semibold leading-none tracking-tight",e),...t}));oe.displayName="CardTitle";var it=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("text-sm text-muted-foreground",e),...t}));it.displayName="CardDescription";var W=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("ze-6 pt-0",e),...t}));W.displayName="CardContent";var Re=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("flex items-center ze-6 pt-0",e),...t}));Re.displayName="CardFooter";var _t=require("date-fns");function $t({taskId:e,polling:t=!0,system:o="payload"}){let[r,s]=(0,q.useState)(null),[a,n]=(0,q.useState)(!1),[i,c]=(0,q.useState)(null),g=async(f=!0)=>{if(e){f&&n(!0);try{let v=await fetch(`/api/tasks/${e}`);if(!v.ok)throw new Error(`Failed to fetch task: ${v.statusText}`);let A=await v.json();s(A)}catch(v){console.error("Error fetching task:",v),c(v instanceof Error?v:new Error("Unknown error occurred"))}finally{f&&n(!1)}}},h=()=>g(!1);return(0,q.useEffect)(()=>{e&&g(!0);let f=null;return e&&t&&(f=setInterval(h,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:r,loading:a,error:i}}var Yo=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Zo=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function qt({data:e}){let{id:t,system:o,fetchLatest:r,taskData:s,error:a}=e||{};if(!t)return null;let n=null,i=!0,c=a,g=r!==void 0?r:!0;if(n=s||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:r,system:o,fetchLatest:g,taskData:n,error:c}),g){let{task:A,loading:P,error:x}=$t({taskId:t,system:o});n=A,i=P,c=x}else i=!1;let h=Yo(n?.status||"todo"),f=Zo(n?.status||"todo"),v=n?.dateLogged||new Date().toISOString();try{let A=new Date(n?.dateLogged||"");isNaN(A.getTime())||(v=(0,_t.formatDistanceToNow)(A,{addSuffix:!0}))}catch{}return(0,ze.jsxs)($,{className:d("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,ze.jsxs)(te,{className:"pb-2",children:[(0,ze.jsxs)("div",{className:"flex justify-between items-start",children:[(0,ze.jsx)(oe,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),(0,ze.jsx)(Y,{className:`${h}`,children:f})]}),n?.project&&(0,ze.jsxs)(it,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),(0,ze.jsx)(W,{className:"pb-2",children:i?(0,ze.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,ze.jsx)("ze",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,ze.jsx)("ze",{className:"text-sm text-foreground",children:n?.description||"......."})}),(0,ze.jsx)(Re,{className:"pt-2 flex items-center justify-between",children:(0,ze.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ze.jsx)(D.Clock,{className:"h-3 w-3 mr-1"}),(0,ze.jsxs)("span",{children:["Created ",v]}),(0,ze.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,ze.jsxs)("span",{children:["Task #",t]})]})})]})}function Qt({artefact:e,taskId:t,taskData:o,loading:r=!1,error:s=null}){let a=o||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},n=a.dateLogged;try{let i=new Date(a.dateLogged);isNaN(i.getTime())||(n=(0,_t.formatDistanceToNow)(i,{addSuffix:!0}))}catch{}return(0,ze.jsxs)($,{className:"w-full max-w-md shadow-md",children:[(0,ze.jsx)(te,{className:"pb-2",children:(0,ze.jsx)("div",{className:"flex justify-between items-start",children:(0,ze.jsx)(oe,{className:"text-lg font-semibold",children:r?"Loading...":a.name})})}),(0,ze.jsx)(W,{className:"pb-2",children:r?(0,ze.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):s?(0,ze.jsx)("ze",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,ze.jsx)("ze",{className:"text-sm text-foreground",children:e})}),(0,ze.jsx)(Re,{className:"pt-2 flex items-center justify-between",children:(0,ze.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ze.jsx)(D.Clock,{className:"h-3 w-3 mr-1"}),(0,ze.jsxs)("span",{children:["Created ",n]}),(0,ze.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,ze.jsxs)("span",{children:["Task #",a.id]})]})})]})}var er=e=>e.startsWith("image/")?(0,ze.jsx)(D.Image,{className:"h-4 w-4"}):e.startsWith("text/")?(0,ze.jsx)(D.FileText,{className:"h-4 w-4"}):(0,ze.jsx)(D.File,{className:"h-4 w-4"}),Xt=({message:e,addToolResult:t,status:o,messages:r})=>e.parts.map((s,a)=>{if(s.type==="text")return(0,ze.jsx)(Pe,{children:s.text},`${a}`);if(s.type==="file"){let n=s;return(0,ze.jsx)("div",{className:"mb-2 ze-2 bg-background/50 rounded-lg",children:(0,ze.jsxs)("div",{className:"flex items-center gap-2",children:[er(n.mediaType||"application/octet-stream"),(0,ze.jsx)("div",{className:"flex-1 min-w-0",children:(0,ze.jsx)("ze",{className:"text-sm font-medium truncate",children:n.filename||n.url?.split("/").pop()||"File"})}),n.url&&(0,ze.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>window.open(n.url,"_blank"),className:"h-8 w-8 ze-0",children:(0,ze.jsx)(D.Download,{className:"h-4 w-4"})})]})},a)}if(s.type.startsWith("tool-")){let n=s,i=s.type.replace("tool-","");if(i==="task")switch(n.state){case"input-available":return(0,ze.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},a);case"output-available":return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(qt,{data:{id:n.output?.id||n.input?.id,fetchLatest:!1,taskData:n.output||n.input}})},a);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},a);default:return null}if(s.type==="tool-requestEndpointLogin")return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(et,{toolPart:n,index:a,addToolResult:t??(()=>{})})},a);if(s.type==="tool-authenticate")return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(et,{toolPart:n,index:a,addToolResult:t??(()=>{})})},a);if(s.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",n),(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(Dt,{toolPart:n,index:a,addToolResult:t??(()=>{})})},a);if(i==="artefact")switch(n.state){case"input-available":return(0,ze.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},a);case"output-available":return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(Qt,{artefact:n.output?.description||"",taskId:n.output?.id||n.input?.id,taskData:n.output||n.input})},a);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},a);default:return null}return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsxs)($,{className:"w-full max-w-md",children:[(0,ze.jsx)(te,{children:(0,ze.jsx)(oe,{className:"text-lg",children:i})}),(0,ze.jsxs)(W,{children:[n.state==="input-available"&&(0,ze.jsxs)("ze",{className:"text-sm",children:["Processing ",i,"..."]}),n.state==="output-available"&&(0,ze.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.output,null,2)}),n.state==="output-error"&&(0,ze.jsxs)("ze",{className:"text-sm text-red-500",children:["Error: ",n.errorText]})]})]})},a)}if(s.type.startsWith("data-")){let n=s,i=s.type.replace("data-","");return i==="reference"?(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)($,{className:"w-full",children:(0,ze.jsx)(W,{className:"ze-4",children:(0,ze.jsx)("div",{className:"space-y-2",children:n.data?.references?.map((c,g)=>(0,ze.jsxs)("div",{className:"flex items-center gap-2 ze-2 rounded-md bg-muted/50",children:[(0,ze.jsx)(Y,{variant:"outline",children:c.type||"link"}),(0,ze.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ze.jsx)("ze",{className:"text-sm font-medium truncate",children:c.title}),c.description&&(0,ze.jsx)("ze",{className:"text-xs text-muted-foreground truncate",children:c.description})]}),c.url&&(0,ze.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>window.open(c.url,"_blank"),className:"h-8 w-8 ze-0",children:(0,ze.jsx)(D.ExternalLink,{className:"h-4 w-4"})})]},g))})})})},a):i==="menu"?(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsxs)($,{className:"w-full",children:[(0,ze.jsx)(te,{children:(0,ze.jsx)(oe,{className:"text-lg",children:n.data?.title})}),(0,ze.jsx)(W,{children:(0,ze.jsx)("div",{className:"space-y-2",children:n.data?.items?.map((c,g)=>(0,ze.jsx)(z,{variant:"outline",className:"w-full justify-start",onClick:c.action,children:(0,ze.jsxs)("div",{className:"text-left",children:[(0,ze.jsx)("ze",{className:"font-medium",children:c.label}),c.description&&(0,ze.jsx)("ze",{className:"text-xs text-muted-foreground",children:c.description})]})},g))})})]})},a):(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsxs)($,{className:"w-full max-w-md",children:[(0,ze.jsx)(te,{children:(0,ze.jsx)(oe,{className:"text-lg",children:i})}),(0,ze.jsx)(W,{children:(0,ze.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.data,null,2)})})]})},a)}if(s.type==="reasoning")return(0,ze.jsxs)(rt,{className:"w-full",isStreaming:o==="streaming"&&a===e.parts.length-1&&e.id===r.at(-1)?.id,children:[(0,ze.jsx)(at,{}),(0,ze.jsx)(nt,{children:s.text})]},`${a}`);if(s.type==="dynamic-tool")return(0,ze.jsxs)(Ft,{defaultOpen:s.state!=="output-available",children:[(0,ze.jsx)(Vt,{type:`tool-${s.toolName}`,state:s.state}),(0,ze.jsxs)(jt,{children:[(0,ze.jsx)(Ut,{input:s.input}),(0,ze.jsx)(Gt,{output:s.output,errorText:s.errorText})]})]},`${e.id}-${a}`)});var Zt=({className:e,from:t,...o})=>(0,$e.jsx)("div",{className:d("group flex w-full items-end justify-end gap-2 py-4",t==="user"?"is-user":"is-assistant flex-row-reverse justify-end",e),...o}),tr=(0,yt.cva)("is-user:dark flex flex-col gap-2 overflow-hidden rounded-lg text-sm",{variants:{variant:{contained:["max-w-[80%] px-4 py-3","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground"],flat:["group-[.is-user]:max-w-[80%] group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground"]}},defaultVariants:{variant:"contained"}}),eo=({children:e,className:t,variant:o,...r})=>(0,$e.jsx)("div",{className:d(tr({variant:o,className:t})),...r,children:e});function or({messages:e,input:t,isTyping:o=!1,currentSessionTitle:r,capabilities:s,fileUploads:a,isDragOver:n,enableFileUpload:i,onInputChange:c,addToolResult:g,onSendMessage:h,onKeyPress:f,onFileUpload:v,onRemoveFile:A,onDragOver:P,className:x,status:y="ready"}){let C=(0,q.useRef)(null),B=(0,q.useRef)(null),S=(0,q.useRef)(null),[M,K]=(0,q.useState)(!1),[ue,We]=(0,q.useState)({path:[],selectedItems:[],filters:{}});(0,q.useEffect)(()=>{C.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,q.useEffect)(()=>{M&&setTimeout(()=>{C.current?.scrollIntoView({behavior:"smooth"})},100)},[M]);let Ce=()=>Ye(ue),me=()=>{let u=[];return s.forEach(R=>{R.actions&&R.actions.forEach(J=>{u.push({label:J.label,action:()=>ie(J.id,{path:[R],selectedItems:[],filters:{}})})}),R.children&&R.children.forEach(J=>{J.type==="list"&&J.data&&u.push({label:`View ${J.name}`,action:()=>K(!0)})})}),u.slice(0,5)},ie=(u,R)=>{console.log("Capability action:",u,R);let J=`Executing ${u} with context: ${JSON.stringify(R.path.map(Ie=>Ie.name))}`;K(!1)},we=Ye({path:[],selectedItems:[],filters:{}}),w=u=>{v(u.target.files),u.target.files&&(u.target.value="")},Ae=u=>{u.preventDefault(),P(!0)},ge=u=>{u.preventDefault(),P(!1)},Se=u=>{u.preventDefault(),P(!1),v(u.dataTransfer.files)},fe=u=>{if(u===0)return"0 Bytes";let R=1024,J=["Bytes","KB","MB","GB"],Ie=Math.floor(Math.log(u)/Math.log(R));return parseFloat((u/Math.pow(R,Ie)).toFixed(2))+" "+J[Ie]},Me=u=>u.startsWith("image/")?(0,ze.jsx)(D.Image,{className:"h-4 w-4"}):u.startsWith("text/")?(0,ze.jsx)(D.FileText,{className:"h-4 w-4"}):(0,ze.jsx)(D.File,{className:"h-4 w-4"}),Ne={messages:e,currentSessionTitle:r,capabilities:s,currentCapabilityContext:ue,contextualActions:we,getQuickSuggestions:me().map(u=>u.label)},le=()=>{navigator.clipboard.writeText(JSON.stringify(Ne,null,2)),alert("Debug info copied to clipboard")};return(0,ze.jsxs)("div",{className:`h-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${x||""}`,children:[(0,ze.jsxs)(Xe,{ref:B,className:"flex-1 ze-4 bg-background border-0",onDragOver:Ae,onDragLeave:ge,onDrop:Se,children:[(0,ze.jsxs)("div",{className:d("space-y-4",n&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,ze.jsx)(xe.animate,{children:e.map(u=>(0,ze.jsx)(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:(0,ze.jsx)(Zt,{from:u.role,children:(0,ze.jsx)(eo,{variant:"flat",children:Xt({message:u,addToolResult:g??(()=>{}),status:y,messages:e})})},u.id)},u.id))}),M&&(0,ze.jsxs)(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[(0,ze.jsx)(Ee,{className:"h-8 w-8",children:(0,ze.jsx)(Be,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,ze.jsx)(D.Bot,{className:"h-4 w-4"})})}),(0,ze.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,ze.jsx)(At,{capabilities:s,isOpen:M,onToggle:()=>K(!M),onActionSelect:ie,className:"w-full"})})]}),o&&(0,ze.jsxs)(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[(0,ze.jsx)(Ee,{className:"h-8 w-8",children:(0,ze.jsx)(Be,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,ze.jsx)(D.Bot,{className:"h-4 w-4"})})}),(0,ze.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,ze.jsxs)("div",{className:"flex space-x-1",children:[(0,ze.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,ze.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,ze.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,ze.jsx)("div",{ref:C})]}),a.length>0&&(0,ze.jsx)("div",{className:"ze-4 border-t bg-muted/10",children:(0,ze.jsx)("div",{className:"flex flex-wrap gap-2",children:a.map(u=>(0,ze.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg ze-2 border",children:[Me(u.file.type),(0,ze.jsx)("span",{className:"text-sm font-medium",children:u.file.name}),(0,ze.jsx)("span",{className:"text-xs text-muted-foreground",children:fe(u.file.size)}),(0,ze.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>A(u.id),className:"h-6 w-6 ze-0",children:(0,ze.jsx)(D.X,{className:"h-4 w-4"})})]},u.id))})}),(0,ze.jsxs)("div",{className:"border rounded-2xl ze-4 bg-muted/20",children:[(0,ze.jsxs)("div",{className:"flex gap-3",children:[(0,ze.jsx)(Je,{value:t,onChange:u=>c(u.target.value),onKeyPress:f,placeholder:"How can ze help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),i&&(0,ze.jsx)(z,{variant:"outline",size:"icon",onClick:()=>S.current?.click(),className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,ze.jsx)(D.Paperclip,{className:"h-4 w-4"})}),(0,ze.jsx)(z,{onClick:h,disabled:!t.trim()&&a.length===0||o,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,ze.jsx)(D.Send,{className:"h-4 w-4"})})]}),(0,ze.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,ze.jsxs)(z,{onClick:()=>K(!M),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,ze.jsx)(D.Menu,{className:"h-3 w-3 mr-1"}),M?"Hide":"Show"," Capabilities"]}),(0,ze.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[Ce().map((u,R)=>(0,ze.jsx)(z,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>ie(u.id,ue),children:u.label},`context-${u.id}`)),Ce().length===0&&me().map((u,R)=>(0,ze.jsx)(z,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:u.action,children:u.label},`suggestion-${R}`)),(0,ze.jsx)(z,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:le,children:"Debug"})]})]}),i&&(0,ze.jsx)("input",{ref:S,type:"file",multiple:!0,onChange:w,className:"hidden"})]})]})}0&&(module.exports={ChatInterface});
20
+ ${r?"bg-gray-400 cursor-not-allowed":"bg-gray-500 hover:bg-gray-600 cursor-pointer"}
21
+ `,children:"Cancel"})]})]}):null};var Ut=({toolPart:e,index:t,addToolResult:o})=>{let[a,s]=at.default.useState(!0),[n,r]=at.default.useState(null),i=()=>{o(e.toolCallId,e.type,"Approved"),s(!1),r("approve")},d=()=>{o(e.toolCallId,e.type,"Denied"),s(!1),r("deny")};switch(e.state){case"input-available":return(0,Ue.jsxs)("div",{className:"mb-2",children:[(0,Ue.jsx)(Vt,{isOpen:a,onApprove:i,onDeny:d,onClose:()=>s(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!a&&(0,Ue.jsxs)(Ue.Fragment,{children:[n==="approve"&&(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),n==="deny"&&(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,Ue.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,Ue.jsxs)(Ue.Fragment,{children:[e.output==="approve"&&(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,Ue.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,Ue.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,Ue.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,Ue.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var nt=require("@radix-ui/react-use-controllable-state");var we=G(require("@radix-ui/react-collapsible")),Ne=we.Root,ke=we.CollapsibleTrigger,me=we.CollapsibleContent;var Gt=require("streamdown"),le=(0,J.memo)(({className:e,...t})=>(0,$t.jsx)(Gt.Streamdown,{className:c("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);le.displayName="Response";var Wt=(0,J.createContext)(null),tr=()=>{let e=(0,J.useContext)(Wt);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},or=1e3,rr=1e3,st=(0,J.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:a=!0,onOpenChange:s,duration:n,children:r,...i})=>{let[d,m]=(0,nt.useControllableState)({prop:o,defaultProp:a,onChange:s}),[h,g]=(0,nt.useControllableState)({prop:n,defaultProp:0}),[v,w]=(0,J.useState)(!1),[N,x]=(0,J.useState)(null);(0,J.useEffect)(()=>{t?N===null&&x(Date.now()):N!==null&&(g(Math.ceil((Date.now()-N)/rr)),x(null))},[t,N,g]),(0,J.useEffect)(()=>{if(a&&!t&&d&&!v){let C=setTimeout(()=>{m(!1),w(!0)},or);return()=>clearTimeout(C)}},[t,d,a,m,v]);let y=C=>{m(C)};return(0,Ue.jsx)(Wt.Provider,{value:{isStreaming:t,isOpen:d,setIsOpen:m,duration:h},children:(0,Ue.jsx)(Ne,{className:c("not-prose mb-4",e),onOpenChange:y,open:d,...i,children:r})})}),ar=(e,t)=>e||t===0?(0,Ue.jsx)("Ue",{children:"Thinking..."}):t===void 0?(0,Ue.jsx)("Ue",{children:"Thought for a few seconds"}):(0,Ue.jsxs)("Ue",{children:["Thought for ",t," seconds"]}),it=(0,J.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:s,duration:n}=tr();return(0,Ue.jsx)(ke,{className:c("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(E.BrainIcon,{className:"size-4"}),ar(a,n),(0,Ue.jsx)(E.ChevronDownIcon,{className:c("size-4 transition-transform",s?"rotate-180":"rotate-0")})]})})}),lt=(0,J.memo)(({className:e,children:t,...o})=>(0,Ue.jsx)(me,{className:c("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Ue.jsx)(le,{className:"grid gap-2",children:t})}));st.displayName="Reasoning";it.displayName="ReasoningTrigger";lt.displayName="ReasoningContent";var ct=require("react-syntax-highlighter"),$e=require("react-syntax-highlighter/dist/esm/styles/prism"),nr=(0,J.createContext)({code:""}),We=({code:e,language:t,showLineNumbers:o=!1,className:a,children:s,...n})=>(0,Ue.jsx)(nr.Provider,{value:{code:e},children:(0,Ue.jsx)("div",{className:c("relative max-w-2xl overflow-hidden rounded-md border bg-background text-foreground",a),...n,children:(0,Ue.jsxs)("div",{className:"relative",children:[(0,Ue.jsx)(ct.Prism,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:$e.oneLight,children:e}),(0,Ue.jsx)(ct.Prism,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:$e.oneDark,children:e}),s&&(0,Ue.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:s})]})})});var qt=({className:e,...t})=>(0,Ue.jsx)(Ne,{className:c("not-prose mb-4 w-full",e),...t}),sr=e=>{let t={"input-streaming":"Pending","input-available":"Running","output-available":"Completed","output-error":"Error"};return(0,Ue.jsxs)(ee,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,Ue.jsx)(E.CircleIcon,{className:"size-4"}),"input-available":(0,Ue.jsx)(E.ClockIcon,{className:"size-4 animate-pulse"}),"output-available":(0,Ue.jsx)(E.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,Ue.jsx)(E.XCircleIcon,{className:"size-4 text-red-600"})}[e],t[e]]})},Kt=({className:e,type:t,state:o,...a})=>(0,Ue.jsxs)(ke,{className:c("flex w-full items-center justify-between gap-4 Ue-3 pl-0 w-2xl",e),...a,children:[(0,Ue.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Ue.jsx)(E.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,Ue.jsx)("span",{className:"font-medium text-sm",children:t}),sr(o)]}),(0,Ue.jsx)(E.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),Jt=({className:e,...t})=>(0,Ue.jsx)(me,{className:c("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),Qt=({className:e,input:t,...o})=>(0,Ue.jsxs)("div",{className:c("space-y-2 overflow-hidden Ue-4",e),...o,children:[(0,Ue.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,Ue.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,Ue.jsx)(We,{code:JSON.stringify(t,null,2),language:"json"})})]}),Xt=({className:e,output:t,errorText:o,...a})=>{if(!(t||o))return null;let s=(0,Ue.jsx)("div",{children:t});return typeof t=="object"?s=(0,Ue.jsx)(We,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(s=(0,Ue.jsx)(We,{code:t,language:"json"})),(0,Ue.jsxs)("div",{className:c("space-y-2 Ue-4",e),...a,children:[(0,Ue.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,Ue.jsxs)("div",{className:c("overflow-x-auto rounded-md text-xs [&_table]:w-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,Ue.jsx)("div",{children:o}),s]})]})};var Yt=(0,J.createContext)(null),ir=()=>{let e=(0,J.useContext)(Yt);if(!e)throw new Error("ColleagueHandoff components must be used within ColleagueHandoff");return e},lr=1e3,cr=1e3,pt=(0,J.memo)(({className:e,isStreaming:t=!1,name:o="Digital Colleague",open:a,defaultOpen:s=!0,onOpenChange:n,duration:r,children:i,...d})=>{let[m,h]=(0,nt.useControllableState)({prop:a,defaultProp:s,onChange:n}),[g,v]=(0,nt.useControllableState)({prop:r,defaultProp:0}),[w,N]=(0,J.useState)(!1),[x,y]=(0,J.useState)(null);(0,J.useEffect)(()=>{t?x===null&&y(Date.now()):x!==null&&(v(Math.ceil((Date.now()-x)/cr)),y(null))},[t,x,v]),(0,J.useEffect)(()=>{if(s&&!t&&m&&!w){let L=setTimeout(()=>{h(!1),N(!0)},lr);return()=>clearTimeout(L)}},[t,m,s,h,w]);let C=L=>{h(L)};return(0,Ue.jsx)(Yt.Provider,{value:{isStreaming:t,name:o,isOpen:m,setIsOpen:h,duration:g},children:(0,Ue.jsx)(Ne,{className:c("not-prose mb-4",e),onOpenChange:C,open:m,...d,children:i})})}),dr=(e,t,o)=>e||o===0?(0,Ue.jsxs)("Ue",{children:["Asking our ",t,"..."]}):o===void 0?(0,Ue.jsxs)("Ue",{children:["Got an answer from our ",t]}):(0,Ue.jsxs)("Ue",{children:["Got an answer from our ",t," in ",o," seconds"]}),ut=(0,J.memo)(({className:e,children:t,...o})=>{let{isStreaming:a,isOpen:s,name:n,duration:r}=ir();return(0,Ue.jsx)(ke,{className:c("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,Ue.jsxs)(Ue.Fragment,{children:[(0,Ue.jsx)(E.Users,{className:"size-4"}),dr(a,n,r),(0,Ue.jsx)(E.ChevronDownIcon,{className:c("size-4 transition-transform",s?"rotate-180":"rotate-0")})]})})}),mt=(0,J.memo)(({className:e,children:t,...o})=>(0,Ue.jsx)(me,{className:c("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Ue.jsx)(le,{className:"grid gap-2",children:t})})),gt=(0,J.memo)(({className:e,children:t,...o})=>(0,Ue.jsx)(me,{className:c("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,Ue.jsx)(le,{className:"grid gap-2",children:t})}));pt.displayName="ColleagueHandoff";ut.displayName="ColleagueHandoffTrigger";mt.displayName="ColleagueHandoffContent";gt.displayName="ColleagueHandoffQuery";var ge=G(require("react"));var _=ge.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)("div",{ref:o,className:c("rounded-xl border bg-card text-card-foreground shadow",e),...t}));_.displayName="Card";var re=ge.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)("div",{ref:o,className:c("flex flex-col space-y-1.5 Ue-6",e),...t}));re.displayName="CardHeader";var ae=ge.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)("div",{ref:o,className:c("font-semibold leading-none tracking-tight",e),...t}));ae.displayName="CardTitle";var ft=ge.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)("div",{ref:o,className:c("text-sm text-muted-foreground",e),...t}));ft.displayName="CardDescription";var q=ge.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)("div",{ref:o,className:c("Ue-6 pt-0",e),...t}));q.displayName="CardContent";var Le=ge.forwardRef(({className:e,...t},o)=>(0,Ue.jsx)("div",{ref:o,className:c("flex items-center Ue-6 pt-0",e),...t}));Le.displayName="CardFooter";var to=require("date-fns");function Zt({taskId:e,polling:t=!0,system:o="payload"}){let[a,s]=(0,J.useState)(null),[n,r]=(0,J.useState)(!1),[i,d]=(0,J.useState)(null),m=async(g=!0)=>{if(e){g&&r(!0);try{let v=await fetch(`/api/tasks/${e}`);if(!v.ok)throw new Error(`Failed to fetch task: ${v.statusText}`);let w=await v.json();s(w)}catch(v){console.error("Error fetching task:",v),d(v instanceof Error?v:new Error("Unknown error occurred"))}finally{g&&r(!1)}}},h=()=>m(!1);return(0,J.useEffect)(()=>{e&&m(!0);let g=null;return e&&t&&(g=setInterval(h,5e3)),()=>{g&&clearInterval(g)}},[e,t]),{task:a,loading:n,error:i}}var pr=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},ur=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function oo({data:e}){let{id:t,system:o,fetchLatest:a,taskData:s,error:n}=e||{};if(!t)return null;let r=null,i=!0,d=n,m=a!==void 0?a:!0;if(r=s||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:a,system:o,fetchLatest:m,taskData:r,error:d}),m){let{task:w,loading:N,error:x}=Zt({taskId:t,system:o});r=w,i=N,d=x}else i=!1;let h=pr(r?.status||"todo"),g=ur(r?.status||"todo"),v=r?.dateLogged||new Date().toISOString();try{let w=new Date(r?.dateLogged||"");isNaN(w.getTime())||(v=(0,to.formatDistanceToNow)(w,{addSuffix:!0}))}catch{}return(0,Ue.jsxs)(_,{className:c("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,Ue.jsxs)(re,{className:"pb-2",children:[(0,Ue.jsxs)("div",{className:"flex justify-between items-start",children:[(0,Ue.jsx)(ae,{className:"text-lg font-semibold",children:i?"Loading...":r?.name||"Task"}),(0,Ue.jsx)(ee,{className:`${h}`,children:g})]}),r?.project&&(0,Ue.jsxs)(ft,{className:"text-sm text-gray-500",children:["Project: ",r.project.name]})]}),(0,Ue.jsx)(q,{className:"pb-2",children:i?(0,Ue.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,Ue.jsx)("Ue",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Ue.jsx)("Ue",{className:"text-sm text-foreground",children:r?.description||"......."})}),(0,Ue.jsx)(Le,{className:"pt-2 flex items-center justify-between",children:(0,Ue.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ue.jsx)(E.Clock,{className:"h-3 w-3 mr-1"}),(0,Ue.jsxs)("span",{children:["Created ",v]}),(0,Ue.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Ue.jsxs)("span",{children:["Task #",t]})]})})]})}function no({artefact:e,taskId:t,taskData:o,loading:a=!1,error:s=null}){let n=o||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},r=n.dateLogged;try{let i=new Date(n.dateLogged);isNaN(i.getTime())||(r=(0,to.formatDistanceToNow)(i,{addSuffix:!0}))}catch{}return(0,Ue.jsxs)(_,{className:"w-full max-w-md shadow-md",children:[(0,Ue.jsx)(re,{className:"pb-2",children:(0,Ue.jsx)("div",{className:"flex justify-between items-start",children:(0,Ue.jsx)(ae,{className:"text-lg font-semibold",children:a?"Loading...":n.name})})}),(0,Ue.jsx)(q,{className:"pb-2",children:a?(0,Ue.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):s?(0,Ue.jsx)("Ue",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,Ue.jsx)("Ue",{className:"text-sm text-foreground",children:e})}),(0,Ue.jsx)(Le,{className:"pt-2 flex items-center justify-between",children:(0,Ue.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,Ue.jsx)(E.Clock,{className:"h-3 w-3 mr-1"}),(0,Ue.jsxs)("span",{children:["Created ",r]}),(0,Ue.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,Ue.jsxs)("span",{children:["Task #",n.id]})]})})]})}var mr=e=>e.startsWith("image/")?(0,Ue.jsx)(E.Image,{className:"h-4 w-4"}):e.startsWith("text/")?(0,Ue.jsx)(E.FileText,{className:"h-4 w-4"}):(0,Ue.jsx)(E.File,{className:"h-4 w-4"}),so=({message:e,addToolResult:t,status:o,messages:a})=>e.parts.map((s,n)=>{if(s.type==="text")return(0,Ue.jsx)(le,{children:s.text},`${n}`);if(s.type==="file"){let r=s;return(0,Ue.jsx)("div",{className:"mb-2 Ue-2 bg-background/50 rounded-lg",children:(0,Ue.jsxs)("div",{className:"flex items-center gap-2",children:[mr(r.mediaType||"application/octet-stream"),(0,Ue.jsx)("div",{className:"flex-1 min-w-0",children:(0,Ue.jsx)("Ue",{className:"text-sm font-medium truncate",children:r.filename||r.url?.split("/").pop()||"File"})}),r.url&&(0,Ue.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>window.open(r.url,"_blank"),className:"h-8 w-8 Ue-0",children:(0,Ue.jsx)(E.Download,{className:"h-4 w-4"})})]})},n)}if(s.type.startsWith("tool-")){let r=s,i=s.type.replace("tool-","");if(s.type.startsWith("tool-dc_a2a"))return(0,Ue.jsxs)(pt,{name:r?.input?.dcName||"Digital Colleague",className:"w-full",isStreaming:o==="streaming"&&n===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Ue.jsx)(ut,{}),(0,Ue.jsx)(gt,{children:r?.input?.query}),(0,Ue.jsx)(mt,{children:r?.output})]},`${n}`);if(i==="task")switch(r.state){case"input-available":return(0,Ue.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},n);case"output-available":return(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsx)(oo,{data:{id:r.output?.id||r.input?.id,fetchLatest:!1,taskData:r.output||r.input}})},n);case"output-error":return(0,Ue.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",r.errorText]},n);default:return null}if(s.type==="tool-requestEndpointLogin")return(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsx)(rt,{toolPart:r,index:n,addToolResult:t??(()=>{})})},n);if(s.type==="tool-authenticate")return(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsx)(rt,{toolPart:r,index:n,addToolResult:t??(()=>{})})},n);if(s.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",r),(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsx)(Ut,{toolPart:r,index:n,addToolResult:t??(()=>{})})},n);if(i==="artefact")switch(r.state){case"input-available":return(0,Ue.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},n);case"output-available":return(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsx)(no,{artefact:r.output?.description||"",taskId:r.output?.id||r.input?.id,taskData:r.output||r.input})},n);case"output-error":return(0,Ue.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",r.errorText]},n);default:return null}return(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsxs)(_,{className:"w-full max-w-md",children:[(0,Ue.jsx)(re,{children:(0,Ue.jsx)(ae,{className:"text-lg",children:i})}),(0,Ue.jsxs)(q,{children:[r.state==="input-available"&&(0,Ue.jsxs)("Ue",{className:"text-sm",children:["Processing ",i,"..."]}),r.state==="output-available"&&(0,Ue.jsx)("pre",{className:"text-sm",children:JSON.stringify(r.output,null,2)}),r.state==="output-error"&&(0,Ue.jsxs)("Ue",{className:"text-sm text-red-500",children:["Error: ",r.errorText]})]})]})},n)}if(s.type.startsWith("data-")){let r=s,i=s.type.replace("data-","");return i==="reference"?(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsx)(_,{className:"w-full",children:(0,Ue.jsx)(q,{className:"Ue-4",children:(0,Ue.jsx)("div",{className:"space-y-2",children:r.data?.references?.map((d,m)=>(0,Ue.jsxs)("div",{className:"flex items-center gap-2 Ue-2 rounded-md bg-muted/50",children:[(0,Ue.jsx)(ee,{variant:"outline",children:d.type||"link"}),(0,Ue.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ue.jsx)("Ue",{className:"text-sm font-medium truncate",children:d.title}),d.description&&(0,Ue.jsx)("Ue",{className:"text-xs text-muted-foreground truncate",children:d.description})]}),d.url&&(0,Ue.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>window.open(d.url,"_blank"),className:"h-8 w-8 Ue-0",children:(0,Ue.jsx)(E.ExternalLink,{className:"h-4 w-4"})})]},m))})})})},n):i==="menu"?(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsxs)(_,{className:"w-full",children:[(0,Ue.jsx)(re,{children:(0,Ue.jsx)(ae,{className:"text-lg",children:r.data?.title})}),(0,Ue.jsx)(q,{children:(0,Ue.jsx)("div",{className:"space-y-2",children:r.data?.items?.map((d,m)=>(0,Ue.jsx)(z,{variant:"outline",className:"w-full justify-start",onClick:d.action,children:(0,Ue.jsxs)("div",{className:"text-left",children:[(0,Ue.jsx)("Ue",{className:"font-medium",children:d.label}),d.description&&(0,Ue.jsx)("Ue",{className:"text-xs text-muted-foreground",children:d.description})]})},m))})})]})},n):(0,Ue.jsx)("div",{className:"mb-2",children:(0,Ue.jsxs)(_,{className:"w-full max-w-md",children:[(0,Ue.jsx)(re,{children:(0,Ue.jsx)(ae,{className:"text-lg",children:i})}),(0,Ue.jsx)(q,{children:(0,Ue.jsx)("pre",{className:"text-sm",children:JSON.stringify(r.data,null,2)})})]})},n)}if(s.type==="reasoning")return(0,Ue.jsxs)(st,{className:"w-full",isStreaming:o==="streaming"&&n===e.parts.length-1&&e.id===a.at(-1)?.id,children:[(0,Ue.jsx)(it,{}),(0,Ue.jsx)(lt,{children:s.text})]},`${n}`);if(s.type==="dynamic-tool")return(0,Ue.jsxs)(qt,{defaultOpen:s.state!=="output-available",children:[(0,Ue.jsx)(Kt,{type:`tool-${s.toolName}`,state:s.state}),(0,Ue.jsxs)(Jt,{children:[(0,Ue.jsx)(Qt,{input:s.input}),(0,Ue.jsx)(Xt,{output:s.output,errorText:s.errorText})]})]},`${e.id}-${n}`)});var lo=({className:e,from:t,...o})=>(0,Ue.jsx)("div",{className:c("group flex w-full items-end justify-end gap-2 py-4",t==="user"?"is-user":"is-assistant flex-row-reverse justify-end",e),...o}),gr=(0,Rt.cva)("is-user:dark flex flex-col gap-2 overflow-hidden rounded-lg text-sm",{variants:{variant:{contained:["max-w-[80%] px-4 py-3","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-card group-[.is-assistant]:text-card-foreground"],flat:["group-[.is-user]:max-w-[80%] group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground"]}},defaultVariants:{variant:"contained"}}),co=({children:e,className:t,variant:o,...a})=>(0,Ue.jsx)("div",{className:c(gr({variant:o,className:t})),...a,children:e});function fr({messages:e,input:t,isTyping:o=!1,currentSessionTitle:a,capabilities:s,fileUploads:n,isDragOver:r,enableFileUpload:i,onInputChange:d,addToolResult:m,onSendMessage:h,onKeyPress:g,onFileUpload:v,onRemoveFile:w,onDragOver:N,className:x,status:y="ready"}){let C=(0,J.useRef)(null),L=(0,J.useRef)(null),S=(0,J.useRef)(null),[M,Q]=(0,J.useState)(!1),[be,Ke]=(0,J.useState)({path:[],selectedItems:[],filters:{}});(0,J.useEffect)(()=>{C.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,J.useEffect)(()=>{M&&setTimeout(()=>{C.current?.scrollIntoView({behavior:"smooth"})},100)},[M]);let Re=()=>tt(be),ve=()=>{let u=[];return s.forEach(A=>{A.actions&&A.actions.forEach(X=>{u.push({label:X.label,action:()=>de(X.id,{path:[A],selectedItems:[],filters:{}})})}),A.children&&A.children.forEach(X=>{X.type==="list"&&X.data&&u.push({label:`View ${X.name}`,action:()=>Q(!0)})})}),u.slice(0,5)},de=(u,A)=>{console.log("Capability action:",u,A);let X=`Executing ${u} with context: ${JSON.stringify(A.path.map(Be=>Be.name))}`;Q(!1)},Ae=tt({path:[],selectedItems:[],filters:{}}),k=u=>{v(u.target.files),u.target.files&&(u.target.value="")},De=u=>{u.preventDefault(),N(!0)},he=u=>{u.preventDefault(),N(!1)},He=u=>{u.preventDefault(),N(!1),v(u.dataTransfer.files)},xe=u=>{if(u===0)return"0 Bytes";let A=1024,X=["Bytes","KB","MB","GB"],Be=Math.floor(Math.log(u)/Math.log(A));return parseFloat((u/Math.pow(A,Be)).toFixed(2))+" "+X[Be]},Ee=u=>u.startsWith("image/")?(0,Ue.jsx)(E.Image,{className:"h-4 w-4"}):u.startsWith("text/")?(0,Ue.jsx)(E.FileText,{className:"h-4 w-4"}):(0,Ue.jsx)(E.File,{className:"h-4 w-4"}),Se={messages:e,currentSessionTitle:a,capabilities:s,currentCapabilityContext:be,contextualActions:Ae,getQuickSuggestions:ve().map(u=>u.label)},pe=()=>{navigator.clipboard.writeText(JSON.stringify(Se,null,2)),alert("Debug info copied to clipboard")};return(0,Ue.jsxs)("div",{className:`h-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${x||""}`,children:[(0,Ue.jsxs)(et,{ref:L,className:"flex-1 Ue-4 bg-background border-0",onDragOver:De,onDragLeave:he,onDrop:He,children:[(0,Ue.jsxs)("div",{className:c("space-y-4",r&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,Ue.jsx)(Te.animate,{children:e.map(u=>(0,Ue.jsx)(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:(0,Ue.jsx)(lo,{from:u.role,children:(0,Ue.jsx)(co,{variant:"contained",children:so({message:u,addToolResult:m??(()=>{}),status:y,messages:e})})},u.id)},u.id))}),M&&(0,Ue.jsxs)(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[(0,Ue.jsx)(Fe,{className:"h-8 w-8",children:(0,Ue.jsx)(Ve,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,Ue.jsx)(E.Bot,{className:"h-4 w-4"})})}),(0,Ue.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,Ue.jsx)(Bt,{capabilities:s,isOpen:M,onToggle:()=>Q(!M),onActionSelect:de,className:"w-full"})})]}),o&&(0,Ue.jsxs)(Te.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[(0,Ue.jsx)(Fe,{className:"h-8 w-8",children:(0,Ue.jsx)(Ve,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,Ue.jsx)(E.Bot,{className:"h-4 w-4"})})}),(0,Ue.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,Ue.jsxs)("div",{className:"flex space-x-1",children:[(0,Ue.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,Ue.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,Ue.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,Ue.jsx)("div",{ref:C})]}),n.length>0&&(0,Ue.jsx)("div",{className:"Ue-4 border-t bg-muted/10",children:(0,Ue.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(u=>(0,Ue.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg Ue-2 border",children:[Ee(u.file.type),(0,Ue.jsx)("span",{className:"text-sm font-medium",children:u.file.name}),(0,Ue.jsx)("span",{className:"text-xs text-muted-foreground",children:xe(u.file.size)}),(0,Ue.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>w(u.id),className:"h-6 w-6 Ue-0",children:(0,Ue.jsx)(E.X,{className:"h-4 w-4"})})]},u.id))})}),(0,Ue.jsxs)("div",{className:"border rounded-2xl Ue-4 bg-muted/20",children:[(0,Ue.jsxs)("div",{className:"flex gap-3",children:[(0,Ue.jsx)(Ye,{value:t,onChange:u=>d(u.target.value),onKeyPress:g,placeholder:"How can Ue help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),i&&(0,Ue.jsx)(z,{variant:"outline",size:"icon",onClick:()=>S.current?.click(),className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,Ue.jsx)(E.Paperclip,{className:"h-4 w-4"})}),(0,Ue.jsx)(z,{onClick:h,disabled:!t.trim()&&n.length===0||o,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,Ue.jsx)(E.Send,{className:"h-4 w-4"})})]}),(0,Ue.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,Ue.jsxs)(z,{onClick:()=>Q(!M),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,Ue.jsx)(E.Menu,{className:"h-3 w-3 mr-1"}),M?"Hide":"Show"," Capabilities"]}),(0,Ue.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[Re().map((u,A)=>(0,Ue.jsx)(z,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>de(u.id,be),children:u.label},`context-${u.id}`)),Re().length===0&&ve().map((u,A)=>(0,Ue.jsx)(z,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:u.action,children:u.label},`suggestion-${A}`)),(0,Ue.jsx)(z,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:pe,children:"Debug"})]})]}),i&&(0,Ue.jsx)("input",{ref:S,type:"file",multiple:!0,onChange:k,className:"hidden"})]})]})}0&&(module.exports={ChatInterface});
@@ -1 +1 @@
1
- import{a}from"../../chunk-VATGKKXW.mjs";import"../../chunk-7TSR2LQB.mjs";import"../../chunk-UTJZH3X5.mjs";import"../../chunk-7JDMW5R3.mjs";import"../../chunk-UA2E23AS.mjs";import"../../chunk-MTA6RFZ7.mjs";import"../../chunk-SH5SK6V2.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-5Y6FKL5W.mjs";import"../../chunk-EW6KWAHS.mjs";import"../../chunk-6OT5PQXV.mjs";import"../../chunk-YPZAYXNQ.mjs";import"../../chunk-2LINLX4S.mjs";import"../../chunk-RL6365DN.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-Q2DPE66H.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ChatInterface};
1
+ import{a}from"../../chunk-IMRGPVFS.mjs";import"../../chunk-TIAA3ZN3.mjs";import"../../chunk-YI6EQRWN.mjs";import"../../chunk-5Y6FKL5W.mjs";import"../../chunk-7JDMW5R3.mjs";import"../../chunk-UA2E23AS.mjs";import"../../chunk-G3BOVXUM.mjs";import"../../chunk-EW6KWAHS.mjs";import"../../chunk-MTA6RFZ7.mjs";import"../../chunk-SH5SK6V2.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-6OT5PQXV.mjs";import"../../chunk-YPZAYXNQ.mjs";import"../../chunk-RL6365DN.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-2LINLX4S.mjs";import"../../chunk-Q2DPE66H.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ChatInterface};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-YPZAYXNQ.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ChatCardArtefact};
1
+ import{a}from"../../../chunk-YPZAYXNQ.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ChatCardArtefact};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-RL6365DN.mjs";import"../../../chunk-LTTO57ZK.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ChatCardTask};
1
+ import{a}from"../../../chunk-RL6365DN.mjs";import"../../../chunk-LTTO57ZK.mjs";import"../../../chunk-CSBGSBEU.mjs";import"../../../chunk-YO3GQYRJ.mjs";import"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-YEKQJ4YC.mjs";export{a as ChatCardTask};
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use strict";
3
3
 
4
- "use client";import{b as p}from"../../../chunk-ZUA4KNIR.mjs";import"../../../chunk-QTW33JYG.mjs";import{a as s}from"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-YEKQJ4YC.mjs";import{ArrowDownIcon as c}from"lucide-react";import{useCallback as C}from"react";import{StickToBottom as m,useStickToBottomContext as v}from"use-stick-to-bottom";import{Fragment as u,jsx as o,jsxs as i}from"react/jsx-runtime";var P=({className:t,...e})=>o(m,{className:s("relative flex-1 overflow-y-auto",t),initial:"smooth",resize:"smooth",role:"log",...e}),S=({className:t,...e})=>o(m.Content,{className:s("p-4",t),...e}),N=({className:t,title:e="No messages yet",description:r="Start a conversation to see messages here",icon:n,children:a,...l})=>o("div",{className:s("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",t),...l,children:a??i(u,{children:[n&&o("div",{className:"text-muted-foreground",children:n}),i("div",{className:"space-y-1",children:[o("h3",{className:"font-medium text-sm",children:e}),r&&o("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),g=({className:t,...e})=>{let{isAtBottom:r,scrollToBottom:n}=v(),a=C(()=>{n()},[n]);return!r&&o(p,{className:s("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",t),onClick:a,size:"icon",type:"button",variant:"outline",...e,children:o(c,{className:"size-4"})})};export{P as Conversation,S as ConversationContent,N as ConversationEmptyState,g as ConversationScrollButton};
4
+ "use client";import{b as p}from"../../../chunk-ZUA4KNIR.mjs";import{a as s}from"../../../chunk-MDJREBVI.mjs";import"../../../chunk-ZWHGOTSF.mjs";import"../../../chunk-Q3G5UAAD.mjs";import"../../../chunk-XGRRLABA.mjs";import"../../../chunk-QTW33JYG.mjs";import"../../../chunk-YEKQJ4YC.mjs";import{ArrowDownIcon as c}from"lucide-react";import{useCallback as C}from"react";import{StickToBottom as m,useStickToBottomContext as v}from"use-stick-to-bottom";import{Fragment as u,jsx as o,jsxs as i}from"react/jsx-runtime";var P=({className:t,...e})=>o(m,{className:s("relative flex-1 overflow-y-auto",t),initial:"smooth",resize:"smooth",role:"log",...e}),S=({className:t,...e})=>o(m.Content,{className:s("p-4",t),...e}),N=({className:t,title:e="No messages yet",description:r="Start a conversation to see messages here",icon:n,children:a,...l})=>o("div",{className:s("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",t),...l,children:a??i(u,{children:[n&&o("div",{className:"text-muted-foreground",children:n}),i("div",{className:"space-y-1",children:[o("h3",{className:"font-medium text-sm",children:e}),r&&o("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),g=({className:t,...e})=>{let{isAtBottom:r,scrollToBottom:n}=v(),a=C(()=>{n()},[n]);return!r&&o(p,{className:s("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",t),onClick:a,size:"icon",type:"button",variant:"outline",...e,children:o(c,{className:"size-4"})})};export{P as Conversation,S as ConversationContent,N as ConversationEmptyState,g as ConversationScrollButton};