cortex-react-components 2.27.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 (219) 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-FZX3ZPEU.mjs → chunk-4LUF5GZ6.mjs} +1 -1
  4. package/dist/chunk-6UULUGR2.mjs +1 -0
  5. package/dist/chunk-6ZMZX5TB.mjs +1 -0
  6. package/dist/{chunk-GHOL5L32.mjs → chunk-7BYNW77I.mjs} +1 -1
  7. package/dist/{chunk-ZEALRBXW.mjs → chunk-7DDFZ2M3.mjs} +1 -1
  8. package/dist/{chunk-C4RWEPVF.mjs → chunk-7MPZOMXK.mjs} +1 -1
  9. package/dist/{chunk-75F3LJMX.mjs → chunk-AABB4TFO.mjs} +1 -1
  10. package/dist/{chunk-GTZJWMZR.mjs → chunk-ALEPCEWP.mjs} +1 -1
  11. package/dist/{chunk-TJZVV3XH.mjs → chunk-ATPB5HSG.mjs} +1 -1
  12. package/dist/{chunk-RGOKBIQ5.mjs → chunk-CC57QZMB.mjs} +1 -1
  13. package/dist/{chunk-OQBCIB4L.mjs → chunk-CK2TD4BY.mjs} +1 -1
  14. package/dist/{chunk-NBJLXJQ3.mjs → chunk-COBOHCBL.mjs} +1 -1
  15. package/dist/chunk-DNMM3Q72.mjs +9 -0
  16. package/dist/{chunk-LJXTXROJ.mjs → chunk-EM4CGGGV.mjs} +1 -1
  17. package/dist/{chunk-AJQHGVZ5.mjs → chunk-FB5PBKLV.mjs} +1 -1
  18. package/dist/{chunk-TVTTUSWM.mjs → chunk-FBEHQRZ4.mjs} +1 -1
  19. package/dist/{chunk-VKCDLKYH.mjs → chunk-FJ2HHNPX.mjs} +1 -1
  20. package/dist/{chunk-TYARLEAC.mjs → chunk-G2DQLEAJ.mjs} +1 -1
  21. package/dist/chunk-G3BOVXUM.mjs +4 -0
  22. package/dist/{chunk-3Y7QG6VP.mjs → chunk-IISYRLNU.mjs} +1 -1
  23. package/dist/{chunk-NINFDOV5.mjs → chunk-ITNR7N47.mjs} +1 -1
  24. package/dist/chunk-IUVPH5LV.mjs +4 -0
  25. package/dist/chunk-JQL4XGAF.mjs +4 -0
  26. package/dist/{chunk-EM3T2XYC.mjs → chunk-L2OBO2VZ.mjs} +1 -1
  27. package/dist/chunk-LEZ6G4X7.mjs +4 -0
  28. package/dist/{chunk-2O54GV6Q.mjs → chunk-LJFBHY4P.mjs} +1 -1
  29. package/dist/chunk-MCOHKE2T.mjs +1 -0
  30. package/dist/{chunk-SWE754OC.mjs → chunk-MH4YPGH4.mjs} +1 -1
  31. package/dist/{chunk-RJGYVDOU.mjs → chunk-MU47F4UR.mjs} +1 -1
  32. package/dist/{chunk-4FEVXBNU.mjs → chunk-NCJAMNMQ.mjs} +1 -1
  33. package/dist/{chunk-WIRQ5IRT.mjs → chunk-NDBSSX6Q.mjs} +1 -1
  34. package/dist/{chunk-7NWIK57W.mjs → chunk-NXAXOI33.mjs} +1 -1
  35. package/dist/{chunk-3HNU2NYP.mjs → chunk-QDP657UR.mjs} +1 -1
  36. package/dist/{chunk-KEK763EH.mjs → chunk-QKDYTCZC.mjs} +1 -1
  37. package/dist/{chunk-FE7ZGUPU.mjs → chunk-RV4XL2CG.mjs} +1 -1
  38. package/dist/{chunk-2BRDNDUB.mjs → chunk-SME3D72Q.mjs} +1 -1
  39. package/dist/{chunk-LEF6M5ZD.mjs → chunk-SNFBF6KT.mjs} +1 -1
  40. package/dist/{chunk-7TSR2LQB.mjs → chunk-TIAA3ZN3.mjs} +1 -1
  41. package/dist/{chunk-3NRXQBBS.mjs → chunk-TIIYFAV6.mjs} +1 -1
  42. package/dist/{chunk-HSQAHQNP.mjs → chunk-TKCFCYEQ.mjs} +1 -1
  43. package/dist/{chunk-OWL3KUE3.mjs → chunk-TKY52BNP.mjs} +1 -1
  44. package/dist/{chunk-7R47MHQE.mjs → chunk-TQKXHMD7.mjs} +1 -1
  45. package/dist/chunk-VFIMFZX5.mjs +1 -0
  46. package/dist/{chunk-CXOVEABI.mjs → chunk-VNKGAW4K.mjs} +1 -1
  47. package/dist/{chunk-I75OOO4H.mjs → chunk-VRHJOUL3.mjs} +1 -1
  48. package/dist/{chunk-TTWEHUP5.mjs → chunk-WRCRZUGO.mjs} +1 -1
  49. package/dist/{chunk-XMYXQR5W.mjs → chunk-X3YJJBFJ.mjs} +1 -1
  50. package/dist/{chunk-LAP57E2L.mjs → chunk-XJKNH5LL.mjs} +1 -1
  51. package/dist/{chunk-5MWZTJYP.mjs → chunk-YH72WKGC.mjs} +1 -1
  52. package/dist/chunk-YRDJBAYA.mjs +4 -0
  53. package/dist/chunk-ZLFZBT3K.mjs +1 -0
  54. package/dist/components/AdvancedComponents/index.js +8 -8
  55. package/dist/components/AdvancedComponents/index.mjs +1 -1
  56. package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.d.ts +7 -0
  57. package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.js +1 -0
  58. package/dist/components/AdvancedComponents/org-chart-component/CompanyNode.mjs +1 -0
  59. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.d.ts +2 -0
  60. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.js +8 -8
  61. package/dist/components/AdvancedComponents/org-chart-component/OrgChart.mjs +1 -1
  62. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.js +5 -5
  63. package/dist/components/AdvancedComponents/org-chart-component/OrgNode.mjs +1 -1
  64. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.d.ts +11 -2
  65. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.js +8 -8
  66. package/dist/components/AdvancedComponents/org-chart-component/OrgTree.mjs +1 -1
  67. package/dist/components/AdvancedComponents/org-chart-component/index.d.ts +2 -0
  68. package/dist/components/AdvancedComponents/org-chart-component/index.js +8 -8
  69. package/dist/components/AdvancedComponents/org-chart-component/index.mjs +1 -1
  70. package/dist/components/AdvancedComponents/org-chart-component/mockData.d.ts +9 -7
  71. package/dist/components/AdvancedComponents/org-chart-component/mockData.js +1 -1
  72. package/dist/components/AdvancedComponents/org-chart-component/mockData.mjs +1 -1
  73. package/dist/components/AdvancedComponents/org-chart-component/types/index.mjs +1 -1
  74. package/dist/components/AdvancedComponents/org-chart-component/types.d.ts +42 -0
  75. package/dist/components/AdvancedComponents/org-chart-component/types.js +1 -0
  76. package/dist/components/AdvancedComponents/org-chart-component/types.mjs +1 -0
  77. package/dist/components/AdvancedComponents/org-chart-component/utils.d.ts +2 -2
  78. package/dist/components/Blocks/Banner.mjs +1 -1
  79. package/dist/components/Blocks/CallToAction.mjs +1 -1
  80. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  81. package/dist/components/Blocks/Content.mjs +1 -1
  82. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  83. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  84. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  85. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  86. package/dist/components/Blocks/index.mjs +1 -1
  87. package/dist/components/Cards/ContentCard.mjs +1 -1
  88. package/dist/components/Cards/FeatureCard.mjs +1 -1
  89. package/dist/components/Cards/index.mjs +1 -1
  90. package/dist/components/Chat/ChatInterface.js +11 -11
  91. package/dist/components/Chat/ChatInterface.mjs +1 -1
  92. package/dist/components/Chat/Components/Message.js +1 -1
  93. package/dist/components/Chat/Components/Message.mjs +1 -1
  94. package/dist/components/Chat/CopilotInterface.js +11 -10
  95. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  96. package/dist/components/Chat/PartTypes/CodeBlock.d.ts +7 -5
  97. package/dist/components/Chat/PartTypes/CodeBlock.js +1 -1
  98. package/dist/components/Chat/PartTypes/CodeBlock.mjs +1 -1
  99. package/dist/components/Chat/PartTypes/ColleagueHandoff.d.ts +18 -0
  100. package/dist/components/Chat/PartTypes/ColleagueHandoff.js +5 -0
  101. package/dist/components/Chat/PartTypes/ColleagueHandoff.mjs +2 -0
  102. package/dist/components/Chat/PartTypes/Confirmation.d.ts +49 -0
  103. package/dist/components/Chat/PartTypes/Confirmation.js +4 -0
  104. package/dist/components/Chat/PartTypes/Confirmation.mjs +2 -0
  105. package/dist/components/Chat/PartTypes/Conversation.css +1 -0
  106. package/dist/components/Chat/PartTypes/Conversation.d.ts +15 -0
  107. package/dist/components/Chat/PartTypes/Conversation.js +4 -0
  108. package/dist/components/Chat/PartTypes/Conversation.mjs +2 -0
  109. package/dist/components/Chat/PartTypes/MessageHandler.js +8 -7
  110. package/dist/components/Chat/PartTypes/MessageHandler.mjs +1 -1
  111. package/dist/components/Chat/PartTypes/Tool.d.ts +12 -11
  112. package/dist/components/Chat/PartTypes/Tool.js +1 -1
  113. package/dist/components/Chat/PartTypes/Tool.mjs +1 -1
  114. package/dist/components/Chat/PartTypes/index.d.ts +3 -0
  115. package/dist/components/Chat/PartTypes/index.js +7 -6
  116. package/dist/components/Chat/PartTypes/index.mjs +1 -1
  117. package/dist/components/Chat/demo-long-messages.js +18 -17
  118. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  119. package/dist/components/Chat/demo-tests.js +80 -79
  120. package/dist/components/Chat/demo-tests.mjs +1 -1
  121. package/dist/components/Chat/demo.js +11 -10
  122. package/dist/components/Chat/demo.mjs +1 -1
  123. package/dist/components/Chat/example-usage.js +12 -11
  124. package/dist/components/Chat/example-usage.mjs +1 -1
  125. package/dist/components/Chat/example-with-vercel-ai.js +11 -10
  126. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  127. package/dist/components/Chat/index.d.ts +0 -2
  128. package/dist/components/Chat/index.js +12 -14
  129. package/dist/components/Chat/index.mjs +1 -1
  130. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  131. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  132. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  133. package/dist/components/DigitalColleagues/index.mjs +1 -1
  134. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  135. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  136. package/dist/components/Foundary/MainPage.mjs +1 -1
  137. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  138. package/dist/components/Foundary/RichText/index.mjs +1 -1
  139. package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
  140. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  141. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  142. package/dist/components/Foundary/Views/index.mjs +1 -1
  143. package/dist/components/Foundary/document-edit.mjs +1 -1
  144. package/dist/components/Foundary/document-preview-examples.mjs +1 -1
  145. package/dist/components/Foundary/document-preview.mjs +1 -1
  146. package/dist/components/Foundary/file-edit.mjs +1 -1
  147. package/dist/components/Foundary/index.mjs +1 -1
  148. package/dist/components/Foundary/knowledge-browser.mjs +1 -1
  149. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  150. package/dist/components/HeaderFooter/index.mjs +1 -1
  151. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  152. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  153. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  154. package/dist/components/Heros/PostHero/index.mjs +1 -1
  155. package/dist/components/Heros/RenderHero.mjs +1 -1
  156. package/dist/components/Heros/index.mjs +1 -1
  157. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  158. package/dist/components/Layouts/Print.mjs +1 -1
  159. package/dist/components/Layouts/SlideShow.mjs +1 -1
  160. package/dist/components/Layouts/index.mjs +1 -1
  161. package/dist/components/Menus/index.mjs +1 -1
  162. package/dist/components/Payload/RichText/index.mjs +1 -1
  163. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  164. package/dist/components/Payload/index.mjs +1 -1
  165. package/dist/components/Projects/FileView.mjs +1 -1
  166. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  167. package/dist/components/Projects/ProjectPage.mjs +1 -1
  168. package/dist/components/Projects/ProjectView.mjs +1 -1
  169. package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
  170. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  171. package/dist/components/Projects/file-list.mjs +1 -1
  172. package/dist/components/Projects/index.mjs +1 -1
  173. package/dist/components/dc-temp/index.mjs +1 -1
  174. package/dist/components/index.js +35 -37
  175. package/dist/components/index.mjs +1 -1
  176. package/dist/components/ui/index.mjs +1 -1
  177. package/dist/globals.css +1 -1
  178. package/dist/index.js +36 -38
  179. package/dist/index.mjs +1 -1
  180. package/dist/metafile-cjs.json +1 -1
  181. package/dist/metafile-esm.json +1 -1
  182. package/dist/pages/Blog.mjs +1 -1
  183. package/dist/pages/Documentation.mjs +1 -1
  184. package/dist/pages/IndexPage.mjs +1 -1
  185. package/dist/pages/Intranet.mjs +1 -1
  186. package/dist/pages/LandingPage.mjs +1 -1
  187. package/dist/pages/Page.mjs +1 -1
  188. package/dist/pages/Publish.mjs +1 -1
  189. package/dist/pages/Website.mjs +1 -1
  190. package/dist/sections/AboutSection.mjs +1 -1
  191. package/dist/sections/BlogDetail.mjs +1 -1
  192. package/dist/sections/BlogList.mjs +1 -1
  193. package/dist/sections/BlogListSection.mjs +1 -1
  194. package/dist/sections/ContactSection.mjs +1 -1
  195. package/dist/sections/PageSections.mjs +1 -1
  196. package/dist/sections/PricingSection.mjs +1 -1
  197. package/dist/sections/ServiceDetail.mjs +1 -1
  198. package/dist/sections/ServiceDetailSection.mjs +1 -1
  199. package/dist/sections/ServiceSection.mjs +1 -1
  200. package/dist/sections/index.mjs +1 -1
  201. package/package.json +3 -2
  202. package/dist/chunk-7JDMW5R3.mjs +0 -4
  203. package/dist/chunk-B7RZ4K6Y.mjs +0 -1
  204. package/dist/chunk-BAB3ATRB.mjs +0 -4
  205. package/dist/chunk-EPJJKGCG.mjs +0 -1
  206. package/dist/chunk-G6OGEIN4.mjs +0 -4
  207. package/dist/chunk-KQRQXBJ3.mjs +0 -9
  208. package/dist/chunk-N7M6FTIO.mjs +0 -4
  209. package/dist/chunk-SOTCQX2G.mjs +0 -1
  210. package/dist/chunk-UA2E23AS.mjs +0 -4
  211. package/dist/chunk-UJITFLIZ.mjs +0 -1
  212. package/dist/components/Chat/ChatInterfaceMessages.d.ts +0 -24
  213. package/dist/components/Chat/ChatInterfaceMessages.js +0 -7
  214. package/dist/components/Chat/ChatInterfaceMessages.mjs +0 -2
  215. package/dist/components/Chat/ChatMessage.d.ts +0 -19
  216. package/dist/components/Chat/ChatMessage.js +0 -7
  217. package/dist/components/Chat/ChatMessage.mjs +0 -1
  218. /package/dist/components/Chat/{ChatInterfaceMessages.css → PartTypes/ColleagueHandoff.css} +0 -0
  219. /package/dist/components/Chat/{ChatMessage.css → PartTypes/Confirmation.css} +0 -0
