@inkeep/cxkit-primitives 0.0.0-dev-20250221234142

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 (477) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/atoms/api/analytics/conversation.cjs +1 -0
  4. package/dist/atoms/api/analytics/conversation.d.cts +3 -0
  5. package/dist/atoms/api/analytics/conversation.d.ts +3 -0
  6. package/dist/atoms/api/analytics/conversation.js +37 -0
  7. package/dist/atoms/api/analytics/events.cjs +1 -0
  8. package/dist/atoms/api/analytics/events.d.cts +2 -0
  9. package/dist/atoms/api/analytics/events.d.ts +2 -0
  10. package/dist/atoms/api/analytics/events.js +30 -0
  11. package/dist/atoms/api/analytics/feedback.cjs +1 -0
  12. package/dist/atoms/api/analytics/feedback.d.cts +11 -0
  13. package/dist/atoms/api/analytics/feedback.d.ts +11 -0
  14. package/dist/atoms/api/analytics/feedback.js +26 -0
  15. package/dist/atoms/avatars/ai.cjs +1 -0
  16. package/dist/atoms/avatars/ai.d.cts +3 -0
  17. package/dist/atoms/avatars/ai.d.ts +3 -0
  18. package/dist/atoms/avatars/ai.js +88 -0
  19. package/dist/atoms/avatars/user.cjs +1 -0
  20. package/dist/atoms/avatars/user.d.cts +3 -0
  21. package/dist/atoms/avatars/user.d.ts +3 -0
  22. package/dist/atoms/avatars/user.js +27 -0
  23. package/dist/atoms/codeblock/index.cjs +1 -0
  24. package/dist/atoms/codeblock/index.d.cts +10 -0
  25. package/dist/atoms/codeblock/index.d.ts +10 -0
  26. package/dist/atoms/codeblock/index.js +40 -0
  27. package/dist/atoms/custom-styles.cjs +1 -0
  28. package/dist/atoms/custom-styles.d.cts +5 -0
  29. package/dist/atoms/custom-styles.d.ts +5 -0
  30. package/dist/atoms/custom-styles.js +57 -0
  31. package/dist/atoms/dialog.cjs +1 -0
  32. package/dist/atoms/dialog.d.cts +68 -0
  33. package/dist/atoms/dialog.d.ts +68 -0
  34. package/dist/atoms/dialog.js +185 -0
  35. package/dist/atoms/icons/built-in-icon-renderer.cjs +1 -0
  36. package/dist/atoms/icons/built-in-icon-renderer.d.cts +6 -0
  37. package/dist/atoms/icons/built-in-icon-renderer.d.ts +6 -0
  38. package/dist/atoms/icons/built-in-icon-renderer.js +49 -0
  39. package/dist/atoms/icons/built-in-icons.cjs +1 -0
  40. package/dist/atoms/icons/built-in-icons.d.cts +72 -0
  41. package/dist/atoms/icons/built-in-icons.d.ts +72 -0
  42. package/dist/atoms/icons/built-in-icons.js +79 -0
  43. package/dist/atoms/icons/checkbox-icon.cjs +1 -0
  44. package/dist/atoms/icons/checkbox-icon.d.cts +1 -0
  45. package/dist/atoms/icons/checkbox-icon.d.ts +1 -0
  46. package/dist/atoms/icons/checkbox-icon.js +24 -0
  47. package/dist/atoms/icons/custom-icon.cjs +1 -0
  48. package/dist/atoms/icons/custom-icon.d.cts +6 -0
  49. package/dist/atoms/icons/custom-icon.d.ts +6 -0
  50. package/dist/atoms/icons/custom-icon.js +19 -0
  51. package/dist/atoms/icons/index.cjs +1 -0
  52. package/dist/atoms/icons/index.d.cts +2 -0
  53. package/dist/atoms/icons/index.d.ts +2 -0
  54. package/dist/atoms/icons/index.js +6 -0
  55. package/dist/atoms/icons/inkeep-default-icons.cjs +1 -0
  56. package/dist/atoms/icons/inkeep-default-icons.d.cts +2 -0
  57. package/dist/atoms/icons/inkeep-default-icons.d.ts +2 -0
  58. package/dist/atoms/icons/inkeep-default-icons.js +23 -0
  59. package/dist/atoms/link.cjs +1 -0
  60. package/dist/atoms/link.d.cts +14 -0
  61. package/dist/atoms/link.d.ts +14 -0
  62. package/dist/atoms/link.js +35 -0
  63. package/dist/atoms/markdown/components.cjs +1 -0
  64. package/dist/atoms/markdown/components.d.cts +27 -0
  65. package/dist/atoms/markdown/components.d.ts +27 -0
  66. package/dist/atoms/markdown/components.js +64 -0
  67. package/dist/atoms/markdown/index.cjs +1 -0
  68. package/dist/atoms/markdown/index.d.cts +15 -0
  69. package/dist/atoms/markdown/index.d.ts +15 -0
  70. package/dist/atoms/markdown/index.js +79 -0
  71. package/dist/atoms/markdown/rehype-inline-code-property.cjs +1 -0
  72. package/dist/atoms/markdown/rehype-inline-code-property.d.cts +1 -0
  73. package/dist/atoms/markdown/rehype-inline-code-property.d.ts +1 -0
  74. package/dist/atoms/markdown/rehype-inline-code-property.js +12 -0
  75. package/dist/atoms/portal-with-theme.cjs +1 -0
  76. package/dist/atoms/portal-with-theme.d.cts +2 -0
  77. package/dist/atoms/portal-with-theme.d.ts +2 -0
  78. package/dist/atoms/portal-with-theme.js +12 -0
  79. package/dist/atoms/portal.cjs +1 -0
  80. package/dist/atoms/portal.d.cts +8 -0
  81. package/dist/atoms/portal.d.ts +8 -0
  82. package/dist/atoms/portal.js +19 -0
  83. package/dist/atoms/shadow/context.cjs +2 -0
  84. package/dist/atoms/shadow/context.d.cts +14 -0
  85. package/dist/atoms/shadow/context.d.ts +14 -0
  86. package/dist/atoms/shadow/context.js +55 -0
  87. package/dist/atoms/shadow/create.cjs +1 -0
  88. package/dist/atoms/shadow/create.d.cts +8 -0
  89. package/dist/atoms/shadow/create.d.ts +8 -0
  90. package/dist/atoms/shadow/create.js +56 -0
  91. package/dist/atoms/shadow/index.d.cts +1 -0
  92. package/dist/atoms/shadow/index.d.ts +1 -0
  93. package/dist/atoms/shadow/root.cjs +1 -0
  94. package/dist/atoms/shadow/root.d.cts +5 -0
  95. package/dist/atoms/shadow/root.d.ts +5 -0
  96. package/dist/atoms/shadow/root.js +22 -0
  97. package/dist/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
  98. package/dist/atoms/shadow/use-ensured-forwarded-ref.d.cts +2 -0
  99. package/dist/atoms/shadow/use-ensured-forwarded-ref.d.ts +2 -0
  100. package/dist/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
  101. package/dist/atoms/shadow/utils.cjs +1 -0
  102. package/dist/atoms/shadow/utils.d.cts +9 -0
  103. package/dist/atoms/shadow/utils.d.ts +9 -0
  104. package/dist/atoms/shadow/utils.js +16 -0
  105. package/dist/components/chat-button.cjs +1 -0
  106. package/dist/components/chat-button.d.cts +11 -0
  107. package/dist/components/chat-button.d.ts +11 -0
  108. package/dist/components/chat-button.js +42 -0
  109. package/dist/components/embedded-chat/chat-provider.cjs +1 -0
  110. package/dist/components/embedded-chat/chat-provider.d.cts +19 -0
  111. package/dist/components/embedded-chat/chat-provider.d.ts +19 -0
  112. package/dist/components/embedded-chat/chat-provider.js +22 -0
  113. package/dist/components/embedded-chat/use-captcha.cjs +1 -0
  114. package/dist/components/embedded-chat/use-captcha.d.cts +13 -0
  115. package/dist/components/embedded-chat/use-captcha.d.ts +13 -0
  116. package/dist/components/embedded-chat/use-captcha.js +56 -0
  117. package/dist/components/embedded-chat/use-chat-action.cjs +1 -0
  118. package/dist/components/embedded-chat/use-chat-action.d.cts +9 -0
  119. package/dist/components/embedded-chat/use-chat-action.d.ts +9 -0
  120. package/dist/components/embedded-chat/use-chat-action.js +26 -0
  121. package/dist/components/embedded-chat/use-inkeep-chat.cjs +4 -0
  122. package/dist/components/embedded-chat/use-inkeep-chat.d.cts +25 -0
  123. package/dist/components/embedded-chat/use-inkeep-chat.d.ts +25 -0
  124. package/dist/components/embedded-chat/use-inkeep-chat.js +227 -0
  125. package/dist/components/embedded-chat.cjs +17 -0
  126. package/dist/components/embedded-chat.d.cts +415 -0
  127. package/dist/components/embedded-chat.d.ts +415 -0
  128. package/dist/components/embedded-chat.js +1840 -0
  129. package/dist/components/embedded-search/search-provider.cjs +1 -0
  130. package/dist/components/embedded-search/search-provider.d.cts +21 -0
  131. package/dist/components/embedded-search/search-provider.d.ts +21 -0
  132. package/dist/components/embedded-search/search-provider.js +19 -0
  133. package/dist/components/embedded-search/search-query.graphql.cjs +82 -0
  134. package/dist/components/embedded-search/search-query.graphql.js +86 -0
  135. package/dist/components/embedded-search/transform-results.cjs +1 -0
  136. package/dist/components/embedded-search/transform-results.d.cts +3 -0
  137. package/dist/components/embedded-search/transform-results.d.ts +3 -0
  138. package/dist/components/embedded-search/transform-results.js +113 -0
  139. package/dist/components/embedded-search/use-inkeep-search.cjs +1 -0
  140. package/dist/components/embedded-search/use-inkeep-search.d.cts +21 -0
  141. package/dist/components/embedded-search/use-inkeep-search.d.ts +21 -0
  142. package/dist/components/embedded-search/use-inkeep-search.js +137 -0
  143. package/dist/components/embedded-search.cjs +1 -0
  144. package/dist/components/embedded-search.d.cts +229 -0
  145. package/dist/components/embedded-search.d.ts +229 -0
  146. package/dist/components/embedded-search.js +390 -0
  147. package/dist/components/factory.cjs +1 -0
  148. package/dist/components/factory.d.cts +19 -0
  149. package/dist/components/factory.d.ts +19 -0
  150. package/dist/components/factory.js +39 -0
  151. package/dist/components/index.cjs +1 -0
  152. package/dist/components/index.d.cts +11 -0
  153. package/dist/components/index.d.ts +11 -0
  154. package/dist/components/index.js +31 -0
  155. package/dist/components/intelligent-form/actions/context-model-response.cjs +9 -0
  156. package/dist/components/intelligent-form/actions/context-model-response.d.cts +10 -0
  157. package/dist/components/intelligent-form/actions/context-model-response.d.ts +10 -0
  158. package/dist/components/intelligent-form/actions/context-model-response.js +36 -0
  159. package/dist/components/intelligent-form/actions/escalation-schema.cjs +1 -0
  160. package/dist/components/intelligent-form/actions/escalation-schema.d.cts +2 -0
  161. package/dist/components/intelligent-form/actions/escalation-schema.d.ts +2 -0
  162. package/dist/components/intelligent-form/actions/escalation-schema.js +48 -0
  163. package/dist/components/intelligent-form/actions/qa-model-messages.cjs +27 -0
  164. package/dist/components/intelligent-form/actions/qa-model-messages.d.cts +2 -0
  165. package/dist/components/intelligent-form/actions/qa-model-messages.d.ts +2 -0
  166. package/dist/components/intelligent-form/actions/qa-model-messages.js +45 -0
  167. package/dist/components/intelligent-form/actions/qa-model-response.cjs +1 -0
  168. package/dist/components/intelligent-form/actions/qa-model-response.d.cts +14 -0
  169. package/dist/components/intelligent-form/actions/qa-model-response.d.ts +14 -0
  170. package/dist/components/intelligent-form/actions/qa-model-response.js +46 -0
  171. package/dist/components/intelligent-form/intelligent-form-provider.cjs +1 -0
  172. package/dist/components/intelligent-form/intelligent-form-provider.d.cts +29 -0
  173. package/dist/components/intelligent-form/intelligent-form-provider.d.ts +29 -0
  174. package/dist/components/intelligent-form/intelligent-form-provider.js +23 -0
  175. package/dist/components/intelligent-form/use-inkeep-intelligent-form.cjs +1 -0
  176. package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.cts +30 -0
  177. package/dist/components/intelligent-form/use-inkeep-intelligent-form.d.ts +30 -0
  178. package/dist/components/intelligent-form/use-inkeep-intelligent-form.js +157 -0
  179. package/dist/components/intelligent-form.cjs +1 -0
  180. package/dist/components/intelligent-form.d.cts +135 -0
  181. package/dist/components/intelligent-form.d.ts +135 -0
  182. package/dist/components/intelligent-form.js +568 -0
  183. package/dist/components/modal/modal-provider.cjs +1 -0
  184. package/dist/components/modal/modal-provider.d.cts +13 -0
  185. package/dist/components/modal/modal-provider.d.ts +13 -0
  186. package/dist/components/modal/modal-provider.js +8 -0
  187. package/dist/components/modal/use-inkeep-modal.cjs +1 -0
  188. package/dist/components/modal/use-inkeep-modal.d.cts +8 -0
  189. package/dist/components/modal/use-inkeep-modal.d.ts +8 -0
  190. package/dist/components/modal/use-inkeep-modal.js +30 -0
  191. package/dist/components/modal.cjs +1 -0
  192. package/dist/components/modal.d.cts +18 -0
  193. package/dist/components/modal.d.ts +18 -0
  194. package/dist/components/modal.js +40 -0
  195. package/dist/components/searchbar.cjs +1 -0
  196. package/dist/components/searchbar.d.cts +23 -0
  197. package/dist/components/searchbar.d.ts +23 -0
  198. package/dist/components/searchbar.js +54 -0
  199. package/dist/components/tagline-logo-icon.cjs +1 -0
  200. package/dist/components/tagline-logo-icon.d.cts +1 -0
  201. package/dist/components/tagline-logo-icon.d.ts +1 -0
  202. package/dist/components/tagline-logo-icon.js +34 -0
  203. package/dist/hooks/index.cjs +1 -0
  204. package/dist/hooks/index.d.cts +12 -0
  205. package/dist/hooks/index.d.ts +12 -0
  206. package/dist/hooks/index.js +27 -0
  207. package/dist/hooks/use-boolean.cjs +1 -0
  208. package/dist/hooks/use-boolean.d.cts +10 -0
  209. package/dist/hooks/use-boolean.d.ts +10 -0
  210. package/dist/hooks/use-boolean.js +17 -0
  211. package/dist/hooks/use-browser-storage.cjs +1 -0
  212. package/dist/hooks/use-browser-storage.d.cts +17 -0
  213. package/dist/hooks/use-browser-storage.d.ts +17 -0
  214. package/dist/hooks/use-browser-storage.js +88 -0
  215. package/dist/hooks/use-component-classnames.cjs +1 -0
  216. package/dist/hooks/use-component-classnames.d.cts +6 -0
  217. package/dist/hooks/use-component-classnames.d.ts +6 -0
  218. package/dist/hooks/use-component-classnames.js +14 -0
  219. package/dist/hooks/use-container-size.cjs +1 -0
  220. package/dist/hooks/use-container-size.d.cts +5 -0
  221. package/dist/hooks/use-container-size.d.ts +5 -0
  222. package/dist/hooks/use-container-size.js +18 -0
  223. package/dist/hooks/use-copy-to-clipboard.cjs +1 -0
  224. package/dist/hooks/use-copy-to-clipboard.d.cts +3 -0
  225. package/dist/hooks/use-copy-to-clipboard.d.ts +3 -0
  226. package/dist/hooks/use-copy-to-clipboard.js +19 -0
  227. package/dist/hooks/use-instant-update.cjs +1 -0
  228. package/dist/hooks/use-instant-update.d.cts +17 -0
  229. package/dist/hooks/use-instant-update.d.ts +17 -0
  230. package/dist/hooks/use-instant-update.js +16 -0
  231. package/dist/hooks/use-is-mounted.cjs +1 -0
  232. package/dist/hooks/use-is-mounted.d.cts +1 -0
  233. package/dist/hooks/use-is-mounted.d.ts +1 -0
  234. package/dist/hooks/use-is-mounted.js +11 -0
  235. package/dist/hooks/use-media-query.cjs +1 -0
  236. package/dist/hooks/use-media-query.d.cts +1 -0
  237. package/dist/hooks/use-media-query.d.ts +1 -0
  238. package/dist/hooks/use-media-query.js +14 -0
  239. package/dist/hooks/use-resize-observer.cjs +1 -0
  240. package/dist/hooks/use-resize-observer.d.cts +12 -0
  241. package/dist/hooks/use-resize-observer.d.ts +12 -0
  242. package/dist/hooks/use-resize-observer.js +32 -0
  243. package/dist/hooks/use-scroll-to-bottom.cjs +1 -0
  244. package/dist/hooks/use-scroll-to-bottom.d.cts +13 -0
  245. package/dist/hooks/use-scroll-to-bottom.d.ts +13 -0
  246. package/dist/hooks/use-scroll-to-bottom.js +52 -0
  247. package/dist/hooks/use-scrolling-fades.cjs +1 -0
  248. package/dist/hooks/use-scrolling-fades.d.cts +2 -0
  249. package/dist/hooks/use-scrolling-fades.d.ts +2 -0
  250. package/dist/hooks/use-scrolling-fades.js +18 -0
  251. package/dist/hooks/use-settle-action.cjs +1 -0
  252. package/dist/hooks/use-settle-action.d.cts +3 -0
  253. package/dist/hooks/use-settle-action.d.ts +3 -0
  254. package/dist/hooks/use-settle-action.js +11 -0
  255. package/dist/index.cjs +1 -0
  256. package/dist/index.d.cts +11 -0
  257. package/dist/index.d.ts +11 -0
  258. package/dist/index.js +152 -0
  259. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fa6/index.cjs +1 -0
  260. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fa6/index.js +92 -0
  261. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fi/index.cjs +1 -0
  262. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/fi/index.js +8 -0
  263. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.cjs +1 -0
  264. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.js +8 -0
  265. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.cjs +1 -0
  266. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.js +128 -0
  267. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconBase.cjs +1 -0
  268. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconBase.js +109 -0
  269. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconContext.cjs +1 -0
  270. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lib/iconContext.js +13 -0
  271. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lu/index.cjs +1 -0
  272. package/dist/node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/lu/index.js +68 -0
  273. package/dist/providers/attachment-item-provider.cjs +1 -0
  274. package/dist/providers/attachment-item-provider.d.cts +9 -0
  275. package/dist/providers/attachment-item-provider.d.ts +9 -0
  276. package/dist/providers/attachment-item-provider.js +13 -0
  277. package/dist/providers/attachments-bar-provider.cjs +1 -0
  278. package/dist/providers/attachments-bar-provider.d.cts +30 -0
  279. package/dist/providers/attachments-bar-provider.d.ts +30 -0
  280. package/dist/providers/attachments-bar-provider.js +64 -0
  281. package/dist/providers/base-events-provider.cjs +1 -0
  282. package/dist/providers/base-events-provider.d.cts +8 -0
  283. package/dist/providers/base-events-provider.d.ts +8 -0
  284. package/dist/providers/base-events-provider.js +39 -0
  285. package/dist/providers/chat-events-provider.cjs +1 -0
  286. package/dist/providers/chat-events-provider.d.cts +12 -0
  287. package/dist/providers/chat-events-provider.d.ts +12 -0
  288. package/dist/providers/chat-events-provider.js +66 -0
  289. package/dist/providers/chat-form-provider.cjs +1 -0
  290. package/dist/providers/chat-form-provider.d.cts +23 -0
  291. package/dist/providers/chat-form-provider.d.ts +23 -0
  292. package/dist/providers/chat-form-provider.js +66 -0
  293. package/dist/providers/config-provider.cjs +1 -0
  294. package/dist/providers/config-provider.d.cts +24 -0
  295. package/dist/providers/config-provider.d.ts +24 -0
  296. package/dist/providers/config-provider.js +37 -0
  297. package/dist/providers/conversation-provider.cjs +1 -0
  298. package/dist/providers/conversation-provider.d.cts +12 -0
  299. package/dist/providers/conversation-provider.d.ts +12 -0
  300. package/dist/providers/conversation-provider.js +49 -0
  301. package/dist/providers/feedback-item-provider.cjs +1 -0
  302. package/dist/providers/feedback-item-provider.d.cts +10 -0
  303. package/dist/providers/feedback-item-provider.d.ts +10 -0
  304. package/dist/providers/feedback-item-provider.js +16 -0
  305. package/dist/providers/feedback-provider.cjs +1 -0
  306. package/dist/providers/feedback-provider.d.cts +19 -0
  307. package/dist/providers/feedback-provider.d.ts +19 -0
  308. package/dist/providers/feedback-provider.js +82 -0
  309. package/dist/providers/form-field-provider.cjs +1 -0
  310. package/dist/providers/form-field-provider.d.cts +15 -0
  311. package/dist/providers/form-field-provider.d.ts +15 -0
  312. package/dist/providers/form-field-provider.js +17 -0
  313. package/dist/providers/help-menu-provider.cjs +1 -0
  314. package/dist/providers/help-menu-provider.d.cts +11 -0
  315. package/dist/providers/help-menu-provider.d.ts +11 -0
  316. package/dist/providers/help-menu-provider.js +19 -0
  317. package/dist/providers/index.cjs +1 -0
  318. package/dist/providers/index.d.cts +19 -0
  319. package/dist/providers/index.d.ts +19 -0
  320. package/dist/providers/index.js +63 -0
  321. package/dist/providers/intelligent-form-field-provider.cjs +1 -0
  322. package/dist/providers/intelligent-form-field-provider.d.cts +15 -0
  323. package/dist/providers/intelligent-form-field-provider.d.ts +15 -0
  324. package/dist/providers/intelligent-form-field-provider.js +19 -0
  325. package/dist/providers/markdown-provider.cjs +1 -0
  326. package/dist/providers/markdown-provider.d.cts +9 -0
  327. package/dist/providers/markdown-provider.d.ts +9 -0
  328. package/dist/providers/markdown-provider.js +8 -0
  329. package/dist/providers/message-attachments-provider.cjs +1 -0
  330. package/dist/providers/message-attachments-provider.d.cts +13 -0
  331. package/dist/providers/message-attachments-provider.d.ts +13 -0
  332. package/dist/providers/message-attachments-provider.js +27 -0
  333. package/dist/providers/message-provider.cjs +1 -0
  334. package/dist/providers/message-provider.d.cts +10 -0
  335. package/dist/providers/message-provider.d.ts +10 -0
  336. package/dist/providers/message-provider.js +14 -0
  337. package/dist/providers/root-provider.cjs +1 -0
  338. package/dist/providers/root-provider.d.cts +8 -0
  339. package/dist/providers/root-provider.d.ts +8 -0
  340. package/dist/providers/root-provider.js +21 -0
  341. package/dist/providers/search-events-provider.cjs +1 -0
  342. package/dist/providers/search-events-provider.d.cts +11 -0
  343. package/dist/providers/search-events-provider.d.ts +11 -0
  344. package/dist/providers/search-events-provider.js +18 -0
  345. package/dist/providers/source-item-provider.cjs +1 -0
  346. package/dist/providers/source-item-provider.d.cts +12 -0
  347. package/dist/providers/source-item-provider.d.ts +12 -0
  348. package/dist/providers/source-item-provider.js +13 -0
  349. package/dist/providers/theme-provider.cjs +1 -0
  350. package/dist/providers/theme-provider.d.cts +3 -0
  351. package/dist/providers/theme-provider.d.ts +3 -0
  352. package/dist/providers/theme-provider.js +65 -0
  353. package/dist/providers/user-provider.cjs +1 -0
  354. package/dist/providers/user-provider.d.cts +13 -0
  355. package/dist/providers/user-provider.d.ts +13 -0
  356. package/dist/providers/user-provider.js +34 -0
  357. package/dist/providers/widget-provider.cjs +1 -0
  358. package/dist/providers/widget-provider.d.cts +9 -0
  359. package/dist/providers/widget-provider.d.ts +9 -0
  360. package/dist/providers/widget-provider.js +8 -0
  361. package/dist/utils/component-ids.cjs +1 -0
  362. package/dist/utils/component-ids.d.cts +632 -0
  363. package/dist/utils/component-ids.d.ts +632 -0
  364. package/dist/utils/component-ids.js +340 -0
  365. package/dist/utils/compose-event-handlers.cjs +1 -0
  366. package/dist/utils/compose-event-handlers.d.cts +3 -0
  367. package/dist/utils/compose-event-handlers.d.ts +3 -0
  368. package/dist/utils/compose-event-handlers.js +10 -0
  369. package/dist/utils/compose-refs.cjs +1 -0
  370. package/dist/utils/compose-refs.d.cts +5 -0
  371. package/dist/utils/compose-refs.d.ts +5 -0
  372. package/dist/utils/compose-refs.js +30 -0
  373. package/dist/utils/default-settings.cjs +1 -0
  374. package/dist/utils/default-settings.d.cts +244 -0
  375. package/dist/utils/default-settings.d.ts +244 -0
  376. package/dist/utils/default-settings.js +75 -0
  377. package/dist/utils/form.cjs +1 -0
  378. package/dist/utils/form.d.cts +3 -0
  379. package/dist/utils/form.d.ts +3 -0
  380. package/dist/utils/form.js +17 -0
  381. package/dist/utils/generate-uid.cjs +1 -0
  382. package/dist/utils/generate-uid.d.cts +2 -0
  383. package/dist/utils/generate-uid.d.ts +2 -0
  384. package/dist/utils/generate-uid.js +14 -0
  385. package/dist/utils/get-message-metadata.cjs +10 -0
  386. package/dist/utils/get-message-metadata.d.cts +8 -0
  387. package/dist/utils/get-message-metadata.d.ts +8 -0
  388. package/dist/utils/get-message-metadata.js +142 -0
  389. package/dist/utils/graphql-client.cjs +1 -0
  390. package/dist/utils/graphql-client.d.cts +8 -0
  391. package/dist/utils/graphql-client.d.ts +8 -0
  392. package/dist/utils/graphql-client.js +23 -0
  393. package/dist/utils/highlight-emphasis.cjs +1 -0
  394. package/dist/utils/highlight-emphasis.d.cts +4 -0
  395. package/dist/utils/highlight-emphasis.d.ts +4 -0
  396. package/dist/utils/highlight-emphasis.js +15 -0
  397. package/dist/utils/merge-props.cjs +1 -0
  398. package/dist/utils/merge-props.d.cts +7 -0
  399. package/dist/utils/merge-props.d.ts +7 -0
  400. package/dist/utils/merge-props.js +41 -0
  401. package/dist/utils/misc.cjs +1 -0
  402. package/dist/utils/misc.d.cts +13 -0
  403. package/dist/utils/misc.d.ts +13 -0
  404. package/dist/utils/misc.js +36 -0
  405. package/dist/utils/reset-query-params.cjs +1 -0
  406. package/dist/utils/reset-query-params.d.cts +1 -0
  407. package/dist/utils/reset-query-params.d.ts +1 -0
  408. package/dist/utils/reset-query-params.js +13 -0
  409. package/dist/utils/tools/links-schema.cjs +1 -0
  410. package/dist/utils/tools/links-schema.d.cts +64 -0
  411. package/dist/utils/tools/links-schema.d.ts +64 -0
  412. package/dist/utils/tools/links-schema.js +85 -0
  413. package/dist/utils/transform-source/breadcrumbs.cjs +1 -0
  414. package/dist/utils/transform-source/breadcrumbs.d.cts +2 -0
  415. package/dist/utils/transform-source/breadcrumbs.d.ts +2 -0
  416. package/dist/utils/transform-source/breadcrumbs.js +16 -0
  417. package/dist/utils/transform-source/common-words/long.cjs +1 -0
  418. package/dist/utils/transform-source/common-words/long.d.cts +1 -0
  419. package/dist/utils/transform-source/common-words/long.d.ts +1 -0
  420. package/dist/utils/transform-source/common-words/long.js +69 -0
  421. package/dist/utils/transform-source/common-words/lowercase.cjs +1 -0
  422. package/dist/utils/transform-source/common-words/lowercase.d.cts +1 -0
  423. package/dist/utils/transform-source/common-words/lowercase.d.ts +1 -0
  424. package/dist/utils/transform-source/common-words/lowercase.js +48 -0
  425. package/dist/utils/transform-source/common-words/short.cjs +1 -0
  426. package/dist/utils/transform-source/common-words/short.d.cts +1 -0
  427. package/dist/utils/transform-source/common-words/short.d.ts +1 -0
  428. package/dist/utils/transform-source/common-words/short.js +141 -0
  429. package/dist/utils/transform-source/description.cjs +1 -0
  430. package/dist/utils/transform-source/description.d.cts +2 -0
  431. package/dist/utils/transform-source/description.d.ts +2 -0
  432. package/dist/utils/transform-source/description.js +10 -0
  433. package/dist/utils/transform-source/icon.cjs +1 -0
  434. package/dist/utils/transform-source/icon.d.cts +2 -0
  435. package/dist/utils/transform-source/icon.d.ts +2 -0
  436. package/dist/utils/transform-source/icon.js +9 -0
  437. package/dist/utils/transform-source/index.cjs +1 -0
  438. package/dist/utils/transform-source/index.d.cts +2 -0
  439. package/dist/utils/transform-source/index.d.ts +2 -0
  440. package/dist/utils/transform-source/index.js +21 -0
  441. package/dist/utils/transform-source/tabs.cjs +1 -0
  442. package/dist/utils/transform-source/tabs.d.cts +2 -0
  443. package/dist/utils/transform-source/tabs.d.ts +2 -0
  444. package/dist/utils/transform-source/tabs.js +13 -0
  445. package/dist/utils/transform-source/title.cjs +1 -0
  446. package/dist/utils/transform-source/title.d.cts +2 -0
  447. package/dist/utils/transform-source/title.d.ts +2 -0
  448. package/dist/utils/transform-source/title.js +12 -0
  449. package/dist/utils/transform-source/utils/description-without-title.cjs +1 -0
  450. package/dist/utils/transform-source/utils/description-without-title.d.cts +11 -0
  451. package/dist/utils/transform-source/utils/description-without-title.d.ts +11 -0
  452. package/dist/utils/transform-source/utils/description-without-title.js +12 -0
  453. package/dist/utils/transform-source/utils/index.cjs +1 -0
  454. package/dist/utils/transform-source/utils/index.d.cts +6 -0
  455. package/dist/utils/transform-source/utils/index.d.ts +6 -0
  456. package/dist/utils/transform-source/utils/index.js +16 -0
  457. package/dist/utils/transform-source/utils/misc.cjs +1 -0
  458. package/dist/utils/transform-source/utils/misc.d.cts +2 -0
  459. package/dist/utils/transform-source/utils/misc.d.ts +2 -0
  460. package/dist/utils/transform-source/utils/misc.js +15 -0
  461. package/dist/utils/transform-source/utils/standardize-common-words.cjs +1 -0
  462. package/dist/utils/transform-source/utils/standardize-common-words.d.cts +1 -0
  463. package/dist/utils/transform-source/utils/standardize-common-words.d.ts +1 -0
  464. package/dist/utils/transform-source/utils/standardize-common-words.js +26 -0
  465. package/dist/utils/transform-source/utils/standardize-organization-display-name.cjs +1 -0
  466. package/dist/utils/transform-source/utils/standardize-organization-display-name.d.cts +8 -0
  467. package/dist/utils/transform-source/utils/standardize-organization-display-name.d.ts +8 -0
  468. package/dist/utils/transform-source/utils/standardize-organization-display-name.js +10 -0
  469. package/dist/utils/transform-source/utils/standardize-suffixes.cjs +1 -0
  470. package/dist/utils/transform-source/utils/standardize-suffixes.d.cts +5 -0
  471. package/dist/utils/transform-source/utils/standardize-suffixes.d.ts +5 -0
  472. package/dist/utils/transform-source/utils/standardize-suffixes.js +16 -0
  473. package/dist/utils/transform-source/utils/strip-branding-keywords.cjs +1 -0
  474. package/dist/utils/transform-source/utils/strip-branding-keywords.d.cts +17 -0
  475. package/dist/utils/transform-source/utils/strip-branding-keywords.d.ts +17 -0
  476. package/dist/utils/transform-source/utils/strip-branding-keywords.js +14 -0
  477. package/package.json +111 -0
