@k2b/ui 0.58.0 → 0.59.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (237) hide show
  1. package/dist/base.css +1 -0
  2. package/dist/browser/actions/ContextMenu.js +5 -2
  3. package/dist/browser/actions/ContextMenu.js.map +1 -1
  4. package/dist/browser/actions/Tabs.js +58 -19
  5. package/dist/browser/actions/Tabs.js.map +1 -1
  6. package/dist/browser/actions/Toolbar.js +66 -60
  7. package/dist/browser/actions/Toolbar.js.map +1 -1
  8. package/dist/browser/actions/ViewTabs.js +89 -73
  9. package/dist/browser/actions/ViewTabs.js.map +1 -1
  10. package/dist/browser/actions/drag-and-drop.js +2 -1
  11. package/dist/browser/actions/drag-and-drop.js.map +1 -1
  12. package/dist/browser/charts/core/snapshot.js +3 -1
  13. package/dist/browser/charts/core/snapshot.js.map +1 -1
  14. package/dist/browser/chat/ChatComposer.js +832 -679
  15. package/dist/browser/chat/ChatComposer.js.map +1 -1
  16. package/dist/browser/chat/ChatContextPopup.js +34 -4
  17. package/dist/browser/chat/ChatContextPopup.js.map +1 -1
  18. package/dist/browser/chat/ChatPrimitives.js +471 -284
  19. package/dist/browser/chat/ChatPrimitives.js.map +1 -1
  20. package/dist/browser/chat/ChatTasks.js +218 -80
  21. package/dist/browser/chat/ChatTasks.js.map +1 -1
  22. package/dist/browser/chat/ChatTimeline.js +5 -3
  23. package/dist/browser/chat/ChatTimeline.js.map +1 -1
  24. package/dist/browser/chat/chat-behavior.js +12 -0
  25. package/dist/browser/chat/chat-behavior.js.map +1 -1
  26. package/dist/browser/chat/chat-messages.js +50 -2
  27. package/dist/browser/chat/chat-messages.js.map +1 -1
  28. package/dist/browser/chat/index.js +2 -1
  29. package/dist/browser/chat/index.js.map +1 -1
  30. package/dist/browser/chat/types.js.map +1 -1
  31. package/dist/browser/content/Calendar.js +2 -2
  32. package/dist/browser/content/Calendar.js.map +1 -1
  33. package/dist/browser/content/CalendarWeekView.js +9 -2
  34. package/dist/browser/content/CalendarWeekView.js.map +1 -1
  35. package/dist/browser/content/ChartRoot.js +4 -1
  36. package/dist/browser/content/ChartRoot.js.map +1 -1
  37. package/dist/browser/content/DataTable.js +9 -0
  38. package/dist/browser/content/DataTable.js.map +1 -1
  39. package/dist/browser/content/Lightbox.js +2 -2
  40. package/dist/browser/content/Lightbox.js.map +1 -1
  41. package/dist/browser/content/PdfPages.js +1 -0
  42. package/dist/browser/content/PdfPages.js.map +1 -1
  43. package/dist/browser/content/ProgressPath.js +101 -0
  44. package/dist/browser/content/ProgressPath.js.map +1 -0
  45. package/dist/browser/content/Timeline.js +1 -1
  46. package/dist/browser/content/Timeline.js.map +1 -1
  47. package/dist/browser/content/chart-tick-room.js +59 -0
  48. package/dist/browser/content/chart-tick-room.js.map +1 -0
  49. package/dist/browser/content/index.js +1 -0
  50. package/dist/browser/content/index.js.map +1 -1
  51. package/dist/browser/feedback/HoverCard.js +535 -0
  52. package/dist/browser/feedback/HoverCard.js.map +1 -0
  53. package/dist/browser/feedback/Tooltip.js +5 -2
  54. package/dist/browser/feedback/Tooltip.js.map +1 -1
  55. package/dist/browser/feedback/dialog-core.js +12 -8
  56. package/dist/browser/feedback/dialog-core.js.map +1 -1
  57. package/dist/browser/feedback/index.js +1 -0
  58. package/dist/browser/feedback/index.js.map +1 -1
  59. package/dist/browser/feedback/prompt-confirm.js +3 -17
  60. package/dist/browser/feedback/prompt-confirm.js.map +1 -1
  61. package/dist/browser/feedback/prompt-sheet-view.js +95 -0
  62. package/dist/browser/feedback/prompt-sheet-view.js.map +1 -0
  63. package/dist/browser/feedback/prompt-sheet.js +36 -0
  64. package/dist/browser/feedback/prompt-sheet.js.map +1 -0
  65. package/dist/browser/feedback/prompts.js +14 -38
  66. package/dist/browser/feedback/prompts.js.map +1 -1
  67. package/dist/browser/feedback/toast.js +17 -12
  68. package/dist/browser/feedback/toast.js.map +1 -1
  69. package/dist/browser/internal/anchor-placement.js +38 -0
  70. package/dist/browser/internal/anchor-placement.js.map +1 -0
  71. package/dist/browser/internal/portal-scope.js +36 -0
  72. package/dist/browser/internal/portal-scope.js.map +1 -0
  73. package/dist/browser/internal/portal.js +13 -10
  74. package/dist/browser/internal/portal.js.map +1 -1
  75. package/dist/browser/intl/messages.js +10 -0
  76. package/dist/browser/intl/messages.js.map +1 -1
  77. package/dist/browser/layout/AnchoredPopover.js +10 -25
  78. package/dist/browser/layout/AnchoredPopover.js.map +1 -1
  79. package/dist/browser/layout/BottomSheet.js +1 -12
  80. package/dist/browser/layout/BottomSheet.js.map +1 -1
  81. package/dist/browser/layout/Discussion.js +298 -3
  82. package/dist/browser/layout/Discussion.js.map +1 -1
  83. package/dist/browser/layout/FloatingWindow.js +2 -0
  84. package/dist/browser/layout/FloatingWindow.js.map +1 -1
  85. package/dist/browser/layout/Panes.js +3 -0
  86. package/dist/browser/layout/Panes.js.map +1 -1
  87. package/dist/browser/layout/index.js.map +1 -1
  88. package/dist/browser/layout/panes-preview-scope.js +9 -0
  89. package/dist/browser/layout/panes-preview-scope.js.map +1 -0
  90. package/dist/browser/layout/sheet-handle.js +173 -37
  91. package/dist/browser/layout/sheet-handle.js.map +1 -1
  92. package/dist/browser/layout/sheet-motion.js +38 -5
  93. package/dist/browser/layout/sheet-motion.js.map +1 -1
  94. package/dist/browser/panes.js +3 -0
  95. package/dist/browser/panes.js.map +1 -0
  96. package/dist/browser/surfaces/ChangeList.js +78 -16
  97. package/dist/browser/surfaces/ChangeList.js.map +1 -1
  98. package/dist/browser/surfaces/DotStrip.js +126 -41
  99. package/dist/browser/surfaces/DotStrip.js.map +1 -1
  100. package/dist/browser/surfaces/LinkCard.js +69 -16
  101. package/dist/browser/surfaces/LinkCard.js.map +1 -1
  102. package/dist/ssr/actions/ContextMenu.js +1 -0
  103. package/dist/ssr/actions/ContextMenu.js.map +1 -1
  104. package/dist/ssr/actions/Tabs.js +21 -6
  105. package/dist/ssr/actions/Tabs.js.map +1 -1
  106. package/dist/ssr/actions/Toolbar.js +24 -18
  107. package/dist/ssr/actions/Toolbar.js.map +1 -1
  108. package/dist/ssr/actions/ViewTabs.js +27 -20
  109. package/dist/ssr/actions/ViewTabs.js.map +1 -1
  110. package/dist/ssr/actions/drag-and-drop.js +2 -1
  111. package/dist/ssr/actions/drag-and-drop.js.map +1 -1
  112. package/dist/ssr/charts/core/snapshot.js +3 -1
  113. package/dist/ssr/charts/core/snapshot.js.map +1 -1
  114. package/dist/ssr/chat/ChatComposer.js +250 -142
  115. package/dist/ssr/chat/ChatComposer.js.map +1 -1
  116. package/dist/ssr/chat/ChatContextPopup.js +17 -1
  117. package/dist/ssr/chat/ChatContextPopup.js.map +1 -1
  118. package/dist/ssr/chat/ChatPrimitives.js +179 -51
  119. package/dist/ssr/chat/ChatPrimitives.js.map +1 -1
  120. package/dist/ssr/chat/ChatTasks.js +117 -27
  121. package/dist/ssr/chat/ChatTasks.js.map +1 -1
  122. package/dist/ssr/chat/ChatTimeline.js +5 -3
  123. package/dist/ssr/chat/ChatTimeline.js.map +1 -1
  124. package/dist/ssr/chat/chat-behavior.js +12 -0
  125. package/dist/ssr/chat/chat-behavior.js.map +1 -1
  126. package/dist/ssr/chat/chat-messages.js +50 -2
  127. package/dist/ssr/chat/chat-messages.js.map +1 -1
  128. package/dist/ssr/chat/index.js +2 -1
  129. package/dist/ssr/chat/index.js.map +1 -1
  130. package/dist/ssr/chat/types.js.map +1 -1
  131. package/dist/ssr/content/Calendar.js +2 -2
  132. package/dist/ssr/content/Calendar.js.map +1 -1
  133. package/dist/ssr/content/CalendarWeekView.js +9 -2
  134. package/dist/ssr/content/CalendarWeekView.js.map +1 -1
  135. package/dist/ssr/content/ChartRoot.js +4 -1
  136. package/dist/ssr/content/ChartRoot.js.map +1 -1
  137. package/dist/ssr/content/DataTable.js +9 -0
  138. package/dist/ssr/content/DataTable.js.map +1 -1
  139. package/dist/ssr/content/Lightbox.js +2 -2
  140. package/dist/ssr/content/Lightbox.js.map +1 -1
  141. package/dist/ssr/content/PdfPages.js +1 -0
  142. package/dist/ssr/content/PdfPages.js.map +1 -1
  143. package/dist/ssr/content/ProgressPath.js +51 -0
  144. package/dist/ssr/content/ProgressPath.js.map +1 -0
  145. package/dist/ssr/content/Timeline.js +1 -1
  146. package/dist/ssr/content/Timeline.js.map +1 -1
  147. package/dist/ssr/content/chart-tick-room.js +59 -0
  148. package/dist/ssr/content/chart-tick-room.js.map +1 -0
  149. package/dist/ssr/content/index.js +1 -0
  150. package/dist/ssr/content/index.js.map +1 -1
  151. package/dist/ssr/feedback/HoverCard.js +473 -0
  152. package/dist/ssr/feedback/HoverCard.js.map +1 -0
  153. package/dist/ssr/feedback/Tooltip.js +5 -2
  154. package/dist/ssr/feedback/Tooltip.js.map +1 -1
  155. package/dist/ssr/feedback/dialog-core.js +12 -8
  156. package/dist/ssr/feedback/dialog-core.js.map +1 -1
  157. package/dist/ssr/feedback/index.js +1 -0
  158. package/dist/ssr/feedback/index.js.map +1 -1
  159. package/dist/ssr/feedback/prompt-confirm.js +3 -17
  160. package/dist/ssr/feedback/prompt-confirm.js.map +1 -1
  161. package/dist/ssr/feedback/prompt-sheet-view.js +61 -0
  162. package/dist/ssr/feedback/prompt-sheet-view.js.map +1 -0
  163. package/dist/ssr/feedback/prompt-sheet.js +36 -0
  164. package/dist/ssr/feedback/prompt-sheet.js.map +1 -0
  165. package/dist/ssr/feedback/prompts.js +14 -38
  166. package/dist/ssr/feedback/prompts.js.map +1 -1
  167. package/dist/ssr/feedback/toast.js +17 -12
  168. package/dist/ssr/feedback/toast.js.map +1 -1
  169. package/dist/ssr/internal/anchor-placement.js +38 -0
  170. package/dist/ssr/internal/anchor-placement.js.map +1 -0
  171. package/dist/ssr/internal/portal-scope.js +36 -0
  172. package/dist/ssr/internal/portal-scope.js.map +1 -0
  173. package/dist/ssr/internal/portal.js +13 -10
  174. package/dist/ssr/internal/portal.js.map +1 -1
  175. package/dist/ssr/intl/messages.js +10 -0
  176. package/dist/ssr/intl/messages.js.map +1 -1
  177. package/dist/ssr/layout/AnchoredPopover.js +10 -25
  178. package/dist/ssr/layout/AnchoredPopover.js.map +1 -1
  179. package/dist/ssr/layout/BottomSheet.js +1 -12
  180. package/dist/ssr/layout/BottomSheet.js.map +1 -1
  181. package/dist/ssr/layout/Discussion.js +168 -2
  182. package/dist/ssr/layout/Discussion.js.map +1 -1
  183. package/dist/ssr/layout/FloatingWindow.js +2 -0
  184. package/dist/ssr/layout/FloatingWindow.js.map +1 -1
  185. package/dist/ssr/layout/Panes.js +3 -0
  186. package/dist/ssr/layout/Panes.js.map +1 -1
  187. package/dist/ssr/layout/index.js.map +1 -1
  188. package/dist/ssr/layout/panes-preview-scope.js +9 -0
  189. package/dist/ssr/layout/panes-preview-scope.js.map +1 -0
  190. package/dist/ssr/layout/sheet-handle.js +173 -37
  191. package/dist/ssr/layout/sheet-handle.js.map +1 -1
  192. package/dist/ssr/layout/sheet-motion.js +38 -5
  193. package/dist/ssr/layout/sheet-motion.js.map +1 -1
  194. package/dist/ssr/panes.js +3 -0
  195. package/dist/ssr/panes.js.map +1 -0
  196. package/dist/ssr/surfaces/ChangeList.js +37 -5
  197. package/dist/ssr/surfaces/ChangeList.js.map +1 -1
  198. package/dist/ssr/surfaces/DotStrip.js +75 -12
  199. package/dist/ssr/surfaces/DotStrip.js.map +1 -1
  200. package/dist/ssr/surfaces/LinkCard.js +46 -7
  201. package/dist/ssr/surfaces/LinkCard.js.map +1 -1
  202. package/dist/styles.css +1 -1
  203. package/dist/types/actions/Tabs.d.ts +9 -0
  204. package/dist/types/actions/ViewTabs.d.ts +2 -0
  205. package/dist/types/chat/ChatComposer.d.ts +24 -2
  206. package/dist/types/chat/ChatPrimitives.d.ts +6 -1
  207. package/dist/types/chat/ChatTasks.d.ts +14 -1
  208. package/dist/types/chat/chat-behavior.d.ts +14 -0
  209. package/dist/types/chat/chat-messages.d.ts +24 -0
  210. package/dist/types/chat/index.d.ts +5 -4
  211. package/dist/types/chat/types.d.ts +27 -0
  212. package/dist/types/content/ProgressPath.d.ts +25 -0
  213. package/dist/types/content/chart-tick-room.d.ts +15 -0
  214. package/dist/types/content/index.d.ts +1 -0
  215. package/dist/types/feedback/HoverCard.d.ts +44 -0
  216. package/dist/types/feedback/Tooltip.d.ts +5 -0
  217. package/dist/types/feedback/index.d.ts +2 -0
  218. package/dist/types/feedback/prompt-confirm.d.ts +0 -2
  219. package/dist/types/feedback/prompt-sheet-view.d.ts +3 -0
  220. package/dist/types/feedback/prompt-sheet.d.ts +20 -0
  221. package/dist/types/feedback/toast.d.ts +5 -1
  222. package/dist/types/internal/anchor-placement.d.ts +23 -0
  223. package/dist/types/internal/portal-scope.d.ts +11 -0
  224. package/dist/types/internal/portal.d.ts +1 -1
  225. package/dist/types/intl/messages.d.ts +5 -0
  226. package/dist/types/layout/BottomSheet.d.ts +1 -5
  227. package/dist/types/layout/Discussion.d.ts +25 -0
  228. package/dist/types/layout/Panes.d.ts +6 -0
  229. package/dist/types/layout/index.d.ts +1 -1
  230. package/dist/types/layout/panes-preview-scope.d.ts +2 -0
  231. package/dist/types/layout/sheet-handle.d.ts +17 -8
  232. package/dist/types/layout/sheet-motion.d.ts +5 -0
  233. package/dist/types/panes.d.ts +2 -0
  234. package/dist/types/surfaces/ChangeList.d.ts +23 -4
  235. package/dist/types/surfaces/DotStrip.d.ts +25 -5
  236. package/dist/types/surfaces/LinkCard.d.ts +13 -0
  237. package/package.json +8 -2
@@ -23,53 +23,54 @@ var _tmpl$ = /*#__PURE__*/_$template(`<span><strong>`),
23
23
  _tmpl$8 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__microphone><!$><!/><!$><!/>`),
24
24
  _tmpl$9 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__highlight aria-hidden=true><!$><!/>\n`),
25
25
  _tmpl$0 = /*#__PURE__*/_$template(`<textarea class=k2b-chat-composer__measure rows=1 tabindex=-1 aria-hidden=true readonly>`),
26
- _tmpl$1 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__input role=group><!$><!/><textarea rows=1></textarea><!$><!/>`),
26
+ _tmpl$1 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__input role=group><!$><!/><textarea rows=1></textarea><!$><!/><!$><!/>`),
27
27
  _tmpl$10 = /*#__PURE__*/_$template(`<span class=k2b-dictation-mark>`),
28
28
  _tmpl$11 = /*#__PURE__*/_$template(`<span>`),
