cortex-react-components 2.28.0 → 2.28.1

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 (359) hide show
  1. package/dist/chunk-2TUBS2HM.mjs +4 -0
  2. package/dist/{chunk-JDIPWJBD.mjs → chunk-46N4YPMB.mjs} +1 -1
  3. package/dist/{chunk-27XIU7FW.mjs → chunk-4LUF5GZ6.mjs} +1 -1
  4. package/dist/{chunk-SADWUWLZ.mjs → chunk-5EKGFFJD.mjs} +1 -1
  5. package/dist/{chunk-KBEXWUKI.mjs → chunk-5NIEZE7A.mjs} +1 -1
  6. package/dist/{chunk-VDFRWGXR.mjs → chunk-6PS55VJZ.mjs} +1 -1
  7. package/dist/{chunk-YI6EQRWN.mjs → chunk-6ZMZX5TB.mjs} +1 -1
  8. package/dist/{chunk-DTKZ3I6Z.mjs → chunk-7BYNW77I.mjs} +1 -1
  9. package/dist/{chunk-XSCZQEYP.mjs → chunk-7DDFZ2M3.mjs} +1 -1
  10. package/dist/{chunk-MX6GXHJJ.mjs → chunk-7MPZOMXK.mjs} +1 -1
  11. package/dist/{chunk-LKUK55GC.mjs → chunk-AABB4TFO.mjs} +1 -1
  12. package/dist/{chunk-D76LTQRD.mjs → chunk-ALEPCEWP.mjs} +1 -1
  13. package/dist/{chunk-XX4GSGRP.mjs → chunk-AQQCH7Z2.mjs} +1 -1
  14. package/dist/{chunk-YVXFRQPA.mjs → chunk-ATPB5HSG.mjs} +1 -1
  15. package/dist/{chunk-SZXMQMZ6.mjs → chunk-BDDEMCAH.mjs} +1 -1
  16. package/dist/{chunk-ORODSHZN.mjs → chunk-CC57QZMB.mjs} +1 -1
  17. package/dist/{chunk-D44OXIPN.mjs → chunk-CDVRH3MC.mjs} +1 -1
  18. package/dist/{chunk-OQBCIB4L.mjs → chunk-CK2TD4BY.mjs} +1 -1
  19. package/dist/{chunk-633ESSXN.mjs → chunk-COBOHCBL.mjs} +1 -1
  20. package/dist/{chunk-KEOMDWUC.mjs → chunk-EHSOO47V.mjs} +1 -1
  21. package/dist/{chunk-24R7CI5Q.mjs → chunk-EM4CGGGV.mjs} +1 -1
  22. package/dist/{chunk-CXHPLJDO.mjs → chunk-F6DMXMR4.mjs} +1 -1
  23. package/dist/{chunk-GXVC6ETI.mjs → chunk-FB5PBKLV.mjs} +1 -1
  24. package/dist/{chunk-IFUIQ57U.mjs → chunk-FBEHQRZ4.mjs} +1 -1
  25. package/dist/{chunk-VKCDLKYH.mjs → chunk-FJ2HHNPX.mjs} +1 -1
  26. package/dist/{chunk-75HU5Q6A.mjs → chunk-G2DQLEAJ.mjs} +1 -1
  27. package/dist/{chunk-RCI3L3M5.mjs → chunk-HD6E7KI2.mjs} +1 -1
  28. package/dist/{chunk-NJ7PW5T7.mjs → chunk-IISYRLNU.mjs} +1 -1
  29. package/dist/{chunk-I6D5JCNY.mjs → chunk-IQQ7ZWCP.mjs} +1 -1
  30. package/dist/{chunk-YG7SLO6G.mjs → chunk-ITNR7N47.mjs} +1 -1
  31. package/dist/chunk-IUVPH5LV.mjs +4 -0
  32. package/dist/{chunk-6VRPQKAK.mjs → chunk-JCWFPKF3.mjs} +1 -1
  33. package/dist/chunk-JQL4XGAF.mjs +4 -0
  34. package/dist/{chunk-KAAHIHZK.mjs → chunk-L2OBO2VZ.mjs} +1 -1
  35. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  36. package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  37. package/dist/{chunk-5FWH5YVM.mjs → chunk-LHO4WFYP.mjs} +1 -1
  38. package/dist/{chunk-2O54GV6Q.mjs → chunk-LJFBHY4P.mjs} +1 -1
  39. package/dist/{chunk-YPQUYIGO.mjs → chunk-LLED3RQS.mjs} +1 -1
  40. package/dist/{chunk-WBDSOPDY.mjs → chunk-M527EJIX.mjs} +1 -1
  41. package/dist/chunk-MCOHKE2T.mjs +1 -0
  42. package/dist/{chunk-SWE754OC.mjs → chunk-MH4YPGH4.mjs} +1 -1
  43. package/dist/{chunk-43YJ2VYN.mjs → chunk-MU47F4UR.mjs} +1 -1
  44. package/dist/{chunk-4FEVXBNU.mjs → chunk-NCJAMNMQ.mjs} +1 -1
  45. package/dist/{chunk-2R3ECSWF.mjs → chunk-NDBSSX6Q.mjs} +1 -1
  46. package/dist/{chunk-O3BCESMN.mjs → chunk-NXAXOI33.mjs} +1 -1
  47. package/dist/{chunk-MX3JKY3V.mjs → chunk-P7S6XFU4.mjs} +1 -1
  48. package/dist/{chunk-GRNOF6LY.mjs → chunk-QDP657UR.mjs} +1 -1
  49. package/dist/{chunk-AMAB4E2X.mjs → chunk-QKDYTCZC.mjs} +1 -1
  50. package/dist/{chunk-2IMY4VWR.mjs → chunk-RR4QSUV2.mjs} +1 -1
  51. package/dist/{chunk-XQ3XV5DH.mjs → chunk-RS4VD3ML.mjs} +1 -1
  52. package/dist/{chunk-UBZYXZ7B.mjs → chunk-RS4WAAGI.mjs} +1 -1
  53. package/dist/{chunk-FRYADWTQ.mjs → chunk-RV4XL2CG.mjs} +1 -1
  54. package/dist/{chunk-4ITG3T35.mjs → chunk-SME3D72Q.mjs} +1 -1
  55. package/dist/{chunk-LEF6M5ZD.mjs → chunk-SNFBF6KT.mjs} +1 -1
  56. package/dist/{chunk-6L7VJ7IH.mjs → chunk-TIIYFAV6.mjs} +1 -1
  57. package/dist/{chunk-ZZFYIP6H.mjs → chunk-TKCFCYEQ.mjs} +1 -1
  58. package/dist/{chunk-OWL3KUE3.mjs → chunk-TKY52BNP.mjs} +1 -1
  59. package/dist/{chunk-B63FA7LF.mjs → chunk-TQKXHMD7.mjs} +1 -1
  60. package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
  61. package/dist/{chunk-WDRL3N5V.mjs → chunk-VNKGAW4K.mjs} +1 -1
  62. package/dist/{chunk-I75OOO4H.mjs → chunk-VRHJOUL3.mjs} +1 -1
  63. package/dist/{chunk-MDIJOHFV.mjs → chunk-WLI2YTOQ.mjs} +1 -1
  64. package/dist/{chunk-ZA6MGTGM.mjs → chunk-WRCRZUGO.mjs} +1 -1
  65. package/dist/{chunk-O5QXPC23.mjs → chunk-X2JWNPWT.mjs} +1 -1
  66. package/dist/{chunk-XMYXQR5W.mjs → chunk-X3YJJBFJ.mjs} +1 -1
  67. package/dist/{chunk-LBVWIF2J.mjs → chunk-XJKNH5LL.mjs} +1 -1
  68. package/dist/{chunk-IBC5Z55T.mjs → chunk-YH72WKGC.mjs} +1 -1
  69. package/dist/chunk-YRDJBAYA.mjs +4 -0
  70. package/dist/{chunk-O5P35LEY.mjs → chunk-ZFUP5NVF.mjs} +1 -1
  71. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  72. package/dist/components/AdvancedComponents/CommentSection.mjs +1 -1
  73. package/dist/components/AdvancedComponents/EditableField.mjs +1 -1
  74. package/dist/components/AdvancedComponents/app-header.mjs +1 -1
  75. package/dist/components/AdvancedComponents/index.mjs +1 -1
  76. package/dist/components/AdvancedComponents/navigation-tabs.mjs +1 -1
  77. package/dist/components/AdvancedComponents/notifications-panel.mjs +1 -1
  78. package/dist/components/AdvancedComponents/switch.mjs +1 -1
  79. package/dist/components/AdvancedComponents/theme-toggle.mjs +1 -1
  80. package/dist/components/AdvancedComponents/user-selection.mjs +1 -1
  81. package/dist/components/Blocks/Banner.mjs +1 -1
  82. package/dist/components/Blocks/CallToAction.mjs +1 -1
  83. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  84. package/dist/components/Blocks/Code.client.mjs +1 -1
  85. package/dist/components/Blocks/Code.mjs +1 -1
  86. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  87. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  88. package/dist/components/Blocks/Content.mjs +1 -1
  89. package/dist/components/Blocks/CopyButton.mjs +1 -1
  90. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  91. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  92. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  93. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  94. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  95. package/dist/components/Blocks/index.mjs +1 -1
  96. package/dist/components/CRM/CogeBoard.mjs +1 -1
  97. package/dist/components/CRM/DealCard.mjs +1 -1
  98. package/dist/components/CRM/DealDetails.mjs +1 -1
  99. package/dist/components/CRM/KanbanBoard.mjs +1 -1
  100. package/dist/components/CRM/KanbanColumn.mjs +1 -1
  101. package/dist/components/CRM/NewCustomerForm.mjs +1 -1
  102. package/dist/components/CRM/NewDealForm.mjs +1 -1
  103. package/dist/components/CRM/index.mjs +1 -1
  104. package/dist/components/Cards/ContentCard.mjs +1 -1
  105. package/dist/components/Cards/CustomerCard.mjs +1 -1
  106. package/dist/components/Cards/EventCard.mjs +1 -1
  107. package/dist/components/Cards/FeatureCard.mjs +1 -1
  108. package/dist/components/Cards/HeroCard.mjs +1 -1
  109. package/dist/components/Cards/Image.mjs +1 -1
  110. package/dist/components/Cards/PricingCard.mjs +1 -1
  111. package/dist/components/Cards/ServiceCard.mjs +1 -1
  112. package/dist/components/Cards/index.mjs +1 -1
  113. package/dist/components/Chat/ChatInterface.js +7 -7
  114. package/dist/components/Chat/ChatInterface.mjs +1 -1
  115. package/dist/components/Chat/Components/ChatCardArtefact.mjs +1 -1
  116. package/dist/components/Chat/Components/ChatCardTask.mjs +1 -1
  117. package/dist/components/Chat/Components/Conversation.mjs +1 -1
  118. package/dist/components/Chat/Components/Message.mjs +1 -1
  119. package/dist/components/Chat/CopilotInterface.js +11 -10
  120. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  121. package/dist/components/Chat/PartTypes/CodeBlock.d.ts +7 -5
  122. package/dist/components/Chat/PartTypes/CodeBlock.js +1 -1
  123. package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
  124. package/dist/components/Chat/PartTypes/ColleagueHandoff.mjs +1 -1
  125. package/dist/components/Chat/PartTypes/Confirmation.css +1 -0
  126. package/dist/components/Chat/PartTypes/Confirmation.d.ts +49 -0
  127. package/dist/components/Chat/PartTypes/Confirmation.js +4 -0
  128. package/dist/components/Chat/PartTypes/Confirmation.mjs +2 -0
  129. package/dist/components/Chat/PartTypes/Conversation.css +1 -0
  130. package/dist/components/Chat/PartTypes/Conversation.d.ts +15 -0
  131. package/dist/components/Chat/PartTypes/Conversation.js +4 -0
  132. package/dist/components/Chat/PartTypes/Conversation.mjs +2 -0
  133. package/dist/components/Chat/PartTypes/MessageHandler.js +8 -7
  134. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  135. package/dist/components/Chat/PartTypes/Reasoning.mjs +1 -1
  136. package/dist/components/Chat/PartTypes/Response.mjs +1 -1
  137. package/dist/components/Chat/PartTypes/Tool.d.ts +12 -11
  138. package/dist/components/Chat/PartTypes/Tool.js +1 -1
  139. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  140. package/dist/components/Chat/PartTypes/index.d.ts +2 -0
  141. package/dist/components/Chat/PartTypes/index.js +9 -8
  142. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  143. package/dist/components/Chat/capability-menu.mjs +1 -1
  144. package/dist/components/Chat/chat-session-sidebar.mjs +1 -1
  145. package/dist/components/Chat/demo-long-messages.js +18 -17
  146. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  147. package/dist/components/Chat/demo-tests.js +89 -88
  148. package/dist/components/Chat/demo-tests.mjs +1 -1
  149. package/dist/components/Chat/demo.js +11 -10
  150. package/dist/components/Chat/demo.mjs +1 -1
  151. package/dist/components/Chat/example-usage.js +11 -10
  152. package/dist/components/Chat/example-usage.mjs +1 -1
  153. package/dist/components/Chat/example-with-file-uploads.mjs +1 -1
  154. package/dist/components/Chat/example-with-vercel-ai.js +11 -10
  155. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  156. package/dist/components/Chat/index.js +11 -10
  157. package/dist/components/Chat/index.mjs +1 -1
  158. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +1 -1
  159. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +1 -1
  160. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +1 -1
  161. package/dist/components/DeliveryLead/index.mjs +1 -1
  162. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  163. package/dist/components/DigitalColleagues/DashboardHeader.mjs +1 -1
  164. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  165. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  166. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  167. package/dist/components/DigitalColleagues/SearchableSelect.mjs +1 -1
  168. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  169. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  170. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  171. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  172. package/dist/components/DigitalColleagues/colleague-card.mjs +1 -1
  173. package/dist/components/DigitalColleagues/colleague-form.mjs +1 -1
  174. package/dist/components/DigitalColleagues/colleague-type-selection.mjs +1 -1
  175. package/dist/components/DigitalColleagues/digital-colleague-clone.mjs +1 -1
  176. package/dist/components/DigitalColleagues/digital-colleague-options.mjs +1 -1
  177. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  178. package/dist/components/DigitalColleagues/document-preview-examples.mjs +1 -1
  179. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  180. package/dist/components/DigitalColleagues/index.mjs +1 -1
  181. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  182. package/dist/components/DigitalColleagues/knowledge-search.mjs +1 -1
  183. package/dist/components/DigitalColleagues/team-form.mjs +1 -1
  184. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  185. package/dist/components/Foundary/DashboardHeader.mjs +1 -1
  186. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  187. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  188. package/dist/components/Foundary/Knowledge/manage-team-context.mjs +1 -1
  189. package/dist/components/Foundary/LandingMenu.mjs +1 -1
  190. package/dist/components/Foundary/Login.mjs +1 -1
  191. package/dist/components/Foundary/MainPage.mjs +1 -1
  192. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  193. package/dist/components/Foundary/RichText/components/RawUploadComponent/index.mjs +1 -1
  194. package/dist/components/Foundary/RichText/index.mjs +1 -1
  195. package/dist/components/Foundary/RichText/nodes/image-node.mjs +1 -1
  196. package/dist/components/Foundary/RichText/plugins/image-plugin.mjs +1 -1
  197. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  198. package/dist/components/Foundary/SearchableSelect.mjs +1 -1
  199. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  200. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  201. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  202. package/dist/components/Foundary/Views/index.mjs +1 -1
  203. package/dist/components/Foundary/colleague-card.mjs +1 -1
  204. package/dist/components/Foundary/colleague-form.mjs +1 -1
  205. package/dist/components/Foundary/colleague-type-selection.mjs +1 -1
  206. package/dist/components/Foundary/document-edit.mjs +1 -1
  207. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  208. package/dist/components/Foundary/document-preview.mjs +1 -1
  209. package/dist/components/Foundary/file-edit.mjs +1 -1
  210. package/dist/components/Foundary/foundary-clone.mjs +1 -1
  211. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  212. package/dist/components/Foundary/foundary-options.mjs +1 -1
  213. package/dist/components/Foundary/index.mjs +1 -1
  214. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  215. package/dist/components/Foundary/knowledge-search.mjs +1 -1
  216. package/dist/components/Foundary/team-form.mjs +1 -1
  217. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  218. package/dist/components/HeaderFooter/Header.mjs +1 -1
  219. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  220. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  221. package/dist/components/HeaderFooter/RelatedPagesMenu.mjs +1 -1
  222. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  223. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  224. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  225. package/dist/components/HeaderFooter/enhanced-header.mjs +1 -1
  226. package/dist/components/HeaderFooter/index.mjs +1 -1
  227. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  228. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  229. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  230. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  231. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  232. package/dist/components/Heros/PostHero/index.mjs +1 -1
  233. package/dist/components/Heros/RenderHero.mjs +1 -1
  234. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  235. package/dist/components/Heros/index.mjs +1 -1
  236. package/dist/components/Holidays/ApproveLeave.mjs +1 -1
  237. package/dist/components/Holidays/CalendarView.mjs +1 -1
  238. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  239. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  240. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  241. package/dist/components/Holidays/index.mjs +1 -1
  242. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  243. package/dist/components/Layouts/Print.mjs +1 -1
  244. package/dist/components/Layouts/SlideShow.mjs +1 -1
  245. package/dist/components/Layouts/index.mjs +1 -1
  246. package/dist/components/Menus/Categories.mjs +1 -1
  247. package/dist/components/Menus/Filter.mjs +1 -1
  248. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  249. package/dist/components/Menus/RelatedContent.mjs +1 -1
  250. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  251. package/dist/components/Menus/SidebarRight.mjs +1 -1
  252. package/dist/components/Menus/index.mjs +1 -1
  253. package/dist/components/Other/Container.mjs +1 -1
  254. package/dist/components/Other/index.mjs +1 -1
  255. package/dist/components/Payload/Link/index.mjs +1 -1
  256. package/dist/components/Payload/Pagination/index.mjs +1 -1
  257. package/dist/components/Payload/RichText/index.mjs +1 -1
  258. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  259. package/dist/components/Payload/index.mjs +1 -1
  260. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  261. package/dist/components/Projects/AddFileModal.mjs +1 -1
  262. package/dist/components/Projects/AddSprintModal.mjs +1 -1
  263. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  264. package/dist/components/Projects/EpicFilter.mjs +1 -1
  265. package/dist/components/Projects/EpicsView.mjs +1 -1
  266. package/dist/components/Projects/FileView.mjs +1 -1
  267. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  268. package/dist/components/Projects/KanbanColumn.mjs +1 -1
  269. package/dist/components/Projects/PlanningView.mjs +1 -1
  270. package/dist/components/Projects/ProjectPage.mjs +1 -1
  271. package/dist/components/Projects/ProjectView.mjs +1 -1
  272. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  273. package/dist/components/Projects/TaskCard.mjs +1 -1
  274. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  275. package/dist/components/Projects/TaskSelect.mjs +1 -1
  276. package/dist/components/Projects/TaskSidebar.mjs +1 -1
  277. package/dist/components/Projects/TasksView.mjs +1 -1
  278. package/dist/components/Projects/TeamSwitcher.mjs +1 -1
  279. package/dist/components/Projects/business-unit-switcher.mjs +1 -1
  280. package/dist/components/Projects/file-list.mjs +1 -1
  281. package/dist/components/Projects/index.mjs +1 -1
  282. package/dist/components/Projects/project-card.mjs +1 -1
  283. package/dist/components/Projects/project-form.mjs +1 -1
  284. package/dist/components/Projects/team-card.mjs +1 -1
  285. package/dist/components/Projects/team-switcher-bar.mjs +1 -1
  286. package/dist/components/dc-temp/creative.mjs +1 -1
  287. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  288. package/dist/components/dc-temp/index.mjs +1 -1
  289. package/dist/components/dc-temp/markdown-renderer.mjs +1 -1
  290. package/dist/components/index.js +24 -23
  291. package/dist/components/index.mjs +1 -1
  292. package/dist/components/ui/alert.mjs +1 -1
  293. package/dist/components/ui/avatar.mjs +1 -1
  294. package/dist/components/ui/badge.mjs +1 -1
  295. package/dist/components/ui/breadcrumb.mjs +1 -1
  296. package/dist/components/ui/button.mjs +1 -1
  297. package/dist/components/ui/calendar.mjs +1 -1
  298. package/dist/components/ui/card.mjs +1 -1
  299. package/dist/components/ui/checkbox.mjs +1 -1
  300. package/dist/components/ui/command.mjs +1 -1
  301. package/dist/components/ui/dialog.mjs +1 -1
  302. package/dist/components/ui/dropdown-menu.mjs +1 -1
  303. package/dist/components/ui/hover-card.mjs +1 -1
  304. package/dist/components/ui/index.mjs +1 -1
  305. package/dist/components/ui/input.mjs +1 -1
  306. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  307. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  308. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  309. package/dist/components/ui/label.mjs +1 -1
  310. package/dist/components/ui/pagination.mjs +1 -1
  311. package/dist/components/ui/popover.mjs +1 -1
  312. package/dist/components/ui/progress.mjs +1 -1
  313. package/dist/components/ui/scroll-area.mjs +1 -1
  314. package/dist/components/ui/select.mjs +1 -1
  315. package/dist/components/ui/separator.mjs +1 -1
  316. package/dist/components/ui/sheet.mjs +1 -1
  317. package/dist/components/ui/sidebar.mjs +1 -1
  318. package/dist/components/ui/skeleton.mjs +1 -1
  319. package/dist/components/ui/switch.mjs +1 -1
  320. package/dist/components/ui/tabs.mjs +1 -1
  321. package/dist/components/ui/textarea.mjs +1 -1
  322. package/dist/components/ui/toast.mjs +1 -1
  323. package/dist/components/ui/toaster.mjs +1 -1
  324. package/dist/components/ui/toggle-group.mjs +1 -1
  325. package/dist/components/ui/toggle.mjs +1 -1
  326. package/dist/components/ui/tooltip.mjs +1 -1
  327. package/dist/globals.css +1 -1
  328. package/dist/index.js +28 -27
  329. package/dist/index.mjs +1 -1
  330. package/dist/metafile-cjs.json +1 -1
  331. package/dist/metafile-esm.json +1 -1
  332. package/dist/pages/Blog.mjs +1 -1
  333. package/dist/pages/Documentation.mjs +1 -1
  334. package/dist/pages/IndexPage.mjs +1 -1
  335. package/dist/pages/Intranet.mjs +1 -1
  336. package/dist/pages/LandingPage.mjs +1 -1
  337. package/dist/pages/Page.mjs +1 -1
  338. package/dist/pages/Publish.mjs +1 -1
  339. package/dist/pages/Website.mjs +1 -1
  340. package/dist/sections/AboutSection.mjs +1 -1
  341. package/dist/sections/BlogDetail.mjs +1 -1
  342. package/dist/sections/BlogList.mjs +1 -1
  343. package/dist/sections/BlogListSection.mjs +1 -1
  344. package/dist/sections/ContactSection.mjs +1 -1
  345. package/dist/sections/ImageSection.mjs +1 -1
  346. package/dist/sections/MainPageSection.mjs +1 -1
  347. package/dist/sections/PageSections.mjs +1 -1
  348. package/dist/sections/PricingSection.mjs +1 -1
  349. package/dist/sections/ServiceDetail.mjs +1 -1
  350. package/dist/sections/ServiceDetailSection.mjs +1 -1
  351. package/dist/sections/ServiceSection.mjs +1 -1
  352. package/dist/sections/form/index.mjs +1 -1
  353. package/dist/sections/index.mjs +1 -1
  354. package/dist/styles/Colors.mjs +1 -1
  355. package/dist/utils/index.mjs +1 -1
  356. package/package.json +3 -2
  357. package/dist/chunk-7JDMW5R3.mjs +0 -4
  358. package/dist/chunk-IMRGPVFS.mjs +0 -1
  359. package/dist/chunk-UA2E23AS.mjs +0 -4
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  "use strict";
3
- "use client"
4
3
  'use client';