@@ -1 +1 @@
1
- import{a as l}from"../../chunk-RULSHTXR.mjs";import{a as w}from"../../chunk-3Y7QG6VP.mjs";import"../../chunk-RSDUFAIB.mjs";import{a as m}from"../../chunk-EPTHSTUM.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import{a as i}from"../../chunk-RVRIMD6M.mjs";import"../../chunk-WVP4YQCP.mjs";import"../../chunk-J4IHIM6A.mjs";import"../../chunk-RYZTCMVC.mjs";import{a as p,b as q,c as r,d as s,e as t,f as u,g as v}from"../../chunk-GTZJWMZR.mjs";import"../../chunk-5MWZTJYP.mjs";import{a as n}from"../../chunk-AJQHGVZ5.mjs";import{a,b,c,d as h}from"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import{a as g}from"../../chunk-XGIYNUGC.mjs";import{a as f}from"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import{a as e}from"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import{a as d}from"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as j}from"../../chunk-H7D3PZKE.mjs";import{a as k}from"../../chunk-IQPZEEYJ.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as BannerBlock,c as CallToActionBlock,b as CallToActionBlockOld,e as CodeBlock,n as ContentBlock,d as CopyButton,u as DarkTop,h as FeaturesBlock,o as HeadingImage,g as ImageBlock,j as InfoTile,i as Insight,v as LightTop,k as MOTD,f as MediaBlock,l as ProposalSummary,w as RelatedPosts,q as RenderBlocks,s as RenderBlocksWithShapes,p as ReusableContentBlock,r as Theme,t as ThemeWithShapes,m as WhyUs};
1
+ import{a as m}from"../../chunk-EPTHSTUM.mjs";import{a as i}from"../../chunk-RVRIMD6M.mjs";import{a as l}from"../../chunk-RULSHTXR.mjs";import{a as w}from"../../chunk-IISYRLNU.mjs";import"../../chunk-RSDUFAIB.mjs";import"../../chunk-J4IHIM6A.mjs";import{a as o}from"../../chunk-JCH2CCQ7.mjs";import"../../chunk-WVP4YQCP.mjs";import"../../chunk-RYZTCMVC.mjs";import{a as p,b as q,c as r,d as s,e as t,f as u,g as v}from"../../chunk-ALEPCEWP.mjs";import"../../chunk-YH72WKGC.mjs";import{a as n}from"../../chunk-FB5PBKLV.mjs";import{a,b,c,d as h}from"../../chunk-SME3D72Q.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import{a as f}from"../../chunk-X3JZSN3W.mjs";import{a as g}from"../../chunk-XGIYNUGC.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-NSMXJCXE.mjs";import{a as e}from"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import{a as d}from"../../chunk-CGDLOY7W.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as k}from"../../chunk-IQPZEEYJ.mjs";import{a as j}from"../../chunk-H7D3PZKE.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as BannerBlock,c as CallToActionBlock,b as CallToActionBlockOld,e as CodeBlock,n as ContentBlock,d as CopyButton,u as DarkTop,h as FeaturesBlock,o as HeadingImage,g as ImageBlock,j as InfoTile,i as Insight,v as LightTop,k as MOTD,f as MediaBlock,l as ProposalSummary,w as RelatedPosts,q as RenderBlocks,s as RenderBlocksWithShapes,p as ReusableContentBlock,r as Theme,t as ThemeWithShapes,m as WhyUs};
@@ -1 +1 @@
1
- import{h as a}from"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ContentCard};
1
+ import{h as a}from"../../chunk-SME3D72Q.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ContentCard};
@@ -1 +1 @@
1
- import{g as a}from"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as FeatureCard};
1
+ import{g as a}from"../../chunk-SME3D72Q.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LEC6GEWS.mjs";import"../../chunk-NSMXJCXE.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-LKGCU7H6.mjs";import"../../chunk-5WV5ZFEP.mjs";import"../../chunk-KX2NCNCS.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-BG7QXNV5.mjs";import"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as FeatureCard};
@@ -1 +1 @@
1
- import{g as a,h as i}from"../../chunk-2BRDNDUB.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import{a as f}from"../../chunk-NSMXJCXE.mjs";import{a as h}from"../../chunk-LKGCU7H6.mjs";import{a as e}from"../../chunk-5WV5ZFEP.mjs";import{a as g}from"../../chunk-KX2NCNCS.mjs";import{a as d}from"../../chunk-LEC6GEWS.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as b}from"../../chunk-BG7QXNV5.mjs";import{a as c}from"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{i as ContentCard,b as CustomerCard,c as EventCard,a as FeatureCard,h as Hero,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
1
+ import{g as a,h as i}from"../../chunk-SME3D72Q.mjs";import"../../chunk-O5BAW5XQ.mjs";import"../../chunk-2QZUKVBA.mjs";import"../../chunk-TXVA6XJT.mjs";import"../../chunk-JYL3XIJX.mjs";import"../../chunk-4CU7D3X2.mjs";import"../../chunk-LVK4QE5D.mjs";import"../../chunk-X3JZSN3W.mjs";import"../../chunk-XGIYNUGC.mjs";import"../../chunk-2BR55L74.mjs";import"../../chunk-TEB67NCD.mjs";import"../../chunk-KFCSVEI6.mjs";import{a as d}from"../../chunk-LEC6GEWS.mjs";import{a as f}from"../../chunk-NSMXJCXE.mjs";import"../../chunk-LXZAOORS.mjs";import"../../chunk-MGYV46AJ.mjs";import"../../chunk-CGDLOY7W.mjs";import{a as h}from"../../chunk-LKGCU7H6.mjs";import{a as e}from"../../chunk-5WV5ZFEP.mjs";import{a as g}from"../../chunk-KX2NCNCS.mjs";import"../../chunk-3UMMMQEH.mjs";import"../../chunk-ZUA4KNIR.mjs";import{a as b}from"../../chunk-BG7QXNV5.mjs";import{a as c}from"../../chunk-BVFUCOCP.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-WISCWNL2.mjs";import"../../chunk-FVM5SQT2.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{i as ContentCard,b as CustomerCard,c as EventCard,a as FeatureCard,h as Hero,e as Image,g as PricingCard,d as ProjectCard,f as ServiceCard};
@@ -1,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 to=Object.create;var Le=Object.defineProperty;var oo=Object.getOwnPropertyDescriptor;var ro=Object.getOwnPropertyNames;var ao=Object.getPrototypeOf,no=Object.prototype.hasOwnProperty;var so=(e,t)=>{for(var o in t)Le(e,o,{get:t[o],enumerable:!0})},lt=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ro(t))!no.call(e,s)&&s!==o&&Le(e,s,{get:()=>t[s],enumerable:!(r=oo(t,s))||r.enumerable});return e};var j=(e,t,o)=>(o=e!=null?to(ao(e)):{},lt(t||!e||!e.__esModule?Le(o,"default",{value:e,enumerable:!0}):o,e)),io=e=>lt(Le({},"__esModule",{value:!0}),e);var rr={};so(rr,{ChatInterface:()=>or});module.exports=io(rr);var q=require("react"),xe=j(require("motion/react-client")),D=require("lucide-react");var De=j(require("react")),X=j(require("@radix-ui/react-avatar"));var vt=require("clsx");var Ke="-",lo=e=>{let t=po(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:n=>{let i=n.split(Ke);return i[0]===""&&i.length!==1&&i.shift(),pt(i,t)||co(n)},getConflictingClassGroupIds:(n,i)=>{let c=o[n]||[];return i&&r[n]?[...c,...r[n]]:c}}},pt=(e,t)=>{if(e.length===0)return t.classGroupId;let o=e[0],r=t.nextPart.get(o),s=r?pt(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;let a=e.join(Ke);return t.validators.find(({validator:n})=>n(a))?.classGroupId},ct=/^\[(.+)\]$/,co=e=>{if(ct.test(e)){let t=ct.exec(e)[1],o=t?.substring(0,t.indexOf(":"));if(o)return"arbitrary.."+o}},po=e=>{let{theme:t,prefix:o}=e,r={nextPart:new Map,validators:[]};return mo(Object.entries(e.classGroups),o).forEach(([a,n])=>{qe(n,r,a,t)}),r},qe=(e,t,o,r)=>{e.forEach(s=>{if(typeof s=="string"){let a=s===""?t:dt(t,s);a.classGroupId=o;return}if(typeof s=="function"){if(uo(s)){qe(s(r),t,o,r);return}t.validators.push({validator:s,classGroupId:o});return}Object.entries(s).forEach(([a,n])=>{qe(n,dt(t,a),o,r)})})},dt=(e,t)=>{let o=e;return t.split(Ke).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},uo=e=>e.isThemeGetter,mo=(e,t)=>t?e.map(([o,r])=>{let s=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([n,i])=>[t+n,i])):a);return[o,s]}):e,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,o=new Map,r=new Map,s=(a,n)=>{o.set(a,n),t++,t>e&&(t=0,r=o,o=new Map)};return{get(a){let n=o.get(a);if(n!==void 0)return n;if((n=r.get(a))!==void 0)return s(a,n),n},set(a,n){o.has(a)?o.set(a,n):s(a,n)}}},ut="!",fo=e=>{let{separator:t,experimentalParseClassName:o}=e,r=t.length===1,s=t[0],a=t.length,n=i=>{let c=[],g=0,h=0,f;for(let y=0;y<i.length;y++){let C=i[y];if(g===0){if(C===s&&(r||i.slice(y,y+a)===t)){c.push(i.slice(h,y)),h=y+a;continue}if(C==="/"){f=y;continue}}C==="["?g++:C==="]"&&g--}let v=c.length===0?i:i.substring(h),A=v.startsWith(ut),P=A?v.substring(1):v,x=f&&f>h?f-h:void 0;return{modifiers:c,hasImportantModifier:A,baseClassName:P,maybePostfixModifierPosition:x}};return o?i=>o({className:i,parseClassName:n}):n},bo=e=>{if(e.length<=1)return e;let t=[],o=[];return e.forEach(r=>{r[0]==="["?(t.push(...o.sort(),r),o=[]):o.push(r)}),t.push(...o.sort()),t},vo=e=>({cache:go(e.cacheSize),parseClassName:fo(e),...lo(e)}),ho=/\s+/,yo=(e,t)=>{let{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:s}=t,a=[],n=e.trim().split(ho),i="";for(let c=n.length-1;c>=0;c-=1){let g=n[c],{modifiers:h,hasImportantModifier:f,baseClassName:v,maybePostfixModifierPosition:A}=o(g),P=!!A,x=r(P?v.substring(0,A):v);if(!x){if(!P){i=g+(i.length>0?" "+i:i);continue}if(x=r(v),!x){i=g+(i.length>0?" "+i:i);continue}P=!1}let y=bo(h).join(":"),C=f?y+ut:y,B=C+x;if(a.includes(B))continue;a.push(B);let S=s(x,P);for(let M=0;M<S.length;++M){let K=S[M];a.push(C+K)}i=g+(i.length>0?" "+i:i)}return i};function xo(){let e=0,t,o,r="";for(;e<arguments.length;)(t=arguments[e++])&&(o=mt(t))&&(r&&(r+=" "),r+=o);return r}var mt=e=>{if(typeof e=="string")return e;let t,o="";for(let r=0;r<e.length;r++)e[r]&&(t=mt(e[r]))&&(o&&(o+=" "),o+=t);return o};function Co(e,...t){let o,r,s,a=n;function n(c){let g=t.reduce((h,f)=>f(h),e());return o=vo(g),r=o.cache.get,s=o.cache.set,a=i,i(c)}function i(c){let g=r(c);if(g)return g;let h=yo(c,o);return s(c,h),h}return function(){return a(xo.apply(null,arguments))}}var k=e=>{let t=o=>o[e]||[];return t.isThemeGetter=!0,t},gt=/^\[(?:([a-z-]+):)?(.+)\]$/i,wo=/^\d+\/\d+$/,No=new Set(["px","full","screen"]),ko=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,To=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Po=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)D-?((\d+)?\.?(\d+)[a-z]+|0)/,Ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Q=e=>be(e)||No.has(e)||wo.test(e),re=e=>ve(e,"length",zo),be=e=>!!e&&!Number.isNaN(Number(e)),_e=e=>ve(e,"number",be),ke=e=>!!e&&Number.isInteger(Number(e)),So=e=>e.endsWith("%")&&be(e.slice(0,-1)),b=e=>gt.test(e),ae=e=>ko.test(e),Mo=new Set(["length","size","percentage"]),Io=e=>ve(e,Mo,ft),Lo=e=>ve(e,"position",ft),Do=new Set(["image","url"]),Eo=e=>ve(e,Do,Oo),Bo=e=>ve(e,"",Ho),Te=()=>!0,ve=(e,t,o)=>{let r=gt.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):o(r[2]):!1},zo=e=>To.test(e)&&!Po.test(e),ft=()=>!1,Ho=e=>Ro.test(e),Oo=e=>Ao.test(e);var Fo=()=>{let e=k("colors"),t=k("spacing"),o=k("blur"),r=k("brightness"),s=k("borderColor"),a=k("borderRadius"),n=k("borderSpacing"),i=k("borderWidth"),c=k("contrast"),g=k("grayscale"),h=k("hueRotate"),f=k("invert"),v=k("gap"),A=k("gradientColorStops"),P=k("gradientColorStopPositions"),x=k("inset"),y=k("margin"),C=k("opacity"),B=k("padding"),S=k("saturate"),M=k("scale"),K=k("sepia"),ue=k("skew"),We=k("space"),Ce=k("translate"),me=()=>["auto","contain","none"],ie=()=>["auto","hidden","clip","visible","scroll"],we=()=>["auto",b,t],w=()=>[b,t],Ae=()=>["",Q,re],ge=()=>["auto",be,b],Se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],fe=()=>["solid","dashed","dotted","double","none"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ne=()=>["start","end","center","between","around","evenly","stretch"],le=()=>["","0",b],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[be,b];return{cacheSize:500,separator:":",theme:{colors:[Te],spacing:[Q,re],blur:["none","",ae,b],brightness:R(),borderColor:[e],borderRadius:["none","","full",ae,b],borderSpacing:w(),borderWidth:Ae(),contrast:R(),grayscale:le(),hueRotate:R(),invert:le(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[So,re],inset:we(),margin:we(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:le(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",b]}],container:["container"],columns:[{columns:[ae]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Se(),b]}],overflow:[{overflow:ie()}],"overflow-x":[{"overflow-x":ie()}],"overflow-y":[{"overflow-y":ie()}],overscroll:[{overscroll:me()}],"overscroll-x":[{"overscroll-x":me()}],"overscroll-y":[{"overscroll-y":me()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ke,b]}],basis:[{basis:we()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",b]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:["first","last","none",ke,b]}],"grid-cols":[{"grid-cols":[Te]}],"col-start-end":[{col:["auto",{span:["full",ke,b]},b]}],"col-start":[{"col-start":ge()}],"col-end":[{"col-end":ge()}],"grid-rows":[{"grid-rows":[Te]}],"row-start-end":[{row:["auto",{span:[ke,b]},b]}],"row-start":[{"row-start":ge()}],"row-end":[{"row-end":ge()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",b]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",b]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...Ne()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ne(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ne(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],ze:[{ze:[B]}],px:[{px:[B]}],py:[{py:[B]}],ps:[{ps:[B]}],ze:[{ze:[B]}],pt:[{pt:[B]}],pr:[{pr:[B]}],pb:[{pb:[B]}],pl:[{pl:[B]}],ze:[{ze:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[We]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[We]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",b,t]}],"min-w":[{"min-w":[b,t,"min","max","fit"]}],"max-w":[{"max-w":[b,t,"none","full","min","max","fit","prose",{screen:[ae]},ae]}],h:[{h:[b,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[b,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[b,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ae,re]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_e]}],"font-family":[{font:[Te]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",b]}],"line-clamp":[{"line-clamp":["none",be,_e]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Q,b]}],"list-image":[{"list-image":["none",b]}],"list-style-type":[{list:["none","disc","decimal",b]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[C]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[C]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Q,re]}],"underline-offset":[{"underline-offset":["auto",Q,b]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",b]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",b]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[C]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Se(),Lo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Io]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","ze","tl"]},Eo]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[P]}],"gradient-via-pos":[{via:[P]}],"gradient-to-pos":[{to:[P]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-ze":[{"rounded-ze":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-ze":[{"rounded-ze":[a]}],"rounded-ze":[{"rounded-ze":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-ze":[{"border-ze":[i]}],"border-opacity":[{"border-opacity":[C]}],"border-style":[{border:[...fe(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[C]}],"divide-style":[{divide:fe()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-ze":[{"border-ze":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...fe()]}],"outline-offset":[{"outline-offset":[Q,b]}],"outline-w":[{outline:[Q,re]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[C]}],"ring-offset-w":[{"ring-offset":[Q,re]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ae,Bo]}],"shadow-color":[{shadow:[Te]}],opacity:[{opacity:[C]}],"mix-blend":[{"mix-blend":[...Me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",ae,b]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[f]}],saturate:[{saturate:[S]}],sepia:[{sepia:[K]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[C]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[n]}],"border-spacing-x":[{"border-spacing-x":[n]}],"border-spacing-y":[{"border-spacing-y":[n]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",b]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",b]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",b]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[ke,b]}],"translate-x":[{"translate-x":[Ce]}],"translate-y":[{"translate-y":[Ce]}],"skew-x":[{"skew-x":[ue]}],"skew-y":[{"skew-y":[ue]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",b]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ze-resize","nw-resize","ze-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",b]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-ze":[{"scroll-ze":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-ze":[{"scroll-ze":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-ze":[{"scroll-ze":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",b]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Q,re,_e]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],ze:["px","py","ps","ze","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],ze:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-ze","rounded-ss","rounded-ze","rounded-ze","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-ze","rounded-ze"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-ze":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-ze"],"border-w-x":["border-w-r","border-w-ze"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-ze"],"border-color-x":["border-color-r","border-color-ze"],"border-color-y":["border-color-t","border-color-b"],"scroll-ze":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-ze":["scroll-px","scroll-py","scroll-ps","scroll-ze","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var bt=Co(Fo);function d(...e){return bt((0,vt.clsx)(e))}var ze=require("react/jsx-runtime"),Ee=De.forwardRef(({className:e,...t},o)=>(0,ze.jsx)(X.Root,{ref:o,className:d("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Ee.displayName=X.Root.displayName;var Vo=De.forwardRef(({className:e,...t},o)=>(0,ze.jsx)(X.Image,{ref:o,className:d("aspect-square h-full w-full",e),...t}));Vo.displayName=X.Image.displayName;var Be=De.forwardRef(({className:e,...t},o)=>(0,ze.jsx)(X.Fallback,{ref:o,className:d("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));Be.displayName=X.Fallback.displayName;var ht=require("@radix-ui/react-slot"),yt=require("class-variance-authority"),xt=j(require("react")),jo=(0,yt.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-accent text-accent-foreground hover:bg-background hover:text-accent hover:border-accent hover:border",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent",secondary:"bg-secondary text-secondary-foreground hover:bg-accent"}}}),z=xt.forwardRef(({asChild:e=!1,className:t,size:o,variant:r,...s},a)=>(0,ze.jsx)(e?ht.Slot:"button",{className:d(jo({className:t,size:o,variant:r})),ref:a,...s}));z.displayName="Button";var wt=j(require("react"));var Je=wt.forwardRef(({className:e,type:t,...o},r)=>(0,ze.jsx)("input",{type:t,className:d("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...o}));Je.displayName="Input";var Qe=j(require("react")),F=j(require("@radix-ui/react-scroll-area"));var Xe=Qe.forwardRef(({className:e,children:t,...o},r)=>(0,ze.jsxs)(F.Root,{ref:r,className:d("relative overflow-hidden",e),...o,children:[(0,ze.jsx)(F.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),(0,ze.jsx)(kt,{}),(0,ze.jsx)(F.Corner,{})]}));Xe.displayName=F.Root.displayName;var kt=Qe.forwardRef(({className:e,orientation:t="vertical",...o},r)=>(0,ze.jsx)(F.ScrollAreaScrollbar,{ref:r,orientation:t,className:d("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-ze border-ze-transparent ze-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent ze-[1px]",e),...o,children:(0,ze.jsx)(F.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));kt.displayName=F.ScrollAreaScrollbar.displayName;var G=require("motion/react");var Uo=(0,yt.cva)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Y({className:e,variant:t,...o}){return(0,ze.jsx)("div",{className:d(Uo({variant:t}),e),...o})}var Rt={primary:"bg-blue-500",secondary:"bg-gray-500",accent:"bg-purple-500",categories:["bg-green-500","bg-blue-500","bg-purple-500","bg-pink-500","bg-indigo-500","bg-orange-500"],lists:["bg-green-400","bg-blue-400","bg-purple-400","bg-pink-400","bg-indigo-400","bg-orange-400"],items:["bg-green-300","bg-blue-300","bg-purple-300","bg-pink-300","bg-indigo-300","bg-orange-300"]};function Ye(e){let t=e.path[e.path.length-1];return t?.actions?t.actions:[]}function At({capabilities:e,isOpen:t,onToggle:o,onActionSelect:r,onContextChange:s,colorScheme:a=Rt,className:n}){let[i,c]=(0,q.useState)([]),[g,h]=(0,q.useState)([]),f=i[i.length-1],v=f?.children||e,A=(S,M)=>{switch(S.type){case"category":return a.categories[M%a.categories.length];case"list":return a.lists[M%a.lists.length];case"item":return a.items[M%a.items.length];default:return a.primary}},P=(0,q.useMemo)(()=>({path:i,selectedItems:g,filters:{}}),[i,g]);(0,q.useEffect)(()=>{s&&s(P)},[P,s]);let x=S=>{S.type==="category"||S.type==="list"?c([...i,S]):S.type==="item"&&h([...g,S])},y=()=>{c(i.slice(0,-1))},C=S=>{c(i.slice(0,S+1))},B=()=>f?.actions?f.actions:[];return t?(0,ze.jsxs)("div",{className:d("w-full",n),children:[(0,ze.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,ze.jsxs)("div",{className:"flex items-center gap-2",children:[i.length>0&&(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:y,className:d("group ze-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,ze.jsx)(D.ChevronLeft,{className:d("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:-translate-x-0.5")})}),(0,ze.jsx)("h4",{className:"font-medium text-sm",children:f?.name||"Capabilities"})]}),(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.1,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.9,transition:{duration:.15,ease:[.4,0,.2,1]}},onClick:o,className:d("group ze-1 h-6 w-6 rounded-md backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:shadow-sm"),children:(0,ze.jsx)(D.X,{className:d("h-3 w-3 transition-transform duration-300 ease-in-out","group-hover:rotate-90")})})]}),i.length>0&&(0,ze.jsxs)("div",{className:"flex items-center gap-1 mb-3 text-xs text-muted-foreground",children:[(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>c([]),className:d("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,ze.jsxs)("span",{className:"relative",children:["Capabilities",(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})}),i.map((S,M)=>(0,ze.jsxs)("div",{className:"flex items-center gap-1",children:[(0,ze.jsx)(D.ChevronRight,{className:"h-2 w-2"}),(0,ze.jsx)(G.motion.button,{whileHover:{scale:1.05,transition:{duration:.3,ease:[.4,0,.2,1]}},onClick:()=>C(M),className:d("group relative transition-colors duration-300 ease-in-out hover:text-accent"),children:(0,ze.jsxs)("span",{className:"relative",children:[S.name,(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]})})]},S.id))]}),(0,ze.jsx)("div",{className:"max-h-40 overflow-y-auto",children:(0,ze.jsx)(G.AnimatePresence,{mode:"wait",children:(0,ze.jsx)(G.motion.div,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},exit:{opacity:0,y:4},transition:{duration:.2,ease:[.4,0,.2,1]},children:f?.type==="list"&&f.data?(0,ze.jsx)(Wo,{data:f.data,onItemSelect:S=>h([...g,S]),colorScheme:a}):(0,ze.jsx)(Go,{capabilities:v,onSelect:x,colorScheme:a})},f?.id||"root")})})]}):(0,ze.jsxs)(z,{onClick:o,size:"sm",variant:"outline",className:"rounded-full",children:[(0,ze.jsx)(D.Menu,{className:"h-4 w-4"}),(0,ze.jsx)("span",{className:"ml-2",children:"Capabilities"})]})}function Go({capabilities:e,onSelect:t,colorScheme:o}){return(0,ze.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((r,s)=>(0,ze.jsx)($o,{capability:r,onClick:()=>t(r),color:o.categories[s%o.categories.length]},r.id))})}function $o({capability:e,onClick:t,selected:o,color:r}){return(0,ze.jsxs)(G.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:d("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm",o&&"border-primary bg-accent scale-105"),onClick:t,children:[(0,ze.jsx)("div",{className:d("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",r)}),(0,ze.jsxs)("span",{className:"truncate relative",children:[e.name,(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),(e.children||e.data)&&(0,ze.jsx)(D.ChevronRight,{className:d("h-3 w-3 text-muted-foreground flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:translate-x-0.5")}),e.type==="list"&&e.data&&(0,ze.jsx)(Y,{variant:"secondary",className:d("text-xs h-5 px-1.5 flex-shrink-0","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:e.data.length})]})}function Wo({data:e,onItemSelect:t,colorScheme:o}){return(0,ze.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map((r,s)=>(0,ze.jsxs)(G.motion.button,{whileHover:{scale:1.02,transition:{duration:.3,ease:[.4,0,.2,1]}},whileTap:{scale:.95,transition:{duration:.15,ease:[.4,0,.2,1]}},className:d("group relative inline-flex items-center gap-2 px-3 py-2 rounded-lg border cursor-pointer","bg-background text-left text-sm font-medium backdrop-blur-sm","transition-all duration-300 ease-in-out","hover:bg-accent/50 hover:border-accent/50 hover:shadow-sm"),onClick:()=>t(r),children:[(0,ze.jsx)("div",{className:d("w-2 h-2 rounded-full flex-shrink-0 transition-transform duration-300 ease-in-out","group-hover:scale-125",o.items[s%o.items.length])}),(0,ze.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ze.jsxs)("span",{className:"truncate relative font-medium",children:[r.title,(0,ze.jsx)("span",{className:"absolute -bottom-0.5 left-1/2 w-0 h-0.5 bg-accent transform -translate-x-1/2 transition-all duration-300 ease-in-out group-hover:w-full"})]}),r.subtitle&&(0,ze.jsx)("div",{className:d("text-xs text-muted-foreground truncate","transition-colors duration-300 ease-in-out group-hover:text-accent/80"),children:r.subtitle})]}),r.value&&(0,ze.jsx)(Y,{variant:"secondary",className:d("text-xs h-5 px-1.5 flex-shrink-0 ml-2","transition-transform duration-300 ease-in-out group-hover:scale-110"),children:r.value})]},r.id))})}var Mt=j(require("react"));var St=({isOpen:e=!0,authUrl:t,onClose:o,onSuccess:r,description:s="This endpoint requires authentication to sync functions."})=>{let[a,n]=(0,q.useState)(!1),[i,c]=(0,q.useState)(""),g=()=>{if(!t){c("No authentication URL provided");return}n(!0),c("");try{let f=window.open(t,"oauth-popup","width=600,height=700,scrollbars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,status=no");if(!f){c("Popup blocked. Please allow popups for this site and try again."),n(!1);return}let v=setInterval(()=>{try{f.closed&&(clearInterval(v),n(!1),r(),o())}catch{}},1e3);setTimeout(()=>{f.closed||(f.close(),clearInterval(v),n(!1),c("Authentication timed out. Please try again."))},6e5)}catch{c("Failed to open authentication window"),n(!1)}},h=async()=>{try{await navigator.clipboard.writeText(t),c("")}catch{c("Failed to copy URL to clipboard")}};return e?(0,ze.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-[1000]",children:(0,ze.jsxs)("div",{className:"bg-white rounded-lg ze-6 max-w-md w-[90%] shadow-lg",children:[(0,ze.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:"Authentication Required"}),(0,ze.jsx)("ze",{className:"text-sm text-gray-600 mb-4",children:s}),i&&(0,ze.jsx)("div",{className:"mb-4 ze-2 bg-red-50 border border-red-200 rounded text-red-600 text-xs",children:i}),(0,ze.jsxs)("div",{className:"flex gap-2",children:[(0,ze.jsx)("button",{onClick:g,disabled:a||!t,className:`
6
+ "use strict";var 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
- ${a||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
9
- `,children:a?"Authenticating...":"Authenticate"}),(0,ze.jsx)("button",{onClick:h,disabled:!t,className:`
8
+ ${n||!t?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
9
+ `,children:n?"Authenticating...":"Authenticate"}),(0,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,ze.jsx)("button",{onClick:o,className:"px-4 py-2 bg-gray-500 hover:bg-gray-600 text-white border-none rounded text-sm cursor-pointer",children:"Cancel"})]})]})}):null};var et=({toolPart:e,index:t,addToolResult:o})=>{let[r,s]=Mt.default.useState(!0),a=()=>{o(e.toolCallId,e.type,"Authentication completed"),s(!1)};switch(e.state){case"input-available":return(0,ze.jsxs)("div",{className:"mb-2",children:[(0,ze.jsx)(St,{isOpen:r,authUrl:e.input?.url||e.input?.authUrl,onClose:()=>s(!1),onSuccess:a,description:e.output?.reason||e.input?.reason}),!r&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})})]},t);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,ze.jsx)(ze.Fragment,{children:e.output==="Authentication completed"?(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Authentication completed"]})}):(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Authentication failed"]})})});default:return null}};var tt=j(require("react"));var Lt=({isOpen:e=!0,reason:t,onClose:o,onApprove:r,onDeny:s,title:a="Approval Required"})=>{let[n,i]=(0,q.useState)(!1),c=()=>{i(!0),r(),o()},g=()=>{i(!0),s(),o()},h=()=>{i(!0),s(),o()};return e?(0,ze.jsxs)("div",{className:"bg-white rounded-lg ze-6 max-w-md w-full shadow-lg",children:[(0,ze.jsx)("h3",{className:"text-lg font-bold mb-3 text-primary",children:a}),(0,ze.jsx)("ze",{className:"text-sm text-gray-600 mb-6",children:t}),(0,ze.jsxs)("div",{className:"flex gap-2",children:[(0,ze.jsx)("button",{onClick:c,disabled:n,className:`
12
+ `,children:"Copy URL"}),(0,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
- ${n?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
15
- `,children:n?"Processing...":"Approve"}),(0,ze.jsx)("button",{onClick:g,disabled:n,className:`
14
+ ${r?"bg-gray-400 cursor-not-allowed":"bg-green-600 hover:bg-green-700 cursor-pointer"}
15
+ `,children:r?"Processing...":"Approve"}),(0,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
- ${n?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 cursor-pointer"}
18
- `,children:n?"Processing...":"Deny"}),(0,ze.jsx)("button",{onClick:h,disabled:n,className:`
17
+ ${r?"bg-gray-400 cursor-not-allowed":"bg-red-600 hover:bg-red-700 cursor-pointer"}
18
+ `,children:r?"Processing...":"Deny"}),(0,bt.jsx)("button",{onClick:g,disabled:r,className:`
19
19
  px-4 py-2 text-white border-none rounded text-sm
20
- ${n?"bg-gray-400 cursor-not-allowed":"bg-gray-500 hover:bg-gray-600 cursor-pointer"}
21
- `,children:"Cancel"})]})]}):null};var Dt=({toolPart:e,index:t,addToolResult:o})=>{let[r,s]=tt.default.useState(!0),[a,n]=tt.default.useState(null),i=()=>{o(e.toolCallId,e.type,"Approved"),s(!1),n("approve")},c=()=>{o(e.toolCallId,e.type,"Denied"),s(!1),n("deny")};switch(e.state){case"input-available":return(0,ze.jsxs)("div",{className:"mb-2",children:[(0,ze.jsx)(Lt,{isOpen:r,onApprove:i,onDeny:c,onClose:()=>s(!1),title:e.input?.title||"Approval Required",reason:e.output?.reason||e.input?.reason}),!r&&(0,ze.jsxs)(ze.Fragment,{children:[a==="approve"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),a==="deny"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]})]},t);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",e.errorText]},t);case"output-available":return(0,ze.jsxs)(ze.Fragment,{children:[e.output==="approve"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-green-100 text-green-800 text-sm font-medium border border-green-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"Approved"]})}),e.output==="deny"&&(0,ze.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,ze.jsxs)("div",{className:"inline-flex items-center px-4 py-2 rounded-full bg-red-100 text-red-800 text-sm font-medium border border-red-200",children:[(0,ze.jsx)("svg",{className:"h-4 w-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,ze.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Denied"]})})]});default:return null}};var ot=require("@radix-ui/react-use-controllable-state");var he=j(require("@radix-ui/react-collapsible")),He=he.Root,Oe=he.CollapsibleTrigger,Fe=he.CollapsibleContent;var Bt=require("streamdown"),Pe=(0,q.memo)(({className:e,...t})=>(0,ze.jsx)(Bt.Streamdown,{className:d("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),...t}),(e,t)=>e.children===t.children);Pe.displayName="Response";var Ht=(0,q.createContext)(null),_o=()=>{let e=(0,q.useContext)(Ht);if(!e)throw new Error("Reasoning components must be used within Reasoning");return e},qo=1e3,Ko=1e3,rt=(0,q.memo)(({className:e,isStreaming:t=!1,open:o,defaultOpen:r=!0,onOpenChange:s,duration:a,children:n,...i})=>{let[c,g]=(0,ot.useControllableState)({prop:o,defaultProp:r,onChange:s}),[h,f]=(0,ot.useControllableState)({prop:a,defaultProp:0}),[v,A]=(0,q.useState)(!1),[P,x]=(0,q.useState)(null);(0,q.useEffect)(()=>{t?P===null&&x(Date.now()):P!==null&&(f(Math.ceil((Date.now()-P)/Ko)),x(null))},[t,P,f]),(0,q.useEffect)(()=>{if(r&&!t&&c&&!v){let C=setTimeout(()=>{g(!1),A(!0)},qo);return()=>clearTimeout(C)}},[t,c,r,g,v]);let y=C=>{g(C)};return(0,ze.jsx)(Ht.Provider,{value:{isStreaming:t,isOpen:c,setIsOpen:g,duration:h},children:(0,ze.jsx)(He,{className:d("not-prose mb-4",e),onOpenChange:y,open:c,...i,children:n})})}),Jo=(e,t)=>e||t===0?(0,ze.jsx)("ze",{children:"Thinking..."}):t===void 0?(0,ze.jsx)("ze",{children:"Thought for a few seconds"}):(0,ze.jsxs)("ze",{children:["Thought for ",t," seconds"]}),at=(0,q.memo)(({className:e,children:t,...o})=>{let{isStreaming:r,isOpen:s,duration:a}=_o();return(0,ze.jsx)(Oe,{className:d("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...o,children:t??(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(D.BrainIcon,{className:"size-4"}),Jo(r,a),(0,ze.jsx)(D.ChevronDownIcon,{className:d("size-4 transition-transform",s?"rotate-180":"rotate-0")})]})})}),nt=(0,q.memo)(({className:e,children:t,...o})=>(0,ze.jsx)(Fe,{className:d("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...o,children:(0,ze.jsx)(Pe,{className:"grid gap-2",children:t})}));rt.displayName="Reasoning";at.displayName="ReasoningTrigger";nt.displayName="ReasoningContent";var st=require("react-syntax-highlighter"),Ue=require("react-syntax-highlighter/dist/esm/styles/prism"),Qo=(0,q.createContext)({code:""}),Ge=({code:e,language:t,showLineNumbers:o=!1,className:r,children:s,...a})=>(0,ze.jsx)(Qo.Provider,{value:{code:e},children:(0,ze.jsx)("div",{className:d("relative max-w-2xl overflow-hidden rounded-md border bg-background text-foreground",r),...a,children:(0,ze.jsxs)("div",{className:"relative",children:[(0,ze.jsx)(st.Prism,{className:"overflow-hidden dark:hidden",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:Ue.oneLight,children:e}),(0,ze.jsx)(st.Prism,{className:"hidden overflow-hidden dark:block",codeTagProps:{className:"font-mono text-sm"},customStyle:{margin:0,padding:"1rem",fontSize:"0.875rem",background:"hsl(var(--background))",color:"hsl(var(--foreground))"},language:t,lineNumberStyle:{color:"hsl(var(--muted-foreground))",paddingRight:"1rem",minWidth:"2.5rem"},showLineNumbers:o,style:Ue.oneDark,children:e}),s&&(0,ze.jsx)("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:s})]})})});var Ft=({className:e,...t})=>(0,ze.jsx)(He,{className:d("not-prose mb-4 w-full",e),...t}),Xo=e=>{let t={"input-streaming":"Pending","input-available":"Running","output-available":"Completed","output-error":"Error"};return(0,ze.jsxs)(Y,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[{"input-streaming":(0,ze.jsx)(D.CircleIcon,{className:"size-4"}),"input-available":(0,ze.jsx)(D.ClockIcon,{className:"size-4 animate-pulse"}),"output-available":(0,ze.jsx)(D.CheckCircleIcon,{className:"size-4 text-green-600"}),"output-error":(0,ze.jsx)(D.XCircleIcon,{className:"size-4 text-red-600"})}[e],t[e]]})},Vt=({className:e,type:t,state:o,...r})=>(0,ze.jsxs)(Oe,{className:d("flex w-full items-center justify-between gap-4 ze-3 pl-0 w-2xl",e),...r,children:[(0,ze.jsxs)("div",{className:"flex items-center gap-2",children:[(0,ze.jsx)(D.WrenchIcon,{className:"size-4 text-muted-foreground"}),(0,ze.jsx)("span",{className:"font-medium text-sm",children:t}),Xo(o)]}),(0,ze.jsx)(D.ChevronDownIcon,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),jt=({className:e,...t})=>(0,ze.jsx)(Fe,{className:d("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),Ut=({className:e,input:t,...o})=>(0,ze.jsxs)("div",{className:d("space-y-2 overflow-hidden ze-4",e),...o,children:[(0,ze.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),(0,ze.jsx)("div",{className:"rounded-md bg-muted/50",children:(0,ze.jsx)(Ge,{code:JSON.stringify(t,null,2),language:"json"})})]}),Gt=({className:e,output:t,errorText:o,...r})=>{if(!(t||o))return null;let s=(0,ze.jsx)("div",{children:t});return typeof t=="object"?s=(0,ze.jsx)(Ge,{code:JSON.stringify(t,null,2),language:"json"}):typeof t=="string"&&(s=(0,ze.jsx)(Ge,{code:t,language:"json"})),(0,ze.jsxs)("div",{className:d("space-y-2 ze-4",e),...r,children:[(0,ze.jsx)("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:o?"Error":"Result"}),(0,ze.jsxs)("div",{className:d("overflow-x-auto rounded-md text-xs [&_table]:w-full",o?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[o&&(0,ze.jsx)("div",{children:o}),s]})]})};var de=j(require("react"));var $=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("rounded-xl border bg-card text-card-foreground shadow",e),...t}));$.displayName="Card";var te=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("flex flex-col space-y-1.5 ze-6",e),...t}));te.displayName="CardHeader";var oe=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("font-semibold leading-none tracking-tight",e),...t}));oe.displayName="CardTitle";var it=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("text-sm text-muted-foreground",e),...t}));it.displayName="CardDescription";var W=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("ze-6 pt-0",e),...t}));W.displayName="CardContent";var Re=de.forwardRef(({className:e,...t},o)=>(0,ze.jsx)("div",{ref:o,className:d("flex items-center ze-6 pt-0",e),...t}));Re.displayName="CardFooter";var _t=require("date-fns");function $t({taskId:e,polling:t=!0,system:o="payload"}){let[r,s]=(0,q.useState)(null),[a,n]=(0,q.useState)(!1),[i,c]=(0,q.useState)(null),g=async(f=!0)=>{if(e){f&&n(!0);try{let v=await fetch(`/api/tasks/${e}`);if(!v.ok)throw new Error(`Failed to fetch task: ${v.statusText}`);let A=await v.json();s(A)}catch(v){console.error("Error fetching task:",v),c(v instanceof Error?v:new Error("Unknown error occurred"))}finally{f&&n(!1)}}},h=()=>g(!1);return(0,q.useEffect)(()=>{e&&g(!0);let f=null;return e&&t&&(f=setInterval(h,5e3)),()=>{f&&clearInterval(f)}},[e,t]),{task:r,loading:a,error:i}}var Yo=e=>{switch(e){case"backlog":return"bg-gray-200 text-gray-800";case"todo":return"bg-blue-200 text-blue-800";case"inProgress":return"bg-yellow-200 text-yellow-800";case"done":return"bg-green-200 text-green-800";case"cancelled":return"bg-red-200 text-red-800";default:return"bg-gray-200 text-gray-800"}},Zo=e=>{switch(e){case"inProgress":return"In Progress";default:return e.charAt(0).toUpperCase()+e.slice(1)}};function qt({data:e}){let{id:t,system:o,fetchLatest:r,taskData:s,error:a}=e||{};if(!t)return null;let n=null,i=!0,c=a,g=r!==void 0?r:!0;if(n=s||{id:t,name:"Loading...",description:"",status:"todo",dateLogged:new Date().toISOString(),project:void 0},console.log("ChatCardTask",{data:e,id:t,initialFetchLatest:r,system:o,fetchLatest:g,taskData:n,error:c}),g){let{task:A,loading:P,error:x}=$t({taskId:t,system:o});n=A,i=P,c=x}else i=!1;let h=Yo(n?.status||"todo"),f=Zo(n?.status||"todo"),v=n?.dateLogged||new Date().toISOString();try{let A=new Date(n?.dateLogged||"");isNaN(A.getTime())||(v=(0,_t.formatDistanceToNow)(A,{addSuffix:!0}))}catch{}return(0,ze.jsxs)($,{className:d("w-full max-w-md shadow-md",c&&"border border-destructive"),children:[(0,ze.jsxs)(te,{className:"pb-2",children:[(0,ze.jsxs)("div",{className:"flex justify-between items-start",children:[(0,ze.jsx)(oe,{className:"text-lg font-semibold",children:i?"Loading...":n?.name||"Task"}),(0,ze.jsx)(Y,{className:`${h}`,children:f})]}),n?.project&&(0,ze.jsxs)(it,{className:"text-sm text-gray-500",children:["Project: ",n.project.name]})]}),(0,ze.jsx)(W,{className:"pb-2",children:i?(0,ze.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):c?(0,ze.jsx)("ze",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,ze.jsx)("ze",{className:"text-sm text-foreground",children:n?.description||"......."})}),(0,ze.jsx)(Re,{className:"pt-2 flex items-center justify-between",children:(0,ze.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ze.jsx)(D.Clock,{className:"h-3 w-3 mr-1"}),(0,ze.jsxs)("span",{children:["Created ",v]}),(0,ze.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,ze.jsxs)("span",{children:["Task #",t]})]})})]})}function Qt({artefact:e,taskId:t,taskData:o,loading:r=!1,error:s=null}){let a=o||{id:t,name:"Loading...",description:"",status:"done",dateLogged:new Date().toISOString(),project:{id:-1,name:""}},n=a.dateLogged;try{let i=new Date(a.dateLogged);isNaN(i.getTime())||(n=(0,_t.formatDistanceToNow)(i,{addSuffix:!0}))}catch{}return(0,ze.jsxs)($,{className:"w-full max-w-md shadow-md",children:[(0,ze.jsx)(te,{className:"pb-2",children:(0,ze.jsx)("div",{className:"flex justify-between items-start",children:(0,ze.jsx)(oe,{className:"text-lg font-semibold",children:r?"Loading...":a.name})})}),(0,ze.jsx)(W,{className:"pb-2",children:r?(0,ze.jsx)("div",{className:"animate-pulse h-4 bg-gray-200 rounded w-3/4 mb-2"}):s?(0,ze.jsx)("ze",{className:"text-sm text-red-500",children:"Error loading task details"}):(0,ze.jsx)("ze",{className:"text-sm text-foreground",children:e})}),(0,ze.jsx)(Re,{className:"pt-2 flex items-center justify-between",children:(0,ze.jsxs)("div",{className:"flex items-center text-xs text-gray-500",children:[(0,ze.jsx)(D.Clock,{className:"h-3 w-3 mr-1"}),(0,ze.jsxs)("span",{children:["Created ",n]}),(0,ze.jsx)("span",{className:"mx-2",children:"\u2022"}),(0,ze.jsxs)("span",{children:["Task #",a.id]})]})})]})}var er=e=>e.startsWith("image/")?(0,ze.jsx)(D.Image,{className:"h-4 w-4"}):e.startsWith("text/")?(0,ze.jsx)(D.FileText,{className:"h-4 w-4"}):(0,ze.jsx)(D.File,{className:"h-4 w-4"}),Xt=({message:e,addToolResult:t,status:o,messages:r})=>e.parts.map((s,a)=>{if(s.type==="text")return(0,ze.jsx)(Pe,{children:s.text},`${a}`);if(s.type==="file"){let n=s;return(0,ze.jsx)("div",{className:"mb-2 ze-2 bg-background/50 rounded-lg",children:(0,ze.jsxs)("div",{className:"flex items-center gap-2",children:[er(n.mediaType||"application/octet-stream"),(0,ze.jsx)("div",{className:"flex-1 min-w-0",children:(0,ze.jsx)("ze",{className:"text-sm font-medium truncate",children:n.filename||n.url?.split("/").pop()||"File"})}),n.url&&(0,ze.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>window.open(n.url,"_blank"),className:"h-8 w-8 ze-0",children:(0,ze.jsx)(D.Download,{className:"h-4 w-4"})})]})},a)}if(s.type.startsWith("tool-")){let n=s,i=s.type.replace("tool-","");if(i==="task")switch(n.state){case"input-available":return(0,ze.jsx)("div",{className:"text-sm opacity-70",children:"Loading task..."},a);case"output-available":return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(qt,{data:{id:n.output?.id||n.input?.id,fetchLatest:!1,taskData:n.output||n.input}})},a);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},a);default:return null}if(s.type==="tool-requestEndpointLogin")return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(et,{toolPart:n,index:a,addToolResult:t??(()=>{})})},a);if(s.type==="tool-authenticate")return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(et,{toolPart:n,index:a,addToolResult:t??(()=>{})})},a);if(s.type==="tool-requestApproval")return console.log("Rendering PartApprovalTool with toolPart:",n),(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(Dt,{toolPart:n,index:a,addToolResult:t??(()=>{})})},a);if(i==="artefact")switch(n.state){case"input-available":return(0,ze.jsx)("div",{className:"text-sm opacity-70",children:"Loading artefact..."},a);case"output-available":return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)(Qt,{artefact:n.output?.description||"",taskId:n.output?.id||n.input?.id,taskData:n.output||n.input})},a);case"output-error":return(0,ze.jsxs)("div",{className:"text-sm text-red-500",children:["Error: ",n.errorText]},a);default:return null}return(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsxs)($,{className:"w-full max-w-md",children:[(0,ze.jsx)(te,{children:(0,ze.jsx)(oe,{className:"text-lg",children:i})}),(0,ze.jsxs)(W,{children:[n.state==="input-available"&&(0,ze.jsxs)("ze",{className:"text-sm",children:["Processing ",i,"..."]}),n.state==="output-available"&&(0,ze.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.output,null,2)}),n.state==="output-error"&&(0,ze.jsxs)("ze",{className:"text-sm text-red-500",children:["Error: ",n.errorText]})]})]})},a)}if(s.type.startsWith("data-")){let n=s,i=s.type.replace("data-","");return i==="reference"?(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsx)($,{className:"w-full",children:(0,ze.jsx)(W,{className:"ze-4",children:(0,ze.jsx)("div",{className:"space-y-2",children:n.data?.references?.map((c,g)=>(0,ze.jsxs)("div",{className:"flex items-center gap-2 ze-2 rounded-md bg-muted/50",children:[(0,ze.jsx)(Y,{variant:"outline",children:c.type||"link"}),(0,ze.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,ze.jsx)("ze",{className:"text-sm font-medium truncate",children:c.title}),c.description&&(0,ze.jsx)("ze",{className:"text-xs text-muted-foreground truncate",children:c.description})]}),c.url&&(0,ze.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>window.open(c.url,"_blank"),className:"h-8 w-8 ze-0",children:(0,ze.jsx)(D.ExternalLink,{className:"h-4 w-4"})})]},g))})})})},a):i==="menu"?(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsxs)($,{className:"w-full",children:[(0,ze.jsx)(te,{children:(0,ze.jsx)(oe,{className:"text-lg",children:n.data?.title})}),(0,ze.jsx)(W,{children:(0,ze.jsx)("div",{className:"space-y-2",children:n.data?.items?.map((c,g)=>(0,ze.jsx)(z,{variant:"outline",className:"w-full justify-start",onClick:c.action,children:(0,ze.jsxs)("div",{className:"text-left",children:[(0,ze.jsx)("ze",{className:"font-medium",children:c.label}),c.description&&(0,ze.jsx)("ze",{className:"text-xs text-muted-foreground",children:c.description})]})},g))})})]})},a):(0,ze.jsx)("div",{className:"mb-2",children:(0,ze.jsxs)($,{className:"w-full max-w-md",children:[(0,ze.jsx)(te,{children:(0,ze.jsx)(oe,{className:"text-lg",children:i})}),(0,ze.jsx)(W,{children:(0,ze.jsx)("pre",{className:"text-sm",children:JSON.stringify(n.data,null,2)})})]})},a)}if(s.type==="reasoning")return(0,ze.jsxs)(rt,{className:"w-full",isStreaming:o==="streaming"&&a===e.parts.length-1&&e.id===r.at(-1)?.id,children:[(0,ze.jsx)(at,{}),(0,ze.jsx)(nt,{children:s.text})]},`${a}`);if(s.type==="dynamic-tool")return(0,ze.jsxs)(Ft,{defaultOpen:s.state!=="output-available",children:[(0,ze.jsx)(Vt,{type:`tool-${s.toolName}`,state:s.state}),(0,ze.jsxs)(jt,{children:[(0,ze.jsx)(Ut,{input:s.input}),(0,ze.jsx)(Gt,{output:s.output,errorText:s.errorText})]})]},`${e.id}-${a}`)});var Zt=({className:e,from:t,...o})=>(0,$e.jsx)("div",{className:d("group flex w-full items-end justify-end gap-2 py-4",t==="user"?"is-user":"is-assistant flex-row-reverse justify-end",e),...o}),tr=(0,yt.cva)("is-user:dark flex flex-col gap-2 overflow-hidden rounded-lg text-sm",{variants:{variant:{contained:["max-w-[80%] px-4 py-3","group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground","group-[.is-assistant]:bg-secondary group-[.is-assistant]:text-foreground"],flat:["group-[.is-user]:max-w-[80%] group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground"]}},defaultVariants:{variant:"contained"}}),eo=({children:e,className:t,variant:o,...r})=>(0,$e.jsx)("div",{className:d(tr({variant:o,className:t})),...r,children:e});function or({messages:e,input:t,isTyping:o=!1,currentSessionTitle:r,capabilities:s,fileUploads:a,isDragOver:n,enableFileUpload:i,onInputChange:c,addToolResult:g,onSendMessage:h,onKeyPress:f,onFileUpload:v,onRemoveFile:A,onDragOver:P,className:x,status:y="ready"}){let C=(0,q.useRef)(null),B=(0,q.useRef)(null),S=(0,q.useRef)(null),[M,K]=(0,q.useState)(!1),[ue,We]=(0,q.useState)({path:[],selectedItems:[],filters:{}});(0,q.useEffect)(()=>{C.current?.scrollIntoView({behavior:"smooth"})},[e]),(0,q.useEffect)(()=>{M&&setTimeout(()=>{C.current?.scrollIntoView({behavior:"smooth"})},100)},[M]);let Ce=()=>Ye(ue),me=()=>{let u=[];return s.forEach(R=>{R.actions&&R.actions.forEach(J=>{u.push({label:J.label,action:()=>ie(J.id,{path:[R],selectedItems:[],filters:{}})})}),R.children&&R.children.forEach(J=>{J.type==="list"&&J.data&&u.push({label:`View ${J.name}`,action:()=>K(!0)})})}),u.slice(0,5)},ie=(u,R)=>{console.log("Capability action:",u,R);let J=`Executing ${u} with context: ${JSON.stringify(R.path.map(Ie=>Ie.name))}`;K(!1)},we=Ye({path:[],selectedItems:[],filters:{}}),w=u=>{v(u.target.files),u.target.files&&(u.target.value="")},Ae=u=>{u.preventDefault(),P(!0)},ge=u=>{u.preventDefault(),P(!1)},Se=u=>{u.preventDefault(),P(!1),v(u.dataTransfer.files)},fe=u=>{if(u===0)return"0 Bytes";let R=1024,J=["Bytes","KB","MB","GB"],Ie=Math.floor(Math.log(u)/Math.log(R));return parseFloat((u/Math.pow(R,Ie)).toFixed(2))+" "+J[Ie]},Me=u=>u.startsWith("image/")?(0,ze.jsx)(D.Image,{className:"h-4 w-4"}):u.startsWith("text/")?(0,ze.jsx)(D.FileText,{className:"h-4 w-4"}):(0,ze.jsx)(D.File,{className:"h-4 w-4"}),Ne={messages:e,currentSessionTitle:r,capabilities:s,currentCapabilityContext:ue,contextualActions:we,getQuickSuggestions:me().map(u=>u.label)},le=()=>{navigator.clipboard.writeText(JSON.stringify(Ne,null,2)),alert("Debug info copied to clipboard")};return(0,ze.jsxs)("div",{className:`h-full flex flex-col relative size-full shadow-sm max-w-4xl mx-auto ${x||""}`,children:[(0,ze.jsxs)(Xe,{ref:B,className:"flex-1 ze-4 bg-background border-0",onDragOver:Ae,onDragLeave:ge,onDrop:Se,children:[(0,ze.jsxs)("div",{className:d("space-y-4",n&&"ring-2 ring-primary ring-offset-2 bg-primary/5"),children:[(0,ze.jsx)(xe.animate,{children:e.map(u=>(0,ze.jsx)(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:(0,ze.jsx)(Zt,{from:u.role,children:(0,ze.jsx)(eo,{variant:"flat",children:Xt({message:u,addToolResult:g??(()=>{}),status:y,messages:e})})},u.id)},u.id))}),M&&(0,ze.jsxs)(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},className:"flex gap-3",children:[(0,ze.jsx)(Ee,{className:"h-8 w-8",children:(0,ze.jsx)(Be,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,ze.jsx)(D.Bot,{className:"h-4 w-4"})})}),(0,ze.jsx)("div",{className:"flex-1 bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,ze.jsx)(At,{capabilities:s,isOpen:M,onToggle:()=>K(!M),onActionSelect:ie,className:"w-full"})})]}),o&&(0,ze.jsxs)(xe.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"flex gap-3",children:[(0,ze.jsx)(Ee,{className:"h-8 w-8",children:(0,ze.jsx)(Be,{className:"bg-gradient-to-br from-purple-600 to-blue-600 text-white",children:(0,ze.jsx)(D.Bot,{className:"h-4 w-4"})})}),(0,ze.jsx)("div",{className:"bg-muted rounded-2xl px-4 py-3 shadow-sm",children:(0,ze.jsxs)("div",{className:"flex space-x-1",children:[(0,ze.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce"}),(0,ze.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),(0,ze.jsx)("div",{className:"w-2 h-2 bg-muted-foreground/50 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})})]})]}),(0,ze.jsx)("div",{ref:C})]}),a.length>0&&(0,ze.jsx)("div",{className:"ze-4 border-t bg-muted/10",children:(0,ze.jsx)("div",{className:"flex flex-wrap gap-2",children:a.map(u=>(0,ze.jsxs)("div",{className:"flex items-center gap-2 bg-background rounded-lg ze-2 border",children:[Me(u.file.type),(0,ze.jsx)("span",{className:"text-sm font-medium",children:u.file.name}),(0,ze.jsx)("span",{className:"text-xs text-muted-foreground",children:fe(u.file.size)}),(0,ze.jsx)(z,{variant:"ghost",size:"sm",onClick:()=>A(u.id),className:"h-6 w-6 ze-0",children:(0,ze.jsx)(D.X,{className:"h-4 w-4"})})]},u.id))})}),(0,ze.jsxs)("div",{className:"border rounded-2xl ze-4 bg-muted/20",children:[(0,ze.jsxs)("div",{className:"flex gap-3",children:[(0,ze.jsx)(Je,{value:t,onChange:u=>c(u.target.value),onKeyPress:f,placeholder:"How can ze help you today?",className:"flex-1 rounded-2xl bg-background shadow-sm",disabled:o}),i&&(0,ze.jsx)(z,{variant:"outline",size:"icon",onClick:()=>S.current?.click(),className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,ze.jsx)(D.Paperclip,{className:"h-4 w-4"})}),(0,ze.jsx)(z,{onClick:h,disabled:!t.trim()&&a.length===0||o,size:"icon",className:"rounded-2xl h-10 w-10 shadow-sm",children:(0,ze.jsx)(D.Send,{className:"h-4 w-4"})})]}),(0,ze.jsxs)("div",{className:"flex items-center gap-3 mt-3",children:[(0,ze.jsxs)(z,{onClick:()=>K(!M),variant:"outline",size:"sm",className:"rounded-full text-xs flex-shrink-0",children:[(0,ze.jsx)(D.Menu,{className:"h-3 w-3 mr-1"}),M?"Hide":"Show"," Capabilities"]}),(0,ze.jsxs)("div",{className:"flex flex-wrap gap-2 overflow-hidden",children:[Ce().map((u,R)=>(0,ze.jsx)(z,{variant:"default",size:"sm",className:"rounded-full text-xs bg-accent hover:bg-accent/80",onClick:()=>ie(u.id,ue),children:u.label},`context-${u.id}`)),Ce().length===0&&me().map((u,R)=>(0,ze.jsx)(z,{variant:"outline",size:"sm",className:"rounded-full text-xs",onClick:u.action,children:u.label},`suggestion-${R}`)),(0,ze.jsx)(z,{variant:"outline",size:"sm",className:"rounded-full text-xs ml-auto",onClick:le,children:"Debug"})]})]}),i&&(0,ze.jsx)("input",{ref:S,type:"file",multiple:!0,onChange:w,className:"hidden"})]})]})}0&&(module.exports={ChatInterface});
20
+ ${r?"bg-gray-400 cursor-not-allowed":"bg-gray-500 hover:bg-gray-600 cursor-pointer"}
21
+ `,children:"Cancel"})]})]}):null};var 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-UJITFLIZ.mjs";import"../../chunk-EPJJKGCG.mjs";import"../../chunk-MTA6RFZ7.mjs";import"../../chunk-SH5SK6V2.mjs";import"../../chunk-6OCLRAHU.mjs";import"../../chunk-5Y6FKL5W.mjs";import"../../chunk-EW6KWAHS.mjs";import"../../chunk-7JDMW5R3.mjs";import"../../chunk-UA2E23AS.mjs";import"../../chunk-6OT5PQXV.mjs";import"../../chunk-YPZAYXNQ.mjs";import"../../chunk-7TSR2LQB.mjs";import"../../chunk-QM5FOQHG.mjs";import"../../chunk-2LINLX4S.mjs";import"../../chunk-RL6365DN.mjs";import"../../chunk-LTTO57ZK.mjs";import"../../chunk-Q2DPE66H.mjs";import"../../chunk-FT3AE7L2.mjs";import"../../chunk-YNCJATT7.mjs";import"../../chunk-L5JPAKPM.mjs";import"../../chunk-ZUA4KNIR.mjs";import"../../chunk-SOLZ4VQH.mjs";import"../../chunk-CSBGSBEU.mjs";import"../../chunk-YO3GQYRJ.mjs";import"../../chunk-QTW33JYG.mjs";import"../../chunk-MDJREBVI.mjs";import"../../chunk-ZWHGOTSF.mjs";import"../../chunk-Q3G5UAAD.mjs";import"../../chunk-XGRRLABA.mjs";import"../../chunk-YEKQJ4YC.mjs";export{a as ChatInterface};
1
+ import{a}from"../../chunk-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};