29
- _tmpl$12 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__command-detail><small></small><small><i class="ti ti-loader-2 k2b-spin"aria-hidden=true></i><!$><!/>`),
30
- _tmpl$13 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__command-end><i class="ti ti-check"aria-hidden=true></i><span class=k2b-sr-only>`),
31
- _tmpl$14 = /*#__PURE__*/_$template(`<button class=k2b-chat-composer__command type=button role=option tabindex=-1><i aria-hidden=true></i><span class=k2b-chat-composer__command-text><strong></strong><!$><!/></span><!$><!/>`),
32
- _tmpl$15 = /*#__PURE__*/_$template(`<b>`),
33
- _tmpl$16 = /*#__PURE__*/_$template(`<small>`),
34
- _tmpl$17 = /*#__PURE__*/_$template(`<span class=k2b-message-row__quote-author><span class=k2b-sr-only><!$><!/> </span><!$><!/>`),
35
- _tmpl$18 = /*#__PURE__*/_$template(`<span class=k2b-message-row__quote-text>`),
36
- _tmpl$19 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-accessory><div class=k2b-chat-composer__commands role=listbox>`),
37
- _tmpl$20 = /*#__PURE__*/_$template(`<label class=k2b-chat-composer__command-search><i class="ti ti-search"aria-hidden=true></i><input type=text role=combobox aria-autocomplete=list aria-expanded=true autocomplete=off autocapitalize=off>`),
38
- _tmpl$21 = /*#__PURE__*/_$template(`<div role=status class=k2b-chat-composer__loading><i class="ti ti-loader-2 k2b-spin"aria-hidden=true></i><strong>`),
39
- _tmpl$22 = /*#__PURE__*/_$template(`<div role=status><i class="ti ti-alert-circle"></i> <!$><!/>`),
40
- _tmpl$23 = /*#__PURE__*/_$template(`<div role=status>`),
41
- _tmpl$24 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-accessory data-commands><!$><!/><div class=k2b-chat-composer__commands role=listbox><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/>`),
42
- _tmpl$25 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-slot><div></div><!$><!/><!$><!/><!$><!/>`),
43
- _tmpl$26 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__hint aria-live=polite>`),
44
- _tmpl$27 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__attachments role=list tabindex=0>`),
45
- _tmpl$28 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__error role=alert><i class="ti ti-alert-circle"aria-hidden=true></i><!$><!/>`),
46
- _tmpl$29 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__dictation>`),
47
- _tmpl$30 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__row><!$><!/><!$><!/><div class=k2b-chat-composer__field><!$><!/><div class=k2b-chat-composer__field-tools><!$><!/><!$><!/><!$><!/><!$><!/></div></div><!$><!/>`),
48
- _tmpl$31 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-shell><!$><!/><section role=group><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></section><div class=k2b-sr-only role=status aria-live=polite></div><div class=k2b-chat-composer__status role=status><!$><!/><!$><!/>`),
49
- _tmpl$32 = /*#__PURE__*/_$template(`<button type=button role=option tabindex=-1><span class=k2b-chat-composer__emoji-glyph aria-hidden=true></span><strong></strong><!$><!/>`),
50
- _tmpl$33 = /*#__PURE__*/_$template(`<small>:<!$><!/>:`),
51
- _tmpl$34 = /*#__PURE__*/_$template(`<button type=button role=option tabindex=-1><i aria-hidden=true></i><strong></strong><!$><!/>`),
52
- _tmpl$35 = /*#__PURE__*/_$template(`<i class="ti ti-loader-2 k2b-spin"aria-hidden=true>`),
53
- _tmpl$36 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__command-group role=group><div class=k2b-chat-composer__command-heading role=presentation><span></span><!$><!/></div><!$><!/><!$><!/>`),
54
- _tmpl$37 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__command-placeholder aria-hidden=true><span></span><span><span></span><span>`),
55
- _tmpl$38 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__hint-text>`),
56
- _tmpl$39 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__dictation><i aria-hidden=true></i><span>`),
57
- _tmpl$40 = /*#__PURE__*/_$template(`<button type=button class=k2b-chat-composer__hint-action>`),
58
- _tmpl$41 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__reply><!$><!/><button type=button class="k2b-chat-composer__icon-action k2b-chat-composer__reply-cancel"><i class="ti ti-x"aria-hidden=true>`),
59
- _tmpl$42 = /*#__PURE__*/_$template(`<div class=k2b-message-row__quote>`),
60
- _tmpl$43 = /*#__PURE__*/_$template(`<button type=button class=k2b-message-row__quote>`),
61
- _tmpl$44 = /*#__PURE__*/_$template(`<span class="k2b-chat-composer__attachment-action k2b-chat-composer__attachment-progress"><!$><!/><!$><!/>`),
62
- _tmpl$45 = /*#__PURE__*/_$template(`<button type=button class=k2b-chat-composer__attachment-remove><i class="ti ti-x"aria-hidden=true>`),
63
- _tmpl$46 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__attachment role=listitem><div class=k2b-chat-composer__attachment-content><!$><!/><!$><!/><!$><!/></div><!$><!/>`),
64
- _tmpl$47 = /*#__PURE__*/_$template(`<img>`),
65
- _tmpl$48 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__attachment-identity><!$><!/><!$><!/>`),
66
- _tmpl$49 = /*#__PURE__*/_$template(`<a class=k2b-chat-composer__attachment-link target=_blank rel="noopener noreferrer"><!$><!/><!$><!/>`),
67
- _tmpl$50 = /*#__PURE__*/_$template(`<button type=button class=k2b-chat-composer__attachment-action><!$><!/><!$><!/>`),
68
- _tmpl$51 = /*#__PURE__*/_$template(`<footer class=k2b-chat-composer__footer>`),
69
- _tmpl$52 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__tools><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/>`),
70
- _tmpl$53 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__submit><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/>`),
71
- _tmpl$54 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__status-line><i aria-hidden=true></i><span>`),
72
- _tmpl$55 = /*#__PURE__*/_$template(`<span class=k2b-sr-only>`);
29
+ _tmpl$12 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__suggestion><span aria-hidden=true></span><span hidden></span><span class=k2b-chat-composer__suggestion-key aria-hidden=true><i class="ti ti-sparkles k2b-chat-composer__suggestion-mark"aria-hidden=true></i><kbd class=k2b-chat-composer__suggestion-cap>Tab</kbd><!$><!/></span><button type=button class=k2b-chat-composer__suggestion-accept><i class="ti ti-sparkles k2b-chat-composer__suggestion-mark"aria-hidden=true></i><!$><!/>`),
30
+ _tmpl$13 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__command-detail><small></small><small><i class="ti ti-loader-2 k2b-spin"aria-hidden=true></i><!$><!/>`),
31
+ _tmpl$14 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__command-end><i class="ti ti-check"aria-hidden=true></i><span class=k2b-sr-only>`),
32
+ _tmpl$15 = /*#__PURE__*/_$template(`<button class=k2b-chat-composer__command type=button role=option tabindex=-1><i aria-hidden=true></i><span class=k2b-chat-composer__command-text><strong></strong><!$><!/></span><!$><!/>`),
33
+ _tmpl$16 = /*#__PURE__*/_$template(`<b>`),
34
+ _tmpl$17 = /*#__PURE__*/_$template(`<small>`),
35
+ _tmpl$18 = /*#__PURE__*/_$template(`<span class=k2b-message-row__quote-author><span class=k2b-sr-only><!$><!/> </span><!$><!/>`),
36
+ _tmpl$19 = /*#__PURE__*/_$template(`<span class=k2b-message-row__quote-text>`),
37
+ _tmpl$20 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-accessory><div class=k2b-chat-composer__commands role=listbox>`),
38
+ _tmpl$21 = /*#__PURE__*/_$template(`<label class=k2b-chat-composer__command-search><i class="ti ti-search"aria-hidden=true></i><input type=text role=combobox aria-autocomplete=list aria-expanded=true autocomplete=off autocapitalize=off>`),
39
+ _tmpl$22 = /*#__PURE__*/_$template(`<div role=status class=k2b-chat-composer__loading><i class="ti ti-loader-2 k2b-spin"aria-hidden=true></i><strong>`),
40
+ _tmpl$23 = /*#__PURE__*/_$template(`<div role=status><i class="ti ti-alert-circle"></i> <!$><!/>`),
41
+ _tmpl$24 = /*#__PURE__*/_$template(`<div role=status>`),
42
+ _tmpl$25 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-accessory data-commands><!$><!/><div class=k2b-chat-composer__commands role=listbox><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/>`),
43
+ _tmpl$26 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-slot><div></div><!$><!/><!$><!/><!$><!/>`),
44
+ _tmpl$27 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__hint aria-live=polite>`),
45
+ _tmpl$28 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__attachments role=list tabindex=0>`),
46
+ _tmpl$29 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__error role=alert><i class="ti ti-alert-circle"aria-hidden=true></i><!$><!/>`),
47
+ _tmpl$30 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__dictation>`),
48
+ _tmpl$31 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__row><!$><!/><!$><!/><div class=k2b-chat-composer__field><!$><!/><div class=k2b-chat-composer__field-tools><!$><!/><!$><!/><!$><!/><!$><!/></div></div><!$><!/>`),
49
+ _tmpl$32 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer-shell><!$><!/><section role=group><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/></section><div class=k2b-sr-only role=status aria-live=polite></div><div class=k2b-chat-composer__status role=status><!$><!/><!$><!/>`),
50
+ _tmpl$33 = /*#__PURE__*/_$template(`<button type=button role=option tabindex=-1><span class=k2b-chat-composer__emoji-glyph aria-hidden=true></span><strong></strong><!$><!/>`),
51
+ _tmpl$34 = /*#__PURE__*/_$template(`<small>:<!$><!/>:`),
52
+ _tmpl$35 = /*#__PURE__*/_$template(`<button type=button role=option tabindex=-1><i aria-hidden=true></i><strong></strong><!$><!/>`),
53
+ _tmpl$36 = /*#__PURE__*/_$template(`<i class="ti ti-loader-2 k2b-spin"aria-hidden=true>`),
54
+ _tmpl$37 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__command-group role=group><div class=k2b-chat-composer__command-heading role=presentation><span></span><!$><!/></div><!$><!/><!$><!/>`),
55
+ _tmpl$38 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__command-placeholder aria-hidden=true><span></span><span><span></span><span>`),
56
+ _tmpl$39 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__hint-text>`),
57
+ _tmpl$40 = /*#__PURE__*/_$template(`<span class=k2b-chat-composer__dictation><i aria-hidden=true></i><span>`),
58
+ _tmpl$41 = /*#__PURE__*/_$template(`<button type=button class=k2b-chat-composer__hint-action>`),
59
+ _tmpl$42 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__reply><!$><!/><button type=button class="k2b-chat-composer__icon-action k2b-chat-composer__reply-cancel"><i class="ti ti-x"aria-hidden=true>`),
60
+ _tmpl$43 = /*#__PURE__*/_$template(`<div class=k2b-message-row__quote>`),
61
+ _tmpl$44 = /*#__PURE__*/_$template(`<button type=button class=k2b-message-row__quote>`),
62
+ _tmpl$45 = /*#__PURE__*/_$template(`<span class="k2b-chat-composer__attachment-action k2b-chat-composer__attachment-progress"><!$><!/><!$><!/>`),
63
+ _tmpl$46 = /*#__PURE__*/_$template(`<button type=button class=k2b-chat-composer__attachment-remove><i class="ti ti-x"aria-hidden=true>`),
64
+ _tmpl$47 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__attachment role=listitem><div class=k2b-chat-composer__attachment-content><!$><!/><!$><!/><!$><!/></div><!$><!/>`),
65
+ _tmpl$48 = /*#__PURE__*/_$template(`<img>`),
66
+ _tmpl$49 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__attachment-identity><!$><!/><!$><!/>`),
67
+ _tmpl$50 = /*#__PURE__*/_$template(`<a class=k2b-chat-composer__attachment-link target=_blank rel="noopener noreferrer"><!$><!/><!$><!/>`),
68
+ _tmpl$51 = /*#__PURE__*/_$template(`<button type=button class=k2b-chat-composer__attachment-action><!$><!/><!$><!/>`),
69
+ _tmpl$52 = /*#__PURE__*/_$template(`<footer class=k2b-chat-composer__footer>`),
70
+ _tmpl$53 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__tools><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/><!$><!/>`),
71
+ _tmpl$54 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__submit><!$><!/><!$><!/><!$><!/><!$><!/>`),
72
+ _tmpl$55 = /*#__PURE__*/_$template(`<div class=k2b-chat-composer__status-line><i aria-hidden=true></i><span>`),
73
+ _tmpl$56 = /*#__PURE__*/_$template(`<span class=k2b-sr-only>`);
73
74
  import { batch, children, createEffect, createMemo, createSignal, createUniqueId, For, Index, on, onCleanup, onMount, Show, untrack } from "solid-js";
74
75
  import { Dropdown } from "../actions/Dropdown";
75
76
  import { dialogHistorySettled, holdDialogHistory } from "../feedback/dialog-core";
@@ -89,7 +90,7 @@ import { useLocale } from "../intl/locale";
89
90
  import { useUiMessages } from "../intl/messages";
90
91
  import { ProgressRing } from "../surfaces/ProgressRing";
91
92
  import { ChatContextUsage as ContextUsage } from "./ChatPrimitives";
92
- import { chatCommandKey, conversationEnterAction, executeChatAction, nextChatCommandIndex, reportChatFailure, runChatSubmission } from "./chat-behavior";
93
+ import { chatCommandKey, chatSuggestionKeyAction, conversationEnterAction, executeChatAction, nextChatCommandIndex, reportChatFailure, runChatSubmission } from "./chat-behavior";
93
94
  import { useChatMessages } from "./chat-messages";
94
95
  import { chatCommandListModel, parseChatCommandQuery } from "./command-search";
95
96
  import { chatCommandQuery, chatMentionSegments, chatPeopleQuery, reconcileChatMentions } from "./composer-document";
@@ -122,6 +123,14 @@ const composerUndoBudgetChars = 1_000_000;
122
123
 
123
124
  /** Suggests people for `@`; the composer inserts the chosen one as a mention named "@Name". */
124
125
 
126
+ /**
127
+ * A suggested next message. It stands in the empty field instead of the placeholder, wraps and grows the field like
128
+ * typed text, and ends in a hint: "Tab accept" with a keyboard, an Accept button on touch-only devices. Tab or the hint
129
+ * puts the text into the field as an edit that undo takes back; nothing is sent. Typing replaces it, and an empty field
130
+ * shows it again. Escape dismisses it, and so does sending. The application owns where it comes from and drops it when
131
+ * a new response starts.
132
+ */
133
+
125
134
  /** The row stays short: what a chat message needs. Other Markdown, typed by hand, keeps working. */
126
135
  const formatTools = [{
127
136
  id: "bold",
@@ -243,6 +252,7 @@ export function ChatComposer(props) {
243
252
  let textareaRef;
244
253
  let fileInputRef;
245
254
  let measureRef;
255
+ let suggestionRef;
246
256
  let microphoneRef;
247
257
  let sawRunning = props.state === "running";
248
258
  const conversation = () => props.variant === "conversation";
@@ -944,6 +954,66 @@ export function ChatComposer(props) {
944
954
  const blocked = () => busy() || submitting();
945
955
  /** The conversation field stays editable while a message is sent, so it keeps the focus and a phone its keyboard. */
946
956
  const editBlocked = () => conversation() ? busy() : blocked();
957
+ /** The suggestion Escape or a sent message set aside; a different one shows again. */
958
+ const [setAsideSuggestion, setSetAsideSuggestion] = createSignal();
959
+ /** One line of text: a suggestion is a short next message, read in full. */
960
+ const suggestionText = () => props.suggestion?.text.replace(/\s+/g, " ").trim();
961
+ /** The suggested text standing in the field: only in an empty field that takes text now. */
962
+ const shownSuggestion = createMemo(() => {
963
+ const text = suggestionText();
964
+ if (!text || props.value || text === setAsideSuggestion()) return undefined;
965
+ if (editBlocked() || openingRow() !== undefined || dictation() === "listening" || dictation() === "refining") return undefined;
966
+ return text;
967
+ });
968
+ const suggestionDescriptionId = `${commandListId}-suggestion`;
969
+ // Known after mount, so the server and the first client render describe it alike.
970
+ const [touchOnly, setTouchOnly] = createSignal(false);
971
+ onMount(() => setTouchOnly(isTouchOnly()));
972
+ const suggestionDescription = text => touchOnly() ? chatMessages().suggestionAnnouncementTouch({
973
+ text
974
+ }) : chatMessages().suggestionAnnouncement({
975
+ text
976
+ });
977
+ /** Once per suggestion, when it stands in the focused field. */
978
+ let announcedSuggestion;
979
+ // A suggestion that went away, or another draft, starts over: the same text may be offered and heard again.
980
+ createEffect(() => {
981
+ if (props.suggestion) return;
982
+ setSetAsideSuggestion(undefined);
983
+ announcedSuggestion = undefined;
984
+ });
985
+ createEffect(on(() => props.draftKey, () => {
986
+ setSetAsideSuggestion(undefined);
987
+ announcedSuggestion = undefined;
988
+ }, {
989
+ defer: true
990
+ }));
991
+ const announceSuggestion = () => {
992
+ const text = shownSuggestion();
993
+ if (!text || text === announcedSuggestion || !textareaRef || textareaRef.ownerDocument.activeElement !== textareaRef) return;
994
+ announcedSuggestion = text;
995
+ setSuggestionAnnouncement({
996
+ text: suggestionDescription(text)
997
+ });
998
+ };
999
+ createEffect(() => {
1000
+ if (shownSuggestion()) announceSuggestion();
1001
+ });
1002
+ /** Puts the text into the field as typing would, so undo takes it back; nothing is sent. */
1003
+ const acceptSuggestion = () => {
1004
+ const suggestion = props.suggestion;
1005
+ const text = shownSuggestion();
1006
+ if (!suggestion || !text || !textareaRef) return;
1007
+ replaceTextareaRange(textareaRef, 0, textareaRef.value.length, text);
1008
+ suggestion.onAccept();
1009
+ };
1010
+ const dismissSuggestion = () => {
1011
+ const suggestion = props.suggestion;
1012
+ const text = shownSuggestion();
1013
+ if (!suggestion || !text) return;
1014
+ setSetAsideSuggestion(text);
1015
+ suggestion.onDismiss();
1016
+ };
947
1017
  // Dictation belongs to one draft in one editable field: another draft, a field that turns read-only or a host that
948
1018
  // drops the source ends it; the words so far stay.
949
1019
  // Memos compare values, so typing and arriving words never end it.
@@ -997,18 +1067,27 @@ export function ChatComposer(props) {
997
1067
  }
998
1068
  return items;
999
1069
  };
1070
+
1071
+ /** The height a suggestion gave the field; typing over it keeps that height until the field is empty again. */
1072
+ let suggestionHeight = 0;
1000
1073
  const autoResize = () => {
1001
1074
  if (!textareaRef) return;
1075
+ let height;
1002
1076
  if (conversation()) {
1003
1077
  // A hidden copy measures the text. Collapsing the field itself would shrink the composer for a frame, and
1004
1078
  // WebKit then clamps the scroll position of the conversation above it. CSS caps the height.
1005
1079
  if (!measureRef) return;
1006
1080
  measureRef.value = textareaRef.value;
1007
- textareaRef.style.height = `${measureRef.scrollHeight}px`;
1008
- return;
1081
+ height = measureRef.scrollHeight;
1082
+ } else {
1083
+ textareaRef.style.height = "auto";
1084
+ height = textareaRef.scrollHeight;
1009
1085
  }
1010
- textareaRef.style.height = "auto";
1011
- textareaRef.style.height = `${Math.min(textareaRef.scrollHeight, composerMaxInputHeight)}px`;
1086
+ // A suggestion grows the field like text. The first typed character or accepting it does not shrink the field;
1087
+ // only an empty field without one, after sending, clearing or Escape, lets it return to its own height.
1088
+ if (suggestionRef && shownSuggestion()) suggestionHeight = suggestionRef.offsetHeight;else if (!textareaRef.value) suggestionHeight = 0;
1089
+ height = Math.max(height, suggestionHeight);
1090
+ textareaRef.style.height = `${conversation() ? height : Math.min(height, composerMaxInputHeight)}px`;
1012
1091
  };
1013
1092
  const focus = () => textareaRef?.focus();
1014
1093
  onMount(() => {
@@ -1044,6 +1123,7 @@ export function ChatComposer(props) {
1044
1123
  });
1045
1124
  createEffect(() => {
1046
1125
  props.value;
1126
+ shownSuggestion();
1047
1127
  queueMicrotask(autoResize);
1048
1128
  });
1049
1129
  createEffect(() => {
@@ -1180,6 +1260,8 @@ export function ChatComposer(props) {
1180
1260
  };
1181
1261
  await runChatSubmission({
1182
1262
  clear: () => {
1263
+ // A sent message answers the moment the suggestion belonged to.
1264
+ setSetAsideSuggestion(suggestionText());
1183
1265
  props.onValueChange("");
1184
1266
  props.onMentionsChange?.([]);
1185
1267
  if (intent !== "steer") setAttachments([]);
@@ -1605,6 +1687,17 @@ export function ChatComposer(props) {
1605
1687
  restoreHistory(event.shiftKey ? 1 : -1);
1606
1688
  return;
1607
1689
  }
1690
+ if (shownSuggestion()) {
1691
+ const action = chatSuggestionKeyAction(event, {
1692
+ composing: composing(),
1693
+ listOpen: suggestionsOpen()
1694
+ });
1695
+ if (action) {
1696
+ event.preventDefault();
1697
+ if (action === "accept") acceptSuggestion();else dismissSuggestion();
1698
+ return;
1699
+ }
1700
+ }
1608
1701
  if (emojiOpen() || peopleOpen()) {
1609
1702
  const count = emojiOpen() ? emojiMatches().length : peopleMatches().length;
1610
1703
  if (event.key === "ArrowUp" || event.key === "ArrowDown") {
@@ -2119,7 +2212,9 @@ export function ChatComposer(props) {
2119
2212
  [_el$26, _co$4] = _$getNextMarker(_el$25.nextSibling),
2120
2213
  _el$23 = _el$26.nextSibling,
2121
2214
  _el$27 = _el$23.nextSibling,
2122
- [_el$28, _co$5] = _$getNextMarker(_el$27.nextSibling);
2215
+ [_el$28, _co$5] = _$getNextMarker(_el$27.nextSibling),
2216
+ _el$29 = _el$28.nextSibling,
2217
+ [_el$30, _co$6] = _$getNextMarker(_el$29.nextSibling);
2123
2218
  _$insert(_el$18, _$createComponent(Show, {
2124
2219
  get when() {
2125
2220
  return mentions().length > 0 || dictationView();
@@ -2136,19 +2231,19 @@ export function ChatComposer(props) {
2136
2231
  return splitDictationSegments(chatMentionSegments(props.value, mentions()), dictationView()?.fresh ?? [], dictationView()?.mark);
2137
2232
  },
2138
2233
  children: part => part.mark ? _$getNextElement(_tmpl$10) : (() => {
2139
- var _el$30 = _$getNextElement(_tmpl$11);
2140
- _$insert(_el$30, () => part.text);
2234
+ var _el$32 = _$getNextElement(_tmpl$11);
2235
+ _$insert(_el$32, () => part.text);
2141
2236
  _$effect(_p$ => {
2142
- var _v$13 = !!Boolean(part.mention),
2143
- _v$14 = !!Boolean(part.fresh);
2144
- _v$13 !== _p$.e && _el$30.classList.toggle("k2b-chat-composer__mention", _p$.e = _v$13);
2145
- _v$14 !== _p$.t && _el$30.classList.toggle("k2b-dictation-fresh", _p$.t = _v$14);
2237
+ var _v$15 = !!Boolean(part.mention),
2238
+ _v$16 = !!Boolean(part.fresh);
2239
+ _v$15 !== _p$.e && _el$32.classList.toggle("k2b-chat-composer__mention", _p$.e = _v$15);
2240
+ _v$16 !== _p$.t && _el$32.classList.toggle("k2b-dictation-fresh", _p$.t = _v$16);
2146
2241
  return _p$;
2147
2242
  }, {
2148
2243
  e: undefined,
2149
2244
  t: undefined
2150
2245
  });
2151
- return _el$30;
2246
+ return _el$32;
2152
2247
  })()
2153
2248
  }), _el$22, _co$3);
2154
2249
  return _el$19;
@@ -2177,6 +2272,7 @@ export function ChatComposer(props) {
2177
2272
  syncCaret();
2178
2273
  };
2179
2274
  _el$23.addEventListener("blur", () => setDismissed(true));
2275
+ _el$23.addEventListener("focus", announceSuggestion);
2180
2276
  _el$23.addEventListener("select", syncCaret);
2181
2277
  _el$23.addEventListener("paste", event => {
2182
2278
  // Read-only while an `open` row runs: nothing may join the draft after it was saved.
@@ -2203,6 +2299,49 @@ export function ChatComposer(props) {
2203
2299
  };
2204
2300
  var _ref$5 = textareaRef;
2205
2301
  typeof _ref$5 === "function" ? _$use(_ref$5, _el$23) : textareaRef = _el$23;
2302
+ _$insert(_el$18, _$createComponent(Show, {
2303
+ get when() {
2304
+ return shownSuggestion();
2305
+ },
2306
+ children: text => (() => {
2307
+ var _el$33 = _$getNextElement(_tmpl$12),
2308
+ _el$34 = _el$33.firstChild,
2309
+ _el$35 = _el$34.nextSibling,
2310
+ _el$36 = _el$35.nextSibling,
2311
+ _el$37 = _el$36.firstChild,
2312
+ _el$38 = _el$37.nextSibling,
2313
+ _el$39 = _el$38.nextSibling,
2314
+ [_el$40, _co$7] = _$getNextMarker(_el$39.nextSibling),
2315
+ _el$41 = _el$36.nextSibling,
2316
+ _el$42 = _el$41.firstChild,
2317
+ _el$43 = _el$42.nextSibling,
2318
+ [_el$44, _co$8] = _$getNextMarker(_el$43.nextSibling);
2319
+ _$use(element => {
2320
+ suggestionRef = element;
2321
+ // Its width follows the field, so a narrower composer wraps it onto more lines.
2322
+ if (typeof ResizeObserver !== "function") return;
2323
+ const observer = new ResizeObserver(() => autoResize());
2324
+ observer.observe(element);
2325
+ onCleanup(() => observer.disconnect());
2326
+ }, _el$33);
2327
+ _$insert(_el$34, text);
2328
+ _$setAttribute(_el$35, "id", suggestionDescriptionId);
2329
+ _$insert(_el$35, () => suggestionDescription(text()));
2330
+ _el$36.$$mousedown = event => {
2331
+ event.preventDefault();
2332
+ acceptSuggestion();
2333
+ };
2334
+ _$insert(_el$36, () => chatMessages().suggestionKeyHint, _el$40, _co$7);
2335
+ _el$41.$$click = acceptSuggestion;
2336
+ _el$41.$$mousedown = keepFieldFocus;
2337
+ _$insert(_el$41, () => chatMessages().suggestionAccept, _el$44, _co$8);
2338
+ _$effect(() => _$setAttribute(_el$41, "aria-label", chatMessages().suggestionAcceptLabel({
2339
+ text: text()
2340
+ })));
2341
+ _$runHydrationEvents();
2342
+ return _el$33;
2343
+ })()
2344
+ }), _el$28, _co$5);
2206
2345
  _$insert(_el$18, _$createComponent(Show, {
2207
2346
  get when() {
2208
2347
  return conversation();
@@ -2213,32 +2352,36 @@ export function ChatComposer(props) {
2213
2352
  typeof _ref$6 === "function" ? _$use(_ref$6, _el$24) : measureRef = _el$24;
2214
2353
  return _el$24;
2215
2354
  }
2216
- }), _el$28, _co$5);
2355
+ }), _el$30, _co$6);
2217
2356
  _$effect(_p$ => {
2218
2357
  var _v$3 = chatMessages().messageInput,
2219
- _v$4 = !!(mentions().length > 0 || Boolean(dictationView())),
2220
- _v$5 = editBlocked() && openingRow() === undefined,
2221
- _v$6 = openingRow() !== undefined,
2222
- _v$7 = conversation() ? "enter" : undefined,
2223
- _v$8 = props.placeholder ?? (running() ? chatMessages().addGuidance : conversation() ? chatMessages().writeConversationMessage : chatMessages().writeMessage),
2224
- _v$9 = props.inputLabel ?? messages().message,
2225
- _v$0 = fieldOwnsList() ? "combobox" : undefined,
2226
- _v$1 = fieldOwnsList() ? "list" : undefined,
2227
- _v$10 = fieldOwnsList() ? commandListId : undefined,
2228
- _v$11 = fieldOwnsList() ? "true" : undefined,
2229
- _v$12 = !fieldOwnsList() ? undefined : emojiOpen() || peopleOpen() ? `${commandListId}-${selectedCommandIndex()}` : selectedCommand() ? commandOptionId(selectedCommand()) : undefined;
2358
+ _v$4 = shownSuggestion() ? "" : undefined,
2359
+ _v$5 = !!(mentions().length > 0 || Boolean(dictationView())),
2360
+ _v$6 = editBlocked() && openingRow() === undefined,
2361
+ _v$7 = openingRow() !== undefined,
2362
+ _v$8 = conversation() ? "enter" : undefined,
2363
+ _v$9 = shownSuggestion() ? "" : props.placeholder ?? (running() ? chatMessages().addGuidance : conversation() ? chatMessages().writeConversationMessage : chatMessages().writeMessage),
2364
+ _v$0 = props.inputLabel ?? messages().message,
2365
+ _v$1 = shownSuggestion() ? suggestionDescriptionId : undefined,
2366
+ _v$10 = fieldOwnsList() ? "combobox" : undefined,
2367
+ _v$11 = fieldOwnsList() ? "list" : undefined,
2368
+ _v$12 = fieldOwnsList() ? commandListId : undefined,
2369
+ _v$13 = fieldOwnsList() ? "true" : undefined,
2370
+ _v$14 = !fieldOwnsList() ? undefined : emojiOpen() || peopleOpen() ? `${commandListId}-${selectedCommandIndex()}` : selectedCommand() ? commandOptionId(selectedCommand()) : undefined;
2230
2371
  _v$3 !== _p$.e && _$setAttribute(_el$18, "aria-label", _p$.e = _v$3);
2231
- _v$4 !== _p$.t && _el$23.classList.toggle("k2b-chat-composer__textarea--highlighted", _p$.t = _v$4);
2232
- _v$5 !== _p$.a && _$setProperty(_el$23, "disabled", _p$.a = _v$5);
2233
- _v$6 !== _p$.o && _$setProperty(_el$23, "readOnly", _p$.o = _v$6);
2234
- _v$7 !== _p$.i && _$setAttribute(_el$23, "enterkeyhint", _p$.i = _v$7);
2235
- _v$8 !== _p$.n && _$setAttribute(_el$23, "placeholder", _p$.n = _v$8);
2236
- _v$9 !== _p$.s && _$setAttribute(_el$23, "aria-label", _p$.s = _v$9);
2237
- _v$0 !== _p$.h && _$setAttribute(_el$23, "role", _p$.h = _v$0);
2238
- _v$1 !== _p$.r && _$setAttribute(_el$23, "aria-autocomplete", _p$.r = _v$1);
2239
- _v$10 !== _p$.d && _$setAttribute(_el$23, "aria-controls", _p$.d = _v$10);
2240
- _v$11 !== _p$.l && _$setAttribute(_el$23, "aria-expanded", _p$.l = _v$11);
2241
- _v$12 !== _p$.u && _$setAttribute(_el$23, "aria-activedescendant", _p$.u = _v$12);
2372
+ _v$4 !== _p$.t && _$setAttribute(_el$18, "data-suggestion", _p$.t = _v$4);
2373
+ _v$5 !== _p$.a && _el$23.classList.toggle("k2b-chat-composer__textarea--highlighted", _p$.a = _v$5);
2374
+ _v$6 !== _p$.o && _$setProperty(_el$23, "disabled", _p$.o = _v$6);
2375
+ _v$7 !== _p$.i && _$setProperty(_el$23, "readOnly", _p$.i = _v$7);
2376
+ _v$8 !== _p$.n && _$setAttribute(_el$23, "enterkeyhint", _p$.n = _v$8);
2377
+ _v$9 !== _p$.s && _$setAttribute(_el$23, "placeholder", _p$.s = _v$9);
2378
+ _v$0 !== _p$.h && _$setAttribute(_el$23, "aria-label", _p$.h = _v$0);
2379
+ _v$1 !== _p$.r && _$setAttribute(_el$23, "aria-describedby", _p$.r = _v$1);
2380
+ _v$10 !== _p$.d && _$setAttribute(_el$23, "role", _p$.d = _v$10);
2381
+ _v$11 !== _p$.l && _$setAttribute(_el$23, "aria-autocomplete", _p$.l = _v$11);
2382
+ _v$12 !== _p$.u && _$setAttribute(_el$23, "aria-controls", _p$.u = _v$12);
2383
+ _v$13 !== _p$.c && _$setAttribute(_el$23, "aria-expanded", _p$.c = _v$13);
2384
+ _v$14 !== _p$.w && _$setAttribute(_el$23, "aria-activedescendant", _p$.w = _v$14);
2242
2385
  return _p$;
2243
2386
  }, {
2244
2387
  e: undefined,
@@ -2252,7 +2395,9 @@ export function ChatComposer(props) {
2252
2395
  r: undefined,
2253
2396
  d: undefined,
2254
2397
  l: undefined,
2255
- u: undefined
2398
+ u: undefined,
2399
+ c: undefined,
2400
+ w: undefined
2256
2401
  });
2257
2402
  _$effect(() => _$setProperty(_el$23, "value", props.value));
2258
2403
  _$runHydrationEvents();
@@ -2295,28 +2440,28 @@ export function ChatComposer(props) {
2295
2440
  const opening = () => openingRow() === key;
2296
2441
  const failure = () => openFailures()[key];
2297
2442
  return (() => {
2298
- var _el$31 = _$getNextElement(_tmpl$14),
2299
- _el$32 = _el$31.firstChild,
2300
- _el$33 = _el$32.nextSibling,
2301
- _el$34 = _el$33.firstChild,
2302
- _el$41 = _el$34.nextSibling,
2303
- [_el$42, _co$7] = _$getNextMarker(_el$41.nextSibling),
2304
- _el$46 = _el$33.nextSibling,
2305
- [_el$47, _co$8] = _$getNextMarker(_el$46.nextSibling);
2306
- _el$31.$$click = event => {
2443
+ var _el$45 = _$getNextElement(_tmpl$15),
2444
+ _el$46 = _el$45.firstChild,
2445
+ _el$47 = _el$46.nextSibling,
2446
+ _el$48 = _el$47.firstChild,
2447
+ _el$55 = _el$48.nextSibling,
2448
+ [_el$56, _co$0] = _$getNextMarker(_el$55.nextSibling),
2449
+ _el$60 = _el$47.nextSibling,
2450
+ [_el$61, _co$1] = _$getNextMarker(_el$60.nextSibling);
2451
+ _el$45.$$click = event => {
2307
2452
  event.preventDefault();
2308
2453
  void executeCommand(command());
2309
2454
  };
2310
- _el$31.$$mousedown = keepFieldFocus;
2311
- _el$31.$$pointerdown = event => {
2455
+ _el$45.$$mousedown = keepFieldFocus;
2456
+ _el$45.$$pointerdown = event => {
2312
2457
  pressedCommand = {
2313
2458
  key,
2314
2459
  row: event.currentTarget
2315
2460
  };
2316
2461
  setHoldingRows(true);
2317
2462
  };
2318
- _$setAttribute(_el$31, "data-command-key", key);
2319
- _$insert(_el$34, _$createComponent(Show, {
2463
+ _$setAttribute(_el$45, "data-command-key", key);
2464
+ _$insert(_el$48, _$createComponent(Show, {
2320
2465
  get when() {
2321
2466
  return highlight();
2322
2467
  },
@@ -2324,12 +2469,12 @@ export function ChatComposer(props) {
2324
2469
  return title();
2325
2470
  },
2326
2471
  children: range => [_$memo(() => title().slice(0, range()[0])), (() => {
2327
- var _el$48 = _$getNextElement(_tmpl$15);
2328
- _$insert(_el$48, () => title().slice(range()[0], range()[1]));
2329
- return _el$48;
2472
+ var _el$62 = _$getNextElement(_tmpl$16);
2473
+ _$insert(_el$62, () => title().slice(range()[0], range()[1]));
2474
+ return _el$62;
2330
2475
  })(), _$memo(() => title().slice(range()[1]))]
2331
2476
  }));
2332
- _$insert(_el$33, _$createComponent(Show, {
2477
+ _$insert(_el$47, _$createComponent(Show, {
2333
2478
  get when() {
2334
2479
  return _$memo(() => !!command().open)() && !command().reason;
2335
2480
  },
@@ -2339,67 +2484,67 @@ export function ChatComposer(props) {
2339
2484
  return command().reason ?? command().description;
2340
2485
  },
2341
2486
  get children() {
2342
- var _el$49 = _$getNextElement(_tmpl$16);
2343
- _$insert(_el$49, () => command().reason ?? command().description);
2344
- _$effect(() => _$setAttribute(_el$49, "id", command().reason ? `${commandOptionId(command())}-reason` : undefined));
2345
- return _el$49;
2487
+ var _el$63 = _$getNextElement(_tmpl$17);
2488
+ _$insert(_el$63, () => command().reason ?? command().description);
2489
+ _$effect(() => _$setAttribute(_el$63, "id", command().reason ? `${commandOptionId(command())}-reason` : undefined));
2490
+ return _el$63;
2346
2491
  }
2347
2492
  });
2348
2493
  },
2349
2494
  get children() {
2350
- var _el$35 = _$getNextElement(_tmpl$12),
2351
- _el$36 = _el$35.firstChild,
2352
- _el$37 = _el$36.nextSibling,
2353
- _el$38 = _el$37.firstChild,
2354
- _el$39 = _el$38.nextSibling,
2355
- [_el$40, _co$6] = _$getNextMarker(_el$39.nextSibling);
2356
- _$insert(_el$36, () => failure() ?? command().description);
2357
- _$insert(_el$37, () => command().busyLabel ?? chatMessages().commandOpening, _el$40, _co$6);
2495
+ var _el$49 = _$getNextElement(_tmpl$13),
2496
+ _el$50 = _el$49.firstChild,
2497
+ _el$51 = _el$50.nextSibling,
2498
+ _el$52 = _el$51.firstChild,
2499
+ _el$53 = _el$52.nextSibling,
2500
+ [_el$54, _co$9] = _$getNextMarker(_el$53.nextSibling);
2501
+ _$insert(_el$50, () => failure() ?? command().description);
2502
+ _$insert(_el$51, () => command().busyLabel ?? chatMessages().commandOpening, _el$54, _co$9);
2358
2503
  _$effect(_p$ => {
2359
- var _v$15 = opening() ? "busy" : failure() ? "failed" : undefined,
2360
- _v$16 = opening() ? "true" : undefined,
2361
- _v$17 = opening() ? undefined : "true";
2362
- _v$15 !== _p$.e && _$setAttribute(_el$35, "data-state", _p$.e = _v$15);
2363
- _v$16 !== _p$.t && _$setAttribute(_el$36, "aria-hidden", _p$.t = _v$16);
2364
- _v$17 !== _p$.a && _$setAttribute(_el$37, "aria-hidden", _p$.a = _v$17);
2504
+ var _v$17 = opening() ? "busy" : failure() ? "failed" : undefined,
2505
+ _v$18 = opening() ? "true" : undefined,
2506
+ _v$19 = opening() ? undefined : "true";
2507
+ _v$17 !== _p$.e && _$setAttribute(_el$49, "data-state", _p$.e = _v$17);
2508
+ _v$18 !== _p$.t && _$setAttribute(_el$50, "aria-hidden", _p$.t = _v$18);
2509
+ _v$19 !== _p$.a && _$setAttribute(_el$51, "aria-hidden", _p$.a = _v$19);
2365
2510
  return _p$;
2366
2511
  }, {
2367
2512
  e: undefined,
2368
2513
  t: undefined,
2369
2514
  a: undefined
2370
2515
  });
2371
- return _el$35;
2516
+ return _el$49;
2372
2517
  }
2373
- }), _el$42, _co$7);
2374
- _$insert(_el$31, _$createComponent(Show, {
2518
+ }), _el$56, _co$0);
2519
+ _$insert(_el$45, _$createComponent(Show, {
2375
2520
  get when() {
2376
2521
  return command().selected;
2377
2522
  },
2378
2523
  get children() {
2379
- var _el$43 = _$getNextElement(_tmpl$13),
2380
- _el$44 = _el$43.firstChild,
2381
- _el$45 = _el$44.nextSibling;
2382
- _$insert(_el$45, () => chatMessages().commandSelected);
2383
- return _el$43;
2524
+ var _el$57 = _$getNextElement(_tmpl$14),
2525
+ _el$58 = _el$57.firstChild,
2526
+ _el$59 = _el$58.nextSibling;
2527
+ _$insert(_el$59, () => chatMessages().commandSelected);
2528
+ return _el$57;
2384
2529
  }
2385
- }), _el$47, _co$8);
2530
+ }), _el$61, _co$1);
2386
2531
  _$effect(_p$ => {
2387
- var _v$18 = commandOptionId(command()),
2388
- _v$19 = selectedCommandKey() === key,
2389
- _v$20 = Boolean(command().disabled || command().reason),
2390
- _v$21 = opening() ? "true" : undefined,
2391
- _v$22 = command().reason ? `${commandOptionId(command())}-reason` : undefined,
2392
- _v$23 = command().reason ? "true" : undefined,
2393
- _v$24 = selectedCommandKey() === key ? "true" : undefined,
2394
- _v$25 = command().icon ?? "ti ti-slash";
2395
- _v$18 !== _p$.e && _$setAttribute(_el$31, "id", _p$.e = _v$18);
2396
- _v$19 !== _p$.t && _$setAttribute(_el$31, "aria-selected", _p$.t = _v$19);
2397
- _v$20 !== _p$.a && _$setAttribute(_el$31, "aria-disabled", _p$.a = _v$20);
2398
- _v$21 !== _p$.o && _$setAttribute(_el$31, "aria-busy", _p$.o = _v$21);
2399
- _v$22 !== _p$.i && _$setAttribute(_el$31, "aria-describedby", _p$.i = _v$22);
2400
- _v$23 !== _p$.n && _$setAttribute(_el$31, "data-reason", _p$.n = _v$23);
2401
- _v$24 !== _p$.s && _$setAttribute(_el$31, "data-active", _p$.s = _v$24);
2402
- _v$25 !== _p$.h && _$className(_el$32, _p$.h = _v$25);
2532
+ var _v$20 = commandOptionId(command()),
2533
+ _v$21 = selectedCommandKey() === key,
2534
+ _v$22 = Boolean(command().disabled || command().reason),
2535
+ _v$23 = opening() ? "true" : undefined,
2536
+ _v$24 = command().reason ? `${commandOptionId(command())}-reason` : undefined,
2537
+ _v$25 = command().reason ? "true" : undefined,
2538
+ _v$26 = selectedCommandKey() === key ? "true" : undefined,
2539
+ _v$27 = command().icon ?? "ti ti-slash";
2540
+ _v$20 !== _p$.e && _$setAttribute(_el$45, "id", _p$.e = _v$20);
2541
+ _v$21 !== _p$.t && _$setAttribute(_el$45, "aria-selected", _p$.t = _v$21);
2542
+ _v$22 !== _p$.a && _$setAttribute(_el$45, "aria-disabled", _p$.a = _v$22);
2543
+ _v$23 !== _p$.o && _$setAttribute(_el$45, "aria-busy", _p$.o = _v$23);
2544
+ _v$24 !== _p$.i && _$setAttribute(_el$45, "aria-describedby", _p$.i = _v$24);
2545
+ _v$25 !== _p$.n && _$setAttribute(_el$45, "data-reason", _p$.n = _v$25);
2546
+ _v$26 !== _p$.s && _$setAttribute(_el$45, "data-active", _p$.s = _v$26);
2547
+ _v$27 !== _p$.h && _$className(_el$46, _p$.h = _v$27);
2403
2548
  return _p$;
2404
2549
  }, {
2405
2550
  e: undefined,
@@ -2412,109 +2557,109 @@ export function ChatComposer(props) {
2412
2557
  h: undefined
2413
2558
  });
2414
2559
  _$runHydrationEvents();
2415
- return _el$31;
2560
+ return _el$45;
2416
2561
  })();
2417
2562
  };
2418
2563
  const replyQuote = reply => [(() => {
2419
- var _el$50 = _$getNextElement(_tmpl$17),
2420
- _el$51 = _el$50.firstChild,
2421
- _el$53 = _el$51.firstChild,
2422
- [_el$54, _co$9] = _$getNextMarker(_el$53.nextSibling),
2423
- _el$52 = _el$54.nextSibling,
2424
- _el$55 = _el$51.nextSibling,
2425
- [_el$56, _co$0] = _$getNextMarker(_el$55.nextSibling);
2426
- _$insert(_el$51, () => chatMessages().replyingTo, _el$54, _co$9);
2427
- _$insert(_el$50, () => reply.author, _el$56, _co$0);
2428
- return _el$50;
2564
+ var _el$64 = _$getNextElement(_tmpl$18),
2565
+ _el$65 = _el$64.firstChild,
2566
+ _el$67 = _el$65.firstChild,
2567
+ [_el$68, _co$10] = _$getNextMarker(_el$67.nextSibling),
2568
+ _el$66 = _el$68.nextSibling,
2569
+ _el$69 = _el$65.nextSibling,
2570
+ [_el$70, _co$11] = _$getNextMarker(_el$69.nextSibling);
2571
+ _$insert(_el$65, () => chatMessages().replyingTo, _el$68, _co$10);
2572
+ _$insert(_el$64, () => reply.author, _el$70, _co$11);
2573
+ return _el$64;
2429
2574
  })(), (() => {
2430
- var _el$57 = _$getNextElement(_tmpl$18);
2431
- _$insert(_el$57, () => reply.text);
2432
- return _el$57;
2575
+ var _el$71 = _$getNextElement(_tmpl$19);
2576
+ _$insert(_el$71, () => reply.text);
2577
+ return _el$71;
2433
2578
  })()];
2434
2579
  return (() => {
2435
- var _el$58 = _$getNextElement(_tmpl$31),
2436
- _el$140 = _el$58.firstChild,
2437
- [_el$141, _co$35] = _$getNextMarker(_el$140.nextSibling),
2438
- _el$97 = _el$141.nextSibling,
2439
- _el$124 = _el$97.firstChild,
2440
- [_el$125, _co$28] = _$getNextMarker(_el$124.nextSibling),
2441
- _el$126 = _el$125.nextSibling,
2442
- [_el$127, _co$29] = _$getNextMarker(_el$126.nextSibling),
2443
- _el$128 = _el$127.nextSibling,
2444
- [_el$129, _co$30] = _$getNextMarker(_el$128.nextSibling),
2445
- _el$130 = _el$129.nextSibling,
2446
- [_el$131, _co$31] = _$getNextMarker(_el$130.nextSibling),
2447
- _el$132 = _el$131.nextSibling,
2448
- [_el$133, _co$32] = _$getNextMarker(_el$132.nextSibling),
2449
- _el$134 = _el$97.nextSibling,
2450
- _el$135 = _el$134.nextSibling,
2451
- _el$136 = _el$135.firstChild,
2452
- [_el$137, _co$33] = _$getNextMarker(_el$136.nextSibling),
2453
- _el$138 = _el$137.nextSibling,
2454
- [_el$139, _co$34] = _$getNextMarker(_el$138.nextSibling);
2580
+ var _el$72 = _$getNextElement(_tmpl$32),
2581
+ _el$154 = _el$72.firstChild,
2582
+ [_el$155, _co$38] = _$getNextMarker(_el$154.nextSibling),
2583
+ _el$111 = _el$155.nextSibling,
2584
+ _el$138 = _el$111.firstChild,
2585
+ [_el$139, _co$31] = _$getNextMarker(_el$138.nextSibling),
2586
+ _el$140 = _el$139.nextSibling,
2587
+ [_el$141, _co$32] = _$getNextMarker(_el$140.nextSibling),
2588
+ _el$142 = _el$141.nextSibling,
2589
+ [_el$143, _co$33] = _$getNextMarker(_el$142.nextSibling),
2590
+ _el$144 = _el$143.nextSibling,
2591
+ [_el$145, _co$34] = _$getNextMarker(_el$144.nextSibling),
2592
+ _el$146 = _el$145.nextSibling,
2593
+ [_el$147, _co$35] = _$getNextMarker(_el$146.nextSibling),
2594
+ _el$148 = _el$111.nextSibling,
2595
+ _el$149 = _el$148.nextSibling,
2596
+ _el$150 = _el$149.firstChild,
2597
+ [_el$151, _co$36] = _$getNextMarker(_el$150.nextSibling),
2598
+ _el$152 = _el$151.nextSibling,
2599
+ [_el$153, _co$37] = _$getNextMarker(_el$152.nextSibling);
2455
2600
  var _ref$7 = shellRef;
2456
- typeof _ref$7 === "function" ? _$use(_ref$7, _el$58) : shellRef = _el$58;
2457
- _$insert(_el$58, _$createComponent(Show, {
2601
+ typeof _ref$7 === "function" ? _$use(_ref$7, _el$72) : shellRef = _el$72;
2602
+ _$insert(_el$72, _$createComponent(Show, {
2458
2603
  get when() {
2459
2604
  return suggestionsOpen() || hasAccessory();
2460
2605
  },
2461
2606
  get children() {
2462
- var _el$59 = _$getNextElement(_tmpl$25),
2463
- _el$60 = _el$59.firstChild,
2464
- _el$91 = _el$60.nextSibling,
2465
- [_el$92, _co$16] = _$getNextMarker(_el$91.nextSibling),
2466
- _el$93 = _el$92.nextSibling,
2467
- [_el$94, _co$17] = _$getNextMarker(_el$93.nextSibling),
2468
- _el$95 = _el$94.nextSibling,
2469
- [_el$96, _co$18] = _$getNextMarker(_el$95.nextSibling);
2470
- _$insert(_el$60, accessory);
2471
- _$insert(_el$59, _$createComponent(Show, {
2607
+ var _el$73 = _$getNextElement(_tmpl$26),
2608
+ _el$74 = _el$73.firstChild,
2609
+ _el$105 = _el$74.nextSibling,
2610
+ [_el$106, _co$19] = _$getNextMarker(_el$105.nextSibling),
2611
+ _el$107 = _el$106.nextSibling,
2612
+ [_el$108, _co$20] = _$getNextMarker(_el$107.nextSibling),
2613
+ _el$109 = _el$108.nextSibling,
2614
+ [_el$110, _co$21] = _$getNextMarker(_el$109.nextSibling);
2615
+ _$insert(_el$74, accessory);
2616
+ _$insert(_el$73, _$createComponent(Show, {
2472
2617
  get when() {
2473
2618
  return emojiOpen();
2474
2619
  },
2475
2620
  get children() {
2476
- var _el$61 = _$getNextElement(_tmpl$19),
2477
- _el$62 = _el$61.firstChild;
2621
+ var _el$75 = _$getNextElement(_tmpl$20),
2622
+ _el$76 = _el$75.firstChild;
2478
2623
  var _ref$8 = commandListRef;
2479
- typeof _ref$8 === "function" ? _$use(_ref$8, _el$62) : commandListRef = _el$62;
2480
- _$setAttribute(_el$62, "id", commandListId);
2481
- _$insert(_el$62, _$createComponent(For, {
2624
+ typeof _ref$8 === "function" ? _$use(_ref$8, _el$76) : commandListRef = _el$76;
2625
+ _$setAttribute(_el$76, "id", commandListId);
2626
+ _$insert(_el$76, _$createComponent(For, {
2482
2627
  get each() {
2483
2628
  return emojiMatches();
2484
2629
  },
2485
2630
  children: (entry, index) => (() => {
2486
- var _el$142 = _$getNextElement(_tmpl$32),
2487
- _el$143 = _el$142.firstChild,
2488
- _el$144 = _el$143.nextSibling,
2489
- _el$145 = _el$144.nextSibling,
2490
- [_el$146, _co$36] = _$getNextMarker(_el$145.nextSibling);
2491
- _el$142.$$click = () => pickEmojiSuggestion(index());
2492
- _el$142.$$mousedown = keepFieldFocus;
2493
- _$insert(_el$143, () => emojiInTone(entry, props.emoji?.skinTone ?? 0));
2494
- _$insert(_el$144, () => emojiName(entry, locale()));
2495
- _$insert(_el$142, _$createComponent(Show, {
2631
+ var _el$156 = _$getNextElement(_tmpl$33),
2632
+ _el$157 = _el$156.firstChild,
2633
+ _el$158 = _el$157.nextSibling,
2634
+ _el$159 = _el$158.nextSibling,
2635
+ [_el$160, _co$39] = _$getNextMarker(_el$159.nextSibling);
2636
+ _el$156.$$click = () => pickEmojiSuggestion(index());
2637
+ _el$156.$$mousedown = keepFieldFocus;
2638
+ _$insert(_el$157, () => emojiInTone(entry, props.emoji?.skinTone ?? 0));
2639
+ _$insert(_el$158, () => emojiName(entry, locale()));
2640
+ _$insert(_el$156, _$createComponent(Show, {
2496
2641
  get when() {
2497
2642
  return entry.shortcodes[0];
2498
2643
  },
2499
2644
  children: code => (() => {
2500
- var _el$147 = _$getNextElement(_tmpl$33),
2501
- _el$148 = _el$147.firstChild,
2502
- _el$150 = _el$148.nextSibling,
2503
- [_el$151, _co$37] = _$getNextMarker(_el$150.nextSibling),
2504
- _el$149 = _el$151.nextSibling;
2505
- _$insert(_el$147, code, _el$151, _co$37);
2506
- return _el$147;
2645
+ var _el$161 = _$getNextElement(_tmpl$34),
2646
+ _el$162 = _el$161.firstChild,
2647
+ _el$164 = _el$162.nextSibling,
2648
+ [_el$165, _co$40] = _$getNextMarker(_el$164.nextSibling),
2649
+ _el$163 = _el$165.nextSibling;
2650
+ _$insert(_el$161, code, _el$165, _co$40);
2651
+ return _el$161;
2507
2652
  })()
2508
- }), _el$146, _co$36);
2653
+ }), _el$160, _co$39);
2509
2654
  _$effect(_p$ => {
2510
- var _v$42 = `${commandListId}-${index()}`,
2511
- _v$43 = index() === selectedCommandIndex(),
2512
- _v$44 = emojiName(entry, locale()),
2513
- _v$45 = index() === selectedCommandIndex() ? "true" : undefined;
2514
- _v$42 !== _p$.e && _$setAttribute(_el$142, "id", _p$.e = _v$42);
2515
- _v$43 !== _p$.t && _$setAttribute(_el$142, "aria-selected", _p$.t = _v$43);
2516
- _v$44 !== _p$.a && _$setAttribute(_el$142, "aria-label", _p$.a = _v$44);
2517
- _v$45 !== _p$.o && _$setAttribute(_el$142, "data-active", _p$.o = _v$45);
2655
+ var _v$44 = `${commandListId}-${index()}`,
2656
+ _v$45 = index() === selectedCommandIndex(),
2657
+ _v$46 = emojiName(entry, locale()),
2658
+ _v$47 = index() === selectedCommandIndex() ? "true" : undefined;
2659
+ _v$44 !== _p$.e && _$setAttribute(_el$156, "id", _p$.e = _v$44);
2660
+ _v$45 !== _p$.t && _$setAttribute(_el$156, "aria-selected", _p$.t = _v$45);
2661
+ _v$46 !== _p$.a && _$setAttribute(_el$156, "aria-label", _p$.a = _v$46);
2662
+ _v$47 !== _p$.o && _$setAttribute(_el$156, "data-active", _p$.o = _v$47);
2518
2663
  return _p$;
2519
2664
  }, {
2520
2665
  e: undefined,
@@ -2523,55 +2668,55 @@ export function ChatComposer(props) {
2523
2668
  o: undefined
2524
2669
  });
2525
2670
  _$runHydrationEvents();
2526
- return _el$142;
2671
+ return _el$156;
2527
2672
  })()
2528
2673
  }));
2529
- _$effect(() => _$setAttribute(_el$62, "aria-label", chatMessages().emojiSuggestions));
2530
- return _el$61;
2674
+ _$effect(() => _$setAttribute(_el$76, "aria-label", chatMessages().emojiSuggestions));
2675
+ return _el$75;
2531
2676
  }
2532
- }), _el$92, _co$16);
2533
- _$insert(_el$59, _$createComponent(Show, {
2677
+ }), _el$106, _co$19);
2678
+ _$insert(_el$73, _$createComponent(Show, {
2534
2679
  get when() {
2535
2680
  return peopleOpen();
2536
2681
  },
2537
2682
  get children() {
2538
- var _el$63 = _$getNextElement(_tmpl$19),
2539
- _el$64 = _el$63.firstChild;
2683
+ var _el$77 = _$getNextElement(_tmpl$20),
2684
+ _el$78 = _el$77.firstChild;
2540
2685
  var _ref$9 = commandListRef;
2541
- typeof _ref$9 === "function" ? _$use(_ref$9, _el$64) : commandListRef = _el$64;
2542
- _$setAttribute(_el$64, "id", commandListId);
2543
- _$insert(_el$64, _$createComponent(For, {
2686
+ typeof _ref$9 === "function" ? _$use(_ref$9, _el$78) : commandListRef = _el$78;
2687
+ _$setAttribute(_el$78, "id", commandListId);
2688
+ _$insert(_el$78, _$createComponent(For, {
2544
2689
  get each() {
2545
2690
  return peopleMatches();
2546
2691
  },
2547
2692
  children: (person, index) => (() => {
2548
- var _el$152 = _$getNextElement(_tmpl$34),
2549
- _el$153 = _el$152.firstChild,
2550
- _el$154 = _el$153.nextSibling,
2551
- _el$156 = _el$154.nextSibling,
2552
- [_el$157, _co$38] = _$getNextMarker(_el$156.nextSibling);
2553
- _el$152.$$click = () => pickPersonSuggestion(index());
2554
- _el$152.$$mousedown = keepFieldFocus;
2555
- _$insert(_el$154, () => person.name);
2556
- _$insert(_el$152, _$createComponent(Show, {
2693
+ var _el$166 = _$getNextElement(_tmpl$35),
2694
+ _el$167 = _el$166.firstChild,
2695
+ _el$168 = _el$167.nextSibling,
2696
+ _el$170 = _el$168.nextSibling,
2697
+ [_el$171, _co$41] = _$getNextMarker(_el$170.nextSibling);
2698
+ _el$166.$$click = () => pickPersonSuggestion(index());
2699
+ _el$166.$$mousedown = keepFieldFocus;
2700
+ _$insert(_el$168, () => person.name);
2701
+ _$insert(_el$166, _$createComponent(Show, {
2557
2702
  get when() {
2558
2703
  return person.agent;
2559
2704
  },
2560
2705
  get children() {
2561
- var _el$155 = _$getNextElement(_tmpl$16);
2562
- _$insert(_el$155, () => chatMessages().agentLabel);
2563
- return _el$155;
2706
+ var _el$169 = _$getNextElement(_tmpl$17);
2707
+ _$insert(_el$169, () => chatMessages().agentLabel);
2708
+ return _el$169;
2564
2709
  }
2565
- }), _el$157, _co$38);
2710
+ }), _el$171, _co$41);
2566
2711
  _$effect(_p$ => {
2567
- var _v$46 = `${commandListId}-${index()}`,
2568
- _v$47 = index() === selectedCommandIndex(),
2569
- _v$48 = index() === selectedCommandIndex() ? "true" : undefined,
2570
- _v$49 = person.agent ? "ti ti-robot" : "ti ti-user";
2571
- _v$46 !== _p$.e && _$setAttribute(_el$152, "id", _p$.e = _v$46);
2572
- _v$47 !== _p$.t && _$setAttribute(_el$152, "aria-selected", _p$.t = _v$47);
2573
- _v$48 !== _p$.a && _$setAttribute(_el$152, "data-active", _p$.a = _v$48);
2574
- _v$49 !== _p$.o && _$className(_el$153, _p$.o = _v$49);
2712
+ var _v$48 = `${commandListId}-${index()}`,
2713
+ _v$49 = index() === selectedCommandIndex(),
2714
+ _v$50 = index() === selectedCommandIndex() ? "true" : undefined,
2715
+ _v$51 = person.agent ? "ti ti-robot" : "ti ti-user";
2716
+ _v$48 !== _p$.e && _$setAttribute(_el$166, "id", _p$.e = _v$48);
2717
+ _v$49 !== _p$.t && _$setAttribute(_el$166, "aria-selected", _p$.t = _v$49);
2718
+ _v$50 !== _p$.a && _$setAttribute(_el$166, "data-active", _p$.a = _v$50);
2719
+ _v$51 !== _p$.o && _$className(_el$167, _p$.o = _v$51);
2575
2720
  return _p$;
2576
2721
  }, {
2577
2722
  e: undefined,
@@ -2580,44 +2725,44 @@ export function ChatComposer(props) {
2580
2725
  o: undefined
2581
2726
  });
2582
2727
  _$runHydrationEvents();
2583
- return _el$152;
2728
+ return _el$166;
2584
2729
  })()
2585
2730
  }));
2586
- _$effect(() => _$setAttribute(_el$64, "aria-label", chatMessages().peopleSuggestions));
2587
- return _el$63;
2731
+ _$effect(() => _$setAttribute(_el$78, "aria-label", chatMessages().peopleSuggestions));
2732
+ return _el$77;
2588
2733
  }
2589
- }), _el$94, _co$17);
2590
- _$insert(_el$59, _$createComponent(Show, {
2734
+ }), _el$108, _co$20);
2735
+ _$insert(_el$73, _$createComponent(Show, {
2591
2736
  get when() {
2592
2737
  return commandsOpen();
2593
2738
  },
2594
2739
  get children() {
2595
- var _el$65 = _$getNextElement(_tmpl$24),
2596
- _el$89 = _el$65.firstChild,
2597
- [_el$90, _co$15] = _$getNextMarker(_el$89.nextSibling),
2598
- _el$69 = _el$90.nextSibling,
2599
- _el$79 = _el$69.firstChild,
2600
- [_el$80, _co$10] = _$getNextMarker(_el$79.nextSibling),
2601
- _el$81 = _el$80.nextSibling,
2602
- [_el$82, _co$11] = _$getNextMarker(_el$81.nextSibling),
2603
- _el$83 = _el$82.nextSibling,
2604
- [_el$84, _co$12] = _$getNextMarker(_el$83.nextSibling),
2605
- _el$85 = _el$84.nextSibling,
2606
- [_el$86, _co$13] = _$getNextMarker(_el$85.nextSibling),
2607
- _el$87 = _el$86.nextSibling,
2608
- [_el$88, _co$14] = _$getNextMarker(_el$87.nextSibling);
2609
- _el$65.$$mousedown = event => {
2740
+ var _el$79 = _$getNextElement(_tmpl$25),
2741
+ _el$103 = _el$79.firstChild,
2742
+ [_el$104, _co$18] = _$getNextMarker(_el$103.nextSibling),
2743
+ _el$83 = _el$104.nextSibling,
2744
+ _el$93 = _el$83.firstChild,
2745
+ [_el$94, _co$13] = _$getNextMarker(_el$93.nextSibling),
2746
+ _el$95 = _el$94.nextSibling,
2747
+ [_el$96, _co$14] = _$getNextMarker(_el$95.nextSibling),
2748
+ _el$97 = _el$96.nextSibling,
2749
+ [_el$98, _co$15] = _$getNextMarker(_el$97.nextSibling),
2750
+ _el$99 = _el$98.nextSibling,
2751
+ [_el$100, _co$16] = _$getNextMarker(_el$99.nextSibling),
2752
+ _el$101 = _el$100.nextSibling,
2753
+ [_el$102, _co$17] = _$getNextMarker(_el$101.nextSibling);
2754
+ _el$79.$$mousedown = event => {
2610
2755
  if (addSearch() && event.target !== addSearchRef) event.preventDefault();
2611
2756
  };
2612
- _$insert(_el$65, _$createComponent(Show, {
2757
+ _$insert(_el$79, _$createComponent(Show, {
2613
2758
  get when() {
2614
2759
  return addSearch();
2615
2760
  },
2616
2761
  get children() {
2617
- var _el$66 = _$getNextElement(_tmpl$20),
2618
- _el$67 = _el$66.firstChild,
2619
- _el$68 = _el$67.nextSibling;
2620
- _el$68.$$focusout = event => {
2762
+ var _el$80 = _$getNextElement(_tmpl$21),
2763
+ _el$81 = _el$80.firstChild,
2764
+ _el$82 = _el$81.nextSibling;
2765
+ _el$82.$$focusout = event => {
2621
2766
  const next = event.relatedTarget;
2622
2767
  if (next instanceof Node && commandListRef?.parentElement?.contains(next)) return;
2623
2768
  // Focus that leaves another way, such as with Shift+Tab, closes the list and stays where it went.
@@ -2625,27 +2770,27 @@ export function ChatComposer(props) {
2625
2770
  if (addSearch() && document.activeElement !== addSearchRef) endAddSearch(false);
2626
2771
  });
2627
2772
  };
2628
- _el$68.addEventListener("compositionend", () => {
2773
+ _el$82.addEventListener("compositionend", () => {
2629
2774
  addComposing = false;
2630
2775
  });
2631
- _el$68.addEventListener("compositionstart", () => {
2776
+ _el$82.addEventListener("compositionstart", () => {
2632
2777
  addComposing = true;
2633
2778
  });
2634
- _el$68.$$keydown = onAddSearchKeyDown;
2635
- _el$68.$$input = event => setAddQuery(event.currentTarget.value);
2779
+ _el$82.$$keydown = onAddSearchKeyDown;
2780
+ _el$82.$$input = event => setAddQuery(event.currentTarget.value);
2636
2781
  var _ref$0 = addSearchRef;
2637
- typeof _ref$0 === "function" ? _$use(_ref$0, _el$68) : addSearchRef = _el$68;
2638
- _$setAttribute(_el$68, "aria-controls", commandListId);
2639
- _$setAttribute(_el$68, "spellcheck", false);
2782
+ typeof _ref$0 === "function" ? _$use(_ref$0, _el$82) : addSearchRef = _el$82;
2783
+ _$setAttribute(_el$82, "aria-controls", commandListId);
2784
+ _$setAttribute(_el$82, "spellcheck", false);
2640
2785
  _$effect(_p$ => {
2641
- var _v$26 = chatMessages().commandSearch,
2642
- _v$27 = chatMessages().commandSearchLabel,
2643
- _v$28 = selectedCommand() ? commandOptionId(selectedCommand()) : undefined,
2644
- _v$29 = openingRow() !== undefined;
2645
- _v$26 !== _p$.e && _$setAttribute(_el$68, "placeholder", _p$.e = _v$26);
2646
- _v$27 !== _p$.t && _$setAttribute(_el$68, "aria-label", _p$.t = _v$27);
2647
- _v$28 !== _p$.a && _$setAttribute(_el$68, "aria-activedescendant", _p$.a = _v$28);
2648
- _v$29 !== _p$.o && _$setProperty(_el$68, "readOnly", _p$.o = _v$29);
2786
+ var _v$28 = chatMessages().commandSearch,
2787
+ _v$29 = chatMessages().commandSearchLabel,
2788
+ _v$30 = selectedCommand() ? commandOptionId(selectedCommand()) : undefined,
2789
+ _v$31 = openingRow() !== undefined;
2790
+ _v$28 !== _p$.e && _$setAttribute(_el$82, "placeholder", _p$.e = _v$28);
2791
+ _v$29 !== _p$.t && _$setAttribute(_el$82, "aria-label", _p$.t = _v$29);
2792
+ _v$30 !== _p$.a && _$setAttribute(_el$82, "aria-activedescendant", _p$.a = _v$30);
2793
+ _v$31 !== _p$.o && _$setProperty(_el$82, "readOnly", _p$.o = _v$31);
2649
2794
  return _p$;
2650
2795
  }, {
2651
2796
  e: undefined,
@@ -2653,15 +2798,15 @@ export function ChatComposer(props) {
2653
2798
  a: undefined,
2654
2799
  o: undefined
2655
2800
  });
2656
- _$effect(() => _$setProperty(_el$68, "value", addQuery()));
2801
+ _$effect(() => _$setProperty(_el$82, "value", addQuery()));
2657
2802
  _$runHydrationEvents();
2658
- return _el$66;
2803
+ return _el$80;
2659
2804
  }
2660
- }), _el$90, _co$15);
2805
+ }), _el$104, _co$18);
2661
2806
  var _ref$1 = commandListRef;
2662
- typeof _ref$1 === "function" ? _$use(_ref$1, _el$69) : commandListRef = _el$69;
2663
- _$setAttribute(_el$69, "id", commandListId);
2664
- _$insert(_el$69, _$createComponent(For, {
2807
+ typeof _ref$1 === "function" ? _$use(_ref$1, _el$83) : commandListRef = _el$83;
2808
+ _$setAttribute(_el$83, "id", commandListId);
2809
+ _$insert(_el$83, _$createComponent(For, {
2665
2810
  get each() {
2666
2811
  return commandModel().groups.map(commandGroupKey);
2667
2812
  },
@@ -2681,108 +2826,108 @@ export function ChatComposer(props) {
2681
2826
  });
2682
2827
  },
2683
2828
  get children() {
2684
- var _el$158 = _$getNextElement(_tmpl$36),
2685
- _el$159 = _el$158.firstChild,
2686
- _el$160 = _el$159.firstChild,
2687
- _el$162 = _el$160.nextSibling,
2688
- [_el$163, _co$39] = _$getNextMarker(_el$162.nextSibling),
2689
- _el$164 = _el$159.nextSibling,
2690
- [_el$165, _co$40] = _$getNextMarker(_el$164.nextSibling),
2691
- _el$166 = _el$165.nextSibling,
2692
- [_el$167, _co$41] = _$getNextMarker(_el$166.nextSibling);
2693
- _$insert(_el$160, () => group()?.scopeTitle ?? group()?.section?.label);
2694
- _$insert(_el$159, _$createComponent(Show, {
2829
+ var _el$172 = _$getNextElement(_tmpl$37),
2830
+ _el$173 = _el$172.firstChild,
2831
+ _el$174 = _el$173.firstChild,
2832
+ _el$176 = _el$174.nextSibling,
2833
+ [_el$177, _co$42] = _$getNextMarker(_el$176.nextSibling),
2834
+ _el$178 = _el$173.nextSibling,
2835
+ [_el$179, _co$43] = _$getNextMarker(_el$178.nextSibling),
2836
+ _el$180 = _el$179.nextSibling,
2837
+ [_el$181, _co$44] = _$getNextMarker(_el$180.nextSibling);
2838
+ _$insert(_el$174, () => group()?.scopeTitle ?? group()?.section?.label);
2839
+ _$insert(_el$173, _$createComponent(Show, {
2695
2840
  get when() {
2696
2841
  return group()?.loading;
2697
2842
  },
2698
2843
  get children() {
2699
- return _$getNextElement(_tmpl$35);
2844
+ return _$getNextElement(_tmpl$36);
2700
2845
  }
2701
- }), _el$163, _co$39);
2702
- _$insert(_el$158, _$createComponent(For, {
2846
+ }), _el$177, _co$42);
2847
+ _$insert(_el$172, _$createComponent(For, {
2703
2848
  get each() {
2704
2849
  return rows();
2705
2850
  },
2706
2851
  children: key => renderCommandRow(row(key))
2707
- }), _el$165, _co$40);
2708
- _$insert(_el$158, _$createComponent(Index, {
2852
+ }), _el$179, _co$43);
2853
+ _$insert(_el$172, _$createComponent(Index, {
2709
2854
  get each() {
2710
2855
  return Array.from({
2711
2856
  length: Math.max(group()?.placeholder ? 1 : 0, group()?.pendingRows ?? 0)
2712
2857
  });
2713
2858
  },
2714
- children: () => _$getNextElement(_tmpl$37)
2715
- }), _el$167, _co$41);
2859
+ children: () => _$getNextElement(_tmpl$38)
2860
+ }), _el$181, _co$44);
2716
2861
  _$effect(_p$ => {
2717
- var _v$50 = headingId(),
2718
- _v$51 = headingId();
2719
- _v$50 !== _p$.e && _$setAttribute(_el$158, "aria-labelledby", _p$.e = _v$50);
2720
- _v$51 !== _p$.t && _$setAttribute(_el$159, "id", _p$.t = _v$51);
2862
+ var _v$52 = headingId(),
2863
+ _v$53 = headingId();
2864
+ _v$52 !== _p$.e && _$setAttribute(_el$172, "aria-labelledby", _p$.e = _v$52);
2865
+ _v$53 !== _p$.t && _$setAttribute(_el$173, "id", _p$.t = _v$53);
2721
2866
  return _p$;
2722
2867
  }, {
2723
2868
  e: undefined,
2724
2869
  t: undefined
2725
2870
  });
2726
- return _el$158;
2871
+ return _el$172;
2727
2872
  }
2728
2873
  });
2729
2874
  }
2730
- }), _el$80, _co$10);
2731
- _$insert(_el$69, _$createComponent(Show, {
2875
+ }), _el$94, _co$13);
2876
+ _$insert(_el$83, _$createComponent(Show, {
2732
2877
  get when() {
2733
2878
  return _$memo(() => !!(searching() && foundCommandCount() === 0))() && !commandModel().groups.some(group => group.section || group.scopeTitle);
2734
2879
  },
2735
2880
  get children() {
2736
- var _el$70 = _$getNextElement(_tmpl$21),
2737
- _el$71 = _el$70.firstChild,
2738
- _el$72 = _el$71.nextSibling;
2739
- _$insert(_el$72, () => messages().loading);
2740
- return _el$70;
2881
+ var _el$84 = _$getNextElement(_tmpl$22),
2882
+ _el$85 = _el$84.firstChild,
2883
+ _el$86 = _el$85.nextSibling;
2884
+ _$insert(_el$86, () => messages().loading);
2885
+ return _el$84;
2741
2886
  }
2742
- }), _el$82, _co$11);
2743
- _$insert(_el$69, _$createComponent(Show, {
2887
+ }), _el$96, _co$14);
2888
+ _$insert(_el$83, _$createComponent(Show, {
2744
2889
  get when() {
2745
2890
  return searchError();
2746
2891
  },
2747
2892
  get children() {
2748
- var _el$73 = _$getNextElement(_tmpl$22),
2749
- _el$74 = _el$73.firstChild,
2750
- _el$75 = _el$74.nextSibling,
2751
- _el$76 = _el$75.nextSibling,
2752
- [_el$77, _co$1] = _$getNextMarker(_el$76.nextSibling);
2753
- _$insert(_el$73, () => messages().error, _el$77, _co$1);
2754
- return _el$73;
2893
+ var _el$87 = _$getNextElement(_tmpl$23),
2894
+ _el$88 = _el$87.firstChild,
2895
+ _el$89 = _el$88.nextSibling,
2896
+ _el$90 = _el$89.nextSibling,
2897
+ [_el$91, _co$12] = _$getNextMarker(_el$90.nextSibling);
2898
+ _$insert(_el$87, () => messages().error, _el$91, _co$12);
2899
+ return _el$87;
2755
2900
  }
2756
- }), _el$84, _co$12);
2757
- _$insert(_el$69, _$createComponent(Show, {
2901
+ }), _el$98, _co$15);
2902
+ _$insert(_el$83, _$createComponent(Show, {
2758
2903
  get when() {
2759
2904
  return _$memo(() => !!(!searching() && !searchError() && foundCommandCount() === 0))() && !commandModel().groups.some(group => group.pendingRows);
2760
2905
  },
2761
2906
  get children() {
2762
- var _el$78 = _$getNextElement(_tmpl$23);
2763
- _$insert(_el$78, (() => {
2907
+ var _el$92 = _$getNextElement(_tmpl$24);
2908
+ _$insert(_el$92, (() => {
2764
2909
  var _c$ = _$memo(() => !!!parsedCommandQuery().query.trim());
2765
2910
  return () => _c$() ? messages().noResults : chatMessages().commandsNothingFound({
2766
2911
  query: parsedCommandQuery().query.trim()
2767
2912
  });
2768
2913
  })());
2769
- return _el$78;
2914
+ return _el$92;
2770
2915
  }
2771
- }), _el$86, _co$13);
2772
- _$insert(_el$69, _$createComponent(Show, {
2916
+ }), _el$100, _co$16);
2917
+ _$insert(_el$83, _$createComponent(Show, {
2773
2918
  get when() {
2774
2919
  return commandModel().fallback?.command;
2775
2920
  },
2776
2921
  keyed: true,
2777
2922
  children: command => renderCommandRow(command)
2778
- }), _el$88, _co$14);
2923
+ }), _el$102, _co$17);
2779
2924
  _$effect(_p$ => {
2780
- var _v$30 = addSearch() ? "" : undefined,
2781
- _v$31 = chatMessages().commands,
2782
- _v$32 = searching() ? "true" : undefined;
2783
- _v$30 !== _p$.e && _$setAttribute(_el$65, "data-search", _p$.e = _v$30);
2784
- _v$31 !== _p$.t && _$setAttribute(_el$69, "aria-label", _p$.t = _v$31);
2785
- _v$32 !== _p$.a && _$setAttribute(_el$69, "aria-busy", _p$.a = _v$32);
2925
+ var _v$32 = addSearch() ? "" : undefined,
2926
+ _v$33 = chatMessages().commands,
2927
+ _v$34 = searching() ? "true" : undefined;
2928
+ _v$32 !== _p$.e && _$setAttribute(_el$79, "data-search", _p$.e = _v$32);
2929
+ _v$33 !== _p$.t && _$setAttribute(_el$83, "aria-label", _p$.t = _v$33);
2930
+ _v$34 !== _p$.a && _$setAttribute(_el$83, "aria-busy", _p$.a = _v$34);
2786
2931
  return _p$;
2787
2932
  }, {
2788
2933
  e: undefined,
@@ -2790,243 +2935,243 @@ export function ChatComposer(props) {
2790
2935
  a: undefined
2791
2936
  });
2792
2937
  _$runHydrationEvents();
2793
- return _el$65;
2938
+ return _el$79;
2794
2939
  }
2795
- }), _el$96, _co$18);
2940
+ }), _el$110, _co$21);
2796
2941
  _$effect(_p$ => {
2797
- var _v$33 = hasAccessory() ? undefined : "true",
2798
- _v$34 = suggestionsOpen() ? "hidden" : undefined,
2799
- _v$35 = suggestionsOpen();
2800
- _v$33 !== _p$.e && _$setAttribute(_el$59, "data-overlay", _p$.e = _v$33);
2801
- _v$34 !== _p$.t && _$setStyleProperty(_el$60, "visibility", _p$.t = _v$34);
2802
- _v$35 !== _p$.a && _$setProperty(_el$60, "inert", _p$.a = _v$35);
2942
+ var _v$35 = hasAccessory() ? undefined : "true",
2943
+ _v$36 = suggestionsOpen() ? "hidden" : undefined,
2944
+ _v$37 = suggestionsOpen();
2945
+ _v$35 !== _p$.e && _$setAttribute(_el$73, "data-overlay", _p$.e = _v$35);
2946
+ _v$36 !== _p$.t && _$setStyleProperty(_el$74, "visibility", _p$.t = _v$36);
2947
+ _v$37 !== _p$.a && _$setProperty(_el$74, "inert", _p$.a = _v$37);
2803
2948
  return _p$;
2804
2949
  }, {
2805
2950
  e: undefined,
2806
2951
  t: undefined,
2807
2952
  a: undefined
2808
2953
  });
2809
- return _el$59;
2954
+ return _el$73;
2810
2955
  }
2811
- }), _el$141, _co$35);
2956
+ }), _el$155, _co$38);
2812
2957
  var _ref$10 = composerRef;
2813
- typeof _ref$10 === "function" ? _$use(_ref$10, _el$97) : composerRef = _el$97;
2814
- _$insert(_el$97, _$createComponent(Show, {
2958
+ typeof _ref$10 === "function" ? _$use(_ref$10, _el$111) : composerRef = _el$111;
2959
+ _$insert(_el$111, _$createComponent(Show, {
2815
2960
  get when() {
2816
2961
  return showHint();
2817
2962
  },
2818
2963
  get children() {
2819
- var _el$98 = _$getNextElement(_tmpl$26);
2820
- _$insert(_el$98, _$createComponent(Show, {
2964
+ var _el$112 = _$getNextElement(_tmpl$27);
2965
+ _$insert(_el$112, _$createComponent(Show, {
2821
2966
  get when() {
2822
2967
  return dictationStatus();
2823
2968
  },
2824
2969
  get fallback() {
2825
2970
  return (() => {
2826
- var _el$169 = _$getNextElement(_tmpl$38);
2827
- _$insert(_el$169, hint);
2828
- return _el$169;
2971
+ var _el$183 = _$getNextElement(_tmpl$39);
2972
+ _$insert(_el$183, hint);
2973
+ return _el$183;
2829
2974
  })();
2830
2975
  },
2831
2976
  children: status => [(() => {
2832
- var _el$170 = _$getNextElement(_tmpl$39),
2833
- _el$171 = _el$170.firstChild,
2834
- _el$172 = _el$171.nextSibling;
2835
- _$insert(_el$172, () => status().text);
2977
+ var _el$184 = _$getNextElement(_tmpl$40),
2978
+ _el$185 = _el$184.firstChild,
2979
+ _el$186 = _el$185.nextSibling;
2980
+ _$insert(_el$186, () => status().text);
2836
2981
  _$effect(_p$ => {
2837
- var _v$52 = dictation() ?? undefined,
2838
- _v$53 = status().icon;
2839
- _v$52 !== _p$.e && _$setAttribute(_el$170, "data-state", _p$.e = _v$52);
2840
- _v$53 !== _p$.t && _$className(_el$171, _p$.t = _v$53);
2982
+ var _v$54 = dictation() ?? undefined,
2983
+ _v$55 = status().icon;
2984
+ _v$54 !== _p$.e && _$setAttribute(_el$184, "data-state", _p$.e = _v$54);
2985
+ _v$55 !== _p$.t && _$className(_el$185, _p$.t = _v$55);
2841
2986
  return _p$;
2842
2987
  }, {
2843
2988
  e: undefined,
2844
2989
  t: undefined
2845
2990
  });
2846
- return _el$170;
2991
+ return _el$184;
2847
2992
  })(), _$createComponent(Show, {
2848
2993
  get when() {
2849
2994
  return _$memo(() => dictation() === "refined")() ? props.microphone?.onRestoreOriginal : undefined;
2850
2995
  },
2851
2996
  children: restore => (() => {
2852
- var _el$173 = _$getNextElement(_tmpl$40);
2853
- _el$173.$$click = () => reportChatFailure(restore(), props.onError);
2854
- _el$173.$$mousedown = keepFieldFocus;
2855
- _$insert(_el$173, () => chatMessages().restoreOriginal);
2856
- _$effect(() => _$setProperty(_el$173, "disabled", microphoneDisabled()));
2997
+ var _el$187 = _$getNextElement(_tmpl$41);
2998
+ _el$187.$$click = () => reportChatFailure(restore(), props.onError);
2999
+ _el$187.$$mousedown = keepFieldFocus;
3000
+ _$insert(_el$187, () => chatMessages().restoreOriginal);
3001
+ _$effect(() => _$setProperty(_el$187, "disabled", microphoneDisabled()));
2857
3002
  _$runHydrationEvents();
2858
- return _el$173;
3003
+ return _el$187;
2859
3004
  })()
2860
3005
  })]
2861
3006
  }));
2862
- return _el$98;
3007
+ return _el$112;
2863
3008
  }
2864
- }), _el$125, _co$28);
2865
- _$insert(_el$97, _$createComponent(Show, {
3009
+ }), _el$139, _co$31);
3010
+ _$insert(_el$111, _$createComponent(Show, {
2866
3011
  get when() {
2867
3012
  return props.reply;
2868
3013
  },
2869
3014
  children: reply => (() => {
2870
- var _el$174 = _$getNextElement(_tmpl$41),
2871
- _el$176 = _el$174.firstChild,
2872
- [_el$177, _co$42] = _$getNextMarker(_el$176.nextSibling),
2873
- _el$175 = _el$177.nextSibling;
2874
- _$insert(_el$174, _$createComponent(Show, {
3015
+ var _el$188 = _$getNextElement(_tmpl$42),
3016
+ _el$190 = _el$188.firstChild,
3017
+ [_el$191, _co$45] = _$getNextMarker(_el$190.nextSibling),
3018
+ _el$189 = _el$191.nextSibling;
3019
+ _$insert(_el$188, _$createComponent(Show, {
2875
3020
  get when() {
2876
3021
  return reply().onSelect;
2877
3022
  },
2878
3023
  get fallback() {
2879
3024
  return (() => {
2880
- var _el$178 = _$getNextElement(_tmpl$42);
2881
- _$insert(_el$178, () => replyQuote(reply()));
2882
- return _el$178;
3025
+ var _el$192 = _$getNextElement(_tmpl$43);
3026
+ _$insert(_el$192, () => replyQuote(reply()));
3027
+ return _el$192;
2883
3028
  })();
2884
3029
  },
2885
3030
  children: select => (() => {
2886
- var _el$179 = _$getNextElement(_tmpl$43);
2887
- _el$179.$$click = () => select()();
2888
- _$insert(_el$179, () => replyQuote(reply()));
3031
+ var _el$193 = _$getNextElement(_tmpl$44);
3032
+ _el$193.$$click = () => select()();
3033
+ _$insert(_el$193, () => replyQuote(reply()));
2889
3034
  _$runHydrationEvents();
2890
- return _el$179;
3035
+ return _el$193;
2891
3036
  })()
2892
- }), _el$177, _co$42);
2893
- _el$175.$$click = () => reply().onCancel();
2894
- _el$175.$$mousedown = keepFieldFocus;
3037
+ }), _el$191, _co$45);
3038
+ _el$189.$$click = () => reply().onCancel();
3039
+ _el$189.$$mousedown = keepFieldFocus;
2895
3040
  _$effect(_p$ => {
2896
- var _v$54 = chatMessages().cancelReply,
2897
- _v$55 = chatMessages().cancelReply;
2898
- _v$54 !== _p$.e && _$setAttribute(_el$175, "aria-label", _p$.e = _v$54);
2899
- _v$55 !== _p$.t && _$setAttribute(_el$175, "title", _p$.t = _v$55);
3041
+ var _v$56 = chatMessages().cancelReply,
3042
+ _v$57 = chatMessages().cancelReply;
3043
+ _v$56 !== _p$.e && _$setAttribute(_el$189, "aria-label", _p$.e = _v$56);
3044
+ _v$57 !== _p$.t && _$setAttribute(_el$189, "title", _p$.t = _v$57);
2900
3045
  return _p$;
2901
3046
  }, {
2902
3047
  e: undefined,
2903
3048
  t: undefined
2904
3049
  });
2905
3050
  _$runHydrationEvents();
2906
- return _el$174;
3051
+ return _el$188;
2907
3052
  })()
2908
- }), _el$127, _co$29);
2909
- _$insert(_el$97, _$createComponent(Show, {
3053
+ }), _el$141, _co$32);
3054
+ _$insert(_el$111, _$createComponent(Show, {
2910
3055
  get when() {
2911
3056
  return attachments().length > 0;
2912
3057
  },
2913
3058
  get children() {
2914
- var _el$99 = _$getNextElement(_tmpl$27);
2915
- _$insert(_el$99, _$createComponent(For, {
3059
+ var _el$113 = _$getNextElement(_tmpl$28);
3060
+ _$insert(_el$113, _$createComponent(For, {
2916
3061
  get each() {
2917
3062
  return attachments();
2918
3063
  },
2919
3064
  children: attachment => (() => {
2920
- var _el$180 = _$getNextElement(_tmpl$46),
2921
- _el$181 = _el$180.firstChild,
2922
- _el$187 = _el$181.firstChild,
2923
- [_el$188, _co$45] = _$getNextMarker(_el$187.nextSibling),
2924
- _el$189 = _el$188.nextSibling,
2925
- [_el$190, _co$46] = _$getNextMarker(_el$189.nextSibling),
2926
- _el$191 = _el$190.nextSibling,
2927
- [_el$192, _co$47] = _$getNextMarker(_el$191.nextSibling),
2928
- _el$194 = _el$181.nextSibling,
2929
- [_el$195, _co$48] = _$getNextMarker(_el$194.nextSibling);
2930
- _$insert(_el$181, _$createComponent(Show, {
3065
+ var _el$194 = _$getNextElement(_tmpl$47),
3066
+ _el$195 = _el$194.firstChild,
3067
+ _el$201 = _el$195.firstChild,
3068
+ [_el$202, _co$48] = _$getNextMarker(_el$201.nextSibling),
3069
+ _el$203 = _el$202.nextSibling,
3070
+ [_el$204, _co$49] = _$getNextMarker(_el$203.nextSibling),
3071
+ _el$205 = _el$204.nextSibling,
3072
+ [_el$206, _co$50] = _$getNextMarker(_el$205.nextSibling),
3073
+ _el$208 = _el$195.nextSibling,
3074
+ [_el$209, _co$51] = _$getNextMarker(_el$208.nextSibling);
3075
+ _$insert(_el$195, _$createComponent(Show, {
2931
3076
  get when() {
2932
3077
  return attachment.href;
2933
3078
  },
2934
3079
  get fallback() {
2935
3080
  return (() => {
2936
- var _el$196 = _$getNextElement(_tmpl$48),
2937
- _el$198 = _el$196.firstChild,
2938
- [_el$199, _co$49] = _$getNextMarker(_el$198.nextSibling),
2939
- _el$200 = _el$199.nextSibling,
2940
- [_el$201, _co$50] = _$getNextMarker(_el$200.nextSibling);
2941
- _$insert(_el$196, _$createComponent(Show, {
3081
+ var _el$210 = _$getNextElement(_tmpl$49),
3082
+ _el$212 = _el$210.firstChild,
3083
+ [_el$213, _co$52] = _$getNextMarker(_el$212.nextSibling),
3084
+ _el$214 = _el$213.nextSibling,
3085
+ [_el$215, _co$53] = _$getNextMarker(_el$214.nextSibling);
3086
+ _$insert(_el$210, _$createComponent(Show, {
2942
3087
  get when() {
2943
3088
  return _$memo(() => attachment.kind === "image")() && attachment.previewUrl;
2944
3089
  },
2945
3090
  get fallback() {
2946
3091
  return (() => {
2947
- var _el$202 = _$getNextElement(_tmpl$3);
2948
- _$effect(() => _$className(_el$202, attachmentIcon(attachment)));
2949
- return _el$202;
3092
+ var _el$216 = _$getNextElement(_tmpl$3);
3093
+ _$effect(() => _$className(_el$216, attachmentIcon(attachment)));
3094
+ return _el$216;
2950
3095
  })();
2951
3096
  },
2952
3097
  get children() {
2953
- var _el$197 = _$getNextElement(_tmpl$47);
3098
+ var _el$211 = _$getNextElement(_tmpl$48);
2954
3099
  _$effect(_p$ => {
2955
- var _v$58 = attachment.previewUrl,
2956
- _v$59 = attachment.alt ?? "";
2957
- _v$58 !== _p$.e && _$setAttribute(_el$197, "src", _p$.e = _v$58);
2958
- _v$59 !== _p$.t && _$setAttribute(_el$197, "alt", _p$.t = _v$59);
3100
+ var _v$60 = attachment.previewUrl,
3101
+ _v$61 = attachment.alt ?? "";
3102
+ _v$60 !== _p$.e && _$setAttribute(_el$211, "src", _p$.e = _v$60);
3103
+ _v$61 !== _p$.t && _$setAttribute(_el$211, "alt", _p$.t = _v$61);
2959
3104
  return _p$;
2960
3105
  }, {
2961
3106
  e: undefined,
2962
3107
  t: undefined
2963
3108
  });
2964
- return _el$197;
3109
+ return _el$211;
2965
3110
  }
2966
- }), _el$199, _co$49);
2967
- _$insert(_el$196, () => renderAttachmentCopy(attachment), _el$201, _co$50);
2968
- return _el$196;
3111
+ }), _el$213, _co$52);
3112
+ _$insert(_el$210, () => renderAttachmentCopy(attachment), _el$215, _co$53);
3113
+ return _el$210;
2969
3114
  })();
2970
3115
  },
2971
3116
  children: href => (() => {
2972
- var _el$203 = _$getNextElement(_tmpl$49),
2973
- _el$205 = _el$203.firstChild,
2974
- [_el$206, _co$51] = _$getNextMarker(_el$205.nextSibling),
2975
- _el$207 = _el$206.nextSibling,
2976
- [_el$208, _co$52] = _$getNextMarker(_el$207.nextSibling);
2977
- _$insert(_el$203, _$createComponent(Show, {
3117
+ var _el$217 = _$getNextElement(_tmpl$50),
3118
+ _el$219 = _el$217.firstChild,
3119
+ [_el$220, _co$54] = _$getNextMarker(_el$219.nextSibling),
3120
+ _el$221 = _el$220.nextSibling,
3121
+ [_el$222, _co$55] = _$getNextMarker(_el$221.nextSibling);
3122
+ _$insert(_el$217, _$createComponent(Show, {
2978
3123
  get when() {
2979
3124
  return _$memo(() => attachment.kind === "image")() && attachment.previewUrl;
2980
3125
  },
2981
3126
  get fallback() {
2982
3127
  return (() => {
2983
- var _el$209 = _$getNextElement(_tmpl$3);
2984
- _$effect(() => _$className(_el$209, attachmentIcon(attachment)));
2985
- return _el$209;
3128
+ var _el$223 = _$getNextElement(_tmpl$3);
3129
+ _$effect(() => _$className(_el$223, attachmentIcon(attachment)));
3130
+ return _el$223;
2986
3131
  })();
2987
3132
  },
2988
3133
  get children() {
2989
- var _el$204 = _$getNextElement(_tmpl$47);
3134
+ var _el$218 = _$getNextElement(_tmpl$48);
2990
3135
  _$effect(_p$ => {
2991
- var _v$60 = attachment.previewUrl,
2992
- _v$61 = attachment.alt ?? "";
2993
- _v$60 !== _p$.e && _$setAttribute(_el$204, "src", _p$.e = _v$60);
2994
- _v$61 !== _p$.t && _$setAttribute(_el$204, "alt", _p$.t = _v$61);
3136
+ var _v$62 = attachment.previewUrl,
3137
+ _v$63 = attachment.alt ?? "";
3138
+ _v$62 !== _p$.e && _$setAttribute(_el$218, "src", _p$.e = _v$62);
3139
+ _v$63 !== _p$.t && _$setAttribute(_el$218, "alt", _p$.t = _v$63);
2995
3140
  return _p$;
2996
3141
  }, {
2997
3142
  e: undefined,
2998
3143
  t: undefined
2999
3144
  });
3000
- return _el$204;
3145
+ return _el$218;
3001
3146
  }
3002
- }), _el$206, _co$51);
3003
- _$insert(_el$203, () => renderAttachmentCopy(attachment), _el$208, _co$52);
3147
+ }), _el$220, _co$54);
3148
+ _$insert(_el$217, () => renderAttachmentCopy(attachment), _el$222, _co$55);
3004
3149
  _$effect(_p$ => {
3005
- var _v$62 = href(),
3006
- _v$63 = chatMessages().openInNewTab({
3150
+ var _v$64 = href(),
3151
+ _v$65 = chatMessages().openInNewTab({
3007
3152
  name: attachment.name
3008
3153
  });
3009
- _v$62 !== _p$.e && _$setAttribute(_el$203, "href", _p$.e = _v$62);
3010
- _v$63 !== _p$.t && _$setAttribute(_el$203, "aria-label", _p$.t = _v$63);
3154
+ _v$64 !== _p$.e && _$setAttribute(_el$217, "href", _p$.e = _v$64);
3155
+ _v$65 !== _p$.t && _$setAttribute(_el$217, "aria-label", _p$.t = _v$65);
3011
3156
  return _p$;
3012
3157
  }, {
3013
3158
  e: undefined,
3014
3159
  t: undefined
3015
3160
  });
3016
- return _el$203;
3161
+ return _el$217;
3017
3162
  })()
3018
- }), _el$188, _co$45);
3019
- _$insert(_el$181, _$createComponent(Show, {
3163
+ }), _el$202, _co$48);
3164
+ _$insert(_el$195, _$createComponent(Show, {
3020
3165
  get when() {
3021
3166
  return attachment.progress !== undefined;
3022
3167
  },
3023
3168
  get children() {
3024
- var _el$182 = _$getNextElement(_tmpl$44),
3025
- _el$183 = _el$182.firstChild,
3026
- [_el$184, _co$43] = _$getNextMarker(_el$183.nextSibling),
3027
- _el$185 = _el$184.nextSibling,
3028
- [_el$186, _co$44] = _$getNextMarker(_el$185.nextSibling);
3029
- _$insert(_el$182, _$createComponent(ProgressRing, {
3169
+ var _el$196 = _$getNextElement(_tmpl$45),
3170
+ _el$197 = _el$196.firstChild,
3171
+ [_el$198, _co$46] = _$getNextMarker(_el$197.nextSibling),
3172
+ _el$199 = _el$198.nextSibling,
3173
+ [_el$200, _co$47] = _$getNextMarker(_el$199.nextSibling);
3174
+ _$insert(_el$196, _$createComponent(ProgressRing, {
3030
3175
  get value() {
3031
3176
  return attachment.progress ?? 0;
3032
3177
  },
@@ -3035,42 +3180,42 @@ export function ChatComposer(props) {
3035
3180
  name: attachment.name
3036
3181
  });
3037
3182
  }
3038
- }), _el$184, _co$43);
3039
- _$insert(_el$182, () => new Intl.NumberFormat(locale(), {
3183
+ }), _el$198, _co$46);
3184
+ _$insert(_el$196, () => new Intl.NumberFormat(locale(), {
3040
3185
  style: "percent"
3041
- }).format(Math.round(attachment.progress ?? 0) / 100), _el$186, _co$44);
3042
- return _el$182;
3186
+ }).format(Math.round(attachment.progress ?? 0) / 100), _el$200, _co$47);
3187
+ return _el$196;
3043
3188
  }
3044
- }), _el$190, _co$46);
3045
- _$insert(_el$181, _$createComponent(Show, {
3189
+ }), _el$204, _co$49);
3190
+ _$insert(_el$195, _$createComponent(Show, {
3046
3191
  get when() {
3047
3192
  return _$memo(() => attachment.progress === undefined)() && attachment.action;
3048
3193
  },
3049
3194
  children: action => (() => {
3050
- var _el$210 = _$getNextElement(_tmpl$50),
3051
- _el$211 = _el$210.firstChild,
3052
- [_el$212, _co$53] = _$getNextMarker(_el$211.nextSibling),
3053
- _el$213 = _el$212.nextSibling,
3054
- [_el$214, _co$54] = _$getNextMarker(_el$213.nextSibling);
3055
- _el$210.$$click = () => reportChatFailure(() => executeChatAction(action()), props.onError);
3056
- _$insert(_el$210, _$createComponent(Show, {
3195
+ var _el$224 = _$getNextElement(_tmpl$51),
3196
+ _el$225 = _el$224.firstChild,
3197
+ [_el$226, _co$56] = _$getNextMarker(_el$225.nextSibling),
3198
+ _el$227 = _el$226.nextSibling,
3199
+ [_el$228, _co$57] = _$getNextMarker(_el$227.nextSibling);
3200
+ _el$224.$$click = () => reportChatFailure(() => executeChatAction(action()), props.onError);
3201
+ _$insert(_el$224, _$createComponent(Show, {
3057
3202
  get when() {
3058
3203
  return action().icon;
3059
3204
  },
3060
3205
  children: icon => (() => {
3061
- var _el$215 = _$getNextElement(_tmpl$3);
3062
- _$effect(() => _$className(_el$215, icon()));
3063
- return _el$215;
3206
+ var _el$229 = _$getNextElement(_tmpl$3);
3207
+ _$effect(() => _$className(_el$229, icon()));
3208
+ return _el$229;
3064
3209
  })()
3065
- }), _el$212, _co$53);
3066
- _$insert(_el$210, () => action().label, _el$214, _co$54);
3210
+ }), _el$226, _co$56);
3211
+ _$insert(_el$224, () => action().label, _el$228, _co$57);
3067
3212
  _$effect(_p$ => {
3068
- var _v$64 = action().variant === "danger" ? "danger" : undefined,
3069
- _v$65 = action().disabled ? "" : undefined,
3070
- _v$66 = blocked() || action().disabled;
3071
- _v$64 !== _p$.e && _$setAttribute(_el$210, "data-tone", _p$.e = _v$64);
3072
- _v$65 !== _p$.t && _$setAttribute(_el$210, "data-waiting", _p$.t = _v$65);
3073
- _v$66 !== _p$.a && _$setProperty(_el$210, "disabled", _p$.a = _v$66);
3213
+ var _v$66 = action().variant === "danger" ? "danger" : undefined,
3214
+ _v$67 = action().disabled ? "" : undefined,
3215
+ _v$68 = blocked() || action().disabled;
3216
+ _v$66 !== _p$.e && _$setAttribute(_el$224, "data-tone", _p$.e = _v$66);
3217
+ _v$67 !== _p$.t && _$setAttribute(_el$224, "data-waiting", _p$.t = _v$67);
3218
+ _v$68 !== _p$.a && _$setProperty(_el$224, "disabled", _p$.a = _v$68);
3074
3219
  return _p$;
3075
3220
  }, {
3076
3221
  e: undefined,
@@ -3078,41 +3223,41 @@ export function ChatComposer(props) {
3078
3223
  a: undefined
3079
3224
  });
3080
3225
  _$runHydrationEvents();
3081
- return _el$210;
3226
+ return _el$224;
3082
3227
  })()
3083
- }), _el$192, _co$47);
3084
- _$insert(_el$180, _$createComponent(Show, {
3228
+ }), _el$206, _co$50);
3229
+ _$insert(_el$194, _$createComponent(Show, {
3085
3230
  get when() {
3086
3231
  return props.onAttachmentsChange;
3087
3232
  },
3088
3233
  get children() {
3089
- var _el$193 = _$getNextElement(_tmpl$45);
3090
- _el$193.$$click = () => setAttachments(attachments().filter(candidate => candidate.id !== attachment.id));
3234
+ var _el$207 = _$getNextElement(_tmpl$46);
3235
+ _el$207.$$click = () => setAttachments(attachments().filter(candidate => candidate.id !== attachment.id));
3091
3236
  _$effect(_p$ => {
3092
- var _v$56 = selectMessages().removeNamed({
3237
+ var _v$58 = selectMessages().removeNamed({
3093
3238
  name: attachment.name
3094
3239
  }),
3095
- _v$57 = blocked();
3096
- _v$56 !== _p$.e && _$setAttribute(_el$193, "aria-label", _p$.e = _v$56);
3097
- _v$57 !== _p$.t && _$setProperty(_el$193, "disabled", _p$.t = _v$57);
3240
+ _v$59 = blocked();
3241
+ _v$58 !== _p$.e && _$setAttribute(_el$207, "aria-label", _p$.e = _v$58);
3242
+ _v$59 !== _p$.t && _$setProperty(_el$207, "disabled", _p$.t = _v$59);
3098
3243
  return _p$;
3099
3244
  }, {
3100
3245
  e: undefined,
3101
3246
  t: undefined
3102
3247
  });
3103
3248
  _$runHydrationEvents();
3104
- return _el$193;
3249
+ return _el$207;
3105
3250
  }
3106
- }), _el$195, _co$48);
3107
- _$effect(() => _el$181.classList.toggle("k2b-chat-composer__attachment-content--action", !!(Boolean(attachment.action) || attachment.progress !== undefined)));
3108
- return _el$180;
3251
+ }), _el$209, _co$51);
3252
+ _$effect(() => _el$195.classList.toggle("k2b-chat-composer__attachment-content--action", !!(Boolean(attachment.action) || attachment.progress !== undefined)));
3253
+ return _el$194;
3109
3254
  })()
3110
3255
  }));
3111
- _$effect(() => _$setAttribute(_el$99, "aria-label", chatMessages().attachments));
3112
- return _el$99;
3256
+ _$effect(() => _$setAttribute(_el$113, "aria-label", chatMessages().attachments));
3257
+ return _el$113;
3113
3258
  }
3114
- }), _el$129, _co$30);
3115
- _$insert(_el$97, _$createComponent(Show, {
3259
+ }), _el$143, _co$33);
3260
+ _$insert(_el$111, _$createComponent(Show, {
3116
3261
  get when() {
3117
3262
  return conversation();
3118
3263
  },
@@ -3122,38 +3267,42 @@ export function ChatComposer(props) {
3122
3267
  return props.error;
3123
3268
  },
3124
3269
  get children() {
3125
- var _el$216 = _$getNextElement(_tmpl$28),
3126
- _el$217 = _el$216.firstChild,
3127
- _el$218 = _el$217.nextSibling,
3128
- [_el$219, _co$55] = _$getNextMarker(_el$218.nextSibling);
3129
- _$insert(_el$216, () => props.error, _el$219, _co$55);
3130
- return _el$216;
3270
+ var _el$230 = _$getNextElement(_tmpl$29),
3271
+ _el$231 = _el$230.firstChild,
3272
+ _el$232 = _el$231.nextSibling,
3273
+ [_el$233, _co$58] = _$getNextMarker(_el$232.nextSibling);
3274
+ _$insert(_el$230, () => props.error, _el$233, _co$58);
3275
+ return _el$230;
3131
3276
  }
3132
3277
  }), _$memo(formatRow), (() => {
3133
- var _el$220 = _$getNextElement(_tmpl$51);
3134
- _$insert(_el$220, _$createComponent(Show, {
3278
+ var _el$234 = _$getNextElement(_tmpl$52);
3279
+ _$insert(_el$234, _$createComponent(Show, {
3135
3280
  get when() {
3136
3281
  return dictating() || footer();
3137
3282
  },
3138
3283
  get fallback() {
3139
3284
  return [(() => {
3140
- var _el$221 = _$getNextElement(_tmpl$52),
3141
- _el$222 = _el$221.firstChild,
3142
- [_el$223, _co$56] = _$getNextMarker(_el$222.nextSibling),
3143
- _el$224 = _el$223.nextSibling,
3144
- [_el$225, _co$57] = _$getNextMarker(_el$224.nextSibling),
3145
- _el$226 = _el$225.nextSibling,
3146
- [_el$227, _co$58] = _$getNextMarker(_el$226.nextSibling),
3147
- _el$228 = _el$227.nextSibling,
3148
- [_el$229, _co$59] = _$getNextMarker(_el$228.nextSibling),
3149
- _el$230 = _el$229.nextSibling,
3150
- [_el$231, _co$60] = _$getNextMarker(_el$230.nextSibling),
3151
- _el$232 = _el$231.nextSibling,
3152
- [_el$233, _co$61] = _$getNextMarker(_el$232.nextSibling),
3153
- _el$234 = _el$233.nextSibling,
3154
- [_el$235, _co$62] = _$getNextMarker(_el$234.nextSibling);
3155
- _$insert(_el$221, () => props.footerTools, _el$223, _co$56);
3156
- _$insert(_el$221, _$createComponent(Show, {
3285
+ var _el$235 = _$getNextElement(_tmpl$53),
3286
+ _el$236 = _el$235.firstChild,
3287
+ [_el$237, _co$59] = _$getNextMarker(_el$236.nextSibling),
3288
+ _el$238 = _el$237.nextSibling,
3289
+ [_el$239, _co$60] = _$getNextMarker(_el$238.nextSibling),
3290
+ _el$240 = _el$239.nextSibling,
3291
+ [_el$241, _co$61] = _$getNextMarker(_el$240.nextSibling),
3292
+ _el$242 = _el$241.nextSibling,
3293
+ [_el$243, _co$62] = _$getNextMarker(_el$242.nextSibling),
3294
+ _el$244 = _el$243.nextSibling,
3295
+ [_el$245, _co$63] = _$getNextMarker(_el$244.nextSibling),
3296
+ _el$246 = _el$245.nextSibling,
3297
+ [_el$247, _co$64] = _$getNextMarker(_el$246.nextSibling),
3298
+ _el$248 = _el$247.nextSibling,
3299
+ [_el$249, _co$65] = _$getNextMarker(_el$248.nextSibling),
3300
+ _el$250 = _el$249.nextSibling,
3301
+ [_el$251, _co$66] = _$getNextMarker(_el$250.nextSibling),
3302
+ _el$252 = _el$251.nextSibling,
3303
+ [_el$253, _co$67] = _$getNextMarker(_el$252.nextSibling);
3304
+ _$insert(_el$235, () => props.footerTools, _el$237, _co$59);
3305
+ _$insert(_el$235, _$createComponent(Show, {
3157
3306
  get when() {
3158
3307
  return addOpensCommands();
3159
3308
  },
@@ -3170,11 +3319,62 @@ export function ChatComposer(props) {
3170
3319
  get children() {
3171
3320
  return addSearchButton();
3172
3321
  }
3173
- }), _el$225, _co$57);
3174
- _$insert(_el$221, fileInput, _el$227, _co$58);
3175
- _$insert(_el$221, formatToggle, _el$229, _co$59);
3176
- _$insert(_el$221, emojiButton, _el$231, _co$60);
3177
- _$insert(_el$221, _$createComponent(Show, {
3322
+ }), _el$239, _co$60);
3323
+ _$insert(_el$235, fileInput, _el$241, _co$61);
3324
+ _$insert(_el$235, _$createComponent(Show, {
3325
+ get when() {
3326
+ return hasContextUsage() || (props.contextSections?.length ?? 0) > 0;
3327
+ },
3328
+ get children() {
3329
+ return _$createComponent(ContextUsage, _$mergeProps(() => props.contextUsage ?? {}, {
3330
+ get context() {
3331
+ return hasContextUsage();
3332
+ },
3333
+ get sections() {
3334
+ return props.contextSections;
3335
+ },
3336
+ get action() {
3337
+ return props.contextPopupAction;
3338
+ },
3339
+ get onActionError() {
3340
+ return props.onError;
3341
+ }
3342
+ }));
3343
+ }
3344
+ }), _el$243, _co$62);
3345
+ _$insert(_el$235, _$createComponent(For, {
3346
+ get each() {
3347
+ return props.contextActions;
3348
+ },
3349
+ children: action => _$createComponent(Tooltip.Trigger, {
3350
+ type: "button",
3351
+ "class": "k2b-chat-composer__icon-action",
3352
+ get ["data-tone"]() {
3353
+ return action.variant === "danger" ? "danger" : undefined;
3354
+ },
3355
+ get disabled() {
3356
+ return action.disabled;
3357
+ },
3358
+ get ["aria-pressed"]() {
3359
+ return action.pressed;
3360
+ },
3361
+ get ["aria-label"]() {
3362
+ return action.label;
3363
+ },
3364
+ get content() {
3365
+ return action.label;
3366
+ },
3367
+ onClick: () => reportChatFailure(() => executeChatAction(action), props.onError),
3368
+ get children() {
3369
+ var _el$263 = _$getNextElement(_tmpl$3);
3370
+ _$effect(() => _$className(_el$263, action.icon ?? "ti ti-dots"));
3371
+ return _el$263;
3372
+ }
3373
+ })
3374
+ }), _el$245, _co$63);
3375
+ _$insert(_el$235, formatToggle, _el$247, _co$64);
3376
+ _$insert(_el$235, emojiButton, _el$249, _co$65);
3377
+ _$insert(_el$235, _$createComponent(Show, {
3178
3378
  get when() {
3179
3379
  return (props.models?.length ?? 0) > 0;
3180
3380
  },
@@ -3220,68 +3420,21 @@ export function ChatComposer(props) {
3220
3420
  }
3221
3421
  });
3222
3422
  }
3223
- }), _el$233, _co$61);
3224
- _$insert(_el$221, () => props.modelDetails, _el$235, _co$62);
3225
- return _el$221;
3423
+ }), _el$251, _co$66);
3424
+ _$insert(_el$235, () => props.modelDetails, _el$253, _co$67);
3425
+ return _el$235;
3226
3426
  })(), (() => {
3227
- var _el$236 = _$getNextElement(_tmpl$53),
3228
- _el$237 = _el$236.firstChild,
3229
- [_el$238, _co$63] = _$getNextMarker(_el$237.nextSibling),
3230
- _el$239 = _el$238.nextSibling,
3231
- [_el$240, _co$64] = _$getNextMarker(_el$239.nextSibling),
3232
- _el$241 = _el$240.nextSibling,
3233
- [_el$242, _co$65] = _$getNextMarker(_el$241.nextSibling),
3234
- _el$243 = _el$242.nextSibling,
3235
- [_el$244, _co$66] = _$getNextMarker(_el$243.nextSibling),
3236
- _el$245 = _el$244.nextSibling,
3237
- [_el$246, _co$67] = _$getNextMarker(_el$245.nextSibling),
3238
- _el$247 = _el$246.nextSibling,
3239
- [_el$248, _co$68] = _$getNextMarker(_el$247.nextSibling);
3240
- _$insert(_el$236, _$createComponent(For, {
3241
- get each() {
3242
- return props.contextActions;
3243
- },
3244
- children: action => _$createComponent(Tooltip.Trigger, {
3245
- type: "button",
3246
- "class": "k2b-chat-composer__icon-action",
3247
- get ["data-tone"]() {
3248
- return action.variant === "danger" ? "danger" : undefined;
3249
- },
3250
- get disabled() {
3251
- return action.disabled;
3252
- },
3253
- get ["aria-pressed"]() {
3254
- return action.pressed;
3255
- },
3256
- get ["aria-label"]() {
3257
- return action.label;
3258
- },
3259
- get content() {
3260
- return action.label;
3261
- },
3262
- onClick: () => reportChatFailure(() => executeChatAction(action), props.onError),
3263
- get children() {
3264
- var _el$249 = _$getNextElement(_tmpl$3);
3265
- _$effect(() => _$className(_el$249, action.icon ?? "ti ti-dots"));
3266
- return _el$249;
3267
- }
3268
- })
3269
- }), _el$238, _co$63);
3270
- _$insert(_el$236, _$createComponent(Show, {
3271
- get when() {
3272
- return _$memo(() => !!hasContextUsage())() ? props.contextUsage ?? {} : undefined;
3273
- },
3274
- children: usage => _$createComponent(ContextUsage, _$mergeProps(usage, {
3275
- get action() {
3276
- return props.contextPopupAction;
3277
- },
3278
- get onActionError() {
3279
- return props.onError;
3280
- }
3281
- }))
3282
- }), _el$240, _co$64);
3283
- _$insert(_el$236, () => props.submitTools, _el$242, _co$65);
3284
- _$insert(_el$236, _$createComponent(Show, {
3427
+ var _el$254 = _$getNextElement(_tmpl$54),
3428
+ _el$255 = _el$254.firstChild,
3429
+ [_el$256, _co$68] = _$getNextMarker(_el$255.nextSibling),
3430
+ _el$257 = _el$256.nextSibling,
3431
+ [_el$258, _co$69] = _$getNextMarker(_el$257.nextSibling),
3432
+ _el$259 = _el$258.nextSibling,
3433
+ [_el$260, _co$70] = _$getNextMarker(_el$259.nextSibling),
3434
+ _el$261 = _el$260.nextSibling,
3435
+ [_el$262, _co$71] = _$getNextMarker(_el$261.nextSibling);
3436
+ _$insert(_el$254, () => props.submitTools, _el$256, _co$68);
3437
+ _$insert(_el$254, _$createComponent(Show, {
3285
3438
  get when() {
3286
3439
  return props.dictation;
3287
3440
  },
@@ -3292,10 +3445,10 @@ export function ChatComposer(props) {
3292
3445
  cardAnchor: () => shellRef
3293
3446
  });
3294
3447
  }
3295
- }), _el$244, _co$66);
3296
- _$insert(_el$236, microphoneControl, _el$246, _co$67);
3297
- _$insert(_el$236, sendControl, _el$248, _co$68);
3298
- return _el$236;
3448
+ }), _el$258, _co$69);
3449
+ _$insert(_el$254, microphoneControl, _el$260, _co$70);
3450
+ _$insert(_el$254, sendControl, _el$262, _co$71);
3451
+ return _el$254;
3299
3452
  })()];
3300
3453
  },
3301
3454
  get children() {
@@ -3314,7 +3467,7 @@ export function ChatComposer(props) {
3314
3467
  });
3315
3468
  }
3316
3469
  }));
3317
- return _el$220;
3470
+ return _el$234;
3318
3471
  })()];
3319
3472
  },
3320
3473
  get children() {
@@ -3323,12 +3476,12 @@ export function ChatComposer(props) {
3323
3476
  return props.error;
3324
3477
  },
3325
3478
  get children() {
3326
- var _el$100 = _$getNextElement(_tmpl$28),
3327
- _el$101 = _el$100.firstChild,
3328
- _el$102 = _el$101.nextSibling,
3329
- [_el$103, _co$19] = _$getNextMarker(_el$102.nextSibling);
3330
- _$insert(_el$100, () => props.error, _el$103, _co$19);
3331
- return _el$100;
3479
+ var _el$114 = _$getNextElement(_tmpl$29),
3480
+ _el$115 = _el$114.firstChild,
3481
+ _el$116 = _el$115.nextSibling,
3482
+ [_el$117, _co$22] = _$getNextMarker(_el$116.nextSibling);
3483
+ _$insert(_el$114, () => props.error, _el$117, _co$22);
3484
+ return _el$114;
3332
3485
  }
3333
3486
  }), _$createComponent(Show, {
3334
3487
  get when() {
@@ -3338,38 +3491,38 @@ export function ChatComposer(props) {
3338
3491
  return formatRow();
3339
3492
  },
3340
3493
  get children() {
3341
- var _el$104 = _$getNextElement(_tmpl$29);
3342
- _$insert(_el$104, _$createComponent(DictationBar, {
3494
+ var _el$118 = _$getNextElement(_tmpl$30);
3495
+ _$insert(_el$118, _$createComponent(DictationBar, {
3343
3496
  dictation: liveDictation
3344
3497
  }));
3345
- return _el$104;
3498
+ return _el$118;
3346
3499
  }
3347
3500
  }), (() => {
3348
- var _el$105 = _$getNextElement(_tmpl$30),
3349
- _el$118 = _el$105.firstChild,
3350
- [_el$119, _co$25] = _$getNextMarker(_el$118.nextSibling),
3351
- _el$120 = _el$119.nextSibling,
3352
- [_el$121, _co$26] = _$getNextMarker(_el$120.nextSibling),
3353
- _el$106 = _el$121.nextSibling,
3354
- _el$116 = _el$106.firstChild,
3355
- [_el$117, _co$24] = _$getNextMarker(_el$116.nextSibling),
3356
- _el$107 = _el$117.nextSibling,
3357
- _el$108 = _el$107.firstChild,
3358
- [_el$109, _co$20] = _$getNextMarker(_el$108.nextSibling),
3359
- _el$110 = _el$109.nextSibling,
3360
- [_el$111, _co$21] = _$getNextMarker(_el$110.nextSibling),
3361
- _el$112 = _el$111.nextSibling,
3362
- [_el$113, _co$22] = _$getNextMarker(_el$112.nextSibling),
3363
- _el$114 = _el$113.nextSibling,
3364
- [_el$115, _co$23] = _$getNextMarker(_el$114.nextSibling),
3365
- _el$122 = _el$106.nextSibling,
3366
- [_el$123, _co$27] = _$getNextMarker(_el$122.nextSibling);
3367
- _$insert(_el$105, attachControl, _el$119, _co$25);
3368
- _$insert(_el$105, fileInput, _el$121, _co$26);
3369
- _$insert(_el$106, field, _el$117, _co$24);
3370
- _$insert(_el$107, formatToggle, _el$109, _co$20);
3371
- _$insert(_el$107, emojiButton, _el$111, _co$21);
3372
- _$insert(_el$107, _$createComponent(Show, {
3501
+ var _el$119 = _$getNextElement(_tmpl$31),
3502
+ _el$132 = _el$119.firstChild,
3503
+ [_el$133, _co$28] = _$getNextMarker(_el$132.nextSibling),
3504
+ _el$134 = _el$133.nextSibling,
3505
+ [_el$135, _co$29] = _$getNextMarker(_el$134.nextSibling),
3506
+ _el$120 = _el$135.nextSibling,
3507
+ _el$130 = _el$120.firstChild,
3508
+ [_el$131, _co$27] = _$getNextMarker(_el$130.nextSibling),
3509
+ _el$121 = _el$131.nextSibling,
3510
+ _el$122 = _el$121.firstChild,
3511
+ [_el$123, _co$23] = _$getNextMarker(_el$122.nextSibling),
3512
+ _el$124 = _el$123.nextSibling,
3513
+ [_el$125, _co$24] = _$getNextMarker(_el$124.nextSibling),
3514
+ _el$126 = _el$125.nextSibling,
3515
+ [_el$127, _co$25] = _$getNextMarker(_el$126.nextSibling),
3516
+ _el$128 = _el$127.nextSibling,
3517
+ [_el$129, _co$26] = _$getNextMarker(_el$128.nextSibling),
3518
+ _el$136 = _el$120.nextSibling,
3519
+ [_el$137, _co$30] = _$getNextMarker(_el$136.nextSibling);
3520
+ _$insert(_el$119, attachControl, _el$133, _co$28);
3521
+ _$insert(_el$119, fileInput, _el$135, _co$29);
3522
+ _$insert(_el$120, field, _el$131, _co$27);
3523
+ _$insert(_el$121, formatToggle, _el$123, _co$23);
3524
+ _$insert(_el$121, emojiButton, _el$125, _co$24);
3525
+ _$insert(_el$121, _$createComponent(Show, {
3373
3526
  get when() {
3374
3527
  return props.dictation;
3375
3528
  },
@@ -3380,14 +3533,14 @@ export function ChatComposer(props) {
3380
3533
  cardAnchor: () => shellRef
3381
3534
  });
3382
3535
  }
3383
- }), _el$113, _co$22);
3384
- _$insert(_el$107, microphoneControl, _el$115, _co$23);
3385
- _$insert(_el$105, sendControl, _el$123, _co$27);
3386
- return _el$105;
3536
+ }), _el$127, _co$25);
3537
+ _$insert(_el$121, microphoneControl, _el$129, _co$26);
3538
+ _$insert(_el$119, sendControl, _el$137, _co$30);
3539
+ return _el$119;
3387
3540
  })()];
3388
3541
  }
3389
- }), _el$131, _co$31);
3390
- _$insert(_el$97, _$createComponent(Show, {
3542
+ }), _el$145, _co$34);
3543
+ _$insert(_el$111, _$createComponent(Show, {
3391
3544
  get when() {
3392
3545
  return props.fileSelection;
3393
3546
  },
@@ -3406,64 +3559,64 @@ export function ChatComposer(props) {
3406
3559
  },
3407
3560
  onDrop: files => void runFiles(files)
3408
3561
  })
3409
- }), _el$133, _co$32);
3410
- _$insert(_el$134, _$createComponent(Show, {
3562
+ }), _el$147, _co$35);
3563
+ _$insert(_el$148, _$createComponent(Show, {
3411
3564
  get when() {
3412
3565
  return suggestionAnnouncement();
3413
3566
  },
3414
3567
  keyed: true,
3415
3568
  children: announced => (() => {
3416
- var _el$250 = _$getNextElement(_tmpl$11);
3417
- _$insert(_el$250, () => announced.text);
3418
- return _el$250;
3569
+ var _el$264 = _$getNextElement(_tmpl$11);
3570
+ _$insert(_el$264, () => announced.text);
3571
+ return _el$264;
3419
3572
  })()
3420
3573
  }));
3421
- _$insert(_el$135, _$createComponent(Show, {
3574
+ _$insert(_el$149, _$createComponent(Show, {
3422
3575
  get when() {
3423
3576
  return _$memo(() => !!!suggestionsOpen())() && commandStatus();
3424
3577
  },
3425
3578
  children: status => (() => {
3426
- var _el$251 = _$getNextElement(_tmpl$54),
3427
- _el$252 = _el$251.firstChild,
3428
- _el$253 = _el$252.nextSibling;
3429
- _$insert(_el$253, () => status().text);
3579
+ var _el$265 = _$getNextElement(_tmpl$55),
3580
+ _el$266 = _el$265.firstChild,
3581
+ _el$267 = _el$266.nextSibling;
3582
+ _$insert(_el$267, () => status().text);
3430
3583
  _$effect(_p$ => {
3431
- var _v$67 = status().tone,
3432
- _v$68 = status().tone === "busy" ? "ti ti-loader-2 k2b-spin" : status().tone === "done" ? "ti ti-check" : "ti ti-alert-circle";
3433
- _v$67 !== _p$.e && _$setAttribute(_el$251, "data-tone", _p$.e = _v$67);
3434
- _v$68 !== _p$.t && _$className(_el$252, _p$.t = _v$68);
3584
+ var _v$69 = status().tone,
3585
+ _v$70 = status().tone === "busy" ? "ti ti-loader-2 k2b-spin" : status().tone === "done" ? "ti ti-check" : "ti ti-alert-circle";
3586
+ _v$69 !== _p$.e && _$setAttribute(_el$265, "data-tone", _p$.e = _v$69);
3587
+ _v$70 !== _p$.t && _$className(_el$266, _p$.t = _v$70);
3435
3588
  return _p$;
3436
3589
  }, {
3437
3590
  e: undefined,
3438
3591
  t: undefined
3439
3592
  });
3440
- return _el$251;
3593
+ return _el$265;
3441
3594
  })()
3442
- }), _el$137, _co$33);
3443
- _$insert(_el$135, _$createComponent(Show, {
3595
+ }), _el$151, _co$36);
3596
+ _$insert(_el$149, _$createComponent(Show, {
3444
3597
  get when() {
3445
3598
  return _$memo(() => !!suggestionsOpen())() && announcement();
3446
3599
  },
3447
3600
  keyed: true,
3448
3601
  children: announced => (() => {
3449
- var _el$254 = _$getNextElement(_tmpl$55);
3450
- _$insert(_el$254, () => announced.text);
3451
- return _el$254;
3602
+ var _el$268 = _$getNextElement(_tmpl$56);
3603
+ _$insert(_el$268, () => announced.text);
3604
+ return _el$268;
3452
3605
  })()
3453
- }), _el$139, _co$34);
3606
+ }), _el$153, _co$37);
3454
3607
  _$effect(_p$ => {
3455
- var _v$36 = `k2b-chat-composer ${props.class ?? ""}`,
3456
- _v$37 = running() ? "true" : undefined,
3457
- _v$38 = conversation() ? "conversation" : undefined,
3458
- _v$39 = props.error ? "true" : undefined,
3459
- _v$40 = props.disabled ? "true" : undefined,
3460
- _v$41 = props.label ?? chatMessages().messageComposer;
3461
- _v$36 !== _p$.e && _$className(_el$97, _p$.e = _v$36);
3462
- _v$37 !== _p$.t && _$setAttribute(_el$97, "data-running", _p$.t = _v$37);
3463
- _v$38 !== _p$.a && _$setAttribute(_el$97, "data-variant", _p$.a = _v$38);
3464
- _v$39 !== _p$.o && _$setAttribute(_el$97, "data-invalid", _p$.o = _v$39);
3465
- _v$40 !== _p$.i && _$setAttribute(_el$97, "data-disabled", _p$.i = _v$40);
3466
- _v$41 !== _p$.n && _$setAttribute(_el$97, "aria-label", _p$.n = _v$41);
3608
+ var _v$38 = `k2b-chat-composer ${props.class ?? ""}`,
3609
+ _v$39 = running() ? "true" : undefined,
3610
+ _v$40 = conversation() ? "conversation" : undefined,
3611
+ _v$41 = props.error ? "true" : undefined,
3612
+ _v$42 = props.disabled ? "true" : undefined,
3613
+ _v$43 = props.label ?? chatMessages().messageComposer;
3614
+ _v$38 !== _p$.e && _$className(_el$111, _p$.e = _v$38);
3615
+ _v$39 !== _p$.t && _$setAttribute(_el$111, "data-running", _p$.t = _v$39);
3616
+ _v$40 !== _p$.a && _$setAttribute(_el$111, "data-variant", _p$.a = _v$40);
3617
+ _v$41 !== _p$.o && _$setAttribute(_el$111, "data-invalid", _p$.o = _v$41);
3618
+ _v$42 !== _p$.i && _$setAttribute(_el$111, "data-disabled", _p$.i = _v$42);
3619
+ _v$43 !== _p$.n && _$setAttribute(_el$111, "aria-label", _p$.n = _v$43);
3467
3620
  return _p$;
3468
3621
  }, {
3469
3622
  e: undefined,
@@ -3473,8 +3626,8 @@ export function ChatComposer(props) {
3473
3626
  i: undefined,
3474
3627
  n: undefined
3475
3628
  });
3476
- return _el$58;
3629
+ return _el$72;
3477
3630
  })();
3478
3631
  }
3479
- _$delegateEvents(["input", "click", "keyup", "beforeinput", "keydown", "pointerdown", "mousedown", "focusout"]);
3632
+ _$delegateEvents(["input", "click", "keyup", "beforeinput", "keydown", "mousedown", "pointerdown", "focusout"]);
3480
3633
  //# sourceMappingURL=ChatComposer.js.map