@@ -0,0 +1,1840 @@
1
+ "use client";
2
+ import { jsx as n, jsxs as K, Fragment as Z } from "react/jsx-runtime";
3
+ import { forwardRef as q, memo as F, useState as Me, useEffect as be, useMemo as Se } from "react";
4
+ import ee from "react-textarea-autosize";
5
+ import * as te from "@radix-ui/react-avatar";
6
+ import * as j from "@radix-ui/react-checkbox";
7
+ import * as k from "@radix-ui/react-popover";
8
+ import * as E from "@radix-ui/react-tooltip";
9
+ import * as $ from "@radix-ui/react-scroll-area";
10
+ import * as f from "@radix-ui/react-select";
11
+ import { Overlay as ie, Content as ae, Close as ne, Title as oe, Root as se } from "../atoms/dialog.js";
12
+ import { HiMiniBolt as fe } from "../node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/hi2/index.js";
13
+ import { IoAdd as ke } from "../node_modules/.pnpm/react-icons@5.4.0_react@19.0.0/node_modules/react-icons/io5/index.js";
14
+ import Ee from "../atoms/avatars/ai.js";
15
+ import Be from "../atoms/avatars/user.js";
16
+ import { CustomIcon as P } from "../atoms/icons/custom-icon.js";
17
+ import { BuiltInIconRenderer as B } from "../atoms/icons/built-in-icon-renderer.js";
18
+ import { LinkWithQueryParams as Te } from "../atoms/link.js";
19
+ import { Markdown as G } from "../atoms/markdown/index.js";
20
+ import { AttachmentItemProvider as _e, useAttachmentItem as R } from "../providers/attachment-item-provider.js";
21
+ import { AttachmentsBarProvider as ye, useAttachmentsBar as I } from "../providers/attachments-bar-provider.js";
22
+ import { SourceItemProvider as we, useSourceItem as L } from "../providers/source-item-provider.js";
23
+ import { useInkeepConfig as C } from "../providers/config-provider.js";
24
+ import { useInkeepConversation as re, SHARE_QUERY_PARAM as Le } from "../providers/conversation-provider.js";
25
+ import { useChatEvents as U } from "../providers/chat-events-provider.js";
26
+ import { useMessageFeedback as ce } from "../providers/feedback-provider.js";
27
+ import { MessageAttachmentsProvider as He, useMessageAttachments as z } from "../providers/message-attachments-provider.js";
28
+ import { MessageProvider as De, useMessage as b } from "../providers/message-provider.js";
29
+ import { CheckboxIcon as Ae } from "../atoms/icons/checkbox-icon.js";
30
+ import { useCopyToClipboard as X } from "../hooks/use-copy-to-clipboard.js";
31
+ import { FeedbackItemProvider as xe, useFeedbackItem as de } from "../providers/feedback-item-provider.js";
32
+ import { stringifyAttachments as Oe } from "../utils/get-message-metadata.js";
33
+ import { dataAttr as v, maybeRender as M, getInitials as Ne, getMessageContent as Q } from "../utils/misc.js";
34
+ import { ikp as i } from "./factory.js";
35
+ import { useChat as g } from "./embedded-chat/chat-provider.js";
36
+ import { ChatProvider as zs } from "./embedded-chat/chat-provider.js";
37
+ import We from "./tagline-logo-icon.js";
38
+ import { useSettleAction as Qe } from "../hooks/use-settle-action.js";
39
+ import { useContainerSize as $e } from "../hooks/use-container-size.js";
40
+ import { useChatAction as me } from "./embedded-chat/use-chat-action.js";
41
+ import { useHelpMenuState as Re, HelpMenuProvider as Ue, useHelpMenu as Ve } from "../providers/help-menu-provider.js";
42
+ import { useChatForm as _ } from "../providers/chat-form-provider.js";
43
+ import { FormFieldProvider as Ke, useFormField as H } from "../providers/form-field-provider.js";
44
+ import { Controller as qe } from "react-hook-form";
45
+ import { highlightEmphasis as je } from "../utils/highlight-emphasis.js";
46
+ import { useModal as Pe } from "./modal/modal-provider.js";
47
+ import { useColorModeValue as Ge } from "@inkeep/cxkit-color-mode";
48
+ import { useComposedRefs as le } from "../utils/compose-refs.js";
49
+ import { composeEventHandlers as h } from "../utils/compose-event-handlers.js";
50
+ import { useScrollToBottom as ze } from "../hooks/use-scroll-to-bottom.js";
51
+ import { logConversation as Ye } from "../atoms/api/analytics/conversation.js";
52
+ const Je = "__intro__", Xe = i("div", {
53
+ _id: "aiChatWrapper"
54
+ }), Ra = q((t, e) => {
55
+ const { ...a } = t, { isHidden: o, isMobile: s } = g(), [r, c] = $e(), d = le(e, r), m = c?.width ? c.width > 580 : !0, l = Pe();
56
+ return /* @__PURE__ */ n(
57
+ Xe,
58
+ {
59
+ ref: d,
60
+ "data-widget-md": v(m),
61
+ "data-hidden": v(o),
62
+ "data-in-modal": v(!!l),
63
+ "data-mobile": v(s),
64
+ ...a
65
+ }
66
+ );
67
+ }), Ze = i("div", {
68
+ _id: "aiChatConversationLoading"
69
+ }), Ua = (t) => {
70
+ const { isLoadingConversation: e } = g();
71
+ return e ? /* @__PURE__ */ n(Ze, { children: /* @__PURE__ */ n("span", { children: "Loading..." }), ...t }) : null;
72
+ }, et = i("div", {
73
+ _id: "aiChatRoot"
74
+ }), Va = (t) => {
75
+ const { isLoadingConversation: e, isHidden: a } = g(), { form: o } = _();
76
+ return e || o ? null : /* @__PURE__ */ n(et, { "data-hidden": v(a), ...t });
77
+ }, Ka = i("div", {
78
+ _id: "aiChatHeader"
79
+ }), qa = i("div", {
80
+ _id: "aiChatHeader__Toolbar"
81
+ }), ja = i("div", {
82
+ _id: "aiChatHeader__ToolbarHeaderWrapper"
83
+ }), tt = i("div", {
84
+ _id: "aiChatHeader__ToolbarHeader"
85
+ }), Ga = F(
86
+ (t) => {
87
+ const { aiChatSettings: e } = C(), a = `Ask ${e.botName || "AI"}`;
88
+ return /* @__PURE__ */ n(tt, { ...t, children: a });
89
+ }
90
+ ), za = i("div", {
91
+ _id: "aiChatContent"
92
+ }), Ya = i($.Root, {
93
+ _id: "aiChatContentScrollArea"
94
+ }), it = i($.Viewport, {
95
+ _id: "aiChatContentScrollArea__Viewport"
96
+ }), Ja = q(({ children: t, ...e }, a) => {
97
+ const { containerRef: o } = ze(), s = le(a, o);
98
+ return /* @__PURE__ */ n(
99
+ it,
100
+ {
101
+ ref: s,
102
+ children: (
103
+ /* added this to fix an overflow issue see https://github.com/radix-ui/primitives/issues/926 */
104
+ /* @__PURE__ */ n("div", { "data-part": "grid", style: { display: "grid" }, children: t })
105
+ ),
106
+ ...e
107
+ }
108
+ );
109
+ }), Xa = i(
110
+ $.ScrollAreaScrollbar,
111
+ {
112
+ _id: "aiChatContentScrollArea__Scrollbar"
113
+ }
114
+ ), Za = i(
115
+ $.ScrollAreaThumb,
116
+ {
117
+ _id: "aiChatContentScrollArea__Thumb"
118
+ }
119
+ ), en = i($.Corner, {
120
+ _id: "aiChatContentScrollArea__Corner"
121
+ }), at = i("div", {
122
+ _id: "aiChatMessages"
123
+ }), tn = (t) => {
124
+ const e = g(), { children: a, ...o } = t;
125
+ return /* @__PURE__ */ n(at, { children: M(a, e), ...o });
126
+ }, nt = i("div", {
127
+ _id: "aiChatDisclaimer"
128
+ }), an = F(
129
+ (t) => {
130
+ const { aiChatSettings: e } = C();
131
+ return e.disclaimerSettings?.enabled ? /* @__PURE__ */ n(k.Root, { children: /* @__PURE__ */ n(nt, { ...t }) }) : null;
132
+ }
133
+ ), ot = i("span", {
134
+ _id: "aiChatDisclaimerLabel"
135
+ }), nn = F(
136
+ (t) => {
137
+ const { aiChatSettings: e } = C(), a = e.disclaimerSettings;
138
+ return /* @__PURE__ */ n(ot, { children: a?.label, ...t });
139
+ }
140
+ ), on = i(k.Trigger, {
141
+ _id: "aiChatDisclaimerTrigger",
142
+ children: /* @__PURE__ */ n(P, { iconKey: "info" })
143
+ }), st = i(k.Content, {
144
+ _id: "aiChatDisclaimerContent"
145
+ }), sn = (t) => /* @__PURE__ */ n(
146
+ st,
147
+ {
148
+ side: "top",
149
+ sideOffset: 8,
150
+ align: "end",
151
+ alignOffset: -10,
152
+ ...t
153
+ }
154
+ );
155
+ i(G, {
156
+ _id: "aiChatDisclaimerText"
157
+ });
158
+ const rn = F(
159
+ (t) => {
160
+ const { aiChatSettings: e } = C(), a = e.botName, s = e.disclaimerSettings?.tooltip || `Information provided by ${a || "this AI assistant"} is not guaranteed to be accurate or comprehensive.`;
161
+ return /* @__PURE__ */ n(G, { shouldOpenLinksInNewTab: !0, children: s, ...t });
162
+ }
163
+ ), cn = i(k.Arrow, {
164
+ _id: "aiChatDisclaimerArrow"
165
+ }), rt = i("div", {
166
+ _id: "aiChatQuickQuestions"
167
+ }), dn = (t) => {
168
+ const { aiChatSettings: e } = C(), { messages: a } = g();
169
+ return !e.quickQuestions?.length || a.length ? null : /* @__PURE__ */ n(rt, { ...t });
170
+ }, ct = i("h3", {
171
+ _id: "aiChatQuickQuestionsLabel"
172
+ }), mn = F(
173
+ (t) => {
174
+ const { aiChatSettings: e } = C();
175
+ return /* @__PURE__ */ n(ct, { children: e.quickQuestionsLabel, ...t });
176
+ }
177
+ ), dt = i("div", {
178
+ _id: "aiChatQuickQuestionsList"
179
+ }), ln = F(
180
+ (t) => {
181
+ const { aiChatSettings: e } = C(), a = e.quickQuestions, { children: o, ...s } = t;
182
+ return /* @__PURE__ */ n(dt, { children: M(o, a), ...s });
183
+ }
184
+ ), mt = i("div", {
185
+ _id: "aiChatQuickQuestion"
186
+ }), hn = q((t, e) => {
187
+ const { aiChatSettings: a } = C(), o = a.shouldHighlightFirstQuickQuestion;
188
+ return /* @__PURE__ */ n(mt, { ref: e, "data-highlight": v(o), ...t });
189
+ }), lt = i("button", {
190
+ _id: "aiChatQuickQuestionButton"
191
+ }), un = (t) => {
192
+ const { question: e, onClick: a, ...o } = t, { handleSubmit: s } = g();
193
+ return /* @__PURE__ */ n(
194
+ lt,
195
+ {
196
+ onClick: h(a, () => s(e)),
197
+ children: e,
198
+ ...o
199
+ }
200
+ );
201
+ }, ht = i("div", {
202
+ _id: "aiChatWorkflows"
203
+ }), Cn = (t) => {
204
+ const { aiChatSettings: e } = C(), { messages: a } = g();
205
+ return !e.workflows?.length || a.length ? null : /* @__PURE__ */ n(ht, { ...t });
206
+ }, ut = i("h3", {
207
+ _id: "aiChatWorkflowsLabel"
208
+ }), pn = F((t) => {
209
+ const { aiChatSettings: e } = C();
210
+ return /* @__PURE__ */ n(ut, { children: e.workflowsHeader, ...t });
211
+ }), Ct = i("div", {
212
+ _id: "aiChatWorkflowsList"
213
+ }), vn = F(
214
+ (t) => {
215
+ const { aiChatSettings: e } = C(), a = e.workflows, { children: o, ...s } = t;
216
+ return /* @__PURE__ */ n(Ct, { children: M(o, a), ...s });
217
+ }
218
+ ), pt = i("button", {
219
+ _id: "aiChatWorkflow"
220
+ }), gn = (t) => {
221
+ const { workflow: e, onClick: a, ...o } = t, { handleWorkflow: s } = g();
222
+ return /* @__PURE__ */ n(
223
+ pt,
224
+ {
225
+ onClick: h(a, () => s(e)),
226
+ children: e.displayName,
227
+ ...o
228
+ }
229
+ );
230
+ }, vt = i(fe, {
231
+ _id: "aiChatWorkflow__Icon"
232
+ }), bn = (t) => /* @__PURE__ */ n(vt, { ...t }), gt = i("div", {
233
+ _id: "aiChatMessageWrapper"
234
+ }), bt = (t) => {
235
+ const { message: e, ...a } = t;
236
+ return e.role === "system" ? null : /* @__PURE__ */ n(De, { message: e, children: /* @__PURE__ */ n(gt, { "data-role": e.role, ...a }) });
237
+ }, _n = F(
238
+ (t) => {
239
+ const { message: e, ...a } = t, { aiChatSettings: o, baseSettings: s } = C(), r = o.botName, c = r ? `Hi, I'm ${r}!` : "Hi!", d = o.chatSubjectName ?? s.organizationDisplayName, m = `${c}
240
+
241
+ I'm an AI assistant trained on documentation, help articles, and other content.`, l = d ? `
242
+
243
+ Ask me anything about \`${d}\`.` : `
244
+
245
+ Let me know how I can help.`, p = {
246
+ content: o.introMessage ?? `${m}${l}`,
247
+ id: Je,
248
+ ...e,
249
+ role: "assistant",
250
+ links: []
251
+ };
252
+ return /* @__PURE__ */ n(bt, { message: p, ...a });
253
+ }
254
+ ), _t = i("div", {
255
+ _id: "aiChatMessageHeader"
256
+ }), An = (t) => {
257
+ const { message: e } = b();
258
+ return /* @__PURE__ */ n(_t, { "data-role": e.role, ...t });
259
+ }, At = i("div", {
260
+ _id: "aiChatMessageLoading"
261
+ }), Pn = (t) => {
262
+ const { isLoading: e, isStreaming: a, messages: o } = g(), { message: s } = b();
263
+ return !(o.at(-1)?.id === s?.id) || s.role !== "assistant" || !e || a ? null : /* @__PURE__ */ n(At, { children: "Thinking...", ...t });
264
+ }, Pt = i("div", {
265
+ _id: "aiChatMessageAvatar"
266
+ }), Fn = (t) => {
267
+ const { message: e } = b();
268
+ return /* @__PURE__ */ n(Pt, { "data-role": e.role, ...t });
269
+ }, Ft = i(te.Root, {
270
+ _id: "aiChatMessageAvatarContent"
271
+ }), In = (t) => {
272
+ const { message: e } = b(), { baseSettings: a } = C();
273
+ return /* @__PURE__ */ n(
274
+ Ft,
275
+ {
276
+ "data-username": v(e.role === "user" && !!a.userProperties.name),
277
+ "data-role": e.role,
278
+ ...t
279
+ }
280
+ );
281
+ }, It = i(te.Fallback, {
282
+ _id: "aiChatMessageAvatarFallback"
283
+ }), Mn = F(
284
+ (t) => {
285
+ const { baseSettings: e } = C(), { message: a } = b();
286
+ return e.userProperties.name ? /* @__PURE__ */ n(
287
+ It,
288
+ {
289
+ "data-role": a.role,
290
+ children: Ne(e.userProperties.name),
291
+ ...t
292
+ }
293
+ ) : null;
294
+ }
295
+ ), ve = i(te.Image, {
296
+ _id: "aiChatMessageAvatarImage"
297
+ }), Sn = F(
298
+ (t) => {
299
+ const { onLoadingStatusChange: e, ...a } = t, {
300
+ aiChatSettings: o,
301
+ baseSettings: { userProperties: s }
302
+ } = C(), { message: r } = b(), { botAvatarSrcUrl: c, botAvatarDarkSrcUrl: d } = o ?? {}, l = Ge(c, d ?? c), [u, p] = Me(l);
303
+ be(() => {
304
+ p(l);
305
+ }, [l]);
306
+ const A = (S) => {
307
+ S === "error" && p(null);
308
+ };
309
+ return r.role === "user" ? s.name ? null : o.userAvatarSrcUrl ? /* @__PURE__ */ n(
310
+ ve,
311
+ {
312
+ "data-type": "image",
313
+ "data-role": r.role,
314
+ src: o.userAvatarSrcUrl,
315
+ ...t
316
+ }
317
+ ) : /* @__PURE__ */ n(
318
+ Be,
319
+ {
320
+ "data-type": "icon",
321
+ "data-role": r.role,
322
+ ...t
323
+ }
324
+ ) : u ? /* @__PURE__ */ n(
325
+ ve,
326
+ {
327
+ src: u,
328
+ "data-type": "image",
329
+ "data-role": r.role,
330
+ onLoadingStatusChange: h(
331
+ e,
332
+ A
333
+ ),
334
+ ...a
335
+ }
336
+ ) : /* @__PURE__ */ n(
337
+ Ee,
338
+ {
339
+ "data-type": "icon",
340
+ "data-role": r.role,
341
+ ...t
342
+ }
343
+ );
344
+ }
345
+ ), Mt = i("span", {
346
+ _id: "aiChatMessageName"
347
+ }), fn = (t) => {
348
+ const { message: e } = b();
349
+ return /* @__PURE__ */ n(
350
+ Mt,
351
+ {
352
+ "data-role": e.role,
353
+ children: e.role === "user" ? "You" : "AI assistant",
354
+ ...t
355
+ }
356
+ );
357
+ }, St = i("div", {
358
+ _id: "aiChatMessageContentWrapper"
359
+ }), kn = (t) => {
360
+ const { message: e } = b();
361
+ return /* @__PURE__ */ n(St, { "data-role": e.role, ...t });
362
+ }, ft = i("div", {
363
+ _id: "aiChatMessageContent"
364
+ }), En = (t) => {
365
+ const { message: e } = b();
366
+ return /* @__PURE__ */ n(ft, { "data-role": e.role, ...t });
367
+ }, kt = i("div", {
368
+ _id: "aiChatMessageAttachments"
369
+ }), Bn = (t) => {
370
+ const { message: e } = b(), a = e.metadata?.attributes?.attachments;
371
+ return e.role !== "user" || !a?.length ? null : /* @__PURE__ */ n(He, { children: /* @__PURE__ */ n(kt, { ...t }) });
372
+ }, Et = i("div", {
373
+ _id: "aiChatMessageAttachments__List"
374
+ }), Tn = (t) => {
375
+ const { children: e, ...a } = t, { message: o } = b(), s = o.metadata?.attributes?.attachments;
376
+ return s ? /* @__PURE__ */ n(Et, { children: M(e, s), ...a }) : null;
377
+ }, Bt = i("div", {
378
+ _id: "aiChatMessageAttachments__Item"
379
+ }), yn = (t) => {
380
+ const { attachment: e, onClick: a, ...o } = t, { selectItem: s, onOpen: r } = z();
381
+ return /* @__PURE__ */ n(_e, { attachment: e, children: /* @__PURE__ */ n(
382
+ Bt,
383
+ {
384
+ onClick: h(a, () => {
385
+ s(e), r();
386
+ }),
387
+ ...o
388
+ }
389
+ ) });
390
+ }, Tt = i(B, {
391
+ _id: "aiChatMessageAttachments__ItemIcon"
392
+ }), wn = (t) => {
393
+ const { attachment: e } = R(), a = e.contentType?.attachmentIcon;
394
+ return a ? /* @__PURE__ */ n(Tt, { iconSettings: a, ...t }) : null;
395
+ }, yt = i("span", {
396
+ _id: "aiChatMessageAttachments__ItemTitle"
397
+ }), Ln = (t) => {
398
+ const { attachment: e } = R();
399
+ return /* @__PURE__ */ n(yt, { children: e.title, ...t });
400
+ }, wt = i(se, {
401
+ _id: "aiChatMessageAttachmentsPreview"
402
+ }), Hn = (t) => {
403
+ const { onOpenChange: e, ...a } = t, { selectItem: o, isOpen: s, onClose: r, selectedItem: c } = z();
404
+ return /* @__PURE__ */ n(
405
+ wt,
406
+ {
407
+ open: s && c !== null,
408
+ onOpenChange: h(e, (m) => {
409
+ m || (r(), o(null));
410
+ }),
411
+ ...a
412
+ }
413
+ );
414
+ }, Dn = i(ie, {
415
+ _id: "aiChatMessageAttachmentsPreview__Overlay"
416
+ }), xn = i(ae, {
417
+ _id: "aiChatMessageAttachmentsPreview__Content",
418
+ "aria-describedby": void 0
419
+ }), Lt = i(oe, {
420
+ _id: "aiChatMessageAttachmentsPreview__Header"
421
+ }), On = (t) => {
422
+ const { selectedItem: e } = z();
423
+ return /* @__PURE__ */ n(
424
+ Lt,
425
+ {
426
+ children: e?.title || "Attachment",
427
+ ...t
428
+ }
429
+ );
430
+ }, Nn = i(ne, {
431
+ _id: "aiChatMessageAttachmentsPreview__Close",
432
+ children: /* @__PURE__ */ n(P, { iconKey: "close" })
433
+ }), Ht = i("p", {
434
+ _id: "aiChatMessageAttachmentsPreview__Body"
435
+ }), Wn = (t) => {
436
+ const { selectedItem: e } = z();
437
+ return /* @__PURE__ */ n(Ht, { children: e?.content, ...t });
438
+ }, ge = i("div", {
439
+ _id: "aiChatMessage"
440
+ }), Qn = (t) => {
441
+ const { aiChatSettings: e } = C(), { componentStyles: a, ...o } = t, { message: s } = b(), { logEvent: r } = U(), c = Q(s), { conversation: d } = re();
442
+ return s.role === "user" ? /* @__PURE__ */ n(ge, { "data-role": s.role, children: c, ...o }) : /* @__PURE__ */ n(ge, { "data-role": s.role, ...o, children: /* @__PURE__ */ n(
443
+ G,
444
+ {
445
+ children: c,
446
+ componentStyles: a,
447
+ shouldOpenLinksInNewTab: e.shouldOpenLinksInNewTab,
448
+ onLinkClick: (m, l) => {
449
+ r({
450
+ eventName: "chat_response_link_opened",
451
+ properties: {
452
+ messageId: s.id,
453
+ title: l?.toString(),
454
+ url: m
455
+ }
456
+ });
457
+ },
458
+ onCodeCopy: (m, l) => {
459
+ r({
460
+ eventName: "chat_code_block_copied",
461
+ properties: {
462
+ conversationId: d.id,
463
+ language: m,
464
+ code: l
465
+ }
466
+ });
467
+ }
468
+ }
469
+ ) });
470
+ }, Dt = i("div", {
471
+ _id: "aiChatMessageActions"
472
+ }), $n = (t) => {
473
+ const { isLoading: e, messages: a } = g(), { message: o } = b();
474
+ return a.at(-1)?.id === o?.id && e || o.role === "user" ? null : /* @__PURE__ */ n(Dt, { ...t });
475
+ }, xt = i("div", {
476
+ _id: "aiChatMessageToolActions"
477
+ }), Rn = (t) => {
478
+ const { children: e, ...a } = t, { message: o } = b(), { messageToolCalls: s } = g(), r = s[o.id] || [];
479
+ return /* @__PURE__ */ n(xt, { children: M(e, r), ...a });
480
+ }, Un = (t) => {
481
+ const { onClick: e, action: a, ...o } = t, { logEvent: s } = U(), { message: r } = b(), { messages: c, selectedWorkflow: d } = g(), { conversation: m } = re(), { handleAction: l } = me(a), u = c.findIndex((D) => D.id === r.id), p = () => {
482
+ l(), s({
483
+ eventName: "toolcall_action_clicked",
484
+ properties: {
485
+ actionType: a.action.type,
486
+ conversationId: m.id,
487
+ question: Q(c[u - 1]),
488
+ answer: Q(r),
489
+ answerId: r.id,
490
+ workflowId: d?.id
491
+ }
492
+ });
493
+ }, A = a.label || "Contact Support", S = /* @__PURE__ */ K(Z, { children: [
494
+ a.icon && /* @__PURE__ */ n(B, { iconSettings: a.icon }),
495
+ A
496
+ ] }), T = a.action.type, O = i(T === "OPEN_LINK" ? "a" : "button", {
497
+ _id: "aiChatMessageToolAction",
498
+ children: S,
499
+ "data-type": a.action.type,
500
+ ...T === "OPEN_LINK" && {
501
+ href: a.action.url,
502
+ target: "_blank",
503
+ rel: "noopener"
504
+ },
505
+ onClick: h(e, p)
506
+ });
507
+ return /* @__PURE__ */ n(O, { ...o });
508
+ }, Ot = i("button", {
509
+ _id: "aiChatMessageAction"
510
+ }), Vn = (t) => {
511
+ const { action: e, onClick: a, className: o, ...s } = t, { message: r } = b(), { isStreaming: c, messages: d } = g(), [m, l] = X(), { feedback: u, submitPositiveFeedback: p, setCurrentFeedback: A, currentFeedback: S } = ce(), { logEvent: T } = U(), [O, D] = Qe(), {
512
+ baseSettings: { analytics: Y }
513
+ } = C(), { optOutAllAnalytics: J } = Y, he = d.at(-1)?.id === r?.id, ue = r.role === "assistant";
514
+ if (he && c || !ue || {
515
+ copy: !1,
516
+ upvote: J,
517
+ downvote: J
518
+ }[e]) return null;
519
+ const N = {
520
+ copy() {
521
+ l(Q(r)), T({
522
+ eventName: "chat_message_copied",
523
+ properties: {
524
+ messageId: r.id
525
+ }
526
+ });
527
+ },
528
+ upvote() {
529
+ p(r.id).then(() => {
530
+ D();
531
+ });
532
+ },
533
+ downvote() {
534
+ A(r.id);
535
+ }
536
+ }, y = {
537
+ copy: "Copy Message",
538
+ upvote: "Upvote Message",
539
+ downvote: "Downvote Message"
540
+ }, W = {
541
+ copy: /* @__PURE__ */ n(P, { iconKey: m ? "messageCopied" : "messageCopy" }),
542
+ upvote: /* @__PURE__ */ n(P, { iconKey: O ? "messageCopied" : "thumbsUp" }),
543
+ downvote: /* @__PURE__ */ n(P, { iconKey: "thumbsDown" })
544
+ }, w = {
545
+ copy: { "data-copied": v(m) },
546
+ upvote: {
547
+ "data-upvoted": v(u[r.id]?.type === "positive")
548
+ },
549
+ downvote: {
550
+ "data-downvoted": v(u[r.id]?.type === "negative"),
551
+ "data-state": S === null ? "closed" : "open"
552
+ }
553
+ };
554
+ return /* @__PURE__ */ n(
555
+ Ot,
556
+ {
557
+ "data-action": e,
558
+ ...w[e],
559
+ children: W[e],
560
+ "aria-label": y[e],
561
+ className: `${o} ${e}`,
562
+ onClick: h(a, N[e]),
563
+ ...s
564
+ }
565
+ );
566
+ }, Nt = i("div", {
567
+ _id: "aiChatMessageSources"
568
+ }), Kn = (t) => {
569
+ const { message: e } = b();
570
+ return e.role !== "assistant" || !e.links?.length ? null : /* @__PURE__ */ n(Nt, { ...t });
571
+ }, Wt = i("div", {
572
+ _id: "aiChatMessageSources__Header"
573
+ }), qn = (t) => /* @__PURE__ */ n(Wt, { children: "Sources", ...t }), Qt = i("div", {
574
+ _id: "aiChatMessageSources__List"
575
+ }), jn = (t) => {
576
+ const { message: e } = b(), { children: a, ...o } = t, {
577
+ baseSettings: { transformSource: s, organizationDisplayName: r },
578
+ aiChatSettings: { shouldOpenLinksInNewTab: c },
579
+ searchSettings: { tabs: d }
580
+ } = C();
581
+ if (e.role !== "assistant") return null;
582
+ const m = e.links.map((l) => {
583
+ const u = s(l, "chatSourceItem", {
584
+ organizationDisplayName: r,
585
+ tabs: d
586
+ }), p = c || u.shouldOpenInNewTab;
587
+ return { ...u, isExternal: p };
588
+ });
589
+ return /* @__PURE__ */ n(Qt, { children: M(a, m), ...o });
590
+ }, $t = i(Te, {
591
+ _id: "aiChatMessageSourceItem"
592
+ }), Gn = (t) => {
593
+ const { source: e, onClick: a, ...o } = t, { logEvent: s } = U(), { message: r } = b(), c = () => {
594
+ s({
595
+ eventName: "chat_response_source_item_clicked",
596
+ properties: {
597
+ messageId: r.id,
598
+ sourceType: e.type,
599
+ title: e.title,
600
+ url: e.url
601
+ }
602
+ });
603
+ };
604
+ return /* @__PURE__ */ n(we, { source: e, children: /* @__PURE__ */ n(
605
+ $t,
606
+ {
607
+ "data-type": e.type,
608
+ appendToUrl: e.appendToUrl,
609
+ isExternal: e.isExternal,
610
+ "data-breadcrumbs": !!e.breadcrumbs?.length,
611
+ onClick: h(a, c),
612
+ ...o
613
+ }
614
+ ) });
615
+ }, Rt = i("div", {
616
+ _id: "aiChatMessageSourceItem__Breadcrumbs"
617
+ }), zn = (t) => {
618
+ const { source: e } = L();
619
+ return e.breadcrumbs?.length ? /* @__PURE__ */ n(Rt, { "data-type": e.type, ...t }) : null;
620
+ }, Yn = i(P, {
621
+ _id: "aiChatMessageSourceItem__BreadcrumbIcon",
622
+ iconKey: "breadcrumbSeparator"
623
+ }), Ut = i(B, {
624
+ _id: "aiChatMessageSourceItem__Icon"
625
+ }), Jn = (t) => {
626
+ const { source: e } = L();
627
+ return /* @__PURE__ */ n(Ut, { iconSettings: e.icon, "data-type": e.type, ...t });
628
+ }, Vt = i("span", {
629
+ _id: "aiChatMessageSourceItem__Title"
630
+ }), Xn = (t) => {
631
+ const { source: e } = L();
632
+ return /* @__PURE__ */ n(Vt, { "data-type": e.type, children: e.title, ...t });
633
+ }, Kt = i("span", {
634
+ _id: "aiChatMessageSourceItem__Tag"
635
+ }), Zn = (t) => {
636
+ const { source: e } = L();
637
+ return /* @__PURE__ */ n(Kt, { "data-type": e.type, ...t });
638
+ }, qt = i("span", {
639
+ _id: "aiChatMessageSourceItem__Description"
640
+ }), eo = (t) => {
641
+ const { source: e } = L(), { children: a, ...o } = t, s = Se(() => e.description ? je(e.description) : [], [e.description]);
642
+ return s.length ? /* @__PURE__ */ n(
643
+ qt,
644
+ {
645
+ "data-type": e.type,
646
+ children: M(a, s),
647
+ ...o
648
+ }
649
+ ) : null;
650
+ }, jt = i("span", {
651
+ _id: "aiChatMessageSourceItem__DescriptionPart"
652
+ }), to = (t) => {
653
+ const { part: e, ...a } = t, { source: o } = L();
654
+ return typeof e == "string" ? e : /* @__PURE__ */ n(
655
+ jt,
656
+ {
657
+ "data-type": o.type,
658
+ children: e.content,
659
+ "data-highlighted": v(e.highlighted),
660
+ ...a
661
+ }
662
+ );
663
+ }, Gt = i(P, {
664
+ _id: "aiChatMessageSourceItem__Indicator"
665
+ }), io = (t) => {
666
+ const { source: e } = L();
667
+ return /* @__PURE__ */ n(
668
+ Gt,
669
+ {
670
+ iconKey: e.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
671
+ ...t
672
+ }
673
+ );
674
+ }, ao = i("div", {
675
+ _id: "aiChatFooter"
676
+ }), no = i("div", {
677
+ _id: "aiChatInput__Fieldset"
678
+ }), oo = i("div", {
679
+ _id: "aiChatInput__Group"
680
+ }), zt = i("textarea", {
681
+ _id: "aiChatInput"
682
+ }), so = q(({ onChange: t, onKeyDown: e, ...a }, o) => {
683
+ const { handleInputChange: s, handleInputKeyDown: r, input: c, error: d, shouldAutoFocusInput: m, inputRef: l } = g(), { aiChatSettings: u } = C(), p = le(
684
+ o,
685
+ l
686
+ ), A = Pe();
687
+ return be(() => {
688
+ requestAnimationFrame(() => {
689
+ m && l?.current && (l.current.focus(), l.current.selectionStart = l.current.value.length);
690
+ });
691
+ }, [m, l, A?.open]), /* @__PURE__ */ n(
692
+ zt,
693
+ {
694
+ asChild: !0,
695
+ ref: p,
696
+ maxLength: 99999,
697
+ placeholder: u.placeholder,
698
+ value: c,
699
+ onChange: h(t, s),
700
+ onKeyDown: h(e, r),
701
+ disabled: !!d || u.isViewOnly,
702
+ ...a,
703
+ children: /* @__PURE__ */ n(ee, {})
704
+ }
705
+ );
706
+ }), Yt = i("button", {
707
+ _id: "aiChatInput__SendButton"
708
+ }), ro = (t) => {
709
+ const { handleSubmit: e, isSubmitDisabled: a, error: o } = g(), { aiChatSettings: s } = C(), { onClick: r, ...c } = t;
710
+ return /* @__PURE__ */ n(
711
+ Yt,
712
+ {
713
+ onClick: h(r, () => e()),
714
+ "aria-label": "Send message",
715
+ disabled: a || !!o || s.isViewOnly,
716
+ ...c
717
+ }
718
+ );
719
+ }, co = i(P, {
720
+ _id: "aiChatInput__SendButtonIcon",
721
+ iconKey: "chatSubmit"
722
+ }), Jt = i("div", {
723
+ _id: "aiChatAttachmentsBar"
724
+ }), mo = (t) => {
725
+ const { selectedWorkflow: e } = g();
726
+ return !e || !e.supportedInputs?.length ? null : /* @__PURE__ */ n(ye, { children: /* @__PURE__ */ n(Jt, { ...t }) });
727
+ }, Xt = i("div", {
728
+ _id: "aiChatAttachmentsBar__List"
729
+ }), lo = (t) => {
730
+ const { children: e, ...a } = t, { messageAttachments: o } = g();
731
+ return /* @__PURE__ */ n(Xt, { children: M(e, o), ...a });
732
+ }, Zt = i("div", {
733
+ _id: "aiChatAttachmentsBar__Attachment"
734
+ }), ho = (t) => {
735
+ const { attachment: e, ...a } = t;
736
+ return /* @__PURE__ */ n(_e, { attachment: e, children: /* @__PURE__ */ n(Zt, { ...a }) });
737
+ }, ei = i(B, {
738
+ _id: "aiChatAttachmentsBar__AttachmentIcon"
739
+ }), uo = (t) => {
740
+ const { attachment: e } = R(), a = e.contentType?.attachmentIcon;
741
+ return a ? /* @__PURE__ */ n(ei, { iconSettings: a, ...t }) : null;
742
+ }, ti = i("span", {
743
+ _id: "aiChatAttachmentsBar__AttachmentTitle"
744
+ }), Co = (t) => {
745
+ const { attachment: e } = R();
746
+ return /* @__PURE__ */ n(ti, { children: e.title, ...t });
747
+ }, ii = i("button", {
748
+ _id: "aiChatAttachmentsBar__AttachmentDelete"
749
+ }), po = (t) => {
750
+ const { onClick: e, ...a } = t, { attachment: o } = R(), { setMessageAttachments: s } = g();
751
+ return /* @__PURE__ */ n(
752
+ ii,
753
+ {
754
+ "aria-label": "Remove attachment",
755
+ children: /* @__PURE__ */ n(P, { iconKey: "close" }),
756
+ onClick: h(e, () => {
757
+ s((c) => c.filter((d) => d.id !== o.id));
758
+ }),
759
+ ...a
760
+ }
761
+ );
762
+ }, vo = i("div", {
763
+ _id: "aiChatAttachmentsBar__Actions"
764
+ }), go = i(E.Tooltip, {
765
+ _id: "aiChatAttachmentsBar__InfoTip",
766
+ delayDuration: 0
767
+ }), bo = i(E.Trigger, {
768
+ _id: "aiChatAttachmentsBar__InfoTipIcon",
769
+ children: /* @__PURE__ */ n(P, { iconKey: "info" })
770
+ }), ai = i(E.Arrow, {
771
+ _id: "aiChatAttachmentsBar__InfoTipArrow"
772
+ }), _o = i(E.Content, {
773
+ _id: "aiChatAttachmentsBar__InfoTipText",
774
+ side: "bottom",
775
+ sideOffset: 3,
776
+ align: "center",
777
+ children: /* @__PURE__ */ K(Z, { children: [
778
+ /* @__PURE__ */ n(ai, {}),
779
+ "Attachments will be kept in context for the entire conversation."
780
+ ] })
781
+ }), ni = i("div", {
782
+ _id: "aiChatAttachmentsBar__Inputs"
783
+ }), Ao = (t) => {
784
+ const { children: e, ...a } = t, { selectedWorkflow: o } = g();
785
+ return o?.supportedInputs ? /* @__PURE__ */ n(
786
+ ni,
787
+ {
788
+ children: M(e, o.supportedInputs),
789
+ ...a
790
+ }
791
+ ) : null;
792
+ }, oi = i("button", {
793
+ _id: "aiChatAttachmentsBar__Input"
794
+ }), Po = (t) => {
795
+ const { input: e, onClick: a, ...o } = t, { selectedWorkflow: s, messageAttachments: r, setMessageAttachments: c } = g(), { selectInput: d, onOpen: m } = I(), l = () => {
796
+ if (e.type === "FUNCTIONAL_MULTI_ATTACHMENT")
797
+ return s ? e.onInvoke(s, e, c, [...r]) : void 0;
798
+ d(e), m();
799
+ };
800
+ return /* @__PURE__ */ n(
801
+ oi,
802
+ {
803
+ children: e.displayName,
804
+ onClick: h(a, l),
805
+ ...o
806
+ }
807
+ );
808
+ }, Fo = i(ke, {
809
+ _id: "aiChatAttachmentsBar__InputIcon"
810
+ }), si = i(se, {
811
+ _id: "aiChatAttachmentsBar__Modal"
812
+ }), Io = (t) => {
813
+ const { onOpenChange: e, ...a } = t, { selectInput: o, isOpen: s, onClose: r, selectedInput: c } = I();
814
+ return /* @__PURE__ */ n(
815
+ si,
816
+ {
817
+ open: s && c !== null,
818
+ onOpenChange: h(e, (m) => {
819
+ m || (r(), o(null));
820
+ }),
821
+ ...a
822
+ }
823
+ );
824
+ }, Mo = i(ie, {
825
+ _id: "aiChatAttachmentsBar__ModalOverlay"
826
+ }), So = i(ae, {
827
+ _id: "aiChatAttachmentsBar__ModalContent",
828
+ "aria-describedby": void 0
829
+ }), fo = i("div", {
830
+ _id: "aiChatAttachmentsBar__ModalHeader"
831
+ }), ri = i(oe, {
832
+ _id: "aiChatAttachmentsBar__ModalHeading"
833
+ }), ko = (t) => {
834
+ const { selectedInput: e } = I(), a = `Add ${e?.displayName}`;
835
+ return /* @__PURE__ */ n(ri, { children: a, ...t });
836
+ }, ci = i("span", {
837
+ _id: "aiChatAttachmentsBar__ModalDescription"
838
+ }), Eo = (t) => {
839
+ const { selectedInput: e } = I(), a = e?.workflowModalProps?.modalHelpText;
840
+ return a ? /* @__PURE__ */ n(ci, { children: a, ...t }) : null;
841
+ }, di = i("div", {
842
+ _id: "aiChatAttachmentsBar__ModalHelp"
843
+ }), Bo = (t) => {
844
+ const { children: e, ...a } = t, { selectedInput: o } = I(), s = o?.workflowModalProps?.modalHelpElement;
845
+ return s ? /* @__PURE__ */ n(di, { asChild: !e, children: e || s, ...a }) : null;
846
+ }, To = i(ne, {
847
+ _id: "aiChatAttachmentsBar__ModalClose",
848
+ children: /* @__PURE__ */ n(P, { iconKey: "close" })
849
+ }), yo = i("div", {
850
+ _id: "aiChatAttachmentsBar__ModalBody"
851
+ }), mi = i("form", {
852
+ _id: "aiChatAttachmentsBar__Form"
853
+ }), wo = (t) => {
854
+ const { onSubmit: e, ...a } = t, { form: o } = I();
855
+ return /* @__PURE__ */ n(
856
+ mi,
857
+ {
858
+ onSubmit: h(e, o.onSubmit),
859
+ ...a
860
+ }
861
+ );
862
+ }, Lo = i("div", {
863
+ _id: "aiChatAttachmentsBar__FormTitle",
864
+ role: "group"
865
+ }), li = i("label", {
866
+ _id: "aiChatAttachmentsBar__FormTitleLabel"
867
+ }), Ho = (t) => {
868
+ const { form: e, selectedInput: a } = I();
869
+ return /* @__PURE__ */ n(
870
+ li,
871
+ {
872
+ htmlFor: `${a?.id}-title`,
873
+ children: e.labels.title,
874
+ ...t
875
+ }
876
+ );
877
+ }, hi = i("input", {
878
+ _id: "aiChatAttachmentsBar__FormTitleInput"
879
+ }), Do = (t) => {
880
+ const { onChange: e, ...a } = t, { form: o, selectedInput: s } = I();
881
+ return /* @__PURE__ */ n(
882
+ hi,
883
+ {
884
+ name: "title",
885
+ value: o.data.title,
886
+ id: `${s?.id}-title`,
887
+ "data-invalid": v(!!o.errors.title),
888
+ "aria-invalid": !!o.errors.title,
889
+ onChange: h(e, o.onChange),
890
+ ...a
891
+ }
892
+ );
893
+ }, ui = i("span", {
894
+ _id: "aiChatAttachmentsBar__FormTitleError"
895
+ }), xo = (t) => {
896
+ const { form: e } = I();
897
+ return e.errors.title ? /* @__PURE__ */ n(
898
+ ui,
899
+ {
900
+ "aria-live": "polite",
901
+ children: e.errors.title,
902
+ ...t
903
+ }
904
+ ) : null;
905
+ }, Oo = i("div", {
906
+ _id: "aiChatAttachmentsBar__FormTitle",
907
+ role: "group"
908
+ }), Ci = i("label", {
909
+ _id: "aiChatAttachmentsBar__FormContentLabel"
910
+ }), No = (t) => {
911
+ const { form: e, selectedInput: a } = I();
912
+ return /* @__PURE__ */ n(
913
+ Ci,
914
+ {
915
+ htmlFor: `${a?.id}-content`,
916
+ children: e.labels.content,
917
+ ...t
918
+ }
919
+ );
920
+ }, pi = i("textarea", {
921
+ _id: "aiChatAttachmentsBar__FormTitleInput"
922
+ }), Wo = (t) => {
923
+ const { onChange: e, ...a } = t, { form: o, selectedInput: s } = I();
924
+ return /* @__PURE__ */ n(
925
+ pi,
926
+ {
927
+ asChild: !0,
928
+ rows: 4,
929
+ name: "content",
930
+ value: o.data.content,
931
+ id: `${s?.id}-content`,
932
+ "data-invalid": v(!!o.errors.content),
933
+ "aria-invalid": !!o.errors.content,
934
+ onChange: h(e, o.onChange),
935
+ ...a,
936
+ children: /* @__PURE__ */ n(ee, { maxRows: 10 })
937
+ }
938
+ );
939
+ }, vi = i("span", {
940
+ _id: "aiChatAttachmentsBar__FormContentError"
941
+ }), Qo = (t) => {
942
+ const { form: e } = I();
943
+ return e.errors.content ? /* @__PURE__ */ n(
944
+ vi,
945
+ {
946
+ "aria-live": "polite",
947
+ children: e.errors.content,
948
+ ...t
949
+ }
950
+ ) : null;
951
+ }, $o = i("button", {
952
+ _id: "aiChatAttachmentsBar__FormSubmitButton",
953
+ children: "Upload",
954
+ type: "submit"
955
+ }), Ro = i("div", {
956
+ _id: "aiChatActionBar"
957
+ }), Uo = i("div", {
958
+ _id: "aiChat__ChatActions"
959
+ }), Vo = i("div", {
960
+ _id: "aiChatTagline__Container"
961
+ }), Ko = i("span", {
962
+ _id: "aiChatTagline__Text",
963
+ children: "Powered by"
964
+ }), qo = i(We, {
965
+ _id: "aiChatTagline__Logo"
966
+ }), jo = i("a", {
967
+ _id: "aiChatTagline__BrandName",
968
+ children: "inkeep",
969
+ href: "https://www.inkeep.com/",
970
+ target: "_blank",
971
+ rel: "noopener noreferrer"
972
+ }), gi = i("div", {
973
+ _id: "aiChat__ChatAction"
974
+ }), Fe = (t) => {
975
+ const { action: e, onClick: a, className: o, ...s } = t, { clear: r, stop: c, isLoading: d, messages: m, selectedWorkflow: l } = g(), { conversation: u } = re(), { aiChatSettings: p, baseSettings: A } = C(), { logEvent: S } = U(), [T, O] = X(), [D, Y] = X();
976
+ if ({
977
+ help: !1,
978
+ copy: m.length === 0 || !p.shouldShowCopyChatButton || d,
979
+ share: m.length === 0 || !p.isChatSharingEnabled || !u.id || !!l || d,
980
+ clear: m.length === 0 || p.isViewOnly || d,
981
+ stop: !d
982
+ }[e]) return null;
983
+ const Ce = {
984
+ // Help actions are handled by HelpAction component
985
+ help: () => {
986
+ },
987
+ copy: () => {
988
+ const N = m.map((y) => {
989
+ const W = `**${y.role === "assistant" ? "AI Assistant" : "User"}**`, w = Q(y), x = Oe(y.metadata?.attributes?.attachments), V = x ? `
990
+
991
+ **Attachments**
992
+
993
+ ${x}` : "";
994
+ return `${W}
995
+
996
+ ${w}${V}`;
997
+ }).join(`
998
+
999
+ ---
1000
+
1001
+ `);
1002
+ O(N);
1003
+ },
1004
+ share: async () => {
1005
+ const N = {
1006
+ visibility: "public",
1007
+ tags: [],
1008
+ userProperties: {},
1009
+ messages: u.messages.map((x) => ({
1010
+ ...x,
1011
+ id: Date.now().toString() + x.id,
1012
+ conversationId: void 0
1013
+ }))
1014
+ }, { apiKey: y, analyticsBaseUrl: W } = A, w = await Ye("", N, y, W);
1015
+ if (w) {
1016
+ const V = `${p.shareChatUrlBasePath}?${Le}=${w?.id}`;
1017
+ Y(V), S({
1018
+ eventName: "chat_share_button_clicked",
1019
+ properties: {
1020
+ sharedConversationId: w?.id,
1021
+ originalConversationId: u.id,
1022
+ sharedChatUrl: V
1023
+ }
1024
+ });
1025
+ }
1026
+ },
1027
+ clear: r,
1028
+ stop: c
1029
+ }, pe = {
1030
+ copy: T,
1031
+ share: D
1032
+ };
1033
+ return /* @__PURE__ */ n(E.Tooltip, { delayDuration: 0, open: pe[e], children: /* @__PURE__ */ n(
1034
+ gi,
1035
+ {
1036
+ "data-type": e,
1037
+ "data-copied": v(T || D),
1038
+ className: `${o} ${e}`,
1039
+ children: /* @__PURE__ */ n(_i, { action: e }),
1040
+ onClick: h(a, Ce[e]),
1041
+ ...s
1042
+ }
1043
+ ) });
1044
+ }, bi = i(E.Trigger, {
1045
+ _id: "aiChat__ChatActionLabel"
1046
+ }), _i = (t) => {
1047
+ const { action: e, ...a } = t, { aiChatSettings: o } = C(), {
1048
+ getHelpButtonLabel: s,
1049
+ clearButtonLabel: r,
1050
+ shareButtonLabel: c,
1051
+ stopButtonLabel: d,
1052
+ copyChatButtonLabel: m
1053
+ } = o.actionButtonLabels ?? {};
1054
+ return /* @__PURE__ */ n(bi, { children: {
1055
+ help: s ?? "Get Help",
1056
+ copy: m ?? "Copy",
1057
+ share: c ?? "Share",
1058
+ clear: r ?? "Clear",
1059
+ stop: d ?? "Stop"
1060
+ }[e], ...a });
1061
+ }, Ai = i(E.TooltipContent, {
1062
+ _id: "aiChat__ChatActionFeeback"
1063
+ }), Go = (t) => {
1064
+ const { action: e, children: a, ...o } = t, s = {
1065
+ copy: "Copied!",
1066
+ share: "Link copied!"
1067
+ };
1068
+ return /* @__PURE__ */ K(Ai, { sideOffset: 5, ...o, children: [
1069
+ /* @__PURE__ */ n(E.Arrow, {}),
1070
+ a || s[e]
1071
+ ] });
1072
+ }, Pi = i(k.Root, {
1073
+ _id: "aiChatHelpActions"
1074
+ }), zo = (t) => {
1075
+ const { children: e, ...a } = t, { aiChatSettings: o } = C(), { getHelpCallToActions: s } = o;
1076
+ if (!s || (s ?? []).length === 0)
1077
+ return null;
1078
+ const { _pinned: r, _unpinned: c } = s.reduce(
1079
+ (u, p) => {
1080
+ const A = p.pinToToolbar ? "_pinned" : "_unpinned";
1081
+ return { ...u, [A]: [...u[A], p] };
1082
+ },
1083
+ { _pinned: [], _unpinned: [] }
1084
+ ), d = c.length === 1 ? [...r, c[0]] : r, m = c.length === 1 ? [] : c, l = Re();
1085
+ return /* @__PURE__ */ n(Ue, { value: l, children: /* @__PURE__ */ n(
1086
+ Pi,
1087
+ {
1088
+ open: l.open,
1089
+ onOpenChange: l.setOpen,
1090
+ children: M(e, { pinned: d, unpinned: m }),
1091
+ ...a
1092
+ }
1093
+ ) });
1094
+ }, Fi = i(Fe, {
1095
+ _id: "aiChatHelpAction"
1096
+ }), Yo = (t) => {
1097
+ const { action: e, onClick: a, ...o } = t, { handleAction: s, logHelpAction: r } = me(e), c = e.action.type, d = c === "OPEN_LINK" ? /* @__PURE__ */ n("a", { href: e.action.url, target: "_blank", rel: "noreferrer", children: e.name }) : e.name;
1098
+ return /* @__PURE__ */ n(
1099
+ Fi,
1100
+ {
1101
+ action: "help",
1102
+ "aria-label": e.name,
1103
+ "data-name": e.name,
1104
+ children: d,
1105
+ asChild: c === "OPEN_LINK",
1106
+ onClick: h(a, () => {
1107
+ s(), r();
1108
+ }),
1109
+ ...o
1110
+ }
1111
+ );
1112
+ }, Ii = i(k.Trigger, {
1113
+ _id: "aiChatHelpActions__Trigger"
1114
+ }), Jo = F(
1115
+ (t) => {
1116
+ const { aiChatSettings: e } = C();
1117
+ return /* @__PURE__ */ n(Fe, { action: "help", ...t, asChild: !0, children: /* @__PURE__ */ n(Ii, { children: e.actionButtonLabels?.getHelpButtonLabel ?? "Get Help" }) });
1118
+ }
1119
+ ), Mi = i(k.Content, {
1120
+ _id: "aiChatHelpActions__Menu"
1121
+ }), Xo = (t) => /* @__PURE__ */ n(
1122
+ Mi,
1123
+ {
1124
+ side: "top",
1125
+ sideOffset: 8,
1126
+ align: "center",
1127
+ alignOffset: -10,
1128
+ ...t
1129
+ }
1130
+ ), Zo = i(k.Arrow, {
1131
+ _id: "aiChatHelpActions__MenuArrow"
1132
+ }), es = (t) => {
1133
+ const { action: e, onClick: a, ...o } = t, { handleAction: s, logHelpAction: r } = me(e), { setOpen: c } = Ve(), d = () => {
1134
+ s({
1135
+ onOpenForm: () => c(!1)
1136
+ }), r();
1137
+ }, m = e.action.type, l = i(m === "OPEN_LINK" ? "a" : "button", {
1138
+ _id: "aiChatHelpActions__MenuItem",
1139
+ children: e.name,
1140
+ "aria-label": e.name,
1141
+ "data-name": e.name,
1142
+ "data-type": e.action.type,
1143
+ ...m === "OPEN_LINK" && {
1144
+ href: e.action.url,
1145
+ target: "_blank",
1146
+ rel: "noopener"
1147
+ },
1148
+ onClick: h(a, d)
1149
+ });
1150
+ return /* @__PURE__ */ n(l, { ...o });
1151
+ }, Si = i(B, {
1152
+ _id: "aiChatHelpActions_MenuItemIcon"
1153
+ }), ts = (t) => {
1154
+ const { action: e, ...a } = t;
1155
+ return e.icon ? /* @__PURE__ */ n(Si, { iconSettings: e.icon, ...a }) : null;
1156
+ }, fi = i(se, {
1157
+ _id: "aiChatFeedbackModal"
1158
+ }), is = (t) => {
1159
+ const { onOpenChange: e, ...a } = t, { currentFeedback: o, setCurrentFeedback: s } = ce();
1160
+ return /* @__PURE__ */ n(
1161
+ fi,
1162
+ {
1163
+ open: o !== null,
1164
+ onOpenChange: h(e, () => s(null)),
1165
+ ...a
1166
+ }
1167
+ );
1168
+ }, as = i(ie, {
1169
+ _id: "aiChatFeedbackModal__Overlay"
1170
+ }), ns = i(ae, {
1171
+ _id: "aiChatFeedbackModal__Content",
1172
+ "aria-describedby": void 0
1173
+ }), os = i(oe, {
1174
+ _id: "aiChatFeedbackModal__Header",
1175
+ children: "Help improve my answers!"
1176
+ }), ss = i(ne, {
1177
+ _id: "aiChatFeedbackModal__Close",
1178
+ children: /* @__PURE__ */ n(P, { iconKey: "close" })
1179
+ }), rs = i("div", {
1180
+ _id: "aiChatFeedbackModal__Body"
1181
+ }), ki = i("form", {
1182
+ _id: "aiChatFeedbackForm"
1183
+ }), cs = (t) => {
1184
+ const { onSubmit: e, ...a } = t, { submitNegativeFeedback: o, currentFeedback: s, setCurrentFeedback: r } = ce();
1185
+ return /* @__PURE__ */ n(ki, { onSubmit: h(e, (d) => {
1186
+ d.preventDefault();
1187
+ const m = d.target, l = new FormData(m), u = Object.fromEntries(l.entries());
1188
+ s && (o(s, u), r(null));
1189
+ }), ...a });
1190
+ }, Ei = i("div", {
1191
+ _id: "aiChatFeedbackItem"
1192
+ }), ds = (t) => {
1193
+ const { name: e, ...a } = t;
1194
+ return /* @__PURE__ */ n(xe, { name: e, children: /* @__PURE__ */ n(Ei, { ...a }) });
1195
+ }, Bi = i(j.Root, {
1196
+ _id: "aiChatFeedbackItem__Checkbox"
1197
+ }), ms = (t) => {
1198
+ const { name: e, focusItem: a } = de(), { onCheckedChange: o, ...s } = t, r = (c) => {
1199
+ c && a?.current?.focus();
1200
+ };
1201
+ return /* @__PURE__ */ n(
1202
+ Bi,
1203
+ {
1204
+ id: `feedback-${e}`,
1205
+ name: e,
1206
+ onCheckedChange: h(o, r),
1207
+ ...s
1208
+ }
1209
+ );
1210
+ }, ls = i(j.Indicator, {
1211
+ _id: "aiChatFeedbackItem__CheckboxIndicator",
1212
+ children: /* @__PURE__ */ n(Ae, {})
1213
+ }), Ti = i("label", {
1214
+ _id: "aiChatFeedbackItem__Label"
1215
+ }), hs = (t) => {
1216
+ const { name: e } = de(), a = {
1217
+ unrelated_response: "Didn't answer my question",
1218
+ inaccurate_statement: "Inaccurate statement",
1219
+ inaccurate_code_snippet: "Inaccurate code snippet",
1220
+ irrelevant_citations: "Irrelevant citations"
1221
+ };
1222
+ return /* @__PURE__ */ n(Ti, { htmlFor: `feedback-${e}`, children: a[e], ...t });
1223
+ }, yi = i("textarea", {
1224
+ _id: "aiChatFeedbackItem__Description",
1225
+ placeholder: "Please describe"
1226
+ }), us = (t) => {
1227
+ const { name: e, focusItem: a } = de();
1228
+ return /* @__PURE__ */ n(
1229
+ yi,
1230
+ {
1231
+ ref: a,
1232
+ name: `${e}:description`,
1233
+ ...t
1234
+ }
1235
+ );
1236
+ }, Cs = i("button", {
1237
+ _id: "aiChatFeedbackForm__SubmitButton",
1238
+ children: "Submit",
1239
+ type: "submit"
1240
+ }), wi = i("div", {
1241
+ _id: "aiChatForm__Wrapper"
1242
+ }), ps = (t) => {
1243
+ const { form: e } = _();
1244
+ return e ? /* @__PURE__ */ n(wi, { ...t }) : null;
1245
+ }, Li = i("form", {
1246
+ _id: "aiChatForm"
1247
+ }), vs = (t) => {
1248
+ const { onSubmit: e, ...a } = t, { handleSubmit: o, isSuccess: s } = _();
1249
+ return s ? null : /* @__PURE__ */ n(Li, { onSubmit: h(e, o), ...a });
1250
+ }, Hi = i("button", {
1251
+ _id: "aiChatForm__Close",
1252
+ children: /* @__PURE__ */ n(P, { iconKey: "close" })
1253
+ }), gs = (t) => {
1254
+ const { onClick: e, ...a } = t, { closeForm: o } = _();
1255
+ return /* @__PURE__ */ n(Hi, { onClick: h(e, o), ...a });
1256
+ }, bs = i("div", {
1257
+ _id: "aiChatForm__Header"
1258
+ }), Di = i("h2", {
1259
+ _id: "aiChatForm__Heading"
1260
+ }), _s = (t) => {
1261
+ const { form: e } = _();
1262
+ return e?.heading ? /* @__PURE__ */ n(Di, { children: e.heading, ...t }) : null;
1263
+ }, xi = i("span", {
1264
+ _id: "aiChatForm__Description"
1265
+ }), As = (t) => {
1266
+ const { form: e } = _();
1267
+ return e?.description ? /* @__PURE__ */ n(xi, { children: e.description, ...t }) : null;
1268
+ }, Oi = i("div", {
1269
+ _id: "aiChatForm__Content"
1270
+ }), Ps = (t) => {
1271
+ const { children: e, ...a } = t, { fields: o = [] } = _();
1272
+ return /* @__PURE__ */ n(Oi, { children: M(e, o), ...a });
1273
+ }, Ni = i("div", {
1274
+ _id: "aiChatForm__Field"
1275
+ }), Fs = (t) => {
1276
+ const { field: e, autoFocus: a, ...o } = t, { control: s, errors: r } = _();
1277
+ return /* @__PURE__ */ n(
1278
+ qe,
1279
+ {
1280
+ name: e.name,
1281
+ control: s,
1282
+ rules: { required: e.required ? `${e.label} is required.` : void 0 },
1283
+ render: ({ field: c }) => {
1284
+ const d = c.value !== void 0 || e.inputType === "FILE";
1285
+ return /* @__PURE__ */ n(
1286
+ Ke,
1287
+ {
1288
+ "data-invalid": v(!!r[e.name]),
1289
+ field: e,
1290
+ fieldProps: c,
1291
+ autoFocus: a,
1292
+ children: d && /* @__PURE__ */ n(
1293
+ Ni,
1294
+ {
1295
+ "data-input-type": e.inputType,
1296
+ "data-hidden": v(e.isHidden),
1297
+ ...o
1298
+ }
1299
+ )
1300
+ }
1301
+ );
1302
+ }
1303
+ }
1304
+ );
1305
+ }, Wi = i("label", {
1306
+ _id: "aiChatForm__FieldLabel"
1307
+ }), Is = (t) => {
1308
+ const { field: e } = H();
1309
+ return /* @__PURE__ */ n(
1310
+ Wi,
1311
+ {
1312
+ "data-required": v(e.required),
1313
+ htmlFor: e.name,
1314
+ children: e.label,
1315
+ ...t
1316
+ }
1317
+ );
1318
+ }, Qi = i("input", {
1319
+ _id: "aiChatForm__FieldText",
1320
+ type: "text"
1321
+ }), Ie = (t) => {
1322
+ const {
1323
+ field: e,
1324
+ error: a,
1325
+ fieldProps: { onChange: o, onBlur: s, ...r },
1326
+ autoFocus: c
1327
+ } = H(), { onChange: d, onBlur: m, ...l } = t;
1328
+ return /* @__PURE__ */ n(
1329
+ Qi,
1330
+ {
1331
+ id: e.name,
1332
+ autoFocus: c,
1333
+ placeholder: "placeholder" in e ? e.placeholder : void 0,
1334
+ "data-invalid": v(!!a),
1335
+ onChange: h(d, o),
1336
+ onBlur: h(m, s),
1337
+ ...r,
1338
+ ...l
1339
+ }
1340
+ );
1341
+ }, Ms = i(Ie, {
1342
+ _id: "aiChatForm__FieldEmail",
1343
+ type: "email"
1344
+ }), $i = i("input", {
1345
+ _id: "aiChatForm__FieldFile",
1346
+ type: "file",
1347
+ multiple: !0
1348
+ }), Ss = (t) => {
1349
+ const {
1350
+ field: e,
1351
+ error: a,
1352
+ fieldProps: { value: o, onChange: s, onBlur: r, ...c },
1353
+ autoFocus: d
1354
+ } = H(), { onChange: m, onBlur: l, ...u } = t, p = (A) => {
1355
+ const S = A.target.files;
1356
+ s(S);
1357
+ };
1358
+ return /* @__PURE__ */ n(
1359
+ $i,
1360
+ {
1361
+ id: e.name,
1362
+ autoFocus: d,
1363
+ "data-value": o,
1364
+ "data-invalid": v(!!a),
1365
+ ...u,
1366
+ ...c,
1367
+ onChange: h(m, p),
1368
+ onBlur: h(l, r)
1369
+ }
1370
+ );
1371
+ }, fs = i(Ie, {
1372
+ _id: "aiChatForm__FieldTextArea",
1373
+ type: "textarea",
1374
+ asChild: !0,
1375
+ children: /* @__PURE__ */ n(ee, { maxRows: 8 })
1376
+ }), Ri = i(j.Root, {
1377
+ _id: "aiChatForm__FieldCheckbox"
1378
+ }), ks = (t) => {
1379
+ const { field: e, error: a, fieldProps: o, autoFocus: s } = H(), { onCheckedChange: r, ...c } = t;
1380
+ return /* @__PURE__ */ n(
1381
+ Ri,
1382
+ {
1383
+ id: e.name,
1384
+ name: e.name,
1385
+ autoFocus: s,
1386
+ "data-invalid": v(!!a),
1387
+ checked: o.value,
1388
+ onCheckedChange: h(r, o.onChange),
1389
+ ...c
1390
+ }
1391
+ );
1392
+ }, Es = i(j.Indicator, {
1393
+ _id: "aiChatForm__FieldCheckboxIndicator",
1394
+ children: /* @__PURE__ */ n(Ae, {})
1395
+ }), Ui = i(f.Root, {
1396
+ _id: "aiChatForm__FieldSelect"
1397
+ }), Bs = (t) => {
1398
+ const { field: e, error: a, fieldProps: o } = H(), { onValueChange: s, ...r } = t;
1399
+ return /* @__PURE__ */ n(
1400
+ Ui,
1401
+ {
1402
+ name: e.name,
1403
+ "data-invalid": v(!!a),
1404
+ value: o.value,
1405
+ onValueChange: h(s, o.onChange),
1406
+ ...r
1407
+ }
1408
+ );
1409
+ }, Ts = i(f.Trigger, {
1410
+ _id: "aiChatForm__FieldSelect__Trigger"
1411
+ }), Vi = i(f.Value, {
1412
+ _id: "aiChatForm__FieldSelect__Value"
1413
+ }), ys = (t) => {
1414
+ const { field: e } = H();
1415
+ return /* @__PURE__ */ n(
1416
+ Vi,
1417
+ {
1418
+ placeholder: "placeholder" in e ? e.placeholder : void 0,
1419
+ ...t
1420
+ }
1421
+ );
1422
+ }, ws = i(f.Icon, {
1423
+ _id: "aiChatForm__FieldSelect__Icon",
1424
+ asChild: !0,
1425
+ children: /* @__PURE__ */ n(B, { iconSettings: { builtIn: "LuChevronDown" } })
1426
+ }), Ls = i(f.Content, {
1427
+ _id: "aiChatForm__FieldSelect__Content",
1428
+ position: "popper"
1429
+ }), Hs = i(f.Viewport, {
1430
+ _id: "aiChatForm__FieldSelect__Viewport"
1431
+ }), Ds = i(f.Item, {
1432
+ _id: "aiChatForm__FieldSelect__Item"
1433
+ }), xs = i(f.ItemText, {
1434
+ _id: "aiChatForm__FieldSelect__ItemText"
1435
+ }), Os = i(
1436
+ f.ItemIndicator,
1437
+ {
1438
+ _id: "aiChatForm__FieldSelect__ItemIndicator",
1439
+ asChild: !0,
1440
+ children: /* @__PURE__ */ n(B, { iconSettings: { builtIn: "LuCheck" } })
1441
+ }
1442
+ ), Ki = i("span", {
1443
+ _id: "aiChatForm__FieldError"
1444
+ }), Ns = (t) => {
1445
+ const { error: e } = H();
1446
+ return e ? /* @__PURE__ */ n(Ki, { children: e.message?.toString(), ...t }) : null;
1447
+ }, qi = i("span", {
1448
+ _id: "aiChatForm__Error"
1449
+ }), Ws = (t) => {
1450
+ const { formError: e } = _();
1451
+ return e ? /* @__PURE__ */ n(qi, { children: e.message, ...t }) : null;
1452
+ }, Qs = i("div", {
1453
+ _id: "aiChatForm__Footer"
1454
+ }), ji = i("button", {
1455
+ _id: "aiChatForm__Cancel",
1456
+ children: "Cancel"
1457
+ }), $s = (t) => {
1458
+ const { onClick: e, ...a } = t, { closeForm: o } = _();
1459
+ return /* @__PURE__ */ n(ji, { onClick: h(e, o), ...a });
1460
+ }, Gi = i("button", {
1461
+ _id: "aiChatForm__Submit",
1462
+ children: "Submit",
1463
+ type: "submit"
1464
+ }), Rs = (t) => {
1465
+ const { onClick: e, ...a } = t, { isSubmitting: o } = _();
1466
+ return /* @__PURE__ */ n(Gi, { disabled: o, ...a });
1467
+ }, zi = i("div", {
1468
+ _id: "aiChatForm__Success"
1469
+ }), Us = (t) => {
1470
+ const { isSuccess: e } = _();
1471
+ return e ? /* @__PURE__ */ n(zi, { ...t }) : null;
1472
+ }, Yi = i("h2", {
1473
+ _id: "aiChatForm__SuccessHeading"
1474
+ }), Vs = (t) => {
1475
+ const { form: e } = _();
1476
+ return /* @__PURE__ */ n(Yi, { children: e?.successView.heading, ...t });
1477
+ }, Ji = i(G, {
1478
+ _id: "aiChatForm__SuccessMessage"
1479
+ }), Ks = (t) => {
1480
+ const { form: e } = _();
1481
+ return /* @__PURE__ */ n(Ji, { children: e?.successView.message, ...t });
1482
+ }, Xi = i("button", {
1483
+ _id: "aiChatForm__SuccessButton"
1484
+ }), qs = (t) => {
1485
+ const { onClick: e, ...a } = t, { form: o, closeForm: s } = _(), r = o?.successView?.button;
1486
+ if (!r) return null;
1487
+ const c = r.icon && /* @__PURE__ */ n(B, { iconSettings: r.icon }), d = r.label;
1488
+ return /* @__PURE__ */ n(
1489
+ Xi,
1490
+ {
1491
+ onClick: h(e, s),
1492
+ children: /* @__PURE__ */ K(Z, { children: [
1493
+ c,
1494
+ d
1495
+ ] }),
1496
+ ...a
1497
+ }
1498
+ );
1499
+ };
1500
+ export {
1501
+ Ro as ActionBar,
1502
+ Uo as Actions,
1503
+ mo as AttachmentsBar,
1504
+ vo as AttachmentsBarActions,
1505
+ ho as AttachmentsBarAttachment,
1506
+ po as AttachmentsBarAttachmentDelete,
1507
+ uo as AttachmentsBarAttachmentIcon,
1508
+ Co as AttachmentsBarAttachmentTitle,
1509
+ wo as AttachmentsBarForm,
1510
+ Oo as AttachmentsBarFormContent,
1511
+ Qo as AttachmentsBarFormContentError,
1512
+ Wo as AttachmentsBarFormContentInput,
1513
+ No as AttachmentsBarFormContentLabel,
1514
+ $o as AttachmentsBarFormSubmitButton,
1515
+ Lo as AttachmentsBarFormTitle,
1516
+ xo as AttachmentsBarFormTitleError,
1517
+ Do as AttachmentsBarFormTitleInput,
1518
+ Ho as AttachmentsBarFormTitleLabel,
1519
+ go as AttachmentsBarInfoTip,
1520
+ ai as AttachmentsBarInfoTipArrow,
1521
+ bo as AttachmentsBarInfoTipIcon,
1522
+ _o as AttachmentsBarInfoTipText,
1523
+ Po as AttachmentsBarInput,
1524
+ Fo as AttachmentsBarInputIcon,
1525
+ Ao as AttachmentsBarInputs,
1526
+ lo as AttachmentsBarList,
1527
+ Io as AttachmentsBarModal,
1528
+ yo as AttachmentsBarModalBody,
1529
+ To as AttachmentsBarModalClose,
1530
+ So as AttachmentsBarModalContent,
1531
+ Eo as AttachmentsBarModalDescription,
1532
+ fo as AttachmentsBarModalHeader,
1533
+ ko as AttachmentsBarModalHeading,
1534
+ Bo as AttachmentsBarModalHelp,
1535
+ Mo as AttachmentsBarModalOverlay,
1536
+ Fe as ChatAction,
1537
+ Go as ChatActionFeedback,
1538
+ _i as ChatActionLabel,
1539
+ Yo as ChatHelpAction,
1540
+ za as Content,
1541
+ Ya as ContentScrollArea,
1542
+ en as ContentScrollAreaCorner,
1543
+ Xa as ContentScrollAreaScrollbar,
1544
+ Za as ContentScrollAreaThumb,
1545
+ Ja as ContentScrollAreaViewport,
1546
+ Ua as ConversationLoading,
1547
+ an as Disclaimer,
1548
+ cn as DisclaimerArrow,
1549
+ sn as DisclaimerContent,
1550
+ nn as DisclaimerLabel,
1551
+ rn as DisclaimerText,
1552
+ on as DisclaimerTrigger,
1553
+ Ro as EmbeddedChatPrimitiveActionBar,
1554
+ Uo as EmbeddedChatPrimitiveActions,
1555
+ mo as EmbeddedChatPrimitiveAttachmentsBar,
1556
+ vo as EmbeddedChatPrimitiveAttachmentsBarActions,
1557
+ ho as EmbeddedChatPrimitiveAttachmentsBarAttachment,
1558
+ po as EmbeddedChatPrimitiveAttachmentsBarAttachmentDelete,
1559
+ uo as EmbeddedChatPrimitiveAttachmentsBarAttachmentIcon,
1560
+ Co as EmbeddedChatPrimitiveAttachmentsBarAttachmentTitle,
1561
+ wo as EmbeddedChatPrimitiveAttachmentsBarForm,
1562
+ Oo as EmbeddedChatPrimitiveAttachmentsBarFormContent,
1563
+ Qo as EmbeddedChatPrimitiveAttachmentsBarFormContentError,
1564
+ Wo as EmbeddedChatPrimitiveAttachmentsBarFormContentInput,
1565
+ No as EmbeddedChatPrimitiveAttachmentsBarFormContentLabel,
1566
+ $o as EmbeddedChatPrimitiveAttachmentsBarFormSubmitButton,
1567
+ Lo as EmbeddedChatPrimitiveAttachmentsBarFormTitle,
1568
+ xo as EmbeddedChatPrimitiveAttachmentsBarFormTitleError,
1569
+ Do as EmbeddedChatPrimitiveAttachmentsBarFormTitleInput,
1570
+ Ho as EmbeddedChatPrimitiveAttachmentsBarFormTitleLabel,
1571
+ go as EmbeddedChatPrimitiveAttachmentsBarInfoTip,
1572
+ ai as EmbeddedChatPrimitiveAttachmentsBarInfoTipArrow,
1573
+ bo as EmbeddedChatPrimitiveAttachmentsBarInfoTipIcon,
1574
+ _o as EmbeddedChatPrimitiveAttachmentsBarInfoTipText,
1575
+ Po as EmbeddedChatPrimitiveAttachmentsBarInput,
1576
+ Fo as EmbeddedChatPrimitiveAttachmentsBarInputIcon,
1577
+ Ao as EmbeddedChatPrimitiveAttachmentsBarInputs,
1578
+ lo as EmbeddedChatPrimitiveAttachmentsBarList,
1579
+ Io as EmbeddedChatPrimitiveAttachmentsBarModal,
1580
+ yo as EmbeddedChatPrimitiveAttachmentsBarModalBody,
1581
+ To as EmbeddedChatPrimitiveAttachmentsBarModalClose,
1582
+ So as EmbeddedChatPrimitiveAttachmentsBarModalContent,
1583
+ Eo as EmbeddedChatPrimitiveAttachmentsBarModalDescription,
1584
+ fo as EmbeddedChatPrimitiveAttachmentsBarModalHeader,
1585
+ ko as EmbeddedChatPrimitiveAttachmentsBarModalHeading,
1586
+ Bo as EmbeddedChatPrimitiveAttachmentsBarModalHelp,
1587
+ Mo as EmbeddedChatPrimitiveAttachmentsBarModalOverlay,
1588
+ Fe as EmbeddedChatPrimitiveChatAction,
1589
+ Go as EmbeddedChatPrimitiveChatActionFeedback,
1590
+ _i as EmbeddedChatPrimitiveChatActionLabel,
1591
+ Yo as EmbeddedChatPrimitiveChatHelpAction,
1592
+ za as EmbeddedChatPrimitiveContent,
1593
+ Ya as EmbeddedChatPrimitiveContentScrollArea,
1594
+ en as EmbeddedChatPrimitiveContentScrollAreaCorner,
1595
+ Xa as EmbeddedChatPrimitiveContentScrollAreaScrollbar,
1596
+ Za as EmbeddedChatPrimitiveContentScrollAreaThumb,
1597
+ Ja as EmbeddedChatPrimitiveContentScrollAreaViewport,
1598
+ Ua as EmbeddedChatPrimitiveConversationLoading,
1599
+ an as EmbeddedChatPrimitiveDisclaimer,
1600
+ cn as EmbeddedChatPrimitiveDisclaimerArrow,
1601
+ sn as EmbeddedChatPrimitiveDisclaimerContent,
1602
+ nn as EmbeddedChatPrimitiveDisclaimerLabel,
1603
+ rn as EmbeddedChatPrimitiveDisclaimerText,
1604
+ on as EmbeddedChatPrimitiveDisclaimerTrigger,
1605
+ cs as EmbeddedChatPrimitiveFeedbackForm,
1606
+ ds as EmbeddedChatPrimitiveFeedbackItem,
1607
+ ms as EmbeddedChatPrimitiveFeedbackItemCheckbox,
1608
+ ls as EmbeddedChatPrimitiveFeedbackItemCheckboxIndicator,
1609
+ us as EmbeddedChatPrimitiveFeedbackItemDescription,
1610
+ hs as EmbeddedChatPrimitiveFeedbackItemLabel,
1611
+ is as EmbeddedChatPrimitiveFeedbackModal,
1612
+ rs as EmbeddedChatPrimitiveFeedbackModalBody,
1613
+ ss as EmbeddedChatPrimitiveFeedbackModalClose,
1614
+ ns as EmbeddedChatPrimitiveFeedbackModalContent,
1615
+ os as EmbeddedChatPrimitiveFeedbackModalHeader,
1616
+ as as EmbeddedChatPrimitiveFeedbackModalOverlay,
1617
+ Cs as EmbeddedChatPrimitiveFeedbackSubmitButton,
1618
+ ao as EmbeddedChatPrimitiveFooter,
1619
+ vs as EmbeddedChatPrimitiveForm,
1620
+ $s as EmbeddedChatPrimitiveFormCancel,
1621
+ gs as EmbeddedChatPrimitiveFormClose,
1622
+ Ps as EmbeddedChatPrimitiveFormContent,
1623
+ As as EmbeddedChatPrimitiveFormDescription,
1624
+ Ws as EmbeddedChatPrimitiveFormError,
1625
+ Fs as EmbeddedChatPrimitiveFormField,
1626
+ ks as EmbeddedChatPrimitiveFormFieldCheckbox,
1627
+ Es as EmbeddedChatPrimitiveFormFieldCheckboxIndicator,
1628
+ Ms as EmbeddedChatPrimitiveFormFieldEmail,
1629
+ Ns as EmbeddedChatPrimitiveFormFieldError,
1630
+ Ss as EmbeddedChatPrimitiveFormFieldFile,
1631
+ Is as EmbeddedChatPrimitiveFormFieldLabel,
1632
+ Bs as EmbeddedChatPrimitiveFormFieldSelect,
1633
+ Ls as EmbeddedChatPrimitiveFormFieldSelectContent,
1634
+ ws as EmbeddedChatPrimitiveFormFieldSelectIcon,
1635
+ Ds as EmbeddedChatPrimitiveFormFieldSelectItem,
1636
+ Os as EmbeddedChatPrimitiveFormFieldSelectItemIndicator,
1637
+ xs as EmbeddedChatPrimitiveFormFieldSelectItemText,
1638
+ Ts as EmbeddedChatPrimitiveFormFieldSelectTrigger,
1639
+ ys as EmbeddedChatPrimitiveFormFieldSelectValue,
1640
+ Hs as EmbeddedChatPrimitiveFormFieldSelectViewport,
1641
+ Ie as EmbeddedChatPrimitiveFormFieldText,
1642
+ fs as EmbeddedChatPrimitiveFormFieldTextArea,
1643
+ Qs as EmbeddedChatPrimitiveFormFooter,
1644
+ bs as EmbeddedChatPrimitiveFormHeader,
1645
+ _s as EmbeddedChatPrimitiveFormHeading,
1646
+ Rs as EmbeddedChatPrimitiveFormSubmit,
1647
+ Us as EmbeddedChatPrimitiveFormSuccess,
1648
+ qs as EmbeddedChatPrimitiveFormSuccessButton,
1649
+ Vs as EmbeddedChatPrimitiveFormSuccessHeading,
1650
+ Ks as EmbeddedChatPrimitiveFormSuccessMessage,
1651
+ ps as EmbeddedChatPrimitiveFormWrapper,
1652
+ qa as EmbeddedChatPrimitiveHeaderToolbar,
1653
+ zo as EmbeddedChatPrimitiveHelpActions,
1654
+ Xo as EmbeddedChatPrimitiveHelpActionsMenu,
1655
+ Zo as EmbeddedChatPrimitiveHelpActionsMenuArrow,
1656
+ es as EmbeddedChatPrimitiveHelpActionsMenuItem,
1657
+ ts as EmbeddedChatPrimitiveHelpActionsMenuItemIcon,
1658
+ Jo as EmbeddedChatPrimitiveHelpActionsTrigger,
1659
+ so as EmbeddedChatPrimitiveInput,
1660
+ no as EmbeddedChatPrimitiveInputFieldset,
1661
+ oo as EmbeddedChatPrimitiveInputGroup,
1662
+ _n as EmbeddedChatPrimitiveIntroMessageWrapper,
1663
+ Qn as EmbeddedChatPrimitiveMessage,
1664
+ Vn as EmbeddedChatPrimitiveMessageAction,
1665
+ $n as EmbeddedChatPrimitiveMessageActions,
1666
+ Bn as EmbeddedChatPrimitiveMessageAttachments,
1667
+ yn as EmbeddedChatPrimitiveMessageAttachmentsItem,
1668
+ wn as EmbeddedChatPrimitiveMessageAttachmentsItemIcon,
1669
+ Ln as EmbeddedChatPrimitiveMessageAttachmentsItemTitle,
1670
+ Tn as EmbeddedChatPrimitiveMessageAttachmentsList,
1671
+ Hn as EmbeddedChatPrimitiveMessageAttachmentsPreview,
1672
+ Wn as EmbeddedChatPrimitiveMessageAttachmentsPreviewBody,
1673
+ Nn as EmbeddedChatPrimitiveMessageAttachmentsPreviewClose,
1674
+ xn as EmbeddedChatPrimitiveMessageAttachmentsPreviewContent,
1675
+ On as EmbeddedChatPrimitiveMessageAttachmentsPreviewHeader,
1676
+ Dn as EmbeddedChatPrimitiveMessageAttachmentsPreviewOverlay,
1677
+ Fn as EmbeddedChatPrimitiveMessageAvatar,
1678
+ In as EmbeddedChatPrimitiveMessageAvatarContent,
1679
+ Mn as EmbeddedChatPrimitiveMessageAvatarFallback,
1680
+ Sn as EmbeddedChatPrimitiveMessageAvatarImage,
1681
+ En as EmbeddedChatPrimitiveMessageContent,
1682
+ kn as EmbeddedChatPrimitiveMessageContentWrapper,
1683
+ An as EmbeddedChatPrimitiveMessageHeader,
1684
+ Pn as EmbeddedChatPrimitiveMessageLoading,
1685
+ fn as EmbeddedChatPrimitiveMessageName,
1686
+ Gn as EmbeddedChatPrimitiveMessageSourceItem,
1687
+ zn as EmbeddedChatPrimitiveMessageSourceItemBreadcrumbs,
1688
+ eo as EmbeddedChatPrimitiveMessageSourceItemDescription,
1689
+ to as EmbeddedChatPrimitiveMessageSourceItemDescriptionPart,
1690
+ Jn as EmbeddedChatPrimitiveMessageSourceItemIcon,
1691
+ io as EmbeddedChatPrimitiveMessageSourceItemIndicator,
1692
+ Zn as EmbeddedChatPrimitiveMessageSourceItemTag,
1693
+ Xn as EmbeddedChatPrimitiveMessageSourceItemTitle,
1694
+ Kn as EmbeddedChatPrimitiveMessageSources,
1695
+ qn as EmbeddedChatPrimitiveMessageSourcesHeader,
1696
+ jn as EmbeddedChatPrimitiveMessageSourcesList,
1697
+ Un as EmbeddedChatPrimitiveMessageToolAction,
1698
+ Rn as EmbeddedChatPrimitiveMessageToolActions,
1699
+ bt as EmbeddedChatPrimitiveMessageWrapper,
1700
+ tn as EmbeddedChatPrimitiveMessages,
1701
+ hn as EmbeddedChatPrimitiveQuickQuestion,
1702
+ un as EmbeddedChatPrimitiveQuickQuestionButton,
1703
+ dn as EmbeddedChatPrimitiveQuickQuestions,
1704
+ mn as EmbeddedChatPrimitiveQuickQuestionsLabel,
1705
+ ln as EmbeddedChatPrimitiveQuickQuestionsList,
1706
+ Va as EmbeddedChatPrimitiveRoot,
1707
+ ro as EmbeddedChatPrimitiveSendButton,
1708
+ co as EmbeddedChatPrimitiveSendButtonIcon,
1709
+ jo as EmbeddedChatPrimitiveTaglineBrandName,
1710
+ Vo as EmbeddedChatPrimitiveTaglineContainer,
1711
+ qo as EmbeddedChatPrimitiveTaglineLogo,
1712
+ Ko as EmbeddedChatPrimitiveTaglineText,
1713
+ Ga as EmbeddedChatPrimitiveToolbarHeader,
1714
+ ja as EmbeddedChatPrimitiveToolbarHeaderWrapper,
1715
+ gn as EmbeddedChatPrimitiveWorkflow,
1716
+ bn as EmbeddedChatPrimitiveWorkflowIcon,
1717
+ Cn as EmbeddedChatPrimitiveWorkflows,
1718
+ pn as EmbeddedChatPrimitiveWorkflowsLabel,
1719
+ vn as EmbeddedChatPrimitiveWorkflowsList,
1720
+ Ra as EmbeddedChatPrimitiveWrapper,
1721
+ cs as FeedbackForm,
1722
+ ds as FeedbackItem,
1723
+ ms as FeedbackItemCheckbox,
1724
+ ls as FeedbackItemCheckboxIndicator,
1725
+ us as FeedbackItemDescription,
1726
+ hs as FeedbackItemLabel,
1727
+ is as FeedbackModal,
1728
+ rs as FeedbackModalBody,
1729
+ ss as FeedbackModalClose,
1730
+ ns as FeedbackModalContent,
1731
+ os as FeedbackModalHeader,
1732
+ as as FeedbackModalOverlay,
1733
+ Cs as FeedbackSubmitButton,
1734
+ ao as Footer,
1735
+ vs as Form,
1736
+ $s as FormCancel,
1737
+ gs as FormClose,
1738
+ Ps as FormContent,
1739
+ As as FormDescription,
1740
+ Ws as FormError,
1741
+ Fs as FormField,
1742
+ ks as FormFieldCheckbox,
1743
+ Es as FormFieldCheckboxIndicator,
1744
+ Ms as FormFieldEmail,
1745
+ Ns as FormFieldError,
1746
+ Ss as FormFieldFile,
1747
+ Is as FormFieldLabel,
1748
+ Bs as FormFieldSelect,
1749
+ Ls as FormFieldSelectContent,
1750
+ ws as FormFieldSelectIcon,
1751
+ Ds as FormFieldSelectItem,
1752
+ Os as FormFieldSelectItemIndicator,
1753
+ xs as FormFieldSelectItemText,
1754
+ Ts as FormFieldSelectTrigger,
1755
+ ys as FormFieldSelectValue,
1756
+ Hs as FormFieldSelectViewport,
1757
+ Ie as FormFieldText,
1758
+ fs as FormFieldTextArea,
1759
+ Qs as FormFooter,
1760
+ bs as FormHeader,
1761
+ _s as FormHeading,
1762
+ Rs as FormSubmit,
1763
+ Us as FormSuccess,
1764
+ qs as FormSuccessButton,
1765
+ Vs as FormSuccessHeading,
1766
+ Ks as FormSuccessMessage,
1767
+ ps as FormWrapper,
1768
+ Ka as Header,
1769
+ qa as HeaderToolbar,
1770
+ ja as HeaderToolbarWrapper,
1771
+ zo as HelpActions,
1772
+ Xo as HelpActionsMenu,
1773
+ Zo as HelpActionsMenuArrow,
1774
+ es as HelpActionsMenuItem,
1775
+ ts as HelpActionsMenuItemIcon,
1776
+ Jo as HelpActionsTrigger,
1777
+ so as Input,
1778
+ no as InputFieldset,
1779
+ oo as InputGroup,
1780
+ _n as IntroMessageWrapper,
1781
+ Qn as Message,
1782
+ Vn as MessageAction,
1783
+ $n as MessageActions,
1784
+ Bn as MessageAttachments,
1785
+ yn as MessageAttachmentsItem,
1786
+ wn as MessageAttachmentsItemIcon,
1787
+ Ln as MessageAttachmentsItemTitle,
1788
+ Tn as MessageAttachmentsList,
1789
+ Hn as MessageAttachmentsPreview,
1790
+ Wn as MessageAttachmentsPreviewBody,
1791
+ Nn as MessageAttachmentsPreviewClose,
1792
+ xn as MessageAttachmentsPreviewContent,
1793
+ On as MessageAttachmentsPreviewHeader,
1794
+ Dn as MessageAttachmentsPreviewOverlay,
1795
+ Fn as MessageAvatar,
1796
+ In as MessageAvatarContent,
1797
+ Mn as MessageAvatarFallback,
1798
+ Sn as MessageAvatarImage,
1799
+ En as MessageContent,
1800
+ kn as MessageContentWrapper,
1801
+ An as MessageHeader,
1802
+ Pn as MessageLoading,
1803
+ fn as MessageName,
1804
+ Gn as MessageSourceItem,
1805
+ Yn as MessageSourceItemBreadcrumbIcon,
1806
+ zn as MessageSourceItemBreadcrumbs,
1807
+ eo as MessageSourceItemDescription,
1808
+ to as MessageSourceItemDescriptionPart,
1809
+ Jn as MessageSourceItemIcon,
1810
+ io as MessageSourceItemIndicator,
1811
+ Zn as MessageSourceItemTag,
1812
+ Xn as MessageSourceItemTitle,
1813
+ Kn as MessageSources,
1814
+ qn as MessageSourcesHeader,
1815
+ jn as MessageSourcesList,
1816
+ Un as MessageToolAction,
1817
+ Rn as MessageToolActions,
1818
+ bt as MessageWrapper,
1819
+ tn as Messages,
1820
+ zs as Provider,
1821
+ hn as QuickQuestion,
1822
+ un as QuickQuestionButton,
1823
+ dn as QuickQuestions,
1824
+ mn as QuickQuestionsLabel,
1825
+ ln as QuickQuestionsList,
1826
+ Va as Root,
1827
+ ro as SendButton,
1828
+ co as SendButtonIcon,
1829
+ jo as TaglineBrandName,
1830
+ Vo as TaglineContainer,
1831
+ qo as TaglineLogo,
1832
+ Ko as TaglineText,
1833
+ Ga as ToolbarHeader,
1834
+ gn as Workflow,
1835
+ bn as WorkflowIcon,
1836
+ Cn as Workflows,
1837
+ pn as WorkflowsLabel,
1838
+ vn as WorkflowsList,
1839
+ Ra as Wrapper
1840
+ };