4
+ "use client";
5
5
 
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:`
6
+ "use strict";var to=Object.create;var Ie=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)Ie(e,o,{get:t[o],enumerable:!0})},rt=(e,t,o,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ro(t))!no.call(e,a)&&a!==o&&Ie(e,a,{get:()=>t[a],enumerable:!(s=oo(t,a))||s.enumerable});return e};var ue=(e,t,o)=>(o=e!=null?to(ao(e)):{},rt(t||!e||!e.__esModule?Ie(o,"default",{value:e,enumerable:!0}):o,e)),io=e=>rt(Ie({},"__esModule",{value:!0}),e);var nr={};so(nr,{ChatInterface:()=>ar});module.exports=io(nr);var W=require("react"),H=require("lucide-react");var ut=require("clsx");var Fe="-",lo=e=>{let t=po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{let i=r.split(Fe);return i[0]===""&&i.length!==1&&i.shift(),st(i,t)||co(r)},getConflictingClassGroupIds:(r,i)=>{let d=o[r]||[];return i&&s[r]?[...d,...s[r]]:d}}},st=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],s=t.nextPart.get(o),a=s?st(e.slice(1),s):void 0;if(a)return a;if(t.validators.length===0)return;let n=e.join(Fe);return t.validators.find(({validator:r})=>r(n))?.classGroupId},at=/^\[(.+)\]$/,co=e=>{if(at.test(e)){let t=at.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},po=e=>{let{theme:t,prefix:o}=e,s={nextPart:new Map,validators:[]};return mo(Object.entries(e.classGroups),o).forEach(([n,r])=>{Ve(r,s,n,t)}),s},Ve=(e,t,o,s)=>{e.forEach(a=>{if(typeof a=="string"){let n=a===""?t:nt(t,a);n.classGroupId=o;return}if(typeof a=="function"){if(uo(a)){Ve(a(s),t,o,s);return}t.validators.push({validator:a,classGroupId:o});return}Object.entries(a).forEach(([n,r])=>{Ve(r,nt(t,n),o,s)})})},nt=(e,t)=>{let o=e;return t.split(Fe).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},uo=e=>e.isThemeGetter,mo=(e,t)=>t?e.map(([o,s])=>{let a=s.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,i])=>[t+r,i])):n);return[o,a]}):e,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,s=new Map,a=(n,r)=>{o.set(n,r),t++,t>e&&(t=0,s=o,o=new Map)};return{get(n){let r=o.get(n);if(r!==void 0)return r;if((r=s.get(n))!==void 0)return a(n,r),r},set(n,r){o.has(n)?o.set(n,r):a(n,r)}}},it="!",fo=e=>{let{separator:t,experimentalParseClassName:o}=e,s=t.length===1,a=t[0],n=t.length,r=i=>{let d=[],u=0,g=0,f;for(let h=0;h<i.length;h++){let T=i[h];if(u===0){if(T===a&&(s||i.slice(h,h+n)===t)){d.push(i.slice(g,h)),g=h+n;continue}if(T==="/"){f=h;continue}}T==="["?u++:T==="]"&&u--}let b=d.length===0?i:i.substring(g),k=b.startsWith(it),R=k?b.substring(1):b,x=f&&f>g?f-g:void 0;return{modifiers:d,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:x}};return o?i=>o({className:i,parseClassName:r}):r},bo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(s=>{s[0]==="["?(t.push(...o.sort(),s),o=[]):o.push(s)}),t.push(...o.sort()),t},vo=e=>({cache:go(e.cacheSize),parseClassName:fo(e),...lo(e)}),xo=/\s+/,ho=(e,t)=>{let{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:a}=t,n=[],r=e.trim().split(xo),i="";for(let d=r.length-1;d>=0;d-=1){let u=r[d],{modifiers:g,hasImportantModifier:f,baseClassName:b,maybePostfixModifierPosition:k}=o(u),R=!!k,x=s(R?b.substring(0,k):b);if(!x){if(!R){i=u+(i.length>0?" "+i:i);continue}if(x=s(b),!x){i=u+(i.length>0?" "+i:i);continue}R=!1}let h=bo(g).join(":"),T=f?h+it:h,I=T+x;if(n.includes(I))continue;n.push(I);let Y=a(x,R);for(let F=0;F<Y.length;++F){let Z=Y[F];n.push(T+Z)}i=u+(i.length>0?" "+i:i)}return i};function yo(){let e=0,t,o,s="";for(;e<arguments.length;)(t=arguments[e++])&&(o=lt(t))&&(s&&(s+=" "),s+=o);return s}var lt=e=>{if(typeof e=="string")return e;let t,o="";for(let s=0;s<e.length;s++)e[s]&&(t=lt(e[s]))&&(o&&(o+=" "),o+=t);return o};function Co(e,...t){let o,s,a,n=r;function r(d){let u=t.reduce((g,f)=>f(g),e());return o=vo(u),s=o.cache.get,a=o.cache.set,n=i,i(d)}function i(d){let u=s(d);if(u)return u;let g=ho(d,o);return a(d,g),g}return function(){return n(yo.apply(null,arguments))}}var P=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},dt=/^\[(?:([a-W-]+):)?(.+)\]$/i,wo=/^\d+\/\d+$/,No=new Set(["px","full","screen"]),ko=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,To=/\d+(%|px|r?em|[sdl]?bt([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-W]+|0)H-?((\d+)?\.?(\d+)[a-W]+|0)/,Ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,K=e=>me(e)||No.has(e)||wo.test(e),ee=e=>ge(e,"length",Eo),me=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>ge(e,"number",me),ke=e=>!!e&&Number.isInteger(Number(e)),Mo=e=>e.endsWith("%")&&me(e.slice(0,-1)),m=e=>dt.test(e),te=e=>ko.test(e),Io=new Set(["length","size","percentage"]),So=e=>ge(e,Io,ct),Lo=e=>ge(e,"position",ct),Ho=new Set(["image","url"]),Bo=e=>ge(e,Ho,Oo),Do=e=>ge(e,"",zo),Te=()=>!0,ge=(e,t,o)=>{let s=dt.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):o(s[2]):!1},Eo=e=>To.test(e)&&!Po.test(e),ct=()=>!1,zo=e=>Ro.test(e),Oo=e=>Ao.test(e);var Vo=()=>{let e=P("colors"),t=P("spacing"),o=P("blur"),s=P("brightness"),a=P("borderColor"),n=P("borderRadius"),r=P("borderSpacing"),i=P("borderWidth"),d=P("contrast"),u=P("grayscale"),g=P("hueRotate"),f=P("invert"),b=P("gap"),k=P("gradientColorStops"),R=P("gradientColorStopPositions"),x=P("inset"),h=P("margin"),T=P("opacity"),I=P("padding"),Y=P("saturate"),F=P("scale"),Z=P("sepia"),le=P("skew"),De=P("space"),ye=P("translate"),de=()=>["auto","contain","none"],ce=()=>["auto","hidden","clip","visible","scroll"],Ce=()=>["auto",m,t],C=()=>[m,t],Ee=()=>["",K,ee],we=()=>["auto",me,m],ze=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],pe=()=>["solid","dashed","dotted","double","none"],Ae=()=>["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"],ae=()=>["","0",m],c=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>[me,m];return{cacheSize:500,separator:":",theme:{colors:[Te],spacing:[K,ee],blur:["none","",te,m],brightness:w(),borderColor:[e],borderRadius:["none","","full",te,m],borderSpacing:C(),borderWidth:Ee(),contrast:w(),grayscale:ae(),hueRotate:w(),invert:ae(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Mo,ee],inset:Ce(),margin:Ce(),opacity:w(),padding:C(),saturate:w(),scale:w(),sepia:ae(),skew:w(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",m]}],container:["container"],columns:[{columns:[te]}],"break-after":[{"break-after":c()}],"break-before":[{"break-before":c()}],"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:[...ze(),m]}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-bt":[{"overflow-bt":ce()}],overscroll:[{overscroll:de()}],"overscroll-x":[{"overscroll-x":de()}],"overscroll-bt":[{"overscroll-bt":de()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-bt":[{"inset-bt":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],W:[{W:["auto",ke,m]}],basis:[{basis:Ce()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",m]}],grow:[{grow:ae()}],shrink:[{shrink:ae()}],order:[{order:["first","last","none",ke,m]}],"grid-cols":[{"grid-cols":[Te]}],"col-start-end":[{col:["auto",{span:["full",ke,m]},m]}],"col-start":[{"col-start":we()}],"col-end":[{"col-end":we()}],"grid-rows":[{"grid-rows":[Te]}],"row-start-end":[{row:["auto",{span:[ke,m]},m]}],"row-start":[{"row-start":we()}],"row-end":[{"row-end":we()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",m]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",m]}],gap:[{gap:[b]}],"gap-x":[{"gap-x":[b]}],"gap-bt":[{"gap-bt":[b]}],"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"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],ps:[{ps:[I]}],pe:[{pe:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[De]}],"space-x-reverse":["space-x-reverse"],"space-bt":[{"space-bt":[De]}],"space-bt-reverse":["space-bt-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",m,t]}],"min-w":[{"min-w":[m,t,"min","max","fit"]}],"max-w":[{"max-w":[m,t,"none","full","min","max","fit","prose",{screen:[te]},te]}],h:[{h:[m,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[m,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[m,t,"auto","min","max","fit"]}],"font-size":[{text:["base",te,ee]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Oe]}],"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",m]}],"line-clamp":[{"line-clamp":["none",me,Oe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",K,m]}],"list-image":[{"list-image":["none",m]}],"list-style-type":[{list:["none","disc","decimal",m]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...pe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",K,ee]}],"underline-offset":[{"underline-offset":["auto",K,m]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",m]}],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",m]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ze(),Lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","bt","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",So]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","bt","tl"]},Bo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[R]}],"gradient-via-pos":[{via:[R]}],"gradient-to-pos":[{to:[R]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],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-bt":[{"rounded-bt":[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-bt":[{"border-bt":[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-bt":[{"border-bt":[i]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...pe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-bt":[{"divide-bt":[i]}],"divide-bt-reverse":["divide-bt-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:pe()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-bt":[{"border-bt":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-bt":[{"border-bt":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...pe()]}],"outline-offset":[{"outline-offset":[K,m]}],"outline-w":[{outline:[K,ee]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[K,ee]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",te,Do]}],"shadow-color":[{shadow:[Te]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Ae()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",te,m]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[f]}],saturate:[{saturate:[Y]}],sepia:[{sepia:[Z]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[Y]}],"backdrop-sepia":[{"backdrop-sepia":[Z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[r]}],"border-spacing-x":[{"border-spacing-x":[r]}],"border-spacing-bt":[{"border-spacing-bt":[r]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",m]}],duration:[{duration:w()}],ease:[{ease:["linear","in","out","in-out",m]}],delay:[{delay:w()}],animate:[{animate:["none","spin","ping","pulse","bounce",m]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[F]}],"scale-x":[{"scale-x":[F]}],"scale-bt":[{"scale-bt":[F]}],rotate:[{rotate:[ke,m]}],"translate-x":[{"translate-x":[ye]}],"translate-bt":[{"translate-bt":[ye]}],"skew-x":[{"skew-x":[le]}],"skew-bt":[{"skew-bt":[le]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",m]}],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",m]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","bt","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","bt","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-bt":[{"touch-pan":["bt","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",m]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[K,ee,Oe]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-bt"],overscroll:["overscroll-x","overscroll-bt"],inset:["inset-x","inset-bt","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-bt":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-bt"],p:["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-bt","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-bt":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-bt"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-bt"],"border-w-x":["border-w-r","border-w-bt"],"border-w-bt":["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-bt"],"border-color-x":["border-color-r","border-color-bt"],"border-color-bt":["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-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-bt","touch-pz"],"touch-x":["touch"],"touch-bt":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var pt=Co(Vo);function p(...e){return pt((0,ut.clsx)(e))}var mt=require("@radix-ui/react-slot"),gt=require("class-variance-authority"),ft=ue(require("react")),bt=require("react/jsx-runtime"),Fo=(0,gt.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"}}}),B=ft.forwardRef(({asChild:e=!1,className:t,size:o,variant:s,...a},n)=>(0,bt.jsx)(e?mt.Slot:"button",{className:p(Fo({className:t,size:o,variant:s})),ref:n,...a}));B.displayName="Button";var vt=ue(require("react"));var Ue=vt.forwardRef(({className:e,type:t,...o},s)=>(0,bt.jsx)("input",{type:t,className:p("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:s,...o}));Ue.displayName="Input";function je(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}var yt=ue(require("react"));var ht=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:s,description:a="This endpoint requires authentication to sync functions."})=>{let[n,r]=(0,$e.useState)(!1),[i,d]=(0,$e.useState)(""),u=()=>{if(!t){d("No authentication URL provided");return}r(!0),d("");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){d("Popup blocked. Please allow popups for this site and try again."),r(!1);return}let b=setInterval(()=>{try{f.closed&&(clearInterval(b),r(!1),s(),o())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(b),r(!1),d("Authentication timed out. Please try again."))},6e5)}catch{d("Failed to open authentication window"),r(!1)}},g=async()=>{try{await navigator.clipboard.writeText(t),d("")}catch{d("Failed to copy URL to clipboard")}};return e?(0,bt.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center W-[1000]",children:(0,bt.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-[90%] shadow-lg",children:[(0,bt.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,bt.jsx)("p",{className:"text-sm text-gray-600 mb-4",children:a}),i&&(0,bt.jsx)("div",{className:"mb-4 p-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:i}),(0,bt.jsxs)("div",{className:"flex gap-2",children:[(0,bt.jsx)("button",{onClick:u,disabled:n||!t,className:`
7
7
  px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
8
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:`
9
+ `,children:n?"Authenticating...":"Authenticate"}),(0,bt.jsx)("button",{onClick:g,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,$.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:`
12
+ `,children:"Copy URL"}),(0,bt.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 Ge=({toolPart:e,index:t,addToolResult:o})=>{let[s,a]=yt.default.useState(!0),n=()=>{o(e.toolCallId,e.type,"Authentication completed"),a(!1)};switch(e.state){case"input-available":return(0,bt.jsxs)("div",{className:"mb-2",children:[(0,bt.jsx)(ht,{isOpen:s,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>a(!1),onSuccess:n,description:e.output?.reason||e.input?.reason}),!s&&(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,bt.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,bt.jsx)(bt.Fragment,{children:e.output==="Authentication completed"?(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})}):(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Authentication failed"]})})});default:return null}};var _e=ue(require("react"));var wt=({isOpen:e=!0,reason:t,onClose:o,onApprove:s,onDeny:a,title:n="Approval Required"})=>{let[r,i]=(0,W.useState)(!1),d=()=>{i(!0),s(),o()},u=()=>{i(!0),a(),o()},g=()=>{i(!0),a(),o()};return e?(0,bt.jsxs)("div",{className:"bg-white rounded-lg p-6 max-w-md w-full shadow-lg",children:[(0,bt.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:n}),(0,bt.jsx)("p",{className:"text-sm text-gray-600 mb-6",children:t}),(0,bt.jsxs)("div",{className:"flex gap-2",children:[(0,bt.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
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:`
15
+ `,children:r?"Processing...":"Approve"}),(0,bt.jsx)("button",{onClick:u,disabled:r,className:`
16
16
  px-4 py-2 text-white border-none rounded text-sm font-bold flex-1
17
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:`
18
+ `,children:r?"Processing...":"Deny"}),(0,bt.jsx)("button",{onClick:g,disabled:r,className:`
19
19
  px-4 py-2 text-white border-none rounded text-sm
20
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});
21
+ `,children:"Cancel"})]})]}):null};var Nt=({toolPart:e,index:t,addToolResult:o})=>{let[s,a]=_e.default.useState(!0),[n,r]=_e.default.useState(null),i=()=>{o(e.toolCallId,e.type,"Approved"),a(!1),r("approve")},d=()=>{o(e.toolCallId,e.type,"Denied"),a(!1),r("deny")};switch(e.state){case"input-available":return(0,bt.jsxs)("div",{className:"mb-2",children:[(0,bt.jsx)(wt,{isOpen:s,onApprove:i,onDeny:d,onClose:()=>a(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!s&&(0,bt.jsxs)(bt.Fragment,{children:[n==="approve"&&(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),n==="deny"&&(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,bt.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,bt.jsxs)(bt.Fragment,{children:[e.output==="approve"&&(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,bt.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,bt.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,bt.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,bt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var We=require("@radix-ui/react-use-controllable-state");var fe=ue(require("@radix-ui/react-collapsible")),be=fe.Root,ve=fe.CollapsibleTrigger,ne=fe.CollapsibleContent;var Tt=require("streamdown"),oe=(0,W.memo)(({className:e,...t})=>(0,bt.jsx)(Tt.Streamdown,{className:p("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);oe.displayName="Response";var Rt=(0,W.createContext)(null),Uo=()=>{let e=(0,W.useContext)(Rt);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},jo=1e3,$o=1e3,qe=(0,W.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:s=!0,onOpenChange:a,duration:n,children:r,...i})=>{let[d,u]=(0,We.useControllableState)({prop:o,defaultProp:s,onChange:a}),[g,f]=(0,We.useControllableState)({prop:n,defaultProp:0}),[b,k]=(0,W.useState)(!1),[R,x]=(0,W.useState)(null);(0,W.useEffect)(()=>{t?R===null&&x(Date.now()):R!==null&&(f(Math.ceil((Date.now()-R)/$o)),x(null))},[t,R,f]),(0,W.useEffect)(()=>{if(s&&!t&&d&&!b){let T=setTimeout(()=>{u(!1),k(!0)},jo);return()=>clearTimeout(T)}},[t,d,s,u,b]);let h=T=>{u(T)};return(0,bt.jsx)(Rt.Provider,{value:{isStreaming:t,isOpen:d,setIsOpen:u,duration:g},children:(0,bt.jsx)(be,{className:p("not-prose mb-4",e),onOpenChange:h,open:d,...i,children:r})})}),Go=(e,t)=>e||t===0?(0,bt.jsx)("p",{children:"Thinking..."}):t===void 0?(0,bt.jsx)("p",{children:"Thought for a few seconds"}):(0,bt.jsxs)("p",{children:["Thought for ",t," seconds"]}),Ke=(0,W.memo)(({className:e,children:t,...o})=>{let{isStreaming:s,isOpen:a,duration:n}=Uo();return(0,bt.jsx)(ve,{className:p("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(H.BrainIcon,{className:"size-4"}),Go(s,n),(0,bt.jsx)(H.ChevronDownIcon,{className:p("size-4 transition-transform",a?"rotate-180":"rotate-0")})]})})}),Je=(0,W.memo)(({className:e,children:t,...o})=>(0,bt.jsx)(ne,{className:p("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,bt.jsx)(oe,{className:"grid gap-2",children:t})}));qe.displayName="Reasoning";Ke.displayName="ReasoningTrigger";Je.displayName="ReasoningContent";var _o=(0,gt.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 xe({className:e,variant:t,...o}){return(0,bt.jsx)("div",{className:p(_o({variant:t}),e),...o})}var Qe=require("shiki"),Wo=(0,W.createContext)({code:""}),qo={name:"line-numbers",line(e,t){e.children.unshift({type:"element",tagName:"span",properties:{className:["inline-block","min-w-10","mr-4","text-right","select-none","text-muted-foreground"]},children:[{type:"text",value:String(t)}]})}};async function Ko(e,t,o=!1){let s=o?[qo]:[];return await Promise.all([(0,Qe.codeToHtml)(e,{lang:t,theme:"one-light",transformers:s}),(0,Qe.codeToHtml)(e,{lang:t,theme:"one-dark-pro",transformers:s})])}var Le=({code:e,language:t,showLineNumbers:o=!1,className:s,children:a,...n})=>{let[r,i]=(0,W.useState)(""),[d,u]=(0,W.useState)(""),g=(0,W.useRef)(!1);return(0,W.useEffect)(()=>(Ko(e,t,o).then(([f,b])=>{g.current||(i(f),u(b),g.current=!0)}),()=>{g.current=!1}),[e,t,o]),(0,bt.jsx)(Wo.Provider,{value:{code:e},children:(0,bt.jsx)("div",{className:p("group relative w-full overflow-hidden rounded-md border bg-background text-foreground",s),...n,children:(0,bt.jsxs)("div",{className:"relative",children:[(0,bt.jsx)("div",{className:"overflow-hidden dark:hidden [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:r}}),(0,bt.jsx)("div",{className:"hidden overflow-hidden dark:block [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:d}}),a&&(0,bt.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:a})]})})})};var Lt=({className:e,...t})=>(0,bt.jsx)(be,{className:p("not-prose mb-4 w-full rounded-md border",e),...t}),Jo=e=>{let t={"input-streaming":"Pending","input-available":"Running","approval-requested":"Awaiting Approval","approval-responded":"Responded","output-available":"Completed","output-error":"Error","output-denied":"Denied"};return(0,bt.jsxs)(xe,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,bt.jsx)(H.CircleIcon,{className:"size-4"}),"input-available":(0,bt.jsx)(H.ClockIcon,{className:"size-4 animate-pulse"}),"approval-requested":(0,bt.jsx)(H.ClockIcon,{className:"size-4 text-yellow-600"}),"approval-responded":(0,bt.jsx)(H.CheckCircleIcon,{className:"size-4 text-blue-600"}),"output-available":(0,bt.jsx)(H.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,bt.jsx)(H.XCircleIcon,{className:"size-4 text-red-600"}),"output-denied":(0,bt.jsx)(H.XCircleIcon,{className:"size-4 text-orange-600"})}[e],t[e]]})},Ht=({className:e,title:t,type:o,state:s,...a})=>(0,bt.jsxs)(ve,{className:p("flex w-full items-center justify-between gap-4 p-3",e),...a,children:[(0,bt.jsxs)("div",{className:"flex items-center gap-2",children:[(0,bt.jsx)(H.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,bt.jsx)("span",{className:"font-medium text-sm",children:t??o.split("-").slice(1).join("-")}),Jo(s)]}),(0,bt.jsx)(H.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),Bt=({className:e,...t})=>(0,bt.jsx)(ne,{className:p("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}),Dt=({className:e,input:t,...o})=>(0,bt.jsxs)("div",{className:p("space-bt-2 overflow-hidden p-4",e),...o,children:[(0,bt.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,bt.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,bt.jsx)(Le,{code:JSON.stringify(t,null,2),language:"json"})})]}),Et=({className:e,output:t,errorText:o,...s})=>{if(!(t||o))return null;let a=(0,bt.jsx)("div",{children:t});return typeof t=="object"&&!(0,W.isValidElement)(t)?a=(0,bt.jsx)(Le,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(a=(0,bt.jsx)(Le,{code:t,language:"json"})),(0,bt.jsxs)("div",{className:p("space-bt-2 p-4",e),...s,children:[(0,bt.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,bt.jsxs)("div",{className:p("overflow-x-auto rounded-md text-xs [&_table]:w-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,bt.jsx)("div",{children:o}),a]})]})};var zt=(0,W.createContext)(null),Qo=()=>{let e=(0,W.useContext)(zt);if(!e)throw new Error("ColleagueHandoff components must be used within ColleagueHandoff");return e},Xo=1e3,Yo=1e3,Ye=(0,W.memo)(({className:e,isStreaming:t=!1,name:o="Digital Colleague",open:s,defaultOpen:a=!0,onOpenChange:n,duration:r,children:i,...d})=>{let[u,g]=(0,We.useControllableState)({prop:s,defaultProp:a,onChange:n}),[f,b]=(0,We.useControllableState)({prop:r,defaultProp:0}),[k,R]=(0,W.useState)(!1),[x,h]=(0,W.useState)(null);(0,W.useEffect)(()=>{t?x===null&&h(Date.now()):x!==null&&(b(Math.ceil((Date.now()-x)/Yo)),h(null))},[t,x,b]),(0,W.useEffect)(()=>{if(a&&!t&&u&&!k){let I=setTimeout(()=>{g(!1),R(!0)},Xo);return()=>clearTimeout(I)}},[t,u,a,g,k]);let T=I=>{g(I)};return(0,bt.jsx)(zt.Provider,{value:{isStreaming:t,name:o,isOpen:u,setIsOpen:g,duration:f},children:(0,bt.jsx)(be,{className:p("not-prose mb-4",e),onOpenChange:T,open:u,...d,children:i})})}),Zo=(e,t,o)=>e||o===0?(0,bt.jsxs)("p",{children:["Asking our ",t,"..."]}):o===void 0?(0,bt.jsxs)("p",{children:["Got an answer from our ",t]}):(0,bt.jsxs)("p",{children:["Got an answer from our ",t," in ",o," seconds"]}),Ze=(0,W.memo)(({className:e,children:t,...o})=>{let{isStreaming:s,isOpen:a,name:n,duration:r}=Qo();return(0,bt.jsx)(ve,{className:p("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,bt.jsxs)(bt.Fragment,{children:[(0,bt.jsx)(H.Users,{className:"size-4"}),Zo(s,n,r),(0,bt.jsx)(H.ChevronDownIcon,{className:p("size-4 transition-transform",a?"rotate-180":"rotate-0")})]})})}),et=(0,W.memo)(({className:e,children:t,...o})=>(0,bt.jsx)(ne,{className:p("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,bt.jsx)(oe,{className:"grid gap-2",children:t})})),tt=(0,W.memo)(({className:e,children:t,...o})=>(0,bt.jsx)(ne,{className:p("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,bt.jsx)(oe,{className:"grid gap-2",children:t})}));Ye.displayName="ColleagueHandoff";Ze.displayName="ColleagueHandoffTrigger";et.displayName="ColleagueHandoffContent";tt.displayName="ColleagueHandoffQuery";var Pe=require("use-stick-to-bottom"),Ft=({className:e,...t})=>(0,bt.jsx)(Pe.StickToBottom,{className:p("relative flex-1 overflow-bt-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),Ut=({className:e,...t})=>(0,bt.jsx)(Pe.StickToBottom.Content,{className:p("flex flex-col gap-8 p-4",e),...t}),jt=({className:e,title:t="No messages yet",description:o="Start a conversation to see messages here",icon:s,children:a,...n})=>(0,bt.jsx)("div",{className:p("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...n,children:a??(0,bt.jsxs)(bt.Fragment,{children:[s&&(0,bt.jsx)("div",{className:"text-muted-foreground",children:s}),(0,bt.jsxs)("div",{className:"space-bt-1",children:[(0,bt.jsx)("h3",{className:"font-medium text-sm",children:t}),o&&(0,bt.jsx)("p",{className:"text-muted-foreground text-sm",children:o})]})]})}),$t=({className:e,...t})=>{let{isAtBottom:o,scrollToBottom:s}=(0,Pe.useStickToBottomContext)(),a=(0,W.useCallback)(()=>{s()},[s]);return!o&&(0,bt.jsx)(B,{className:p("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:a,size:"icon",type:"button",variant:"outline",...t,children:(0,bt.jsx)(H.ArrowDownIcon,{className:"size-4"})})};var se=ue(require("react"));var $=se.forwardRef(({className:e,...t},o)=>(0,bt.jsx)("div",{ref:o,className:p("rounded-xl border bg-card text-card-foreground shadow",e),...t}));$.displayName="Card";var Q=se.forwardRef(({className:e,...t},o)=>(0,bt.jsx)("div",{ref:o,className:p("flex flex-col space-bt-1.5 p-6",e),...t}));Q.displayName="CardHeader";var X=se.forwardRef(({className:e,...t},o)=>(0,bt.jsx)("div",{ref:o,className:p("font-semibold leading-none tracking-tight",e),...t}));X.displayName="CardTitle";var ot=se.forwardRef(({className:e,...t},o)=>(0,bt.jsx)("div",{ref:o,className:p("text-sm text-muted-foreground",e),...t}));ot.displayName="CardDescription";var G=se.forwardRef(({className:e,...t},o)=>(0,bt.jsx)("div",{ref:o,className:p("p-6 pt-0",e),...t}));G.displayName="CardContent";var Re=se.forwardRef(({className:e,...t},o)=>(0,bt.jsx)("div",{ref:o,className:p("flex items-center p-6 pt-0",e),...t}));Re.displayName="CardFooter";var Wt=require("date-fns");function Gt({taskId:e,polling:t=!0,system:o="payload"}){let[s,a]=(0,W.useState)(null),[n,r]=(0,W.useState)(!1),[i,d]=(0,W.useState)(null),u=async(f=!0)=>{if(e){f&&r(!0);try{let b=await fetch(`/api/tasks/${e}`);if(!b.ok)throw new Error(`Failed to fetch task: ${b.statusText}`);let k=await b.json();a(k)}catch(b){console.error("Error fetching task:",b),d(b instanceof Error?b:new Error("Unknown error occurred"))}finally{f&&r(!1)}}},g=()=>u(!1);return(0,W.useEffect)(()=>{e&&u(!0);let f=null;return e&&t&&(f=setInterval(g,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:s,loading:n,error:i}}var er=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"}},tr=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:s,taskData:a,error:n}=e||{};if(!t)return null;let r=null,i=!0,d=n,u=s!==void 0?s:!0;if(r=a||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:s,system:o,fetchLatest:u,taskData:r,error:d}),u){let{task:k,loading:R,error:x}=Gt({taskId:t,system:o});r=k,i=R,d=x}else i=!1;let g=er(r?.status||"todo"),f=tr(r?.status||"todo"),b=r?.dateLogged||new Date().toISOString();try{let k=new Date(r?.dateLogged||"");isNaN(k.getTime())||(b=(0,Wt.formatDistanceToNow)(k,{addSuffix:!0}))}catch{}return(0,bt.jsxs)($,{className:p("w-full max-w-md shadow-md",d&&"border border-destructive"),children:[(0,bt.jsxs)(Q,{className:"pb-2",children:[(0,bt.jsxs)("div",{className:"flex justify-between items-start",children:[(0,bt.jsx)(X,{className:"text-lg font-semibold",children:i?"Loading...":r?.name||"Task"}),(0,bt.jsx)(xe,{className:`${g}`,children:f})]}),r?.project&&(0,bt.jsxs)(ot,{className:"text-sm text-gray-500",children:["Project: ",r.project.name]})]}),(0,bt.jsx)(G,{className:"pb-2",children:i?(0,bt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):d?(0,bt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,bt.jsx)("p",{className:"text-sm text-foreground",children:r?.description||"......."})}),(0,bt.jsx)(Re,{className:"pt-2 flex items-center justify-between",children:(0,bt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,bt.jsx)(H.Clock,{className:"h-3 w-3 mr-1"}),(0,bt.jsxs)("span",{children:["Created ",b]}),(0,bt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,bt.jsxs)("span",{children:["Task #",t]})]})})]})}function Qt({artefact:e,taskId:t,taskData:o,loading:s=!1,error:a=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,Wt.formatDistanceToNow)(i,{addSuffix:!0}))}catch{}return(0,bt.jsxs)($,{className:"w-full max-w-md shadow-md",children:[(0,bt.jsx)(Q,{className:"pb-2",children:(0,bt.jsx)("div",{className:"flex justify-between items-start",children:(0,bt.jsx)(X,{className:"text-lg font-semibold",children:s?"Loading...":n.name})})}),(0,bt.jsx)(G,{className:"pb-2",children:s?(0,bt.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):a?(0,bt.jsx)("p",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,bt.jsx)("p",{className:"text-sm text-foreground",children:e})}),(0,bt.jsx)(Re,{className:"pt-2 flex items-center justify-between",children:(0,bt.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,bt.jsx)(H.Clock,{className:"h-3 w-3 mr-1"}),(0,bt.jsxs)("span",{children:["Created ",r]}),(0,bt.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,bt.jsxs)("span",{children:["Task #",n.id]})]})})]})}var or=e=>e.startsWith("image/")?(0,bt.jsx)(H.Image,{className:"h-4 w-4"}):e.startsWith("text/")?(0,bt.jsx)(H.FileText,{className:"h-4 w-4"}):(0,bt.jsx)(H.File,{className:"h-4 w-4"}),Xt=({message:e,addToolResult:t,status:o,messages:s})=>e.parts.map((a,n)=>{if(a.type==="text")return(0,bt.jsx)(oe,{children:a.text},`${n}`);if(a.type==="file"){let r=a;return(0,bt.jsx)("div",{className:"mb-2 p-2 bg-background/50 rounded-lg",children:(0,bt.jsxs)("div",{className:"flex items-center gap-2",children:[or(r.mediaType||"application/octet-stream"),(0,bt.jsx)("div",{className:"flex-1 min-w-0",children:(0,bt.jsx)("p",{className:"text-sm font-medium truncate",children:r.filename||r.url?.split("/").pop()||"File"})}),r.url&&(0,bt.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>window.open(r.url,"_blank"),className:"h-8 w-8 p-0",children:(0,bt.jsx)(H.Download,{className:"h-4 w-4"})})]})},n)}if(a.type.startsWith("tool-")){let r=a,i=a.type.replace("tool-","");if(a.type.startsWith("tool-dc_a2a"))return(0,bt.jsxs)(Ye,{name:r?.input?.dcName||"Digital Colleague",className:"w-full",isStreaming:o==="streaming"&&n===e.parts.length-1&&e.id===s.at(-1)?.id,children:[(0,bt.jsx)(Ze,{}),(0,bt.jsx)(tt,{children:r?.input?.query}),(0,bt.jsx)(et,{children:r?.output})]},`${n}`);if(i==="task")switch(r.state){case"input-available":return(0,bt.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},n);case"output-available":return(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsx)(qt,{data:{id:r.output?.id||r.input?.id,fetchLatest:!1,taskData:r.output||r.input}})},n);case"output-error":return(0,bt.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",r.errorText]},n);default:return null}if(a.type==="tool-requestEndpointLogin")return(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsx)(Ge,{toolPart:r,index:n,addToolResult:t??(()=>{})})},n);if(a.type==="tool-authenticate")return(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsx)(Ge,{toolPart:r,index:n,addToolResult:t??(()=>{})})},n);if(a.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",r),(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsx)(Nt,{toolPart:r,index:n,addToolResult:t??(()=>{})})},n);if(i==="artefact")switch(r.state){case"input-available":return(0,bt.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},n);case"output-available":return(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsx)(Qt,{artefact:r.output?.description||"",taskId:r.output?.id||r.input?.id,taskData:r.output||r.input})},n);case"output-error":return(0,bt.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",r.errorText]},n);default:return null}return(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsxs)($,{className:"w-full max-w-md",children:[(0,bt.jsx)(Q,{children:(0,bt.jsx)(X,{className:"text-lg",children:i})}),(0,bt.jsxs)(G,{children:[r.state==="input-available"&&(0,bt.jsxs)("p",{className:"text-sm",children:["Processing ",i,"..."]}),r.state==="output-available"&&(0,bt.jsx)("pre",{className:"text-sm",children:JSON.stringify(r.output,null,2)}),r.state==="output-error"&&(0,bt.jsxs)("p",{className:"text-sm text-red-500",children:["Error: ",r.errorText]})]})]})},n)}if(a.type.startsWith("data-")){let r=a,i=a.type.replace("data-","");return i==="reference"?(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsx)($,{className:"w-full",children:(0,bt.jsx)(G,{className:"p-4",children:(0,bt.jsx)("div",{className:"space-bt-2",children:r.data?.references?.map((d,u)=>(0,bt.jsxs)("div",{className:"flex items-center gap-2 p-2 rounded-md bg-muted/50",children:[(0,bt.jsx)(xe,{variant:"outline",children:d.type||"link"}),(0,bt.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,bt.jsx)("p",{className:"text-sm font-medium truncate",children:d.title}),d.description&&(0,bt.jsx)("p",{className:"text-xs text-muted-foreground truncate",children:d.description})]}),d.url&&(0,bt.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>window.open(d.url,"_blank"),className:"h-8 w-8 p-0",children:(0,bt.jsx)(H.ExternalLink,{className:"h-4 w-4"})})]},u))})})})},n):i==="menu"?(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsxs)($,{className:"w-full",children:[(0,bt.jsx)(Q,{children:(0,bt.jsx)(X,{className:"text-lg",children:r.data?.title})}),(0,bt.jsx)(G,{children:(0,bt.jsx)("div",{className:"space-bt-2",children:r.data?.items?.map((d,u)=>(0,bt.jsx)(B,{variant:"outline",className:"w-full justify-start",onClick:d.action,children:(0,bt.jsxs)("div",{className:"text-left",children:[(0,bt.jsx)("p",{className:"font-medium",children:d.label}),d.description&&(0,bt.jsx)("p",{className:"text-xs text-muted-foreground",children:d.description})]})},u))})})]})},n):(0,bt.jsx)("div",{className:"mb-2",children:(0,bt.jsxs)($,{className:"w-full max-w-md",children:[(0,bt.jsx)(Q,{children:(0,bt.jsx)(X,{className:"text-lg",children:i})}),(0,bt.jsx)(G,{children:(0,bt.jsx)("pre",{className:"text-sm",children:JSON.stringify(r.data,null,2)})})]})},n)}if(a.type==="reasoning")return(0,bt.jsxs)(qe,{className:"w-full",isStreaming:o==="streaming"&&n===e.parts.length-1&&e.id===s.at(-1)?.id,children:[(0,bt.jsx)(Ke,{}),(0,bt.jsx)(Je,{children:a.text})]},`${n}`);if(a.type==="dynamic-tool")return(0,bt.jsxs)(Lt,{defaultOpen:a.state!=="output-available",children:[(0,bt.jsx)(Ht,{type:`tool-${a.toolName}`,state:a.state}),(0,bt.jsxs)(Bt,{children:[(0,bt.jsx)(Dt,{input:a.input}),(0,bt.jsx)(Et,{output:a.output,errorText:a.errorText})]})]},`${e.id}-${n}`)});var Zt=({className:e,from:t,...o})=>(0,bt.jsx)("div",{className:p("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}),rr=(0,gt.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"}}),eo=({children:e,className:t,variant:o,...s})=>(0,bt.jsx)("div",{className:p(rr({variant:o,className:t})),...s,children:e});function ar({messages:e,input:t,isTyping:o=!1,currentSessionTitle:s,capabilities:a,fileUploads:n,isDragOver:r,enableFileUpload:i,onInputChange:d,addToolResult:u,onSendMessage:g,onKeyPress:f,onFileUpload:b,onRemoveFile:k,onDragOver:R,className:x,status:h="ready"}){let T=(0,W.useRef)(null),I=(0,W.useRef)(null),Y=(0,W.useRef)(null),[F,Z]=(0,W.useState)(!1),[le,De]=(0,W.useState)({path:[],selectedItems:[],filters:{}});(0,W.useEffect)(()=>{T.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,W.useEffect)(()=>{F&&setTimeout(()=>{T.current?.scrollIntoView({behavior:"smooth"})},100)},[F]);let ye=()=>je(le),de=()=>{let c=[];return a.forEach(w=>{w.actions&&w.actions.forEach(q=>{c.push({label:q.label,action:()=>ce(q.id,{path:[w],selectedItems:[],filters:{}})})}),w.children&&w.children.forEach(q=>{q.type==="list"&&q.data&&c.push({label:`View ${q.name}`,action:()=>Z(!0)})})}),c.slice(0,5)},ce=(c,w)=>{console.log("Capability action:",c,w);let q=`Executing ${c} with context: ${JSON.stringify(w.path.map(Me=>Me.name))}`;Z(!1)},Ce=je({path:[],selectedItems:[],filters:{}}),C=c=>{b(c.target.files),c.target.files&&(c.target.value="")},Ee=c=>{c.preventDefault(),R(!0)},we=c=>{c.preventDefault(),R(!1)},ze=c=>{c.preventDefault(),R(!1),b(c.dataTransfer.files)},pe=c=>{if(c===0)return"0 Bytes";let w=1024,q=["Bytes","KB","MB","GB"],Me=Math.floor(Math.log(c)/Math.log(w));return parseFloat((c/Math.pow(w,Me)).toFixed(2))+" "+q[Me]},Ae=c=>c.startsWith("image/")?(0,bt.jsx)(H.Image,{className:"h-4 w-4"}):c.startsWith("text/")?(0,bt.jsx)(H.FileText,{className:"h-4 w-4"}):(0,bt.jsx)(H.File,{className:"h-4 w-4"}),Ne={messages:e,currentSessionTitle:s,capabilities:a,currentCapabilityContext:le,contextualActions:Ce,getQuickSuggestions:de().map(c=>c.label)},ae=()=>{navigator.clipboard.writeText(JSON.stringify(Ne,null,2)),alert("Debug info copied to clipboard")};return(0,bt.jsxs)("div",{className:`h-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${x||""}`,children:[(0,bt.jsxs)(Ft,{className:"relative flex-1 h-full size-full",children:[(0,bt.jsx)(Ut,{children:e.length===0?(0,bt.jsx)(jt,{description:"Messages will appear here as the conversation progresses.",icon:(0,bt.jsx)(H.MessageSquareIcon,{className:"size-6"}),title:"Start a conversation"}):e.map((c,w)=>(0,bt.jsx)(Zt,{from:c.role,children:(0,bt.jsx)(eo,{children:Xt({message:c,addToolResult:u??(()=>{}),status:h,messages:e})})},w))}),(0,bt.jsx)($t,{})]}),n.length>0&&(0,bt.jsx)("div",{className:"p-4 border-t bg-muted/10",children:(0,bt.jsx)("div",{className:"flex flex-wrap gap-2",children:n.map(c=>(0,bt.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg p-2 border",children:[Ae(c.file.type),(0,bt.jsx)("span",{className:"text-sm font-medium",children:c.file.name}),(0,bt.jsx)("span",{className:"text-xs text-muted-foreground",children:pe(c.file.size)}),(0,bt.jsx)(B,{variant:"ghost",size:"sm",onClick:()=>k(c.id),className:"h-6 w-6 p-0",children:(0,bt.jsx)(H.X,{className:"h-4 w-4"})})]},c.id))})}),(0,bt.jsxs)("div",{className:"border rounded-2xl p-4 bg-muted/20",children:[(0,bt.jsxs)("div",{className:"flex gap-3",children:[(0,bt.jsx)(Ue,{value:t,onChange:c=>d(c.target.value),onKeyPress:f,placeholder:"How can I help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),i&&(0,bt.jsx)(B,{variant:"outline",size:"icon",onClick:()=>Y.current?.click(),className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,bt.jsx)(H.Paperclip,{className:"h-4 w-4"})}),(0,bt.jsx)(B,{onClick:g,disabled:!t.trim()&&n.length===0||o,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,bt.jsx)(H.Send,{className:"h-4 w-4"})})]}),(0,bt.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,bt.jsxs)(B,{onClick:()=>Z(!F),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,bt.jsx)(H.Menu,{className:"h-3 w-3 mr-1"}),F?"Hide":"Show"," Capabilities"]}),(0,bt.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[ye().map((c,w)=>(0,bt.jsx)(B,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>ce(c.id,le),children:c.label},`context-${c.id}`)),ye().length===0&&de().map((c,w)=>(0,bt.jsx)(B,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:c.action,children:c.label},`suggestion-${w}`)),(0,bt.jsx)(B,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:ae,children:"Debug"})]})]}),i&&(0,bt.jsx)("input",{ref:Y,type:"file",multiple:!0,onChange:C,className:"hidden"})]})]})}0&&(module.exports={ChatInterface});
@@ -1 +1 @@
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
+ import{a}from"../../chunk-MCOHKE2T.mjs";import"../../chunk-6ZMZX5TB.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-5Y6FKL5W.mjs";import"../../chunk-2TUBS2HM.mjs";import"../../chunk-JQL4XGAF.mjs";import"../../chunk-G3BOVXUM.mjs";import"../../chunk-EW6KWAHS.mjs";import"../../chunk-IUVPH5LV.mjs";import"../../chunk-YRDJBAYA.mjs";import"../../chunk-MTA6RFZ7.mjs";import"../../chunk-SH5SK6V2.mjs";import"../../chunk-6OT5PQXV.mjs";import"../../chunk-YPZAYXNQ.mjs";import"../../chunk-RL6365DN.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-TIAA3ZN3.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-Q2DPE66H.mjs";import"../../chunk-4QRKVSTE.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 +1 @@
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
+ 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 +1 @@
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
+ 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,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{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};
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};
@@ -1 +1 @@
1
- import{a,b,c}from"../../../chunk-TIAA3ZN3.mjs";import"../../../chunk-SOLZ4VQH.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 Message,c as MessageAvatar,b as MessageContent};
1
+ import{a,b,c}from"../../../chunk-TIAA3ZN3.mjs";import"../../../chunk-SOLZ4VQH.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 Message,c as MessageAvatar,b as MessageContent};